:root {
  --ink: #13272f;
  --ink-soft: #4b6169;
  --teal-950: #0a2f3a;
  --teal-900: #0f3f4f;
  --teal-800: #14566a;
  --teal-700: #1b6a7f;
  --teal-100: #dfeef1;
  --teal-050: #eef7f8;
  --sand: #f5f2ec;
  --paper: #fffdf9;
  --white: #ffffff;
  --line: #d9e1e2;
  --accent: #b58a51;
  --success: #176d54;
  --error: #a53939;
  --shadow-sm: 0 10px 30px rgba(15, 63, 79, .08);
  --shadow-lg: 0 28px 70px rgba(8, 40, 50, .18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shell: 1180px;
  --header-height: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

::selection { background: var(--teal-100); color: var(--teal-950); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--teal-950);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 253, 249, .88);
  border-bottom: 1px solid rgba(217, 225, 226, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -.015em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--teal-900);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: .02em;
}

.brand-name { font-size: 1.03rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  color: #314950;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 650;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--teal-700);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .22s ease;
}
.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 10px 16px;
  color: var(--white) !important;
  background: var(--teal-900);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  background: var(--teal-950);
  transition: transform .2s ease, opacity .2s ease;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 84px 0 92px;
  background:
    radial-gradient(circle at 89% 14%, rgba(27, 106, 127, .12), transparent 30%),
    linear-gradient(135deg, var(--paper) 0%, #f8f8f4 58%, var(--teal-050) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  width: 470px;
  height: 470px;
  right: -180px;
  bottom: -230px;
  border: 1px solid rgba(20, 86, 106, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(20, 86, 106, .035), 0 0 0 135px rgba(20, 86, 106, .025);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .78fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal-700);
  font-size: .76rem;
  line-height: 1.35;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 24px;
  color: var(--teal-900);
  background: rgba(223, 238, 241, .62);
  border: 1px solid rgba(27, 106, 127, .12);
  border-radius: 999px;
  letter-spacing: .09em;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #2f8a68;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(47, 138, 104, .12);
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--teal-950);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(3.15rem, 6vw, 5.7rem);
  letter-spacing: -.045em;
}

.hero-tagline {
  margin: 0 0 24px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.3vw, 1.82rem);
  font-style: italic;
}

.hero-intro {
  max-width: 700px;
  margin: 0;
  color: #40575e;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid rgba(27, 106, 127, .25); outline-offset: 3px; }
.button-primary {
  color: var(--white);
  background: var(--teal-900);
  box-shadow: 0 10px 24px rgba(15, 63, 79, .16);
}
.button-primary:hover { background: var(--teal-800); box-shadow: 0 14px 28px rgba(15, 63, 79, .2); }
.button-secondary {
  color: var(--teal-900);
  background: rgba(255, 255, 255, .56);
  border-color: rgba(20, 86, 106, .2);
}
.button-secondary:hover { border-color: rgba(20, 86, 106, .45); background: var(--white); }
.button-link {
  color: var(--teal-900);
  background: transparent;
  border-color: transparent;
  padding-inline: 12px;
}
.button-link:hover {
  color: var(--teal-700);
  background: rgba(223, 238, 241, .38);
}


.resume-note {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 480px;
  margin-top: 28px;
  padding-top: 24px;
  color: #5e6f74;
  border-top: 1px solid rgba(19, 39, 47, .1);
  font-size: .88rem;
}
.resume-note strong,
.resume-note span { display: block; }
.resume-note strong { color: #2c464e; margin-bottom: 2px; }
.resume-icon {
  flex: 0 0 auto;
  display: grid !important;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--teal-900);
  background: var(--teal-100);
  border-radius: 50%;
  font-weight: 800;
}

.hero-photo-wrap {
  position: relative;
  width: min(100%, 485px);
  justify-self: end;
  isolation: isolate;
}

.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  z-index: -1;
  background: linear-gradient(145deg, rgba(27, 106, 127, .14), rgba(15, 63, 79, .06));
  border-radius: 30px;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(15, 63, 79, .10);
  border-radius: 28px;
  box-shadow: 0 24px 62px rgba(15, 63, 79, .17);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26);
}

