/* =====================================================================
   style.css: Andre Aadamsoo portfolio
   Edit colours, fonts and spacing in the TOKENS block. Everything else
   reads from these variables.
   ===================================================================== */

/* ---------- Fonts (self-hosted in assets/fonts) ---------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../assets/fonts/playfair-display-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../assets/fonts/playfair-display-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(../assets/fonts/playfair-display-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/instrument-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/instrument-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- TOKENS: colours, fonts, spacing, motion ---------- */
:root {
  color-scheme: dark;                   /* dark scrollbars and form controls */
  --ink: #0a0c0b;                       /* page background */
  --ink-2: #111513;                     /* raised surfaces */
  --cream: #ece6d4;                     /* main text */
  --cream-dim: rgba(236, 230, 212, .66);
  --line: rgba(236, 230, 212, .16);     /* hairlines */
  --emerald: #19d68f;                   /* accent: focus, hover, live dot only */

  /* Name fill: lit where the evening light is (centre-right), dimmer at the edges */
  --name-fill: linear-gradient(90deg, #a8a294 0%, #d9d2c1 34%, #f3eee2 62%, #e2dbca 80%, #b3ad9f 100%);
  /* "flip" hero: the name's colour over the bright scene (cream is used where it crosses Andre) */
  --name-dark-fill: linear-gradient(90deg, #2b2c2f 0%, #3d4046 42%, #22272e 100%);
  /* "outline" hero: where the name crosses Andre it turns into a hairline outline of this colour */
  --name-outline: rgba(240, 234, 220, .95);

  --display: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gut: clamp(16px, 4vw, 56px);        /* side gutter */

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }   /* clip, not hidden: hidden breaks position: sticky */
body {
  background: var(--ink);
  color: var(--cream);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 4px; border-radius: 1px; }

.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 {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  padding: 10px 14px; background: var(--cream); color: var(--ink);
  font: 600 13px/1 var(--body); text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

/* Lenis smooth scroll (from vendor/lenis.css) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* Small uppercase labels used in the nav and hero foot */
.label, .nav__links a, .hero__line {
  font: 500 12px/1 var(--body);
  letter-spacing: .26em;
  text-transform: uppercase;
}

/* =====================================================================
   NAV
   Fixed. Over the first screen it is open and transparent; after it,
   it becomes a floating pill and the name collapses to "AA" (main.js
   adds .is-compact). A hairline at the bottom of the pill shows scroll progress.
   ===================================================================== */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; pointer-events: none; }
.nav__bar {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: fit-content;
  margin: calc(18px + env(safe-area-inset-top)) auto 0;
  padding: 12px 0;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    background-color 400ms var(--ease-out),
    border-color 400ms var(--ease-out),
    padding 500ms var(--ease-out),
    margin 500ms var(--ease-out);
}
.nav__links {
  display: flex; gap: clamp(32px, 6vw, 104px); margin: 0; padding: 0; list-style: none;
  transition: gap 500ms var(--ease-out), margin 500ms var(--ease-out);
}
.nav__links--left { margin-right: clamp(36px, 6.5vw, 112px); }
.nav__links--right { margin-left: clamp(36px, 6.5vw, 112px); }
.nav__links a { position: relative; display: inline-block; padding: 8px 0; text-decoration: none; }
.nav__links a::after {               /* hairline that draws in on hover */
  content: ''; position: absolute; left: 0; right: .26em; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 200ms var(--ease-out);
}
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__mark {
  font: 500 15px/1 var(--display);
  letter-spacing: .34em;
  margin-right: -.34em;              /* cancel trailing letter-spacing so it centres */
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 0;
}
/* The letters that disappear when the name collapses to "AA" */
.mk-rest {
  display: inline-block; vertical-align: top;
  max-width: 7em; overflow: hidden;
  transition: max-width 500ms var(--ease-out), opacity 300ms var(--ease-out);
}
.nav__progress {
  position: absolute; left: 24px; right: 24px; bottom: -1px; height: 1px;
  background: var(--cream);
  transform: scaleX(0); transform-origin: left;
  opacity: 0; transition: opacity 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover::after { transform: scaleX(1); }
}

/* Floating pill */
.nav.is-compact .nav__bar {
  margin-top: calc(14px + env(safe-area-inset-top));
  padding: 6px 24px;
  background-color: rgba(10, 12, 11, .74);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav.is-compact .nav__links { gap: 26px; }
.nav.is-compact .nav__links--left { margin-right: 30px; }
.nav.is-compact .nav__links--right { margin-left: 30px; }
.nav.is-compact .mk-rest { max-width: 0; opacity: 0; }
.nav.is-compact .nav__mark { letter-spacing: .12em; margin-right: -.12em; }
.nav.is-compact .nav__progress { opacity: .55; }

/* Phones: the name on top, the four links in a row under it; the pill keeps all four plus "AA" */
@media (max-width: 767px) {
  .nav__bar {
    width: auto; flex-wrap: wrap; justify-content: center; row-gap: 0;
    margin: calc(8px + env(safe-area-inset-top)) var(--gut) 0;
    padding: 6px 0;
  }
  .nav__mark { order: -1; flex-basis: 100%; text-align: center; font-size: 12px; letter-spacing: .28em; margin-right: -.28em; padding: 6px 0 4px; }
  .nav__links, .nav.is-compact .nav__links { gap: 14px; }
  .nav__links--left, .nav.is-compact .nav__links--left { margin-right: 14px; }
  .nav__links--right, .nav.is-compact .nav__links--right { margin-left: 0; }
  .nav__links a { font-size: 10px; letter-spacing: .14em; padding: 6px 0; }
  .nav.is-compact .nav__bar { width: fit-content; flex-wrap: nowrap; margin: calc(10px + env(safe-area-inset-top)) auto 0; padding: 2px 14px; }
  .nav.is-compact .nav__mark { order: 0; flex-basis: auto; font-size: 11px; letter-spacing: .1em; margin: 0 14px 0 0; padding: 6px 0; }
}


/* =====================================================================
   HERO
   The photo always covers the screen. --ar is its width / height.
   --fx / --fy choose which part stays in view (0 = left/top, 1 = right/bottom).
   --name-at is the height on the PHOTO where the name sits (0.585 = across
   his shoulders and arms), so the name tracks Andre on every screen shape.
   ===================================================================== */
.hero {
  --ar: 1.795;                             /* photo width / height (2000 x 1114) */
  --fx: .5;
  --fy: .5;
  --name-at: .585;
  --sw: max(100cqw, 100cqh * var(--ar));   /* photo width when covering */
  --sh: calc(var(--sw) / var(--ar));       /* photo height when covering */

  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: clip;
  container-type: size;
  background: var(--ink);
  isolation: isolate;
}

/* Photo layer. The two name layers use the identical box, so photo, outline and name never drift apart. */
.hero__scene {
  position: absolute; inset: 0; z-index: 1;
  transform-origin: 50% 50%;
  will-change: transform;
}
.hero__stage {
  position: absolute;
  width: var(--sw); height: var(--sh);
  left: calc((100cqw - var(--sw)) * var(--fx));
  top: calc((100cqh - var(--sh)) * var(--fy));
}
.hero__photo { width: 100%; height: 100%; }

/* Darkening: top scrim for the nav, bottom fade into the page, soft vignette */
.hero__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10, 12, 11, .55) 0, rgba(10, 12, 11, 0) 20%),
    linear-gradient(to top, var(--ink) 0, rgba(10, 12, 11, .9) 12%, rgba(10, 12, 11, .45) 32%, rgba(10, 12, 11, 0) 52%),
    radial-gradient(130% 95% at 50% 40%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .55) 100%);
}

