/* =========================================================
   Tokens
   ========================================================= */
:root {
  /* Brand: navy #182431 + indigo #494E8C, periwinkle tint for dark surfaces */
  --navy: #182431;
  --indigo: #494E8C;
  --periwinkle: #9EA4F2;
  --white: #F2F0EB;

  --dark: var(--navy);
  --dark-2: #1E2B3A;
  --dark-3: #233345;
  --cream: var(--white);
  --cream-2: #E6E3DC;
  --ink: var(--navy);
  --on-dark: var(--white);
  --mute-dark: #8F9AAA;
  --mute-light: #56606E;
  --line-dark: rgba(242, 240, 235, .13);
  --line-light: rgba(24, 36, 49, .14);
  --accent: var(--indigo);
  --accent-ink: var(--white);

  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 3.6vw, 56px);
  --max: 1560px;
  --sec: clamp(96px, 14vw, 200px);
  --radius: clamp(18px, 2vw, 28px);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  color-scheme: dark;
}

/* On dark surfaces the accent switches to the lighter periwinkle for contrast */
.loader, .hero, .media-sec, .sec--dark, .hscroll, .footer, .cursor { --accent: var(--periwinkle); }

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0; background: var(--dark); color: var(--on-dark);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, dt, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 4px; border-radius: 4px; }
/* indigo focus rings vanish on navy/indigo surfaces: use the light tone there */
.header, .menu, .contact, .footer { --focus: var(--white); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: .75rem; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
em.serif, em { font-style: italic; }

.skip { position: fixed; left: 12px; top: -80px; z-index: 300; background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* split helpers */
.char, .word { display: inline-block; will-change: transform; }
/* side padding leaves room for italic overhangs so the last glyph is never shaved off */
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .07em .12em; margin: -.08em -.07em -.12em; }

/* =========================================================
   Loader
   ========================================================= */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px var(--gutter); background: var(--dark); color: var(--on-dark);
}
.loader-done .loader { display: none; }
/* Failsafe: once the loader is gone, hero content must be visible no matter what */
.loader-done .hero .char, .loader-done [data-hero-fade], .loader-done .hero__dot { transform: none !important; opacity: 1 !important; visibility: visible !important; }
.loader__top { display: flex; justify-content: space-between; color: var(--mute-dark); }
.loader__count { font: 500 clamp(6rem, 26vw, 22rem)/.8 var(--f-display); letter-spacing: -.06em; display: flex; align-items: flex-start; font-variant-numeric: tabular-nums; }
.loader__pct { font-family: var(--f-serif); font-style: italic; font-size: .32em; color: var(--accent); margin: .1em 0 0 .08em; }
.loader__bar { height: 1px; background: var(--line-dark); }
.loader__bar span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* =========================================================
   Cursor + grain
   ========================================================= */
.cursor { display: none; }
@media (pointer: fine) {
  .has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; }
  .has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
}
.cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); }
.cursor__ring {
  position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 1px solid rgba(242, 240, 235, .5); mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .35s, border-color .35s;
}
.cursor__label { font: 500 .75rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--dark); font-style: normal; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .45s var(--ease); }
.cursor.is-hover .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--on-dark); border-color: transparent; }
.cursor.is-hover .cursor__label { opacity: 1; transform: none; }
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }

.grain {
  position: fixed; inset: -50%; z-index: 120; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); }
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; color: var(--on-dark);
  transition: transform .6s var(--ease);
}
/* Transparent over the hero, a frosted navy bar once the page scrolls */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(24, 36, 49, .82); backdrop-filter: saturate(1.3) blur(16px); -webkit-backdrop-filter: saturate(1.3) blur(16px);
  border-bottom: 1px solid rgba(242, 240, 235, .08);
  opacity: 0; transition: opacity .4s;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-hidden { transform: translateY(-110%); }