.photo-frame img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: center 18%;
}

.photo-card {
  position: absolute;
  right: -18px;
  bottom: 30px;
  max-width: 255px;
  padding: 16px 18px;
  color: var(--white);
  background: rgba(10, 47, 58, .94);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(7, 40, 49, .25);
  backdrop-filter: blur(12px);
}

.photo-card-label {
  display: block;
  margin-bottom: 5px;
  color: #b9d7de;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.photo-card strong { font-size: .92rem; line-height: 1.45; }

.section { padding: 110px 0; }
.section-light { background: var(--sand); }
.section-dark { color: #dbe9ec; background: var(--teal-950); }

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.section-heading { max-width: 700px; }
.section-heading.centered { margin: 0 auto 52px; text-align: center; }
.section-heading.narrow { max-width: 610px; }
.section-heading h2 {
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 4vw, 3.6rem);
  letter-spacing: -.035em;
}
.section-heading > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.07rem; }
.section-dark .section-heading h2 { color: var(--white); }
.section-dark .eyebrow { color: #8fc0cb; }

.prose { max-width: 720px; }
.prose p { margin: 0 0 18px; color: #435a62; font-size: 1.07rem; }
.prose p:last-child { margin-bottom: 0; }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.expertise-card {
  position: relative;
  min-height: 100%;
  padding: 30px;
  background: var(--white);
  border: 1px solid #e4e9e9;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.card-number {
  display: block;
  margin-bottom: 30px;
  color: #8ca2a8;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.expertise-card h3 { margin-bottom: 13px; font-size: 1.55rem; }
.expertise-card > p { margin: 0 0 20px; color: #5a6c72; }
.skill-list { margin: 0; padding: 0; list-style: none; }
.skill-list li {
  position: relative;
  padding: 8px 0 8px 21px;
  border-top: 1px solid #eef1f1;
  color: #314950;
  font-size: .93rem;
}
.skill-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 18px;
  width: 7px;
  height: 7px;
  background: var(--teal-700);
  border-radius: 50%;
}
.tool-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.tool-strip span {
  padding: 9px 13px;
  color: #445d65;
  background: var(--teal-050);
  border: 1px solid #d8e9ec;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 650;
}

.experience-card {
  display: grid;
  grid-template-columns: minmax(270px, .72fr) minmax(0, 1.3fr);
  gap: 55px;
  margin-top: 50px;
  padding: 42px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: var(--radius-lg);
}
.experience-meta h3 { margin-bottom: 10px; color: var(--white); font-size: 2rem; }
.experience-meta p { color: #b7d0d6; }
.experience-dates {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 11px;
  color: #cae1e6 !important;
  background: rgba(143, 192, 203, .10);
  border: 1px solid rgba(143, 192, 203, .17);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.experience-details ul { margin: 0; padding-left: 22px; }
.experience-details li { padding: 0 0 13px 8px; color: #d1e0e3; }
.experience-details li::marker { color: #83b7c2; }

.education-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, .8fr);
  gap: clamp(50px, 8vw, 105px);
  align-items: start;
}
.education-note { margin-top: 28px; padding-left: 18px; border-left: 3px solid #cba46d; }
.education-stack { display: grid; gap: 18px; }
.education-card {
  padding: 27px 30px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(19, 39, 47, .08);
  border-radius: var(--radius-md);
}
.education-date {
  margin: 0 0 11px;
  color: var(--teal-700);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.education-card h3 { margin-bottom: 8px; font-size: 1.45rem; }
.education-card > p:last-child { margin: 0; color: #607278; }

.qualities { background: var(--paper); }
.qualities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quality { padding: 32px 27px 34px; border-right: 1px solid var(--line); }
.quality:last-child { border-right: 0; }
.quality h3 { margin-bottom: 12px; font-size: 1.45rem; }
.quality p { margin: 0; color: #5a6b70; font-size: .94rem; }

.contact-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #edf5f6 0%, #f7f4ed 100%);
}
.contact-section::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -180px;
  right: -90px;
  border: 1px solid rgba(15, 63, 79, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(15, 63, 79, .025), 0 0 0 110px rgba(15, 63, 79, .018);
}
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1fr);
  gap: clamp(55px, 8vw, 100px);
  align-items: start;
}
.contact-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  letter-spacing: -.04em;
}
.contact-copy > p:not(.eyebrow) { color: #4f656c; font-size: 1.05rem; }
.contact-links { margin-top: 32px; }
.contact-links > a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 380px;
  padding: 14px 0;
  color: var(--teal-900);
  border-bottom: 1px solid rgba(15, 63, 79, .18);
  text-decoration: none;
  font-weight: 750;
}
.location-line { display: block; margin-top: 19px; color: #61747a; font-size: .9rem; }

.form-card {
  padding: 32px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(15, 63, 79, .09);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 63, 79, .09);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 17px; }
.field label {
  display: block;
  margin-bottom: 7px;
  color: #29434b;
  font-size: .86rem;
  font-weight: 750;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid #cad7d9;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input { height: 48px; padding: 0 13px; }
.field textarea { min-height: 145px; padding: 12px 13px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(27, 106, 127, .10); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.turnstile-wrap { min-height: 67px; margin: 2px 0 18px; }
.form-submit { min-width: 150px; border: 0; }
.form-submit[disabled] { opacity: .68; cursor: wait; transform: none; }
.submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.form-submit.is-loading .submit-spinner { display: inline-block; }
.form-status { min-height: 24px; margin: 14px 0 0; font-size: .9rem; font-weight: 650; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }

.site-footer { padding: 28px 0; color: #718085; background: #0a252e; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; font-size: .82rem; }
.footer-inner strong { color: #e6eff1; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .09s; }
.reveal-delay-2 { transition-delay: .18s; }
.reveal-delay-3 { transition-delay: .27s; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .hero { min-height: auto; padding-top: 65px; }
  .hero-grid { grid-template-columns: 1fr 360px; gap: 46px; }
  .photo-card { right: -12px; bottom: 20px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card { display: grid; grid-template-columns: 90px minmax(0, 1fr); column-gap: 20px; }
  .expertise-card .card-number { grid-row: 1 / span 3; }
  .expertise-card .skill-list { grid-column: 2; }
  .education-layout, .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { max-width: 760px; }
  .qualities-grid { grid-template-columns: 1fr 1fr; }
  .quality:nth-child(2) { border-right: 0; }
  .quality:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 780px) {
  :root { --header-height: 70px; }
  .shell { width: min(calc(100% - 30px), var(--shell)); }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 15px;
    right: 15px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: rgba(255, 253, 249, .98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 12px; }
  .site-nav a::after { display: none; }
  .nav-cta { margin-top: 5px; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-of-type(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 56px 0 76px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo-wrap { width: min(100%, 450px); margin: 5px auto 0; justify-self: center; }
  .hero-photo-wrap::before { display: none; }
  .photo-card { right: 10px; }
  h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .section { padding: 82px 0; }
  .split-layout, .experience-card { grid-template-columns: 1fr; gap: 32px; }
  .experience-card { padding: 30px; }
  .section-heading.centered { text-align: left; margin-left: 0; }
  .expertise-card { display: block; }
  .expertise-card .card-number { margin-bottom: 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px; }
  .footer-inner { flex-direction: column; gap: 7px; }
}

@media (max-width: 540px) {
  .brand-name { display: none; }
  .hero .eyebrow { align-items: flex-start; border-radius: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .photo-card { position: static; max-width: none; margin: 12px 0 0; border-radius: 14px; }
  .photo-frame { border-radius: 22px; }
  .qualities-grid { grid-template-columns: 1fr; }
  .quality, .quality:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .quality:last-child { border-bottom: 0; }
  .education-layout { grid-template-columns: 1fr; }
  .experience-card { padding: 24px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.footer-resume {
  color: inherit;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.footer-resume:hover { color: var(--teal-700); }
