/* ================= Tokens ================= */
:root {
  --petrol: #10272B;
  --petrol-2: #173439;
  --petrol-3: #21434A;
  --petrol-4: #2C5058;
  --petrol-deep: #0B1E21;
  --mist: #EEF1EC;
  --paper: #F8FAF7;
  --white: #FFFFFF;
  --mint: #CFE3D6;
  --gold: #D2A65A;
  --gold-hi: #E2BB76;
  --bronze: #7A5A22;
  --sage: #93AE9F;
  --ink: #233539;
  --muted: #5C6E71;
  --field: #75898C;
  --error: #B2453A;
  --live: #7DD3A0;
  --line: rgba(16, 39, 43, .14);
  --line-dark: rgba(248, 250, 247, .12);

  /* Focus ring: dark on light sections, gold on dark sections (set per section below) */
  --focus: var(--petrol);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.6rem + 4vw, 4.75rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius: 18px;
  --radius-sm: 12px;
  --pill: 999px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); overflow-x: clip; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4 { margin: 0; color: var(--petrol); }
h2 {
  font-size: var(--step-3); font-weight: 800; font-stretch: 75%;
  line-height: 1.02; letter-spacing: -0.01em; text-transform: uppercase;
}
h3 { font-size: var(--step-1); font-weight: 650; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* Dark surfaces switch the focus ring to gold (6.9:1 on petrol) */
.nav, .hero, .where, .philosophy, .contact, .footer, .impact__stats > div:first-child { --focus: var(--gold); }
/* Light surfaces nested inside dark ones switch back */
.form, .modal { --focus: var(--petrol); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--gold); color: var(--petrol); padding: 8px 14px; }
.skip:focus { left: 8px; }

.section { padding: clamp(80px, 10vw, 136px) 0; }
.head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 52px); }
.head p { margin-top: 16px; font-size: var(--step-1); color: var(--muted); line-height: 1.5; }
.head--center { margin-inline: auto; text-align: center; }

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: var(--pill);
  font: 600 var(--step-0)/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: var(--step--1); }
