/* dimitrisdimitriadis.com · v3 (fluid motion pass)
   fonts → tokens → base → type → layout → components → motion → responsive → reduced motion (last) */

/* ── self-hosted fonts (latin subsets, Google Fonts builds) ────── */
@font-face {
  font-family: 'Urbanist'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('../assets/fonts/urbanist-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: 'Kumbh Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../assets/fonts/kumbh-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: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/anton-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;
}

:root {
  --bg: #060607;
  --surface: #0E0E10;
  --ink: #F2F2F0;
  --muted: #9A9A96;
  --line: #232326;
  --signal: #9BDCFF;
  --deep: #2B3CFF;

  --cv-carbon: #222222;
  --cv-azure: #307AF0;        /* logo and rule only */
  --cv-azure-text: #5B96F7;   /* 5.4:1 on carbon */
  --cv-azure-fill: #2563EB;   /* 5.2:1 under white text */
  --cv-azure-fill-hover: #1D64D8;
  --cv-mint: #11E8D4;
  --cv-muted: #9CA3AF;
  --cv-line: #3A3A3D;

  --book-accent: #d66300;

  --sans: 'Urbanist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --kumbh: 'Kumbh Sans', 'Urbanist', system-ui, sans-serif;
  --anton: 'Anton', 'Arial Narrow', Impact, sans-serif;

  --container: 1248px;
  --gutter: clamp(20px, 5vw, 96px);
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-swap: 100ms;
  --t-fast: 160ms;
  --t-ui: 220ms;
  --t-reveal: 640ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t-ui) ease; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--signal); color: var(--bg); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 999px; font-weight: 500;
}
.skip:focus { top: 16px; }

/* ── type ─────────────────────────────────────────────────────── */
.caps {
  font-family: var(--sans); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.24em;
  text-transform: uppercase; line-height: 1.5;
}
.caps--muted { color: var(--muted); }
.caps--signal { color: var(--signal); }
.eyebrow {
  font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; line-height: 1.5; color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
}
.eyebrow .num, .eyebrow .dot { color: var(--signal); }
.eyebrow__item { white-space: nowrap; }
.eyebrow__item .dot { margin-right: 0.6em; }
.h2 {
  font-weight: 350; line-height: 1; letter-spacing: -0.01em;
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
  text-wrap: balance;
}
.lede { color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.0625rem); line-height: 1.6; max-width: 34em; }
h3 { font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }

/* ── layout ───────────────────────────────────────────────────── */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--surface { background: var(--surface); }
.actions { display: flex; align-items: center; gap: 28px; }
.actions--wrap { flex-wrap: wrap; row-gap: 16px; }