/* The name. Both copies share this box (the whole hero) and the same text position. */
.hero__name {
  position: absolute; inset: 0; margin: 0;
  font: 500 calc(80cqw / 9.118)/1 var(--display);   /* 9.118 = name width in em, so it spans 80% */
  text-transform: uppercase;
  color: var(--cream);
  transform-origin: 50% 50%;
  will-change: transform;
  pointer-events: none;
}
.hero__text {
  position: absolute; left: 0; right: 0;
  top: calc((100cqh - var(--sh)) * var(--fy) + var(--sh) * var(--name-at));
  translate: 0 -50%;
  text-align: center;
  white-space: nowrap;
}

/* Name layers, both cut by Andre's outline (hero-mask.webp), registered to the photo:
   --out shows the solid name everywhere except over him, --in shows the outline only over him. */
.hero__scene--out, .hero__scene--in {
  pointer-events: none;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}
.hero__scene--out {
  z-index: 3;
  -webkit-mask-image: linear-gradient(#000 0 0), url(../assets/img/hero-mask.webp);
          mask-image: linear-gradient(#000 0 0), url(../assets/img/hero-mask.webp);
  -webkit-mask-size: 100% 100%, var(--sw) var(--sh);
          mask-size: 100% 100%, var(--sw) var(--sh);
  -webkit-mask-position: 0 0, calc(var(--fx) * 100%) calc(var(--fy) * 100%);
          mask-position: 0 0, calc(var(--fx) * 100%) calc(var(--fy) * 100%);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.hero__scene--in {
  z-index: 4;
  -webkit-mask-image: url(../assets/img/hero-mask.webp);
          mask-image: url(../assets/img/hero-mask.webp);
  -webkit-mask-size: var(--sw) var(--sh);
          mask-size: var(--sw) var(--sh);
  -webkit-mask-position: calc(var(--fx) * 100%) calc(var(--fy) * 100%);
          mask-position: calc(var(--fx) * 100%) calc(var(--fy) * 100%);
}

/* Letters (created by main.js). Each letter rises from behind its own baseline. */
.hero__l {
  display: inline-block;
  clip-path: inset(-25% -12% 0 -12%);   /* open everywhere except the bottom edge */
}
.hero__g {
  display: inline-block;
  background: var(--name-fill);
  background-size: var(--tw, 100%) var(--th, 100%);
  background-position: calc(var(--lx, 0px) * -1) calc(var(--ly, 0px) * -1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero[data-name-style="outline"] .hero__name--on .hero__g {
  background: none;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: max(1px, .011em) var(--name-outline);
}
.hero[data-name-style="flip"] .hero__scene--out .hero__g { background-image: var(--name-dark-fill); }
/* A faint mist behind the dark letters so they hold up over rocks and water.
   It sits in the --out layer, so it never covers Andre. */
.hero[data-name-style="flip"] .hero__scene--out .hero__text::before {
  content: ''; position: absolute; z-index: -1;
  left: 2%; right: 2%; top: -35%; bottom: -35%;
  background: radial-gradient(50% 50% at 50% 52%, rgba(236, 230, 212, .34) 0%, rgba(236, 230, 212, .18) 55%, rgba(236, 230, 212, 0) 100%);
  pointer-events: none;
}

/* Bright photo: no dark scrim at the top, dark nav text over the sky until the pill appears */
.hero[data-tone="light"] .hero__shade {
  background:
    linear-gradient(to top, var(--ink) 0, rgba(10, 12, 11, .86) 12%, rgba(10, 12, 11, .3) 26%, rgba(10, 12, 11, 0) 40%),
    radial-gradient(130% 95% at 50% 42%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .32) 100%);
}
html:has(.hero[data-tone="light"]) .nav:not(.is-compact) { color: var(--ink); }

html.js:not(.hero-in) .hero__g { transform: translateY(104%); }
html.hero-in .hero__g {
  animation: hero-rise 1100ms var(--ease-out) both;
  animation-delay: calc(250ms + var(--i, 0) * 45ms);
}
@keyframes hero-rise { from { transform: translateY(104%); } to { transform: none; } }

/* Photo fades up from black as the camera pushes in (main.js drives the push) */
html.js:not(.hero-in) .hero__stage { opacity: 0; }
html.hero-in .hero__stage { transition: opacity 1400ms var(--ease-out); }

/* Film grain */
.hero__grain {
  position: absolute; inset: -50%; z-index: 5; pointer-events: none;
  opacity: .1;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 900ms steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
  100% { transform: translate(-2%, 6%); }
}

/* Bottom row: subtitle, scroll cue, location */
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  padding: 0 var(--gut) calc(28px + env(safe-area-inset-bottom));
  color: var(--cream-dim);
}
.hero__line { margin: 0; }
.hero__line--right { justify-self: end; }
.hero__cue {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: -14px;
  color: var(--cream);
}
.hero__cue svg { fill: none; stroke: currentColor; stroke-width: 1.3; overflow: visible; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .hero__cue:hover svg { transform: translateY(3px); }
}

/* Nav and foot arrive after the name (home page only) */
html.js:not(.hero-in) .nav__bar,
html.js:not(.hero-in) .hero__foot > * { opacity: 0; }
html.hero-in:has([data-hero]) .nav__bar,
html.hero-in .hero__foot > * { animation: arrive 800ms var(--ease-out) 1000ms both; }
html.hero-in .hero__foot > :nth-child(2) { animation-delay: 1080ms; }
html.hero-in .hero__foot > :nth-child(3) { animation-delay: 1160ms; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Phones and portrait tablets: name on two lines, photo framed on Andre ---------- */
@media (max-width: 767px), (orientation: portrait) and (max-width: 1199px) {
  .hero { --fx: .5; --fy: .5; --name-at: .60; }
  .hero__name {
    font-size: min(calc((100cqw - 2 * var(--gut)) / 5.564), 11cqh);   /* 5.564 = "AADAMSOO" in em */
    line-height: .96;
  }
  .hero__word { display: block; }
}
/* Short landscape screens (phone on its side): keep the hero to one screen */
@media (orientation: landscape) and (max-height: 560px) {
  .hero { min-height: 0; }
}
@media (max-width: 767px) {
  .hero__foot { grid-template-columns: 1fr; justify-items: center; gap: 18px; text-align: center; }
  .hero__line { font-size: 11px; letter-spacing: .24em; }
  .hero__line--right { display: none; }
}

/* =====================================================================
   INTRO (home, under the hero)
   ===================================================================== */
.intro {
  min-height: 100vh; min-height: 100svh;
  display: grid; align-content: center; gap: clamp(20px, 3vw, 36px);
  padding: clamp(120px, 14vw, 200px) var(--gut);
}
.intro__kicker { margin: 0; color: var(--cream-dim); }
.intro__title {
  margin: 0; max-width: 15ch;
  font: 500 clamp(44px, 7vw, 112px)/1.02 var(--body);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.shape.shape--inline {
  display: inline-block;
  font: italic 700 1.06em/1 var(--display);
  letter-spacing: 0;
}
.intro__sub { margin: 0; max-width: 44ch; color: var(--cream-dim); font-size: clamp(17px, 1.4vw, 20px); text-wrap: pretty; }


/* =====================================================================
   BAND: a line of text moving left to right (main.js moves it)
   ===================================================================== */
.band {
  overflow: clip;
  background: var(--cream); color: var(--ink);
  padding: clamp(10px, 1.6vw, 22px) 0;
}
.band__track { display: flex; width: max-content; will-change: transform; }
.band__item {
  margin: 0; white-space: nowrap;
  font: 500 clamp(56px, 9vw, 148px)/1.08 var(--body);
  letter-spacing: -.04em;
}
.band__orn {
  display: inline-block;
  margin: 0 .3em;
  font-weight: 700;
}

/* =====================================================================
   STATEMENT: words light up as you scroll (main.js adds .is-lit)
   ===================================================================== */
.statement { padding: clamp(120px, 16vw, 220px) var(--gut); }
.statement__kicker, .pages__kicker { margin: 0 0 clamp(20px, 3vw, 36px); color: var(--cream-dim); }
.statement__kicker b, .pages__kicker b { font-weight: 500; color: var(--cream); }
.statement__text {
  margin: 0; max-width: 22ch;
  font: 500 clamp(36px, 5.4vw, 88px)/1.06 var(--body);
  letter-spacing: -.035em;
  text-wrap: pretty;
}
.lu { opacity: .16; transition: opacity 260ms ease; }
.lu.is-lit { opacity: 1; }

/* =====================================================================
   PAGES: numbered teaser rows. On hover the title turns italic and slides.
   ===================================================================== */
.pages { padding: 0 var(--gut) clamp(120px, 14vw, 200px); }
.pages__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pages__row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 30ch) 40px;
  align-items: baseline; gap: 24px;
  padding: clamp(22px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.pages__num { font: 500 13px/1 var(--body); letter-spacing: .1em; color: var(--cream-dim); }
.pages__title {
  font: 500 clamp(40px, 6vw, 96px)/1 var(--display);
  letter-spacing: -.01em;
  transition: transform 300ms var(--ease-out);
}
.pages__desc { color: var(--cream-dim); }
.pages__arrow { justify-self: end; font-size: 26px; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .pages__row:hover .pages__title { font-style: italic; transform: translateX(14px); }
  .pages__row:hover .pages__arrow { transform: translate(4px, -4px); }
}
@media (max-width: 767px) {
  .pages__row { grid-template-columns: 44px minmax(0, 1fr) 28px; gap: 6px 14px; }
  .pages__desc { grid-column: 2 / 3; grid-row: 2; font-size: 15px; }
  .pages__arrow { grid-column: 3; grid-row: 1; font-size: 20px; }
}

/* =====================================================================
   CALL TO ACTION + buttons
   ===================================================================== */
.cta {
  display: grid; justify-items: center; gap: clamp(28px, 4vw, 48px);
  padding: clamp(80px, 10vw, 140px) var(--gut) clamp(120px, 14vw, 200px);
  text-align: center;
}
.cta__title {
  margin: 0;
  font: 500 clamp(52px, 9vw, 150px)/.98 var(--body);
  letter-spacing: -.045em;
}
.cta__title em { font: italic 500 1.04em/1 var(--display); letter-spacing: -.01em; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid var(--line); border-radius: 999px;
  font: 500 15px/1 var(--body); text-decoration: none;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--cream); color: var(--ink); border-color: var(--cream); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--cream); }
  .btn--solid:hover { background: var(--emerald); border-color: var(--emerald); }
}
[aria-disabled="true"] { cursor: help; }

/* =====================================================================
   FOOTER: details row, then the name huge and fading away
   ===================================================================== */
.foot {
  container-type: inline-size;
  overflow: clip;
  padding: 36px var(--gut) 0;
  border-top: 1px solid var(--line);
}
.foot__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px;
  color: var(--cream-dim);
}
.foot__row p { margin: 0; }
.foot__row a { text-decoration: none; }
.foot__social { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.foot__time { display: inline-flex; align-items: center; gap: 10px; }
.foot__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (hover: hover) and (pointer: fine) {
  .foot__row a { transition: color 200ms ease; }
  .foot__row a:hover { color: var(--cream); }
}
.foot__giant {
  margin: clamp(40px, 7vw, 96px) 0 0;
  padding-bottom: .06em;
  font: 500 calc(100cqw / 9.118)/.9 var(--display);    /* 9.118 = the name's width in em: spans the full width */
  text-transform: uppercase; white-space: nowrap; text-align: center;
  background: linear-gradient(180deg, rgba(236, 230, 212, .30) 0%, rgba(236, 230, 212, .05) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  user-select: none;
}
::selection { background: var(--emerald); color: var(--ink); }

/* =====================================================================
   INNER PAGES (About, Early Life, Companies, Contact)
   ===================================================================== */
.page-head {
  container-type: inline-size;
  min-height: 72vh; min-height: 72svh;
  display: grid; align-content: end;
  padding: 160px var(--gut) clamp(40px, 6vw, 88px);
}
.page-head__kicker { margin: 0 0 clamp(8px, 2vw, 24px); color: var(--cream-dim); }
@media (max-width: 767px) {
  .page-head { min-height: 0; padding-top: 148px; }
}
.page-head__kicker b { font-weight: 500; color: var(--cream); }

/* Dot type ("shape"): the word is drawn as dots by js/shape.js.
   --em is the word's width in em (measured), so every title fills the width. */
.shape {
  position: relative; margin: 0;
  font: italic 700 min(calc(100cqw * .96 / var(--em, 4)), 300px)/1.05 var(--display);
  letter-spacing: -.005em;
  color: var(--cream);
}
.shape__text { display: inline-block; }
.shape.is-dotted .shape__text { color: transparent; }
.shape__dots { position: absolute; pointer-events: none; }

.page-body { padding: 0 var(--gut) clamp(96px, 12vw, 160px); }
.page-split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px); align-items: start;
}
.page-photo { margin: 0; overflow: hidden; }
.page-photo img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  transform: scale(1.06); transition: transform 1600ms var(--ease-out);
}
.page-photo.is-in img, html:not(.js) .page-photo img { transform: none; }
@media (max-width: 767px) {
  .page-split { grid-template-columns: 1fr; }
}