.btn--gold { background: var(--gold); color: var(--petrol); will-change: transform; }
.btn--gold:hover { background: var(--gold-hi); }
.btn--line { color: var(--paper); border-color: rgba(248,250,247,.35); background: transparent; }
.btn--line:hover { border-color: var(--gold-hi); color: var(--gold-hi); }
.btn--dark { background: var(--petrol); color: var(--paper); }
.btn--dark:hover { background: var(--petrol-3); }
.btn__icon { width: 18px; height: 18px; margin-right: 8px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ================= Progress bar ================= */
.progress {
  position: fixed; inset: 0 0 auto; height: 3px; z-index: 150;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
  transform-origin: left center; transform: scaleX(0);
}

/* ================= Nav ================= */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; color: var(--paper); transition: background-color .3s var(--ease); }
.nav.is-scrolled { background: rgba(16,39,43,.96); backdrop-filter: blur(10px); }
.nav.is-open { background: var(--petrol); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: var(--nav-h); }
.nav__mark {
  margin-right: auto; text-decoration: none;
  font-weight: 900; font-stretch: 62%; font-size: 1.75rem; letter-spacing: .02em;
  padding: 8px 0;
}
.nav__links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: var(--step--1); font-weight: 500; }
.nav__links a { display: inline-block; padding: 12px 0; text-decoration: none; opacity: .78; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__resume {
  display: inline-flex; align-items: center; text-decoration: none;
  font-size: var(--step--1); font-weight: 600; color: var(--gold-hi);
  padding: 12px 4px; border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav__resume .btn__icon { width: 16px; height: 16px; margin-right: 6px; }
.nav__resume:hover { border-color: var(--gold-hi); }
.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid rgba(248,250,247,.25); background: transparent; color: var(--paper);
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav__toggle .i-close { display: none; }
.nav.is-open .nav__toggle .i-open { display: none; }
.nav.is-open .nav__toggle .i-close { display: block; }

/* ================= Hero ================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 50% 85%, rgba(147,174,159,.22), transparent 65%),
    var(--petrol);
  color: rgba(248,250,247,.78);
  padding-top: 112px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 70%), rgba(210,166,90,.13), transparent 62%);
  transition: opacity .6s var(--ease); opacity: 0;
}
.hero.is-lit::before { opacity: 1; }
.hero__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 540px) minmax(0, 1fr);
  grid-template-areas:
    "badge badge badge"
    "name  name  name"
    "left  photo right";
  column-gap: 32px;
}
.badge {
  grid-area: badge; justify-self: center;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: var(--pill);
  border: 1px solid rgba(248,250,247,.16); background: rgba(248,250,247,.04);
  font-size: var(--step--1); color: rgba(248,250,247,.85);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none;
  box-shadow: 0 0 0 4px rgba(125,211,160,.18);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(125,211,160,.55); }
  70% { box-shadow: 0 0 0 10px rgba(125,211,160,0); }
  100% { box-shadow: 0 0 0 0 rgba(125,211,160,0); }
}

.hero__name {
  grid-area: name; position: relative; z-index: 1; min-width: 0;
  display: flex; justify-content: center; gap: .18em;
  margin-top: 28px;
  font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-variation-settings: "wdth" 62;
  font-size: clamp(48px, 12.4vw, 200px); line-height: .84; letter-spacing: -.005em;
  color: var(--paper); white-space: nowrap;
}
.mask { display: block; overflow: hidden; padding-bottom: .02em; }
.rise { display: block; animation: rise 1.1s var(--ease) .1s both; }
.mask + .mask .rise { animation-delay: .25s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }

.hero__portrait {
  grid-area: photo; grid-row: 2 / 4; align-self: end;
  position: relative; z-index: 2; margin: 0;
  height: clamp(380px, min(50vw, 100svh - 230px), 700px);
  animation: lift 1.2s var(--ease) .45s both;
}
.hero__portrait img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom center;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent), linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(to bottom, #000 82%, transparent), linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
@keyframes lift { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* Shown only if a photo fails to load */
.silhouette { display: none; }
.is-empty img { display: none; }
.is-empty .silhouette {
  display: block; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 230'%3E%3Cg fill='%232A4E56'%3E%3Ccircle cx='100' cy='72' r='44'/%3E%3Cpath d='M14 230c0-58 38-98 86-98s86 40 86 98z'/%3E%3C/g%3E%3C/svg%3E") no-repeat bottom center / auto 100%;
}

.hero__left, .hero__right { align-self: end; padding-bottom: clamp(40px, 6vw, 72px); position: relative; z-index: 3; min-width: 0; }
.hero__left { grid-area: left; }
.hero__right { grid-area: right; justify-self: end; max-width: 330px; }
.hero__role { color: var(--paper); font-weight: 600; font-size: var(--step-1); line-height: 1.35; }
.hero__focus { list-style: none; margin: 20px 0 0; padding: 0; font-size: var(--step--1); }
.hero__focus li { padding: 8px 0; border-top: 1px solid var(--line-dark); }
.hero__pitch { font-size: var(--step-2); line-height: 1.25; color: var(--paper); font-weight: 500; font-stretch: 90%; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ================= Credentials strip (marquee) ================= */
.where { background: var(--petrol-2); color: rgba(248,250,247,.55); }
.where__inner { display: flex; align-items: center; gap: 28px; padding-block: 26px; }
.where__label { font-size: var(--step--1); flex: none; }
.marquee {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track, .where.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.where__list { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.where__list li {
  display: flex; align-items: center; white-space: nowrap;
  font-weight: 800; font-stretch: 70%; font-variation-settings: "wdth" 70;
  font-size: clamp(1.1rem, .9rem + .6vw, 1.45rem); text-transform: uppercase; color: rgba(248,250,247,.72); letter-spacing: .01em;
}
.where__list li::after { content: ""; width: 7px; height: 7px; margin: 0 40px; border-radius: 50%; background: var(--gold); opacity: .7; }
.where__pause {
  flex: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(248,250,247,.25); background: transparent; color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
}
.where__pause svg { width: 16px; height: 16px; fill: currentColor; }
.where__pause .i-play { display: none; }
.where.is-paused .where__pause .i-play { display: block; }
.where.is-paused .where__pause .i-pause { display: none; }

/* ================= Impact ================= */
.impact__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.impact__panel {
  background: var(--mint); border-radius: var(--radius);
  padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.impact__panel h2 { font-size: var(--step-4); max-width: 12ch; }
.impact__panel p { font-size: var(--step-1); line-height: 1.5; max-width: 46ch; }
.impact__panel .btn { margin-top: auto; }
.impact__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; }
.impact__stats > div { background: var(--paper); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; min-height: 170px; }
.impact__stats dt { color: var(--muted); font-size: var(--step--1); font-weight: 500; }
.impact__stats dd { margin: 0; font-weight: 900; font-stretch: 62%; font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: .9; color: var(--petrol); }
.impact__stats > div:first-child { background: var(--petrol); }
.impact__stats > div:first-child dt { color: var(--sage); }
.impact__stats > div:first-child dd { color: var(--gold-hi); }

/* ================= Work ================= */
.work { padding-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  font: 500 var(--step--1)/1 var(--font); padding: 13px 18px; border-radius: var(--pill); cursor: pointer;
  border: 1px solid var(--field); background: transparent; color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--petrol); }
.chip.is-on { background: var(--petrol); color: var(--paper); border-color: var(--petrol); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1200px; }
.card[hidden] { display: none; }
.card__btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; height: 100%; width: 100%;
  background: var(--paper); border-radius: var(--radius); padding: 12px 12px 24px;
  transform-style: preserve-3d; will-change: transform;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card__btn:hover { box-shadow: 0 24px 50px -24px rgba(16,39,43,.35); }
.card__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.card__cover {
  display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--petrol); margin-bottom: 20px;
  transition: background-color .3s var(--ease);
}
.card__btn:hover .card__cover { background: var(--petrol-3); }
.card__cover svg { width: 100%; height: auto; transition: transform .6s var(--ease); }
.card__btn:hover .card__cover svg { transform: scale(1.05); }
.card__meta { padding: 0 12px; font-size: var(--step--1); color: var(--muted); }
.card__title { padding: 6px 12px 0; font-weight: 700; font-size: var(--step-1); line-height: 1.3; color: var(--petrol); }
.card__result { padding: 10px 12px 0; margin-top: auto; font-size: var(--step--1); color: var(--bronze); font-weight: 600; }

/* SVG covers */
.c-grid { stroke: rgba(248,250,247,.08); stroke-width: 1; fill: none; }
.c-line { stroke: var(--gold); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.c-dash { stroke: rgba(147,174,159,.55); stroke-width: 2; stroke-dasharray: 5 7; fill: none; }
.c-dot { fill: var(--gold-hi); }
.c-node { fill: var(--petrol-3); stroke: var(--sage); stroke-width: 2; }
.c-bar { fill: rgba(147,174,159,.5); }
.c-gold { fill: var(--gold); }
.c-ring { fill: none; stroke: rgba(147,174,159,.35); stroke-width: 2; }
.c-arc { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; }

/* Modal */
.modal {
  width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  border: 0; border-radius: var(--radius); padding: 0; background: var(--paper); color: var(--ink);
}
.modal::backdrop { background: rgba(16,39,43,.6); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__body { padding: clamp(28px, 4vw, 48px); }
.modal__body h3 { font-size: var(--step-3); font-weight: 800; font-stretch: 75%; line-height: 1.05; text-transform: uppercase; padding-right: 40px; }
.detail__meta { color: var(--muted); margin-top: 10px; }
.detail__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.detail__cols h4 { font-size: var(--step--1); color: var(--bronze); margin-bottom: 8px; }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--field); background: var(--paper); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--petrol);
}
.modal__close:hover { background: var(--mist); }

/* Resume download confirmation */
.confirm { width: min(460px, calc(100vw - 32px)); }
.confirm__body { padding: clamp(24px, 5vw, 36px); }
.confirm__body h2 { font-size: var(--step-2); font-weight: 800; font-stretch: 75%; line-height: 1.05; text-transform: uppercase; }
.confirm__body p { margin-top: 12px; color: var(--muted); line-height: 1.5; }
.confirm__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.confirm__actions .btn { flex: 1 1 140px; }
.btn--line-dark { color: var(--petrol); border-color: var(--field); background: transparent; }
.btn--line-dark:hover { border-color: var(--petrol); background: var(--mist); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.tags li { font-size: var(--step--1); padding: 5px 13px; border-radius: var(--pill); background: var(--mist); }
.tags--loose { margin: 0; }

/* ================= Expertise ================= */
.expertise { background: var(--paper); }
.xgrid {
  display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 20px;
  grid-template-areas: "x1 photo x3" "x2 photo x4";
}
.x1 { grid-area: x1; } .x2 { grid-area: x2; } .x3 { grid-area: x3; } .x4 { grid-area: x4; }
.xcard {
  background: var(--mist); border-radius: var(--radius); padding: 30px;
  transition: translate .35s var(--ease), background-color .35s var(--ease);
}
.xcard:hover { translate: 0 -6px; background: var(--mint); }
.xcard h3 { margin-bottom: 10px; }
.xcard p { color: var(--muted); }
.xicon {
  width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--petrol); margin-bottom: 22px;
  stroke: var(--gold-hi); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease);
}
.xcard:hover .xicon { transform: rotate(-8deg) scale(1.08); }
.xphoto {
  grid-area: photo; margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius); min-height: 460px;
  background: radial-gradient(circle at 50% 35%, var(--petrol-4), var(--petrol) 70%);
  display: flex; align-items: flex-end;
}
.xphoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.xphoto .silhouette { inset: 15% 15% 0; }
.xphoto figcaption {
  position: relative; z-index: 1; margin: 16px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(16,39,43,.85); backdrop-filter: blur(6px); color: var(--paper); font-size: var(--step--1); line-height: 1.5;
}