/* ── buttons and links ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; font-size: 1rem; font-weight: 500; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-ui) ease, color var(--t-ui) ease, border-color var(--t-ui) ease;
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--outline { min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); }
.btn--azure { background: var(--cv-azure-fill); color: #fff; border-radius: 8px; min-height: 48px; padding: 0 22px; font-family: var(--kumbh); font-weight: 600; font-size: 0.9375rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 4px;
  font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--line);
  transition: border-color var(--t-ui) ease, color var(--t-ui) ease, transform var(--t-fast) var(--ease-out);
}
.link-arrow span { color: var(--signal); transition: transform var(--t-ui) var(--ease-out); }
/* press feedback: every pressable surface answers on pointer-down */
.btn:active, .sound:active, .link-arrow:active, .nav__toggle:active, .cv__link:active,
.nav__brand:active, .nav__links a:not(.btn):active, .social a:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--signal); }
  .btn--primary:hover { background: #fff; color: var(--bg); }
  .btn--outline:hover { border-color: var(--signal); color: var(--signal); }
  .btn--azure:hover { background: var(--cv-azure-fill-hover); color: #fff; }
  .link-arrow:hover { border-color: var(--signal); }
  .link-arrow:hover span { transform: translateX(4px); }
  .sound:hover { border-color: var(--ink); }
  .cv__link:hover { color: #fff; }
  .card:hover { border-color: #3A3A3E; }
  .book__cover img { will-change: transform; } /* the tilt layer exists before the first hover */
}

/* ── nav ──────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-ui) ease, background-color var(--t-ui) ease, backdrop-filter var(--t-ui) ease, -webkit-backdrop-filter var(--t-ui) ease;
}
.nav.is-scrolled, .nav.is-open {
  border-bottom-color: var(--line); background: rgba(6, 6, 7, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
}
.nav__inner {
  width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 1.0625rem; font-weight: 350; letter-spacing: 0.04em; transform-origin: left center; transition: color var(--t-ui) ease, transform var(--t-fast) var(--ease-out); }
.mark { width: 41px; height: 24px; fill: none; stroke: currentColor; stroke-width: 14px; stroke-linejoin: round; flex-shrink: 0; }
.nav__links { display: flex; align-items: center; gap: 36px; font-size: 0.9375rem; font-weight: 500; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; }
.nav__links a:not(.btn) { transition: color var(--t-ui) ease, transform var(--t-fast) var(--ease-out); }
.nav__toggle {
  display: none; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px; color: var(--ink);
  transition: transform var(--t-fast) var(--ease-out);
}
/* bars are borders, not backgrounds, so forced-colours mode keeps them */
.nav__toggle span { display: block; width: 22px; height: 0; border-top: 1.5px solid currentColor; transition: transform var(--t-ui) var(--ease-out); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ── hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: min(calc(100svh - var(--nav-h)), 860px); display: flex; align-items: center;
  overflow: hidden; background: var(--bg); isolation: isolate;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; background: var(--bg); transition: opacity 400ms var(--ease-out); }
.hero__video.is-switching { opacity: 0; transition: opacity 240ms var(--ease-out); }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,6,7,0) 60%, rgba(6,6,7,0.9) 100%),
    linear-gradient(90deg, rgba(6,6,7,0.94) 0%, rgba(6,6,7,0.84) 36%, rgba(6,6,7,0.38) 68%, rgba(6,6,7,0.18) 100%);
}
@media (max-aspect-ratio: 1/1) {
  .hero__scrim { background: linear-gradient(180deg, rgba(6,6,7,0.2) 0%, rgba(6,6,7,0.4) 25%, rgba(6,6,7,0.7) 38%, rgba(6,6,7,0.9) 68%, var(--bg) 100%); }
}
.hero__content {
  position: relative;
  width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto;
  padding-block: clamp(96px, 14vh, 160px) clamp(96px, 12vh, 140px);
  display: flex; flex-direction: column; gap: 28px; max-width: 800px;
}
/* a soft dark field behind the copy keeps contrast whatever frame the reel is on */
.hero__content::before {
  content: ""; position: absolute; inset: -24% -22%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side at 50% 50%, rgba(6,6,7,0.9) 0%, rgba(6,6,7,0.8) 45%, rgba(6,6,7,0) 100%);
}
.hero__title {
  font-weight: 350; line-height: 0.98; letter-spacing: -0.015em;
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5.125rem);
  text-wrap: balance;
}
.hero__lede { color: var(--muted); font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.5; max-width: 600px; }
.hero__lede em { font-style: normal; color: var(--ink); }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; row-gap: 12px; padding-top: 4px; }
.hero__controls {
  position: absolute; right: var(--gutter); bottom: 32px; z-index: 1;
  display: flex; align-items: center; gap: 12px;
}
.hero__reel-label { margin-right: 6px; }