/* Text blocks with small labels (About) */
.prose { display: grid; gap: clamp(32px, 4vw, 48px); max-width: 60ch; }
.prose__label { margin: 0 0 12px; color: var(--cream-dim); }
.prose__label b { font-weight: 500; color: var(--cream); }
.prose p { margin: 0; color: var(--cream-dim); font-size: clamp(17px, 1.3vw, 19px); text-wrap: pretty; }
.prose .prose__lead, .prose__lead {
  margin: 0; color: var(--cream);
  font: 500 clamp(24px, 2.4vw, 34px)/1.25 var(--body);
  letter-spacing: -.02em; text-wrap: pretty;
}

/* Early Life: the steps in order */
.early__lead { max-width: 26ch; margin-bottom: clamp(48px, 6vw, 88px); }
.timeline { margin: 0 0 clamp(48px, 6vw, 80px); padding: 0; list-style: none; border-top: 1px solid var(--line); }
.timeline__item {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 5fr);
  gap: 24px; align-items: baseline;
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}
.timeline__when { margin: 0; color: var(--cream-dim); }
.timeline__title { margin: 0; font: 500 clamp(32px, 4.4vw, 64px)/1 var(--display); letter-spacing: -.01em; }
.timeline__item > p:last-child { margin: 0; max-width: 44ch; color: var(--cream-dim); text-wrap: pretty; }
@media (max-width: 767px) {
  .timeline__item { grid-template-columns: 1fr; gap: 10px; }
}