.header__inner { position: relative; display: flex; align-items: center; gap: 24px; height: 76px; padding-inline: var(--gutter); max-width: var(--max); margin-inline: auto; }
/* j9vka wordmark: grotesk letters, the "9" set in italic serif as the signature glyph */
.logo { position: relative; font: 600 1.375rem/1 var(--f-display); letter-spacing: -.04em; padding: 10px 14px 10px 0; margin-right: auto; }
.logo .serif { display: inline-block; font-size: 1.32em; line-height: .7; letter-spacing: 0; color: var(--periwinkle); margin: 0 .02em 0 .01em; transform: translateY(.04em); transition: transform .5s var(--ease); }
.logo:hover .serif { transform: translateY(.04em) rotate(-10deg); }
.logo i { position: absolute; right: 4px; bottom: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--periwinkle); }
.nav { display: flex; gap: 2px; }
.nav a { position: relative; font: 500 .9375rem/1 var(--f-body); padding: 14px 14px; overflow: hidden; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 16px; margin-left: 12px;
  border: 1px solid rgba(242, 240, 235, .45); border-radius: 999px; font: 500 .9375rem/1 var(--f-body);
  transition: background-color .35s, color .35s, border-color .35s;
}
.pill:hover { background: var(--on-dark); color: var(--navy); border-color: var(--on-dark); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.burger { display: none; position: relative; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: transparent; cursor: pointer; }
.burger span { position: absolute; left: 15px; right: 15px; height: 1.5px; background: #fff; transition: transform .5s var(--ease); }
.burger span:first-child { transform: translateY(-3.5px); }
.burger span:last-child { transform: translateY(3.5px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--indigo); color: var(--accent-ink);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 100px var(--gutter) 28px;
  clip-path: circle(0% at calc(100% - 40px) 38px); visibility: hidden;
  transition: clip-path .8s var(--ease-io), visibility 0s .8s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
.menu__nav a { display: flex; align-items: baseline; gap: 14px; font: 500 clamp(2.5rem, 11vw, 4.5rem)/1.02 var(--f-display); letter-spacing: -.04em; padding: 6px 0; border-bottom: 1px solid rgba(242,240,235,.2); }
.menu__nav .mono { font-size: .75rem; letter-spacing: .04em; }
.menu__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between;
  padding: 104px var(--gutter) 28px; overflow: hidden; isolation: isolate;
  max-width: none;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__glow {
  position: absolute; z-index: -2; width: 70vmax; height: 70vmax; left: 50%; top: 60%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(73, 78, 140, .55), rgba(73, 78, 140, .14) 55%, transparent 72%);
  filter: blur(20px); animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: translate(-48%, -54%) scale(1.12); } }
.hero__meta { display: flex; justify-content: space-between; gap: 16px; color: var(--mute-dark); max-width: var(--max); width: 100%; margin-inline: auto; }
.hero__status { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); }
.hero__status i { width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

.hero__title {
  display: flex; flex-direction: column; width: 100%; max-width: var(--max); margin: 40px auto;
  font: 600 clamp(3.6rem, 17.2vw, 17.5rem)/.84 var(--f-display); letter-spacing: -.065em;
}
.hero__row { display: block; white-space: nowrap; }
.hero__row--serif { align-self: flex-end; font-size: .94em; letter-spacing: -.035em; line-height: .9; display: flex; align-items: flex-end; }
.hero__row--serif .serif { color: var(--on-dark); }
.hero__dot { display: inline-block; width: .14em; height: .14em; border-radius: 50%; background: var(--accent); margin: 0 0 .14em .04em; flex-shrink: 0; }

.hero__foot { display: grid; grid-template-columns: 1fr 1.1fr auto; gap: 24px; align-items: end; max-width: var(--max); width: 100%; margin-inline: auto; }
.hero__role { display: flex; flex-direction: column; gap: 8px; }
.hero__role .mono { color: var(--mute-dark); }
.roles { display: block; height: 1.15em; overflow: hidden; font: 500 clamp(1.5rem, 2.6vw, 2.5rem)/1.15 var(--f-display); letter-spacing: -.03em; }
.roles__item { display: block; height: 1.15em; white-space: nowrap; }
.roles__item:nth-child(odd) { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.hero__lead { font: 400 clamp(1rem, 1.3vw, 1.25rem)/1.45 var(--f-body); color: #C3CBD8; max-width: 36ch; }
/* "Creating bonds" — nod to the j9vka.bond domain */
.hero__bond { font-family: var(--f-serif); font-style: italic; font-size: 1.3em; line-height: 1; color: var(--periwinkle); }
.hero__intro { display: flex; flex-direction: column; gap: 18px; }
.hero__pos { color: var(--mute-dark); max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hbtn {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-dark); font: 500 .9375rem/1 var(--f-body); color: var(--on-dark);
  transition: background-color .35s, color .35s, border-color .35s;
}
.hbtn svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.hbtn:hover { border-color: var(--on-dark); }
.hbtn:hover svg { transform: translateX(3px); }
.hbtn--solid { background: var(--on-dark); color: var(--navy); border-color: transparent; }
.hbtn--solid:hover { background: var(--periwinkle); border-color: transparent; }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px; }
.scroll-cue i { position: relative; width: 1px; height: 56px; background: var(--line-dark); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* =========================================================
   Media reveal
   ========================================================= */
.media-sec { position: relative; background: var(--dark); }
.media-sec__pin { height: 100svh; display: grid; place-items: center; overflow: hidden; }
.media {
  position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--dark-2);
  clip-path: inset(14% 8% 14% 8% round var(--radius));
}
.media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); }
.media__comp { position: absolute; inset: 0; overflow: hidden; background: #0F1822; }
.media__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .9; }
.media__blob--a { width: 60vmax; height: 60vmax; left: -10%; top: -20%; background: radial-gradient(circle, #494E8C, transparent 65%); animation: drift-a 16s ease-in-out infinite; }
.media__blob--b { width: 50vmax; height: 50vmax; right: -15%; bottom: -25%; background: radial-gradient(circle, #3D6FE0, transparent 65%); opacity: .5; animation: drift-b 19s ease-in-out infinite; }
.media__blob--c { width: 40vmax; height: 40vmax; left: 35%; top: 30%; background: radial-gradient(circle, #9EA4F2, transparent 65%); opacity: .45; animation: drift-a 22s ease-in-out infinite reverse; }
@keyframes drift-a { 50% { transform: translate(18%, 14%) scale(1.15); } }
@keyframes drift-b { 50% { transform: translate(-16%, -10%) scale(.9); } }
.media__big {
  position: absolute; right: -2%; bottom: -12%; font: 600 clamp(14rem, 48vw, 46rem)/.8 var(--f-display); letter-spacing: -.07em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55);
}
.media:not(.media--empty) .media__comp { display: none; }
.media__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 4vw, 56px) var(--gutter);
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.media__caption .mono { color: rgba(255,255,255,.75); }
.media__caption p { font: 500 clamp(2rem, 6vw, 6rem)/.95 var(--f-display); letter-spacing: -.05em; max-width: 14ch; color: #fff; }
.media__caption .serif { color: #C9CDFB; }

/* =========================================================
   Sections
   ========================================================= */
.sec { position: relative; padding-block: var(--sec); }
.sec--cream { background: var(--cream); color: var(--ink); }
.sec--dark { background: var(--dark); color: var(--on-dark); }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: clamp(40px, 6vw, 88px); padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); }
.sec--cream .sec-head { border-color: var(--line-light); }
.idx { color: var(--accent); }
.big-title { font: 500 clamp(2.4rem, 6.4vw, 7rem)/.95 var(--f-display); letter-spacing: -.05em; max-width: 16ch; }
.big-title .serif { color: var(--accent); }

/* About */
.manifesto { font: 500 clamp(1.9rem, 4.6vw, 5rem)/1.04 var(--f-display); letter-spacing: -.045em; max-width: 22ch; }
.manifesto .serif { color: var(--accent); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: clamp(24px, 3vw, 56px); margin-top: clamp(56px, 8vw, 128px); color: var(--mute-light); font-size: 1.0625rem; }
.about__facts li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-light); color: var(--ink); font: 500 1.0625rem/1.3 var(--f-display); }
.about__facts li:last-child { border-bottom: 1px solid var(--line-light); }
.about__facts .mono { color: var(--mute-light); }

/* Work cards */
.work .big-title { margin-bottom: clamp(48px, 7vw, 112px); }
.cards { display: grid; gap: 0; }
.card { position: sticky; top: calc(12vh + var(--i, 0) * 28px); margin-bottom: 6vh; }
.card--1 { --i: 0; } .card--2 { --i: 1; } .card--3 { --i: 2; } .card--4 { --i: 3; } .card--5 { --i: 4; margin-bottom: 0; }
.card__inner {
  position: relative; min-height: min(68vh, 620px); border-radius: var(--radius); padding: clamp(24px, 3.6vw, 56px);
  display: grid; grid-template-rows: auto 1fr auto; gap: 24px; overflow: hidden; transform-origin: 50% 0;
  background: var(--dark-3); color: var(--on-dark); border: 1px solid var(--line-dark);
}
.card--1 .card__inner {
  background: radial-gradient(120% 140% at 100% 0%, rgba(158, 164, 242, .32), transparent 55%), linear-gradient(140deg, #2A3A56, #353D74);
  border-color: rgba(158, 164, 242, .28);
}
.card--2 .card__inner { background: var(--cream); color: var(--ink); border-color: transparent; }
.card--5 .card__inner {
  background: radial-gradient(110% 130% at 0% 100%, rgba(73, 78, 140, .16), transparent 55%), #E8E2D6;
  color: var(--ink); border-color: transparent;
}
.card--5 h3 .serif { color: var(--indigo); }
.card--3 .card__inner { background: var(--indigo); color: var(--accent-ink); border-color: transparent; }
.card--4 .card__inner { background: var(--periwinkle); color: var(--navy); border-color: transparent; }
.card__top { display: flex; justify-content: space-between; align-items: center; }
.card__icon { width: 44px; height: 44px; stroke-width: 1.2; }
.card h3 { font: 500 clamp(2.6rem, 7.6vw, 8.5rem)/.88 var(--f-display); letter-spacing: -.055em; align-self: center; }
.card h3 .serif { letter-spacing: -.03em; }
.card__body { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.card__body p { max-width: 46ch; font-size: 1.0625rem; opacity: .82; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 500 .8125rem/1 var(--f-body); padding: 10px 14px; border: 1px solid currentColor; border-radius: 999px; opacity: .8; }

/* Results */
.results { padding-bottom: clamp(64px, 8vw, 120px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 0 clamp(12px, 2vw, 32px); border-left: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 18px; }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat dd { font: 500 clamp(3.4rem, 8.6vw, 9.5rem)/.85 var(--f-display); letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.stat sup { font-family: var(--f-serif); font-style: italic; font-size: .45em; color: var(--accent); vertical-align: top; position: relative; top: .1em; margin-left: .04em; }
.stat dt { color: var(--mute-dark); }

.ticker { margin-top: clamp(80px, 10vw, 160px); overflow: hidden; }
.ticker__label { color: var(--mute-dark); margin-bottom: 24px; }
.ticker__track { display: flex; width: max-content; border-block: 1px solid var(--line-dark); padding: clamp(14px, 2vw, 28px) 0; }
.ticker__group { display: flex; align-items: center; flex-shrink: 0; }
.ticker__group span { font: 500 clamp(3rem, 9vw, 9rem)/1 var(--f-display); letter-spacing: -.05em; padding: 0 .3em; white-space: nowrap; }
.ticker__group span.serif { font-weight: 400; color: transparent; -webkit-text-stroke: 1px var(--on-dark); font-family: var(--f-serif); }
.ticker__group i { font-style: normal; color: var(--accent); font-size: clamp(1.5rem, 3vw, 3rem); }

/* Spotlight — Brands For Good */
.spotlight {
  --sp-bg: #E2E5F6; --sp-ink: #182431; --sp-mute: #4A5573; --sp-line: rgba(24, 36, 49, .16);
  position: relative; background: var(--sp-bg); color: var(--sp-ink); padding-block: var(--sec); overflow: hidden; isolation: isolate;
}
.spotlight::before {
  content: ""; position: absolute; z-index: -1; width: 80vmax; height: 80vmax; right: -30vmax; top: -30vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(73, 78, 140, .32), transparent 62%); animation: breathe 12s ease-in-out infinite;
}
.spotlight .sec-head { border-color: var(--sp-line); }
.spot { position: relative; }
.spot__badge {
  position: absolute; right: clamp(-56px, -3.5vw, -24px); top: clamp(-80px, -5vw, -44px); z-index: 2;
  width: clamp(120px, 13vw, 190px); aspect-ratio: 1; display: grid; place-items: center;
  background: var(--white); color: var(--navy); border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(24, 36, 49, .08), 0 24px 50px -18px rgba(24, 36, 49, .5);
  font-size: clamp(8px, .9vw, 13px);
}
.spot__media { position: relative; }
.spot__photo {
  position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; background: #0B1A3A;
  box-shadow: 0 40px 80px -40px rgba(24, 36, 49, .55);
}
.spot__photo picture, .spot__photo img { display: block; width: 100%; height: 100%; }
.spot__photo img { object-fit: cover; object-position: 50% 30%; transform: scale(1.12); transition: filter .6s var(--ease); will-change: transform; }
.spot__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 8, 25, .55)); pointer-events: none; }
.spot__cap {
  position: absolute; left: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px); z-index: 1;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px;
  color: #fff; background: rgba(24, 36, 49, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .18);
}
.spot__cap-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--periwinkle); animation: blink 2s infinite; }
.spot__ring { position: absolute; inset: 0; animation: spin 18s linear infinite; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; line-height: 1; }
/* each glyph sits on its own spoke: top at 8%, rotating around the badge centre */
.spot__ring span { position: absolute; left: 50%; top: 8%; width: 1.2em; height: 42%; margin-left: -.6em; text-align: center; transform-origin: 50% 100%; }
.spot__trophy { width: 34%; height: 34%; color: var(--indigo); stroke-width: 1.3; }
@keyframes spin { to { transform: rotate(360deg); } }
.spot__kicker { color: var(--sp-mute); margin-bottom: clamp(16px, 2vw, 28px); }
.spot__title { display: flex; flex-direction: column; font: 600 clamp(3.6rem, 15vw, 15.5rem)/.84 var(--f-display); letter-spacing: -.065em; }
.spot__row { display: block; white-space: nowrap; }
.spot__row--serif { font-weight: 400; color: var(--accent); padding-left: 6vw; letter-spacing: -.03em; font-size: .86em; line-height: .95; }
.spot__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 96px); margin-top: clamp(56px, 7vw, 112px); align-items: end; }
.spot__lead { font: 400 clamp(1.2rem, 1.7vw, 1.75rem)/1.3 var(--f-display); letter-spacing: -.02em; max-width: 34ch; }
.spot__stats { margin-top: clamp(32px, 4vw, 56px); }
.spot__lead strong { font-weight: 600; background: linear-gradient(transparent 62%, rgba(73, 78, 140, .3) 62%); }
.spot__note { margin-top: 20px; color: var(--sp-mute); max-width: 48ch; }
.spot__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--sp-line); }
.spot__stats > div { padding: 20px 12px 0 0; display: flex; flex-direction: column; gap: 12px; }
.spot__stats > div + div { padding-left: 16px; border-left: 1px solid var(--sp-line); }
.spot__stats dd { font: 500 clamp(2.6rem, 5vw, 5rem)/.9 var(--f-display); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.spot__stats sup { font-family: var(--f-serif); font-style: italic; font-size: .5em; color: var(--accent); vertical-align: top; }
.spot__stats dt { color: var(--sp-mute); }
.partners { margin-top: clamp(64px, 8vw, 128px); }
.partners__label { color: var(--sp-mute); margin-bottom: 18px; }
.partners__list { display: flex; flex-wrap: wrap; gap: 10px; }
.partners__list li {
  font: 500 clamp(.9375rem, 1.3vw, 1.125rem)/1 var(--f-display); letter-spacing: -.01em; padding: 14px 20px;
  border: 1px solid var(--sp-line); border-radius: 999px; background: rgba(255, 255, 255, .35);
  transition: background-color .35s, color .35s, border-color .35s, transform .5s var(--ease);
}
.partners__list li:hover { background: var(--sp-ink); color: var(--sp-bg); border-color: var(--sp-ink); transform: translateY(-3px); }

/* Projects (built on the spotlight styles) */
.proj-intro { margin-bottom: clamp(56px, 7vw, 104px); }
.proj-intro .serif { color: var(--indigo); }
.proj + .proj { margin-top: clamp(96px, 12vw, 176px); padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--sp-line); }
.proj__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(16px, 2vw, 28px); }
.proj__head .spot__kicker { margin: 0; }
.proj__n { padding: 6px 12px; border-radius: 999px; background: var(--navy); color: var(--white); }
.proj .spot__title { font-size: clamp(3.2rem, 11.5vw, 11.5rem); }
.proj--mirror .spot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.proj--mirror .spot__media { order: 2; }
.proj--mirror .spot__row--serif { padding-left: 0; }
.proj--mirror .spot__title { align-items: flex-start; }
.spot__photo--doc { background: var(--white); aspect-ratio: auto; }
.spot__photo--doc::after { display: none; }
.spot__doc-btn { display: block; width: 100%; padding: clamp(12px, 2vw, 24px); border: 0; background: none; cursor: zoom-in; }
.spot__photo--doc img { transform: none; height: auto; box-shadow: 0 10px 30px -18px rgba(24, 36, 49, .45); transition: transform .6s var(--ease); }
.spot__doc-btn:hover img { transform: scale(1.02); }
/* on a certificate the caption sits below the document so it never covers the signature */
.spot__photo--doc .spot__cap { position: static; display: flex; width: fit-content; margin: 0 auto clamp(12px, 2vw, 20px); background: var(--navy); }
.proj__btn {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; margin-top: clamp(24px, 3vw, 36px);
  border: 1px solid var(--sp-ink); border-radius: 999px; background: transparent; color: var(--sp-ink);
  font: 500 .9375rem/1 var(--f-body); cursor: pointer; transition: background-color .35s, color .35s;
}
.proj__btn svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.proj__btn:hover { background: var(--sp-ink); color: var(--sp-bg); }
.proj__btn:hover svg { transform: translate(2px, -2px); }