/* showreel controls: icons cross-fade in place, labels swap through a short blur */
.sound {
  display: inline-grid; grid-template-columns: 18px auto; column-gap: 10px; align-items: center;
  min-height: 48px; padding: 0 18px 0 14px;
  background: rgba(6,6,7,0.55); color: var(--ink); border: 1px solid rgba(242,242,240,0.4); border-radius: 999px;
  font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform var(--t-fast) var(--ease-out), border-color var(--t-ui) ease, background-color var(--t-ui) ease;
}
.sound__label {
  grid-area: 1 / 2; display: block; min-width: 5.6em; text-align: left;
  transition: opacity var(--t-fast) var(--ease-out), filter var(--t-fast) var(--ease-out);
}
.sound__label--play { min-width: 3.4em; }
.sound__label.is-swapping { opacity: 0.55; filter: blur(2px); transition-duration: var(--t-swap); transition-timing-function: ease; }
.sound__icon { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sound__icon, .ico-play, .ico-pause {
  transition: opacity var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
  transform-box: fill-box; transform-origin: 50% 50%;
}
/* hidden states carry the faster 100ms so exit is quicker than entry */
.sound__icon--on, .sound .ico-play,
.sound[aria-pressed="true"] .sound__icon--off,
.sound[data-paused="true"] .ico-pause { opacity: 0; transform: scale(0.85); transition-duration: 100ms; }
.sound[aria-pressed="true"] .sound__icon--on,
.sound[data-paused="true"] .ico-play { opacity: 1; transform: none; }

/* ── stages strip ─────────────────────────────────────────────── */
.stages { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 22px; }
.stages__row { display: flex; align-items: center; gap: 28px; }
.stages__list { display: flex; flex-wrap: wrap; gap: 10px 32px; letter-spacing: 0.18em; }
.stages__lead { color: var(--ink); letter-spacing: 0.18em; flex-shrink: 0; }

/* ── cogniveil panel ──────────────────────────────────────────── */
#cogniveil .container { display: flex; flex-direction: column; gap: 40px; }
.cv {
  position: relative; overflow: hidden; background: var(--cv-carbon); padding: clamp(28px, 4.5vw, 64px);
  font-family: var(--kumbh); display: flex; flex-direction: column; gap: 40px;
}
.cv::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(135deg, var(--cv-mint) 0%, var(--cv-azure) 100%); }
.cv__symbol { position: absolute; right: -40px; top: -60px; width: 520px; opacity: 0.16; pointer-events: none; }
.cv__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; }
.cv__intro { grid-column: span 6; display: flex; flex-direction: column; gap: 22px; }
.cv__logo { width: 224px; }
.cv__eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cv-azure-text); padding-top: 6px; }
.cv__title { font-family: var(--kumbh); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.018em; text-wrap: balance; }
.cv__lede { font-size: 1.0625rem; line-height: 1.55; color: var(--cv-muted); max-width: 520px; }
.cv__role { font-size: 0.9375rem; }
.cv__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; row-gap: 12px; padding-top: 6px; }
.cv__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--cv-mint); font-weight: 500; font-size: 0.9375rem; transition: color var(--t-ui) ease, transform var(--t-fast) var(--ease-out); }
.cv__holds { grid-column: span 6; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.hold { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--cv-line); background: rgba(255,255,255,0.03); }
.hold__n { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--cv-mint); }
.hold h3 { font-family: var(--kumbh); font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.hold p { font-size: 0.9375rem; line-height: 1.55; color: var(--cv-muted); }
.cv__chips { position: relative; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 28px; border-top: 1px solid var(--cv-line); }
.cv__chips li {
  display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border: 1px solid var(--cv-line); border-radius: 999px;
  font-size: 0.75rem; font-weight: 500; line-height: 1.3; color: var(--cv-muted); max-width: 100%;
}
/* the symbol drifts against the page while the panel scrolls through: depth, driven by scroll itself (linear) */
@supports (animation-timeline: --x) {
  .cv { view-timeline: --cv block; }
  .cv__symbol { animation: cv-drift linear both; animation-timeline: --cv; animation-range: entry 0% exit 100%; will-change: transform; }
  @keyframes cv-drift {
    from { transform: translate3d(0, -40px, 0); }
    to   { transform: translate3d(0, 40px, 0); }
  }
}

/* ── speaking ─────────────────────────────────────────────────── */
#speaking .container { display: flex; flex-direction: column; gap: 56px; }
.speaking__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; align-items: stretch; }
.speaking__text { grid-column: span 6; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-right: 40px; }
.speaking__text .eyebrow { margin-bottom: 24px; }
.speaking__text .h2 { margin-bottom: 24px; }
.stats { display: flex; gap: 32px 40px; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column-reverse; gap: 6px; }
.stats dd { font-size: clamp(2.5rem, 2rem + 1.6vw, 3.25rem); font-weight: 350; letter-spacing: -0.02em; line-height: 1; }
.speaking__figure { grid-column: span 6; display: flex; flex-direction: column; gap: 12px; }
.speaking__photo { position: relative; overflow: hidden; border: 1px solid var(--line); }
.speaking__photo img { width: 100%; height: 420px; object-fit: cover; object-position: 50% 56%; }
.credit {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  background: rgba(6,6,7,0.6); border: 1px solid rgba(242,242,240,0.18); border-radius: 999px;
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); background: var(--surface); transition: border-color var(--t-ui) ease; }
.card h3 { font-size: 1.5rem; }
.card p { color: var(--muted); font-size: 0.9375rem; }