/* ================= Philosophy ================= */
.philosophy { background: var(--petrol); color: var(--paper); padding: clamp(88px, 11vw, 150px) 0; overflow-x: clip; }
.philosophy__lead { color: var(--sage); font-size: var(--step-1); font-weight: 500; font-stretch: 100%; text-transform: none; letter-spacing: 0; margin-bottom: 28px; }
.philosophy__list { list-style: none; margin: 0; padding: 0; }
.philosophy__list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 28px;
  padding: 14px 0; border-top: 1px solid rgba(248,250,247,.1);
}
.philosophy__list li:last-child { border-bottom: 1px solid rgba(248,250,247,.1); }
.philosophy__list strong {
  font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(3.4rem, 1.5rem + 8vw, 9rem); line-height: .9; color: var(--paper);
}
.philosophy__list li:nth-child(odd) strong { color: var(--gold-hi); }
/* .62 white on petrol = 5.9:1, passes AA at every size */
.philosophy__list span { font-size: var(--step-2); color: rgba(248,250,247,.62); font-weight: 400; }

/* ================= Experience ================= */
.xp { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(40px, 6vw, 96px); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.t-rule { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--gold); transform-origin: left center; transform: scaleX(0); }
.t-when { font-weight: 600; color: var(--petrol); font-size: var(--step--1); padding-top: 4px; }
.t-org { color: var(--muted); margin: 2px 0 10px; }
.timeline li p:last-child { max-width: 60ch; }
.xp__side { display: flex; flex-direction: column; gap: 20px; align-self: start; position: sticky; top: calc(var(--nav-h) + 24px); }
.xp__side > div { background: var(--paper); border-radius: var(--radius); padding: 26px; }
.xp__side h3 { font-size: var(--step--1); color: var(--bronze); margin-bottom: 12px; }
.xp__side ul:not(.tags) { list-style: none; margin: 0; padding: 0; }
.xp__side ul:not(.tags) li { padding: 10px 0; border-top: 1px solid var(--line); }
.xp__side ul:not(.tags) li:first-child { border-top: 0; padding-top: 0; }
.xp__side strong { display: block; font-weight: 600; color: var(--petrol); }
.xp__side li span { font-size: var(--step--1); color: var(--muted); }