/* Projects slider */
.pslider__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 56px); }
.pslider__head .proj-intro { margin: 0; }
.pslider__ctrl { display: flex; align-items: center; gap: 10px; }
.pslider__count { color: var(--sp-mute); margin-right: 8px; }
.pslider__count b { color: var(--sp-ink); font-weight: 500; }
.pslider__btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--sp-ink); background: transparent; color: var(--sp-ink); transition: background-color .3s, color .3s, opacity .3s;
}
.pslider__btn svg { width: 20px; height: 20px; }
.pslider__btn:hover:not(:disabled) { background: var(--sp-ink); color: var(--sp-bg); }
.pslider__btn:disabled { opacity: .3; cursor: default; }
.pslider__track {
  display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain; padding: 4px 2px 12px; margin: -4px -2px -12px;
}
.pslider__track::-webkit-scrollbar { display: none; }
.pslide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(14px, 2vw, 24px);
  border: 1px solid var(--sp-line); border-radius: var(--radius); background: rgba(255, 255, 255, .5);
}
.pslide__media { position: relative; }
.pslide__photo { position: relative; aspect-ratio: 3 / 2; border-radius: calc(var(--radius) - 8px); overflow: hidden; background: #0B1A3A; }
.pslide__photo picture, .pslide__photo img { display: block; width: 100%; height: 100%; }
.pslide__photo img { object-fit: cover; object-position: 50% 30%; transition: transform .8s var(--ease); }
.pslide:hover .pslide__photo img { transform: scale(1.03); }
.pslide__photo--doc { background: var(--white); display: grid; place-items: center; }
.pslide__photo--doc .spot__doc-btn { height: 100%; display: grid; place-items: center; }
.pslide__photo--doc img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(24, 36, 49, .25)); }
.pslide .spot__badge { width: clamp(96px, 9vw, 132px); font-size: clamp(7px, .62vw, 9px); top: -18px; right: -14px; }
.pslide__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-right: clamp(0px, 2vw, 24px); }
.pslide__kicker { display: flex; align-items: center; gap: 10px; color: var(--sp-mute); }
.pslide__title { font: 500 clamp(2rem, 3.8vw, 3.75rem)/1 var(--f-display); letter-spacing: -.045em; }
.pslide__title .serif { color: var(--indigo); letter-spacing: -.02em; }
.pslide__text { color: var(--sp-mute); font-size: 1.0625rem; max-width: 52ch; }
.pslide__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-top: 1px solid var(--sp-line); margin-top: 4px; }
.pslide__stats > div { padding: 14px 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.pslide__stats > div + div { padding-left: 14px; border-left: 1px solid var(--sp-line); }
.pslide__stats dd { font: 500 clamp(1.75rem, 2.6vw, 2.6rem)/.9 var(--f-display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.pslide__stats sup { font-family: var(--f-serif); font-style: italic; font-size: .55em; color: var(--indigo); vertical-align: top; }
.pslide__stats dt { color: var(--sp-mute); overflow-wrap: anywhere; }
.pslide .proj__btn { margin-top: 6px; }

/* Certifications */
.certs__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.certs__head .big-title .serif { color: var(--indigo); }
.certs__intro > p { color: var(--mute-light); font-size: 1.0625rem; max-width: 46ch; }
.certs__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--line-light); }
.certs__stats > div { padding: 18px 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.certs__stats > div + div { padding-left: 16px; border-left: 1px solid var(--line-light); }
.certs__stats dd { font: 500 clamp(2.2rem, 4vw, 3.6rem)/.9 var(--f-display); letter-spacing: -.05em; }
.certs__stats sup { font-family: var(--f-serif); font-style: italic; font-size: .5em; color: var(--indigo); vertical-align: top; }
.certs__stats dt { color: var(--mute-light); overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 420px) { .certs__stats > div + div { padding-left: 10px; } .certs__stats dt { font-size: .6875rem; } }
.certs__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-light); background: transparent; color: var(--ink); font: 500 .9375rem/1 var(--f-body); cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip span { font: 500 .75rem/1 var(--f-mono); opacity: .6; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.certs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.cert.is-collapsed { display: none; }
.certs__more { display: flex; justify-content: center; margin-top: clamp(24px, 3vw, 40px); }
.certs__toggle {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 500 .9375rem/1 var(--f-body);
  transition: background-color .3s, color .3s;
}
.certs__toggle:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.certs__toggle svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.certs__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.certs__toggle-count { opacity: .6; }
.certs__more[hidden] { display: none; }
.cert[hidden] { display: none; }
.cert__btn {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left; cursor: zoom-in;
  border: 1px solid var(--line-light); border-radius: 20px; overflow: hidden; background: #FBFAF7; color: var(--ink);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.cert__btn:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 30px 60px -30px rgba(24, 36, 49, .45); }
.cert__thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--cream-2); overflow: hidden; }
/* absolutely sized box + contain: portrait and landscape certificates both fit whole */
.cert__thumb img {
  position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(24, 36, 49, .28)); transition: transform .6s var(--ease);
}
.cert__btn:hover .cert__thumb img { transform: scale(1.04) rotate(-.6deg); }
.cert__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 18px; flex: 1; }
.cert__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cert__issuer { font: 500 .75rem/1 var(--f-body); padding: 6px 10px; border-radius: 999px; color: var(--white); }
.cert__issuer--ets { background: #0F4C5C; }
.cert__issuer--bc { background: #23085A; }
.cert__issuer--cb { background: #1A5DBE; }
.cert__issuer--unesco { background: #0B6FB8; }
.cert__issuer--other { background: var(--indigo); }
.cert__date { color: var(--mute-light); }
.cert__title { font: 500 1.0625rem/1.25 var(--f-display); letter-spacing: -.02em; }
.cert__meta { color: var(--mute-light); margin-top: auto; text-transform: none; letter-spacing: 0; }
.cert__view { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .45s var(--ease); }
.cert__view svg { width: 16px; height: 16px; }
.cert__btn:hover .cert__view, .cert__btn:focus-visible .cert__view { opacity: 1; transform: none; }
@media (hover: none) { .cert__view { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox { width: min(1100px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: 22px; background: var(--white); color: var(--ink); overflow: hidden; --focus: var(--indigo); }
/* the dialog sits in the top layer, above the custom cursor: give the real cursor back */
.has-cursor .lightbox, .has-cursor .lightbox * { cursor: auto; }
.has-cursor .lightbox a, .has-cursor .lightbox button { cursor: pointer; }
.lightbox::backdrop { background: rgba(24, 36, 49, .78); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-in .45s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.lightbox__inner { display: flex; flex-direction: column; max-height: calc(100svh - 32px); }
.lightbox__fig { flex: 1; min-height: 0; display: grid; place-items: center; padding: clamp(16px, 3vw, 32px); background: var(--cream-2); overflow: auto; }
.lightbox__img { max-width: 100%; max-height: calc(100svh - 190px); width: auto; height: auto; box-shadow: 0 16px 40px -20px rgba(24, 36, 49, .5); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px clamp(16px, 2.4vw, 28px); flex-wrap: wrap; }
.lightbox__title { font: 500 1.125rem/1.3 var(--f-display); letter-spacing: -.02em; }
.lightbox__meta { color: var(--mute-light); text-transform: none; letter-spacing: 0; margin-top: 4px; }
.lightbox__open { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--navy); color: var(--white); font: 500 .9375rem/1 var(--f-body); white-space: nowrap; }
.lightbox__open:hover { background: var(--indigo); }
.lightbox__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--navy); cursor: pointer; }
.lightbox__close span { position: absolute; left: 13px; right: 13px; top: 21px; height: 1.5px; background: var(--white); }
.lightbox__close span:first-child { transform: rotate(45deg); }
.lightbox__close span:last-child { transform: rotate(-45deg); }

/* Experience */
.experience .big-title { margin-bottom: clamp(48px, 7vw, 104px); }
.jobs { border-top: 1px solid var(--line-light); }
.job {
  position: relative; display: grid; grid-template-columns: 10rem 1fr 14rem; gap: clamp(16px, 3vw, 48px); align-items: baseline;
  padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line-light); isolation: isolate;
  transition: color .5s var(--ease), padding .6s var(--ease);
}
.job::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease); }
.job__date { color: var(--mute-light); transition: color .5s; }
.job h3 { font: 500 clamp(1.4rem, 2.8vw, 2.75rem)/1.05 var(--f-display); letter-spacing: -.04em; }
.job p { color: var(--mute-light); margin-top: 12px; max-width: 60ch; transition: color .5s; }
.job__org { font: 400 clamp(1.125rem, 1.6vw, 1.5rem)/1.2 var(--f-serif); font-style: italic; text-align: right; color: var(--mute-light); transition: color .5s; }
.job--muted h3 { color: #3A4A5F; }
@media (hover: hover) {
  .job:hover { color: var(--on-dark); padding-inline: clamp(8px, 1.5vw, 24px); }
  .job:hover h3 { color: var(--on-dark); }
  .job:hover::before { transform: scaleY(1); transform-origin: 50% 0; }
  .job:hover .job__date, .job:hover p { color: var(--mute-dark); }
  .job:hover .job__org { color: var(--periwinkle); }
}
.preview { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; display: none; }
@media (pointer: fine) { .has-cursor .preview { display: block; } }
.preview__inner {
  display: grid; place-items: center; width: 260px; height: 170px; margin: -85px 0 0 -130px; border-radius: 18px;
  background: var(--indigo); color: var(--accent-ink); font: 400 2rem/1 var(--f-serif); font-style: italic; text-align: center; padding: 20px;
  transform: scale(0) rotate(-8deg); transition: transform .5s var(--ease);
}
.preview.is-on .preview__inner { transform: scale(1) rotate(-4deg); }

/* Milestones horizontal */
.hscroll { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.hscroll__pin { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(80px, 10vw, 120px); }
.hscroll__track { display: flex; gap: clamp(14px, 1.6vw, 24px); padding-inline: var(--gutter); width: max-content; align-items: stretch; }
.hscroll__intro { width: min(86vw, 640px); flex-shrink: 0; display: flex; flex-direction: column; padding-right: clamp(16px, 4vw, 80px); }
.hscroll__intro .sec-head { margin-bottom: 40px; }
.hscroll__intro .big-title { font-size: clamp(2.4rem, 5vw, 5.4rem); }
.hscroll__hint { margin-top: auto; padding-top: 32px; color: var(--mute-dark); }
.ms {
  position: relative; flex-shrink: 0; width: clamp(280px, 30vw, 440px); min-height: clamp(400px, 58vh, 560px);
  border-radius: var(--radius); padding: clamp(22px, 2.4vw, 36px); display: flex; flex-direction: column; gap: 14px;
  background: var(--dark-3); border: 1px solid var(--line-dark); overflow: hidden;
  transition: transform .6s var(--ease), border-color .4s;
}
.ms:hover { transform: translateY(-8px) rotate(-.6deg); border-color: rgba(158, 164, 242, .6); }
.ms--accent { background: var(--indigo); color: var(--accent-ink); border-color: transparent; }
.ms--light { background: var(--cream); color: var(--ink); border-color: transparent; }
.ms__n { font-size: clamp(6rem, 11vw, 10rem); line-height: .8; margin-bottom: auto; letter-spacing: -.04em; }
.ms h3 { font: 500 clamp(1.5rem, 2.2vw, 2.1rem)/1.05 var(--f-display); letter-spacing: -.035em; }
.ms p { opacity: .78; }
.ms__tag { align-self: flex-start; padding: 7px 12px; border: 1px solid currentColor; border-radius: 999px; opacity: .75; }
.hscroll__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 5vw, 56px); height: 1px; background: var(--line-dark); }
.hscroll__progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* Honors */
.honors__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 120px); }
.col-title { font: 500 clamp(2rem, 4vw, 3.75rem)/1 var(--f-display); letter-spacing: -.045em; margin-bottom: 28px; }
.col-title--sm { margin-top: clamp(48px, 6vw, 80px); }
.hlist { border-top: 1px solid var(--line-light); }
.hlist li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-light); align-items: baseline; transition: padding .5s var(--ease); }
.hlist li:hover { padding-left: 10px; }
.hlist__year { color: var(--accent); }
.hlist__t { font: 500 clamp(1.125rem, 1.5vw, 1.375rem)/1.25 var(--f-display); letter-spacing: -.02em; }
.hlist__t small { display: block; font: 400 .9375rem/1.4 var(--f-body); color: var(--mute-light); margin-top: 6px; letter-spacing: 0; }
.langs { border-top: 1px solid var(--line-light); }
.langs li { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.langs .serif { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; }
.langs b { font-weight: 400; color: var(--mute-light); }

/* Contact */
.contact { position: relative; background: var(--indigo); color: var(--accent-ink); padding-block: clamp(110px, 14vw, 200px) clamp(64px, 8vw, 112px); overflow: hidden; }
.contact .sec-head { border-color: rgba(242, 240, 235, .22); }
.contact .idx { color: var(--accent-ink); }
.contact__title { display: flex; flex-direction: column; font: 600 clamp(3.2rem, 12vw, 13rem)/.86 var(--f-display); letter-spacing: -.065em; }
.contact__row { display: block; white-space: nowrap; }
.contact__row:nth-child(2) { padding-left: 8vw; font-weight: 400; }
.contact__row .serif { letter-spacing: -.035em; }
.contact__lead { font: 400 clamp(1.125rem, 1.6vw, 1.5rem)/1.4 var(--f-display); letter-spacing: -.015em; max-width: 46ch; margin-top: clamp(28px, 4vw, 48px); opacity: .92; }
.contact__plain { font: 500 clamp(1.0625rem, 1.4vw, 1.375rem)/1.3 var(--f-display); letter-spacing: -.02em; padding-bottom: 3px; }
.qr { display: flex; align-items: center; gap: 18px; }
.qr__tile {
  display: block; width: clamp(150px, 12vw, 184px); padding: 12px; border-radius: 18px; background: var(--white);
  box-shadow: 0 24px 50px -24px rgba(24, 36, 49, .6); transition: transform .5s var(--ease);
}
.qr__tile:hover { transform: rotate(-2deg) scale(1.03); }
.qr__tile img { display: block; width: 100%; height: auto; }
.qr figcaption { opacity: .8; }
.contact__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: clamp(48px, 7vw, 104px); flex-wrap: wrap; }
.orb {
  position: relative; display: grid; place-items: center; width: clamp(150px, 16vw, 220px); aspect-ratio: 1; border-radius: 50%;
  background: var(--navy); color: var(--on-dark); overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.orb::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cream); border-radius: 50%; transform: scale(0); transition: transform .6s var(--ease); }