/* Companies: one block per company */
.company {
  display: grid; gap: 18px; max-width: 900px;
  margin-bottom: clamp(48px, 6vw, 80px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.company__num { margin: 0; color: var(--cream-dim); }
.company__num b { font-weight: 500; color: var(--cream); }
.company__name { margin: 0; font: 500 clamp(48px, 7vw, 112px)/1 var(--display); letter-spacing: -.01em; }
.company__what { margin: 0; max-width: 30ch; font: 500 clamp(22px, 2.2vw, 30px)/1.3 var(--body); letter-spacing: -.02em; }
.company__figure {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .22em;
  margin: 8px 0 4px;
  font: 500 clamp(52px, 8.4vw, 124px)/1 var(--body);
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.company__arrow { font-family: var(--display); font-weight: 400; color: var(--emerald); }
.company__unit { font: italic 500 .32em/1 var(--display); letter-spacing: 0; color: var(--cream-dim); white-space: nowrap; }
.company__text { margin: 0; max-width: 56ch; color: var(--cream-dim); font-size: clamp(17px, 1.3vw, 19px); text-wrap: pretty; }
.company__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.company__areas { margin-top: 12px; }
.company__areas-label { margin: 0 0 12px; color: var(--cream-dim); }
.company__list {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.company__list li {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  font: 500 clamp(18px, 1.8vw, 24px)/1.2 var(--display);
}
.company__list li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.company__fit { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; color: var(--cream); }
.company__fit .label { color: var(--cream-dim); }
@media (max-width: 767px) {
  .company__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company__list li:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* Contact: label / value rows */
.contact { display: grid; gap: clamp(28px, 4vw, 48px); align-content: start; min-width: 0; }
.contact__list { margin: 0; border-top: 1px solid var(--line); }
.contact__row {
  display: grid; grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.contact__row dt { margin: 0; color: var(--cream-dim); }
.contact__row dd {
  margin: 0; min-width: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  font: 500 clamp(17px, 1.6vw, 22px)/1.3 var(--body);
  overflow-wrap: anywhere;
}
.contact__row a { text-decoration: none; }
.chip {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: none; color: var(--cream); cursor: pointer;
  font: 500 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  transition: border-color 200ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(.97); }
.chip--solid { background: var(--cream); color: var(--ink); border-color: var(--cream); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .chip:hover { border-color: var(--cream); }
  .chip--solid:hover { background: var(--emerald); border-color: var(--emerald); }
  .contact__row a:hover { color: var(--emerald); }
}
@media (max-width: 767px) {
  .contact__row { grid-template-columns: 1fr; gap: 6px; }
}
.draft-brief {
  max-width: 62ch;
  padding: 24px 28px;
  border: 1px dashed var(--line);
  color: var(--cream-dim);
}
.draft-brief p { margin: 0 0 12px; }
.draft-brief ul { margin: 0; padding-left: 1.1em; }
.draft-brief li + li { margin-top: 6px; }
.draft-brief strong { color: var(--cream); font-weight: 500; }



/* =====================================================================
   REDUCED MOTION: no smooth scroll, no parallax, no grain movement.
   The name and photo fade in gently instead of moving.
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero__grain, .foot__dot { animation: none; }
  html.js:not(.hero-in) .hero__g { transform: none; opacity: 0; }
  html.hero-in .hero__g { animation: hero-fade 600ms ease both; animation-delay: 150ms; }
  html.hero-in:has([data-hero]) .nav__bar,
  html.hero-in .hero__foot > * { animation-name: hero-fade; }
  .nav__links a::after, .hero__cue svg, .pages__title, .pages__arrow { transition: none; }
  .lu { transition: none; }
  .page-photo img { transform: none; transition: none; }
}
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