/* ================= Contact ================= */
.contact {
  background:
    radial-gradient(700px 400px at 0% 100%, rgba(210,166,90,.14), transparent 60%),
    var(--petrol);
  color: rgba(248,250,247,.75); padding: clamp(88px, 10vw, 136px) 0;
}
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact__copy h2 { color: var(--paper); font-size: var(--step-4); }
.contact__copy > p { margin-top: 22px; font-size: var(--step-1); max-width: 40ch; }
.contact__direct { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 2px; }
.contact__direct a {
  display: inline-block; padding: 10px 0; color: var(--gold-hi); font-size: var(--step-1);
  text-decoration: underline; text-decoration-color: rgba(226,187,118,.4); text-underline-offset: 6px;
}
.contact__direct a:hover { text-decoration-color: var(--gold-hi); }

.form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: var(--step--1); font-weight: 600; color: var(--petrol); }
.form input, .form textarea {
  font: 400 var(--step-0)/1.4 var(--font); color: var(--ink);
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--field); background: var(--white); width: 100%;
  transition: border-color .2s;
}
.form textarea { resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--petrol); outline-offset: 1px; border-color: var(--petrol); }
.form [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.form .btn { justify-self: start; }
.form__note { font-size: var(--step--1); color: var(--muted); }
.form__note.is-error { color: var(--error); font-weight: 600; }
.form__note.is-success { color: var(--petrol); font-weight: 600; }
.form__note a { color: inherit; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ================= FAQ ================= */
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; }
.faq__intro {
  background: var(--mint); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.faq__intro p { color: var(--ink); }
.faq__intro .btn { margin-top: auto; }
.faq__list { display: grid; gap: 10px; align-content: start; }
.faq__list details { background: var(--paper); border-radius: 14px; }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 600; color: var(--petrol);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--field); font-weight: 400; font-size: 1.2rem;
  transition: transform .3s var(--ease), background-color .3s;
}
.faq__list details[open] summary::after { transform: rotate(45deg); background: var(--petrol); color: var(--paper); border-color: var(--petrol); }
.faq__list details p { padding: 0 24px 22px; color: var(--muted); max-width: 64ch; }
.faq__list summary:focus-visible { outline-offset: -2px; border-radius: 14px; }