/* ── books ────────────────────────────────────────────────────── */
#books .container { display: flex; flex-direction: column; gap: 56px; }
.book { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; align-items: center; }
.book__intro { grid-column: span 12; display: flex; flex-direction: column; gap: 24px; }
.book__cover { grid-column: span 5; display: flex; justify-content: center; }
.book__cover img { width: 100%; max-width: 440px; filter: drop-shadow(0 30px 45px rgba(0,0,0,0.55)); }
.book__detail { grid-column: span 7; display: flex; flex-direction: column; gap: 18px; }
.book__badge {
  display: inline-flex; align-items: center; align-self: flex-start; height: 28px; padding: 0 12px; border: 1px solid var(--book-accent); border-radius: 999px;
  font-family: var(--anton); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--book-accent);
}
.book__wordmark { font-family: var(--anton); font-weight: 400; font-size: clamp(3.5rem, 3rem + 1.5vw, 4.5rem); line-height: 1; letter-spacing: 0.02em; }
.book__bracket { color: var(--book-accent); }
.book__subtitle { font-size: 1.375rem; font-weight: 500; line-height: 1.25; }
.book__status { color: var(--book-accent); font-size: 0.625rem; }
.book__tagline { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quotes blockquote { display: flex; flex-direction: column; gap: 12px; }
.quotes p { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; text-wrap: pretty; }
.upcoming { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.upcoming li { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); }
.upcoming h3 { font-size: 1.25rem; }
.upcoming p { color: var(--muted); font-size: 0.875rem; }

/* ── press ────────────────────────────────────────────────────── */
.press { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(56px, 7vw, 88px); }
.press__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.press__quote { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 900px; }
.press__quote p { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 350; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }

/* ── writing ──────────────────────────────────────────────────── */
.writing { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.writing .eyebrow { margin-bottom: 20px; }

/* ── footer ───────────────────────────────────────────────────── */
.footer { background: var(--surface); padding: clamp(64px, 8vw, 96px) 0 48px; }
.footer .container { display: flex; flex-direction: column; gap: 56px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.footer__cta { display: flex; flex-direction: column; gap: 24px; max-width: 680px; }
.avatar { width: 88px; height: 88px; border-radius: 999px; object-fit: cover; border: 1px solid var(--line); }
.social { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.social a { display: inline-flex; min-height: 32px; align-items: center; transition: color var(--t-ui) ease, transform var(--t-fast) var(--ease-out); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer__bottom img { height: 52px; width: auto; }

/* ── motion: reveals (only when JS is confirmed running) ──────── */
.js [data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* hero: the copy arrives as a rack focus, the one sequenced beat on the page */
.js .hero [data-reveal] {
  transform: translateY(10px); filter: blur(4px);
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out), filter 560ms var(--ease-out);
  transition-delay: calc(60ms + var(--i, 0) * 70ms);
}
.js .hero [data-reveal].is-in { transform: none; filter: none; }
.js .hero__controls[data-reveal] { transform: none; filter: none; transition: opacity 320ms var(--ease-out); transition-delay: 600ms; }

/* stages strip: the hero cascade runs one beat further, to the proof line */
.js .stages [data-reveal] { transform: translateY(6px); transition-duration: 480ms; transition-delay: calc(120ms + var(--i, 0) * 40ms); }
.js .stages [data-reveal].is-in { transform: none; }

/* the photograph wipes in top to bottom while the image settles from 1.04 to 1 */
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 800ms var(--ease-out); transition-delay: 0ms; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="clip"] img { transform: scale(1.04); transition: transform 1100ms var(--ease-out); }
.js [data-reveal="clip"].is-in img { transform: scale(1); }

/* the Cogniveil rule draws left to right as the panel arrives */
.js [data-reveal="rule"] { opacity: 1; transform: none; transition: none; }
.js [data-reveal="rule"]::before { clip-path: inset(0 100% 0 0); transition: clip-path var(--t-reveal) var(--ease-out) 70ms; }
.js [data-reveal="rule"].is-in::before { clip-path: inset(0 0 0 0); }

/* ── responsive ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .speaking__text { padding-right: 0; }
}
@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  /* absolute, not fixed: the header's backdrop-filter is a containing block, so fixed would collapse to the bar */
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100svh - var(--nav-h)); z-index: 40; overflow-y: auto;
    flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 24px var(--gutter); background: rgba(6,6,7,0.96);
    font-size: 1.5rem; font-weight: 350;
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), visibility 0s linear var(--t-fast);
  }
  .nav__links .btn--outline { margin-top: 16px; font-size: 1rem; }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-duration: var(--t-ui), var(--t-ui), 0s; transition-delay: 0s; }
  /* the links materialise a beat behind the panel, top to bottom; on close they leave with it */
  .nav__links a:not(.btn), .nav__links .btn { opacity: 0; transform: translateY(6px); transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), color var(--t-ui) ease, border-color var(--t-ui) ease; }
  .nav.is-open .nav__links a { opacity: 1; transform: none; transition-duration: var(--t-ui), var(--t-ui), var(--t-ui), var(--t-ui); }
  .nav.is-open .nav__links a:active { transform: scale(0.97); transition-duration: var(--t-ui), var(--t-fast), var(--t-ui), var(--t-ui); }
  .nav.is-open .nav__links a:nth-child(2) { transition-delay: 30ms; }
  .nav.is-open .nav__links a:nth-child(3) { transition-delay: 60ms; }
  .nav.is-open .nav__links a:nth-child(4) { transition-delay: 90ms; }
  .nav.is-open .nav__links a:nth-child(5) { transition-delay: 120ms; }
  .cv__intro, .cv__holds, .speaking__text, .speaking__figure { grid-column: span 12; }
  .speaking__photo img { height: clamp(260px, 50vw, 420px); }
  .cards, .quotes { grid-template-columns: 1fr; }
  .js .cards [data-reveal], .js .quotes [data-reveal], .js .cv__holds [data-reveal], .js .cv__chips[data-reveal] { transition-delay: 0ms; } /* single column: no siblings to cascade with */
  .quotes { gap: 28px; }
  .book__cover, .book__detail { grid-column: span 12; }
  .book__cover img { max-width: 360px; }
  .hero__controls { right: var(--gutter); bottom: 20px; }
  .cv__symbol { width: 300px; right: -60px; top: -40px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero { min-height: calc(100svh - var(--nav-h)); align-items: flex-end; }
  .hero__content { padding-block: 96px 84px; gap: 18px; }
  .hero__content::before { inset: -25% -40%; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__reel-label { display: none; }
  .stages__row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .upcoming { grid-template-columns: 1fr; }
  .js .upcoming [data-reveal] { transition-delay: 0ms; }
  .stats { gap: 24px 28px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .social { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 4px 20px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__bottom img { height: 40px; }
  .nav__name { font-size: 0.9375rem; }
}

/* ── user preferences (last, so they win over the responsive blocks) ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transform: none; transition: opacity 200ms ease; transition-delay: 0ms; }
  .js .hero [data-reveal], .js .hero__controls[data-reveal] { transform: none; filter: none; transition: opacity 200ms ease; transition-delay: 0ms; }
  .js .stages [data-reveal] { transform: none; transition-delay: 0ms; transition-duration: 200ms; }
  .js [data-reveal="clip"] { clip-path: none; opacity: 0; transform: none; transition: opacity 200ms ease; transition-delay: 0ms; }
  .js [data-reveal="clip"].is-in { opacity: 1; }
  .js [data-reveal="clip"] img { transform: none; transition: none; }
  .js [data-reveal="rule"]::before { clip-path: none; transition: none; }
  .cv__symbol { animation: none; will-change: auto; }
  .hero__video, .hero__video.is-switching { transition: opacity 200ms ease; }
  .sound__icon, .ico-play, .ico-pause, .sound .ico-play, .sound__icon--on, .sound[aria-pressed="true"] .sound__icon--off, .sound[data-paused="true"] .ico-pause { transition: opacity 120ms ease; transform: none; }
  .sound__label, .sound__label.is-swapping { transition: opacity var(--t-swap) ease; filter: none; }
  .nav__toggle span { transition: none; }
  .link-arrow span, .btn, .sound, .link-arrow, .cv__link, .nav__brand, .nav__links a:not(.btn), .social a { transition-property: color, background-color, border-color; }
  .book__cover img { will-change: auto; }
  .btn:active, .sound:active, .link-arrow:active, .nav__toggle:active, .cv__link:active, .nav__brand:active, .nav__links a:not(.btn):active, .social a:active { transform: none; }
  .link-arrow:hover span { transform: none; }
  .nav__links { transform: none; transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .nav__links a, .nav__links a:not(.btn), .nav__links .btn, .nav.is-open .nav__links a:nth-child(n), .nav.is-open .nav__links a:active { transform: none; transition: opacity 200ms ease, color var(--t-ui) ease, border-color var(--t-ui) ease; transition-delay: 0s; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled, .nav.is-open, .nav__links { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sound, .credit { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