.orb:hover { color: var(--navy); }
.orb:hover::before { transform: scale(1); }
.orb__text { font: 500 clamp(1.25rem, 1.8vw, 1.6rem)/1 var(--f-display); text-align: center; letter-spacing: -.03em; }
.orb svg { position: absolute; top: 22%; right: 22%; width: 22px; height: 22px; transition: transform .5s var(--ease); }
.orb:hover svg { transform: translate(3px, -3px); }
.contact__links { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 28px clamp(32px, 5vw, 80px); }
.contact__links li { display: flex; flex-direction: column; gap: 6px; }
.contact__links .mono { opacity: .7; }
.ulink { font: 500 clamp(1.0625rem, 1.4vw, 1.375rem)/1.3 var(--f-display); letter-spacing: -.02em; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 3px; overflow-wrap: anywhere; }
.ulink:hover { background-size: 100% 1px; }

/* Footer */
.footer { background: var(--dark); color: var(--on-dark); overflow: hidden; padding-top: clamp(48px, 6vw, 96px); }
.footer__name { display: flex; justify-content: center; align-items: baseline; gap: .12em; font: 600 clamp(2.5rem, 10.4vw, 12rem)/.9 var(--f-display); letter-spacing: -.06em; white-space: nowrap; padding-inline: var(--gutter); }
.footer__name .serif { font-weight: 400; color: var(--accent); letter-spacing: -.03em; }
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 28px; margin-top: clamp(28px, 4vw, 56px); border-top: 1px solid var(--line-dark); color: var(--mute-dark); }
.footer__row .ulink { font: inherit; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .nav { display: none; }
  .pill { display: none; }
  .burger { display: block; }
  .hero__foot { grid-template-columns: 1fr 1fr; }
  .scroll-cue { display: none; }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__facts { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .job { grid-template-columns: 8rem 1fr; }
  .job__org { grid-column: 2; text-align: left; margin-top: -4px; }
  .honors__grid { grid-template-columns: 1fr; }
  .spot__grid, .proj--mirror .spot__grid { grid-template-columns: minmax(0, 1fr); }
  .proj--mirror .spot__media { order: 0; }
  .pslide { grid-template-columns: minmax(0, 1fr); flex-basis: 88%; align-items: start; }
  .pslide .spot__badge { top: -14px; right: -8px; }
  .certs__head { grid-template-columns: minmax(0, 1fr); }
  .spot__badge { right: -12px; }
  .menu-open .header::before { opacity: 0; }
  .menu-open .header { color: var(--accent-ink); }
  .menu-open .burger { border-color: rgba(242,240,235,.45); }
  .menu-open .burger span, .menu-open .logo i { background: var(--accent-ink); }
  .burger span { background: currentColor; }
}
@media (max-width: 700px) {
  .hero { padding-top: 92px; }
  .hero__meta span:nth-child(2) { display: none; }
  .hero__title { margin: 32px 0; font-size: 17.4vw; }
  .hero__row--serif { font-size: .96em; }
  .hero__foot { grid-template-columns: 1fr; gap: 20px; }
  .media { clip-path: inset(10% 4% 10% 4% round var(--radius)); }
  .about__grid { grid-template-columns: 1fr; }
  .card { top: calc(80px + var(--i, 0) * 16px); margin-bottom: 4vh; }
  .card__inner { min-height: 72svh; }
  .card__body { flex-direction: column; align-items: flex-start; }
  .stat { padding: 0 0 0 16px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .job { grid-template-columns: 1fr; gap: 6px; }
  .job__org { grid-column: auto; }
  .hlist li { grid-template-columns: 4.5rem 1fr; }
  .contact__row:nth-child(2) { padding-left: 0; }
  .spot__badge { width: 112px; right: -6px; top: -50px; font-size: 7.5px; }
  /* narrow slides: stats become rows (number + label) instead of cramped columns */
  .pslide__stats { grid-template-columns: minmax(0, 1fr); }
  .pslide__stats > div, .pslide__stats > div + div { flex-direction: row; align-items: baseline; gap: 12px; padding: 10px 0; border-left: 0; border-bottom: 1px solid var(--sp-line); }
  .pslide__stats dd { font-size: 1.75rem; min-width: 4.2ch; }
  .pslide__stats dt { overflow-wrap: normal; }
  .pslide .spot__badge { width: 96px; font-size: 6.5px; top: -14px; right: -8px; }
  .pslide .spot__cap { font-size: .625rem; padding: 6px 10px; gap: 7px; left: 10px; bottom: 10px; right: 10px; width: fit-content; max-width: calc(100% - 20px); }
  .spot__title { font-size: 19vw; }
  .spot__row--serif { padding-left: 0; }
  .spot__photo { aspect-ratio: 4 / 3.4; }
  .spot__photo img { object-position: 48% 30%; }
  .spot__stats dd { font-size: 2.4rem; }
  .spot__stats > div + div { padding-left: 12px; }
  .spot__stats dt { overflow-wrap: anywhere; }
  .contact__links { grid-template-columns: 1fr; }
  .qr { display: none; } /* on a phone the "Save contact" link does the job */
  .footer__name { flex-direction: column; align-items: flex-start; font-size: 18vw; }
}

/* Milestones: native swipe when not pinned (set by JS on desktop) */
.hscroll:not(.is-pinned) .hscroll__pin { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hscroll:not(.is-pinned) .hscroll__pin::-webkit-scrollbar { display: none; }
.hscroll:not(.is-pinned) .ms, .hscroll:not(.is-pinned) .hscroll__intro { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.hscroll:not(.is-pinned) .hscroll__progress { display: none; }
.hint-touch { display: none; }
.hscroll:not(.is-pinned) .hint-desk { display: none; }
.hscroll:not(.is-pinned) .hint-touch { display: inline; }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .loader { display: none; }
  .media { clip-path: inset(0 round 0); }
  .media__img { transform: none; }
  .grain { display: none; }
}