/* ================= Footer ================= */
.footer { background: var(--petrol-deep); color: rgba(248,250,247,.6); }
.footer__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 56px; border-bottom: 1px solid rgba(248,250,247,.08); }
.footer__cta p { color: var(--paper); font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: var(--step-2); max-width: 26ch; line-height: 1.1; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-block: 16px; font-size: var(--step--1); }
.footer__base ul { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; margin: 0; padding: 0; }
.footer__base a { display: inline-block; padding: 12px 0; }
.footer a { text-decoration: none; }
.footer a:not(.btn):hover { color: var(--gold-hi); }

/* ================= Heading word reveal (added by animations.js) ================= */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.w > span { display: inline-block; will-change: transform; }

/* ================= 404 page ================= */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--petrol); color: rgba(248,250,247,.78); padding: 24px; }
.notfound h1 { color: var(--paper); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(3rem, 2rem + 6vw, 7rem); line-height: .9; }
.notfound p { margin: 18px auto 28px; max-width: 40ch; }

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .xgrid { grid-template-columns: 1fr 1fr; grid-template-areas: "photo x1" "photo x2" "x3 x4"; }
  .xp { grid-template-columns: 1fr; }
  .xp__side { position: static; display: grid; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .hero { padding-top: 100px; }
  .hero__stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "badge" "name" "photo" "right" "left";
  }
  .hero__name { margin-top: 24px; }
  .hero__portrait { grid-row: auto; margin-top: -3vw; height: clamp(280px, min(62vw, 42svh), 460px); }
  .hero__portrait::after {
    content: ""; position: absolute; inset: auto 0 0; height: 30%;
    background: linear-gradient(transparent, var(--petrol));
  }
  .hero__right, .hero__left { justify-self: stretch; max-width: none; padding-bottom: 0; }
  .hero__right { margin-top: -1px; padding-top: 24px; }
  .hero__left { padding: 32px 0 48px; }
  .where__inner { flex-wrap: wrap; gap: 12px 16px; }
  .where__label { flex-basis: calc(100% - 60px); }
  .where__pause { order: 2; }
  .marquee { order: 3; flex-basis: 100%; }
  .impact__grid, .contact__grid, .faq__grid { grid-template-columns: 1fr; }
  .detail__cols { grid-template-columns: 1fr; gap: 18px; }
  .xp__side { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__toggle { display: inline-flex; }
  .nav__inner { gap: 12px; }
  .nav__links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--petrol); border-bottom: 1px solid var(--line-dark);
    font-size: var(--step-1);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { display: block; padding: 14px 0; opacity: 1; border-top: 1px solid var(--line-dark); }
  .nav__links li:first-child a { border-top: 0; }
  .cards { grid-template-columns: 1fr; }
  .xgrid { grid-template-columns: 1fr; grid-template-areas: "photo" "x1" "x2" "x3" "x4"; }
  .xphoto { min-height: 420px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  /* Name stacks onto two lines on phones; script.js sizes it to the available width */
  .hero__name { flex-direction: column; align-items: center; line-height: .82; }
  .hero__portrait { margin-top: -12vw; height: clamp(250px, min(70vw, 36svh), 400px); }
}
@media (max-width: 480px) {
  .impact__stats > div { padding: 20px; min-height: 140px; }
  .hero__actions .btn, .form .btn { flex: 1 1 auto; justify-self: stretch; }
  .philosophy__list span { font-size: var(--step-1); }
}
@media (max-width: 380px) {
  .nav__resume span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav__resume .btn__icon { margin-right: 0; width: 20px; height: 20px; }
  .nav__resume { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .progress, .t-rule, .where__pause { display: none; }
}
