/* ═══════════════════════════════════════════════════════════════
   TENNERI: dual theme (light and dark)
   Light: refined academic. Dark: cinematic product.
═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  font-size: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-text-size-adjust: 100%;
}
html::-webkit-scrollbar { width: 0; height: 0; display: none; }
img, video, iframe { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Smooth scroll (Lenis) */
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: hidden; }

/* ── FLUID SCALE ──
   Every size on the page is in rem, so the root size scales the whole layout.
   Up to 1500px wide it stays at 16px. Wider than that, it grows with the
   screen (a 2000px screen gets roughly a 133% layout), capped by height so a
   short ultrawide monitor doesn't overflow, and topped out at 24px. */
@media (min-width: 1500px) {
  html { font-size: clamp(16px, min(1.0667vw, 2.06vh), 24px); }
}

/* ── TOKENS ── */
:root, [data-theme="light"] {
  /* Paper with a trace of the logo's gold, and section bands tinted with the logo's navy */
  --void:      #faf9f6;
  --surface:   #ffffff;
  --surface-2: #eef1f6;
  --ink:       #0f0e0c;
  --body:      #2b2824;
  --muted:     #57524b;
  --rule:      #d6dae0;
  --rule-2:    #bac0c9;
  --edge:      color-mix(in srgb, var(--ink) 42%, transparent);
  --gold:      #b8913c;
  --gold-lt:   #c99d44;
  --gold-ink:  #7d5e1a;
  --navy:      #1b2d4f;
  --navy-deep: #0b1529;
  --nav-bg:    rgba(250,249,246,0.92);
  --glow:      rgba(184,145,60,0.09);
  --shadow-lg: 0 1.875rem 5rem -1.875rem rgba(15,14,12,0.35);

  --f-d: 'Cormorant Garamond', Georgia, serif;
  --f-b: 'Instrument Sans', system-ui, sans-serif;
  --f-m: 'DM Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22,1,0.36,1);

  --strip-w: 0px;
  --shell: 95rem;
  --gutter: clamp(1.25rem, 4.4vw, 4.5rem);
  --sec-y: clamp(5.5rem, 11vw, 10.5rem);

  --t-label: 0.86rem;
  --t-small: 1.04rem;
  --t-body: 1.16rem;
  --t-lead: clamp(1.28rem, 1.6vw, 1.62rem);
  --t-h3: clamp(1.75rem, 2.3vw, 2.3rem);
  --t-display: clamp(3rem, 6vw, 6.2rem);
  --t-statement: clamp(3.2rem, 7.4vw, 8.2rem);

  --cursor: #0b1529;
  --cursor-ink: #f2ede4;
}

[data-theme="dark"] {
  --void:      #04060e;
  --surface:   #0c1020;
  --surface-2: #0a0e1b;
  --ink:       #f2ede4;
  --body:      rgba(242,237,228,0.86);
  --muted:     rgba(242,237,228,0.64);
  --rule:      rgba(242,237,228,0.10);
  --rule-2:    rgba(242,237,228,0.20);
  --gold:      #d4a843;
  --gold-lt:   #e8be58;
  --gold-ink:  #e8be58;
  --navy:      #162440;
  --navy-deep: #0b1529;
  --nav-bg:    rgba(12,16,32,0.88);
  --edge:      rgba(242,237,228,0.42);
  --glow:      rgba(212,168,67,0.10);
  --shadow-lg: 0 2.5rem 7.5rem -1.875rem rgba(0,0,0,0.8);
  --cursor: #e8be58;
  --cursor-ink: #04060e;
}

@media (min-width: 981px) {
  :root { --strip-w: clamp(5.5rem, 7.5vw, 7.25rem); }
}

body {
  font-family: var(--f-b);
  background: var(--void);
  color: var(--ink);
  font-size: var(--t-body);
  line-height: 1.72;
  overflow-x: hidden;
  padding-right: var(--strip-w);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.8s var(--ease), color 0.6s var(--ease);
}

::selection { background: rgba(212,168,67,0.3); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 0.1875rem; border-radius: 2px; }

.skip-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 10000;
  padding: 0.625rem 1rem; background: var(--gold); color: #04060e;
  font-family: var(--f-b); font-size: var(--t-label);
  transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

/* ── LAYOUT PRIMITIVES ── */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: var(--sec-y) 0; position: relative; border-top: 1px solid var(--rule); }

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 6vw, 6.875rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6.5vw, 6rem);
}
.split-head-side { display: flex; flex-direction: column; gap: 1.125rem; padding-bottom: 0.6em; }

/* ── TYPE ── */
.display {
  font-family: var(--f-d);
  font-size: var(--t-display);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.028em;
  color: var(--ink);
  text-wrap: balance;
}
.display--xl { font-size: var(--t-display); }
.display em, .statement em, .hero-h em { font-style: italic; color: var(--gold-ink); }
[data-theme="dark"] .display em, [data-theme="dark"] .hero-h em { color: var(--gold-lt); }

.statement {
  font-family: var(--f-d);
  font-size: var(--t-statement);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--body);
  max-width: 34em;
  text-wrap: pretty;
}
.body-copy { font-size: var(--t-body); color: var(--body); max-width: 38em; }

.kicker {
  font-family: var(--f-b);
  font-size: var(--t-label);
  letter-spacing: 0;
  color: var(--gold-ink);
  display: flex; align-items: center; gap: 0.875rem;
  margin-bottom: 1.5rem;
}
.kicker::before { content: none; }

.mini-head {
  font-family: var(--f-b);
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--body);
  margin-bottom: 1.75rem;
}

/* Split-word reveals */
.word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.word-inner { display: inline-block; will-change: transform; }

/* ── BUTTONS ── */
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 3.375rem;
  padding: 0.9375rem 1.75rem;
  font-family: var(--f-b);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0;
  border-radius: 2px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease, border-color .25s ease, translate .35s var(--ease), scale .16s ease-out, box-shadow .35s ease;
}
.btn:active, .n-cta:active, .peek-modal-close:active, .theme-toggle:active { scale: 0.97; }
.btn-arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .btn-arr { transform: translate(2px, -2px); }
.btn:hover .btn-arr--down { transform: translateY(0.1875rem); }
.btn--gold { background: var(--gold); color: #04060e; box-shadow: 0 0.625rem 1.875rem -0.75rem rgba(184,145,60,0.7); }
.btn--gold:hover { background: var(--gold-lt); translate: 0 -2px; box-shadow: 0 1rem 2.25rem -0.75rem rgba(184,145,60,0.8); }
.btn--ghost { border-color: var(--edge); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-ink); translate: 0 -2px; }
[data-theme="dark"] .btn--ghost:hover { color: var(--gold-lt); }
.btn--small { min-height: 2.875rem; padding: 0.75rem 1.25rem; font-size: 0.84rem; }
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; translate: none; scale: 1; }

/* ── SECTION RULER (film strip) ── */
#strip {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: var(--strip-w);
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--rule);
  z-index: 180;
  flex-direction: column;
  overflow: hidden;
  transition: background 0.6s var(--ease), border-color 0.6s ease;
}
[data-theme="dark"] #strip { background: color-mix(in srgb, var(--void) 94%, #000); }
[data-theme="light"] #strip {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(0.75rem);
  border-left-color: rgba(15,14,12,0.1);
}
@media (min-width: 981px) { #strip { display: flex; } }
#strip-top {
  flex-shrink: 0;
  padding: 1.1rem 0 0.75rem;
  display: flex; flex-direction: column; align-items: flex-end;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
#strip-brand {
  padding: 0 0.75rem;
  font-family: var(--f-m);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--muted);
  transition: color .3s ease;
}
#strip-brand:hover { color: var(--gold-ink); }
#ruler { flex: 1; min-height: 0; position: relative; overflow: hidden; cursor: crosshair; }
#ruler-hover { position: absolute; left: 0; right: 0; pointer-events: none; z-index: 7; top: 0; opacity: 0; transition: opacity 0.15s; }
#ruler:hover #ruler-hover { opacity: 1; }
#ruler-hover-line { position: absolute; left: 0; right: 0; height: 1px; background: var(--muted); }
#ruler-hover-pct {
  position: absolute; right: 1rem; top: -0.5rem;
  font-family: var(--f-m); font-size: 0.625rem; color: var(--muted);
  letter-spacing: 0.04em; white-space: nowrap;
}
#ruler-hover-band {
  position: absolute; left: 0; right: 0;
  background: color-mix(in srgb, var(--gold) 7%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--gold) 18%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 18%, transparent);
  transition: top .3s var(--ease), height .3s var(--ease);
}
.tick { position: absolute; right: 0; height: 1px; display: flex; align-items: center; }
.tick-line-major { width: 0.75rem; height: 1px; background: color-mix(in srgb, var(--ink) 22%, transparent); flex-shrink: 0; }
.tick-line-minor { width: 0.3125rem; height: 1px; background: color-mix(in srgb, var(--ink) 12%, transparent); flex-shrink: 0; }
[data-theme="light"] .tick-line-major { background: color-mix(in srgb, var(--ink) 38%, transparent); }
[data-theme="light"] .tick-line-minor { background: color-mix(in srgb, var(--ink) 22%, transparent); }
.tick-num {
  position: absolute; right: 1rem; top: 0;
  font-family: var(--f-m); font-size: 0.625rem; line-height: 1;
  color: color-mix(in srgb, var(--ink) 26%, transparent);
  transform: translateY(-50%); white-space: nowrap; letter-spacing: 0.04em;
}
[data-theme="light"] .tick-num { color: color-mix(in srgb, var(--ink) 45%, transparent); }
#needle { position: absolute; left: 0; right: 0; height: 1px; background: var(--gold); z-index: 15; pointer-events: none; }
#needle::after { content: ''; position: absolute; right: 0; top: -0.1875rem; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0.75rem var(--gold); }
#needle-pct {
  position: absolute; right: 1rem; top: -0.5625rem; z-index: 16;
  font-family: var(--f-m); font-size: 0.625rem; color: var(--gold-ink);
  letter-spacing: 0.04em; white-space: nowrap;
}
#strip-bottom { flex-shrink: 0; border-top: 1px solid var(--rule); overflow: hidden; }

#strip-labels { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.strip-travel {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  pointer-events: none; cursor: pointer;
}
.strip-char {
  position: absolute; left: 0; top: 0;
  pointer-events: auto; cursor: pointer;
  font-family: var(--f-m);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
  white-space: pre;
  color: var(--muted);
  transform-origin: center center;
  will-change: transform, font-size;
  transition: color 0.45s var(--ease);
}
[data-theme="light"] .strip-char { color: rgba(15,14,12,0.5); }
.strip-travel:hover .strip-char,
.strip-travel:focus-visible .strip-char { color: var(--gold-ink); }
.strip-travel.is-active .strip-char { color: var(--gold); }
[data-theme="light"] .strip-travel.is-active .strip-char { color: var(--navy-deep); }
.strip-travel.is-moving .strip-char { color: var(--gold) !important; }
.strip-travel:focus-visible { outline: none; }

/* ── CUSTOM CURSOR (navy dot and ring in light mode, gold in dark) ── */
[data-cursor], [data-cursor-dot] {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  display: none;
  opacity: 0;
  transition: opacity .3s ease;
}
[data-cursor] { width: 0; height: 0; }
.cursor-shape {
  position: absolute; left: 0; top: 0;
  width: 2.875rem; height: 2.875rem;
  margin: -1.4375rem 0 0 -1.4375rem;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--cursor) 70%, transparent);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease),
              background-color .3s ease, border-color .3s ease;
}
[data-cursor-dot] {
  width: 0.5rem; height: 0.5rem;
  margin: -0.25rem 0 0 -0.25rem;
  border-radius: 50%;
  background: var(--cursor);
}
[data-cursor].is-hover .cursor-shape {
  width: 4.75rem; height: 4.75rem; margin: -2.375rem 0 0 -2.375rem;
  background: color-mix(in srgb, var(--cursor) 12%, transparent);
  border-color: var(--cursor);
}
[data-cursor].has-label .cursor-shape {
  width: 5.5rem; height: 5.5rem; margin: -2.75rem 0 0 -2.75rem;
  background: var(--cursor); border-color: var(--cursor);
}
[data-cursor-dot].is-hover { opacity: 0 !important; }
[data-cursor].on-gold .cursor-shape { border-color: #0b1529; background: rgba(11,21,41,0.14); }
[data-cursor-dot].on-gold { background: #0b1529; }
[data-cursor].is-text, [data-cursor-dot].is-text { opacity: 0 !important; }
.cursor-label {
  position: absolute; left: 0; top: 0;
  width: 5.5rem; height: 5.5rem; margin: -2.75rem 0 0 -2.75rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-m); font-size: 0.74rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--cursor-ink);
  opacity: 0; transform: scale(0.8);
  transition: opacity .2s ease, transform .3s var(--ease);
}
[data-cursor].has-label .cursor-label { opacity: 1; transform: none; }

/* Auto-contrast: the cursor inverts whatever is under it, so it reads on any section */
[data-cursor], [data-cursor-dot] { mix-blend-mode: difference; }
[data-cursor-dot], [data-cursor-dot].on-gold { background: #fff; }
[data-cursor] .cursor-shape, [data-cursor].on-gold .cursor-shape { border-color: #fff; background: transparent; }
[data-cursor].is-hover .cursor-shape { background: #fff; border-color: #fff; }
/* The labelled ring ("Watch") keeps the brand fill so its label stays readable */
[data-cursor].has-label { mix-blend-mode: normal; }
[data-cursor].has-label .cursor-shape { background: var(--cursor); border-color: var(--cursor); }

/* Hide the native pointer on every element, in both themes */
html.cursor-ready [data-cursor], html.cursor-ready [data-cursor-dot] { display: block; }
html.cursor-ready.cursor-live [data-cursor], html.cursor-ready.cursor-live [data-cursor-dot] { opacity: 1; }
html.cursor-ready, html.cursor-ready *, html.cursor-ready *::before, html.cursor-ready *::after { cursor: none !important; }
html.cursor-ready input:not([type="range"]), html.cursor-ready textarea { cursor: text !important; }
/* Real pointer while a browser dialog or another app has focus */
html.cursor-ready.native-cursor, html.cursor-ready.native-cursor * { cursor: auto !important; }
html.cursor-ready.native-cursor a, html.cursor-ready.native-cursor button, html.cursor-ready.native-cursor [role="button"] { cursor: pointer !important; }
html.native-cursor [data-cursor], html.native-cursor [data-cursor-dot] { opacity: 0 !important; transition: opacity .15s ease; }
/* While a video player is open, its controls need the real pointer */
html.cursor-ready.modal-video, html.cursor-ready.modal-video * { cursor: auto !important; }
html.modal-video [data-cursor], html.modal-video [data-cursor-dot] { opacity: 0 !important; }

/* ── PRELOADER ── */
html:not(.js) #preloader, html.no-anim #preloader { display: none !important; }
#preloader {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--void);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
#pl-wordmark {
  font-family: var(--f-m);
  font-size: clamp(2.8rem, 10vw, 7rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink);
  line-height: 1;
  display: flex;
}
#pl-tagline {
  font-family: var(--f-d);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-style: italic;
  color: var(--gold-ink);
  margin-top: 1.4rem;
}
#pl-bar { width: 12.5rem; height: 1px; background: linear-gradient(90deg, var(--gold), var(--gold-lt), transparent); margin-top: 2.2rem; }
.intro-seen #preloader { display: none !important; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 1.125rem;
  left: calc((100% - var(--strip-w)) / 2);
  transform: translateX(-50%);
  z-index: 200;
  height: 4.25rem;
  width: calc(100% - var(--strip-w) - 1.5rem);
  max-width: calc(var(--shell) + 1.5rem);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(var(--gutter) - 0.75rem);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  transition:
    width .65s var(--ease), height .65s var(--ease), top .65s var(--ease),
    padding .55s var(--ease), border-radius .65s var(--ease), border-color .4s ease,
    background .45s ease, box-shadow .5s ease, backdrop-filter .4s ease;
}
nav.scrolled {
  top: 0.875rem;
  height: 3.5rem;
  width: min(48.75rem, calc(100% - var(--strip-w) - 2.5rem));
  padding: 0 0.625rem 0 1.375rem;
  border-radius: 6.25rem;
  background: var(--nav-bg);
  border-color: rgba(212,168,67,0.22);
  box-shadow: 0 1.125rem 3.125rem -1.125rem rgba(0,0,0,0.45);
  backdrop-filter: blur(1.25rem) saturate(150%);
  -webkit-backdrop-filter: blur(1.25rem) saturate(150%);
}
[data-theme="light"] nav.scrolled {
  background: rgba(11,21,41,0.96);
  border-color: rgba(212,168,67,0.32);
  box-shadow: 0 1.125rem 3.125rem -1rem rgba(11,21,41,0.55);
}
.n-logo { display: flex; align-items: center; gap: 0; transition: gap .5s var(--ease); }
.n-logo-img { height: 1.5rem; width: 0; opacity: 0; transition: width .5s var(--ease), opacity .3s ease, filter .4s ease; }
[data-theme="dark"] .n-logo-img,
[data-theme="light"] nav.scrolled .n-logo-img { filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(5deg); }
nav.scrolled .n-logo { gap: 0.625rem; }
nav.scrolled .n-logo-img { width: 1.5rem; opacity: 1; }
.n-logo-name {
  font-family: var(--f-d);
  font-size: 1.9rem; font-weight: 600;
  color: var(--ink);
  overflow: hidden; white-space: nowrap;
  transition: font-size .5s var(--ease), opacity .3s ease, max-width .5s var(--ease);
  max-width: 12.5rem;
}
nav.scrolled .n-logo-name { opacity: 0; max-width: 0; }

.n-links { display: flex; align-items: center; gap: clamp(1.125rem, 2.4vw, 2.125rem); transition: gap .5s var(--ease); }
nav.scrolled .n-links { gap: 1.25rem; }
.n-links a {
  font-family: var(--f-b);
  font-size: 0.9rem; letter-spacing: 0;
  color: var(--body);
  position: relative;
  transition: color .2s;
}
.n-links a:not(.n-cta)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -0.3125rem; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.n-links a:not(.n-cta):hover { color: var(--ink); }
.n-links a:not(.n-cta):hover::after, .n-links a.is-current::after { transform: scaleX(1); }
.n-links a.is-current { color: var(--ink); }
[data-theme="light"] nav.scrolled .n-links a.is-current { color: #f2ede4; }
[data-theme="light"] nav.scrolled .n-links a:not(.n-cta) { color: rgba(242,237,228,0.78); }
[data-theme="light"] nav.scrolled .n-links a:not(.n-cta):hover { color: #f2ede4; }
.n-cta {
  display: inline-flex; align-items: center;
  transition: background .2s, scale .16s ease-out;
  padding: 0.5625rem 1.125rem;
  background: var(--gold);
  color: #04060e !important;
  border-radius: 6.25rem;
  font-weight: 500;
  transition: background .2s;
}
.n-cta:hover { background: var(--gold-lt); }

.n-right { display: flex; align-items: center; gap: 0.625rem; }
.theme-toggle {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(212,168,67,0.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-ink);
  position: relative;
  transition: border-color .25s, color .25s, transform .3s var(--ease), box-shadow .3s, width .5s var(--ease), height .5s var(--ease);
}
[data-theme="dark"] .theme-toggle, [data-theme="light"] nav.scrolled .theme-toggle { color: var(--gold-lt); }
.theme-toggle:hover { border-color: var(--gold); transform: scale(1.06); box-shadow: 0 0 1.125rem rgba(212,168,67,0.3); }
.theme-toggle svg { width: 1.0625rem; height: 1.0625rem; transition: opacity .3s, transform .45s var(--ease); }
.theme-toggle .icon-sun { position: absolute; opacity: 0; transform: rotate(-40deg) scale(0.6); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(40deg) scale(0.6); }
nav.scrolled .theme-toggle { width: 2.25rem; height: 2.25rem; }
.theme-toggle::after {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1.5px solid var(--gold); opacity: 0; pointer-events: none;
  animation: ttPulse 1.6s ease-out 4.6s 2;
}
.intro-seen .theme-toggle::after { animation-delay: 1.4s; }
@keyframes ttPulse { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(1.9); opacity: 0; } }

.n-ham {
  display: none; flex-direction: column; justify-content: center; gap: 0.3125rem;
  width: 2.25rem; height: 2.25rem; align-items: center;
  opacity: 0; pointer-events: none; max-width: 0; overflow: hidden;
  transition: opacity .3s, max-width .4s;
}
.n-ham span { width: 1.25rem; height: 1.5px; background: var(--ink); display: block; }
[data-theme="light"] nav.scrolled .n-ham span { background: #f2ede4; }

.mob-nav {
  display: none; position: fixed;
  top: 5rem; left: 0.75rem; right: 0.75rem;
  background: var(--nav-bg);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 0.625rem 1.5rem;
  flex-direction: column;
  z-index: 199;
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
}
.mob-nav.open { display: flex; }
.mob-nav a {
  font-family: var(--f-d); font-size: 1.6rem;
  color: var(--ink);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.mob-nav a:last-child { border-bottom: 0; }
[data-theme="light"] .mob-nav { background: rgba(11,21,41,0.97); border-color: rgba(212,168,67,0.25); }
[data-theme="light"] .mob-nav a { color: #f2ede4; border-color: rgba(242,237,228,0.12); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--void);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 55% at 8% 92%, var(--glow) 0%, transparent 65%),
    radial-gradient(ellipse 70% 60% at 92% 8%, rgba(27,45,79,0.12) 0%, transparent 60%);
}
[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 70% 60% at 10% 90%, rgba(212,168,67,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 80% 70% at 90% 10%, rgba(22,36,64,0.5) 0%, transparent 65%),
    linear-gradient(160deg, #030508 0%, #080d18 40%, #0e1830 70%, #050810 100%);
}
.hero-glow {
  position: absolute; z-index: 0;
  width: 50vmax; height: 50vmax; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  top: -15vmax; right: -8vmax;
  pointer-events: none;
  animation: glow-orbit 28s ease-in-out infinite;
}
@keyframes glow-orbit {
  0%,100% { transform: translate(0,0) scale(1); }
  40%     { transform: translate(-5%,6%) scale(1.1); }
  70%     { transform: translate(4%,-3%) scale(0.94); }
}
.hero-inner {
  position: relative; z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2.5rem, 4.6vw, 6rem);
  align-items: center;
  padding-top: clamp(7.5rem, 14vh, 10rem);
  padding-bottom: clamp(3rem, 7vh, 5.5rem);
}
.hero-text { display: flex; flex-direction: column; container-type: inline-size; }
.hero-eyebrow {
  font-family: var(--f-b);
  font-size: var(--t-label);
  letter-spacing: 0;
  color: var(--body);
  margin-bottom: 1.875rem;
}
.hero-eyebrow span { color: var(--gold-ink); margin: 0 0.375rem; }
.hero-h {
  font-family: var(--f-d);
  font-size: clamp(2.8rem, 5.6vw, 6.6rem);
  font-size: min(14.5cqi, 7.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 2rem;
}
.hero-h .hero-line { display: block; white-space: nowrap; }
.hero-sub {
  font-size: var(--t-lead);
  color: var(--body);
  line-height: 1.55;
  max-width: 30em;
  margin-bottom: 2.5rem;
}
.hero-cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.875rem; }
.hero-avail {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: var(--t-small);
  color: var(--body);
}
.hero-avail-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: #3fa66b; flex-shrink: 0;
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, #3fa66b 20%, transparent);
  animation: availPulse 2.6s ease-in-out infinite;
}
@keyframes availPulse { 50% { box-shadow: 0 0 0 0.4375rem color-mix(in srgb, #3fa66b 8%, transparent); } }

.hero-demo { display: flex; flex-direction: column; gap: 1.375rem; }
.hero-video-frame {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #030508;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-lg);
}
.hero-video-frame { cursor: pointer; transition: box-shadow .5s ease, border-color .4s ease; }
@media (hover: hover) and (pointer: fine) {
  .hero-video-frame:hover { border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
}
.hero-video-frame iframe,
.hero-video-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; pointer-events: none;
}
.hero-video-frame video { object-fit: cover; }
.hero-demo-cap {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--rule);
}
.hero-demo-name { font-family: var(--f-d); font-size: 1.85rem; font-weight: 500; line-height: 1.1; color: var(--ink); display: block; margin-bottom: 0.375rem; }
.hero-demo-desc { font-size: var(--t-small); color: var(--body); line-height: 1.55; max-width: 34em; }

.hero-ticker-wrap {
  position: relative; z-index: 2;
  border-top: 1px solid var(--rule);
  padding: 1rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero-ticker-track { display: flex; width: max-content; white-space: nowrap; animation: ticker-scroll var(--ticker-dur, 40s) linear infinite; will-change: transform; }
.hero-ticker-set { display: flex; flex-shrink: 0; }
.hero-ticker-item {
  display: inline-flex; align-items: center; gap: 1.75rem;
  padding-right: 1.75rem;
  font-family: var(--f-b); font-size: 1.02rem; font-weight: 500;
  letter-spacing: 0;
  color: var(--body);
}
.hero-ticker-item::after { content: ''; width: 0.25rem; height: 0.25rem; border-radius: 50%; background: var(--gold); opacity: .6; }
.hero-ticker-badge { color: var(--gold-ink); }
@keyframes ticker-scroll { from { transform: translate3d(0,0,0); } to { transform: translate3d(calc(var(--ticker-set, 62.5rem) * -1),0,0); } }

/* ── ROSE ── */
.sec--rose { background: var(--void); }
.rose-stage { perspective: 100rem; }
.rose-window {
  position: relative;
  border-radius: 0.875rem;
  overflow: hidden;
  background: #05080f;
  border: 1px solid rgba(242,237,228,0.1);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(212,168,67,0.06);
  transform-origin: 50% 0%;
  will-change: transform;
}
.rose-titlebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 2.625rem;
  padding: 0 1.125rem;
  background: linear-gradient(180deg, #111829, #0a0f1d);
  border-bottom: 1px solid rgba(242,237,228,0.08);
  font-family: var(--f-m);
  font-size: 0.78rem;
  color: rgba(242,237,228,0.7);
}
.rose-dots { display: flex; gap: 0.5rem; }
.rose-dots i { width: 0.6875rem; height: 0.6875rem; border-radius: 50%; background: rgba(242,237,228,0.16); }
.rose-dots i:first-child { background: #d4a843; }
.rose-titlebar-name { letter-spacing: .06em; color: #f2ede4; }
.rose-titlebar-name span { color: rgba(242,237,228,0.45); margin-left: 0.625rem; }
.rose-titlebar-live { justify-self: end; display: flex; align-items: center; gap: 0.5rem; color: rgba(242,237,228,0.5); }
.rose-titlebar-live i { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: #3fa66b; box-shadow: 0 0 0.5rem #3fa66b; }
.rose-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.rose-screen iframe,
.rose-screen video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.rose-screen video { object-fit: cover; background: #000; }

.rose-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(2.5rem, 6vw, 6.875rem);
  margin-top: clamp(4rem, 8vw, 7.5rem);
  align-items: start;
}
.rose-stat-n {
  display: flex; align-items: flex-start;
  font-family: var(--f-d);
  font-size: clamp(6rem, 13vw, 12.5rem);
  font-weight: 300;
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--gold-ink);
  font-variant-numeric: lining-nums tabular-nums;
}
[data-theme="dark"] .rose-stat-n { color: var(--gold-lt); }
.rose-stat-pct { font-size: 0.42em; margin-top: 0.12em; margin-left: 0.04em; letter-spacing: 0; }
.rose-stat p { margin-top: 1.375rem; font-size: var(--t-lead); line-height: 1.5; color: var(--body); max-width: 17em; }

.rose-evo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: evo; }
.rose-evo li { padding: 1.625rem 1.75rem 0 0; border-top: 1px solid var(--rule-2); position: relative; }
.rose-evo li::before {
  content: ''; position: absolute; top: -0.25rem; left: 0;
  width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--gold);
}
.rose-evo li + li { padding-left: 1.75rem; }
.rose-evo li + li::before { left: 1.75rem; }
.rose-evo-n { font-family: var(--f-b); font-size: var(--t-label); color: var(--gold-ink); display: block; margin-bottom: 0.875rem; }
.rose-evo h4 { font-family: var(--f-d); font-size: var(--t-h3); font-weight: 500; line-height: 1.1; color: var(--ink); margin-bottom: 0.625rem; }
.rose-evo p { font-size: var(--t-small); color: var(--body); line-height: 1.6; }

.rose-dock-wrap { margin-top: clamp(4rem, 8vw, 6.875rem); }
.rose-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule);
}
.rose-dock li { padding: 2rem 1.75rem 2.125rem; border-left: 1px solid var(--rule); transition: background .4s ease; }
.rose-dock li:first-child { border-left: 0; padding-left: 0; }
.rose-dock li:hover { background: color-mix(in srgb, var(--gold) 4%, transparent); }
.rose-dock-icon {
  width: 2.875rem; height: 2.875rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-ink);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 26%, transparent);
  margin-bottom: 1.375rem;
  transition: transform .45s var(--ease);
}
[data-theme="dark"] .rose-dock-icon { color: var(--gold-lt); }
.rose-dock li:hover .rose-dock-icon { transform: translateY(-0.1875rem) rotate(-4deg); }
.rose-dock-icon svg { width: 1.375rem; height: 1.375rem; }
.rose-dock h4 { font-family: var(--f-d); font-size: 1.7rem; font-weight: 500; line-height: 1.15; color: var(--ink); margin-bottom: 0.5rem; }
.rose-dock p { font-size: var(--t-small); color: var(--body); line-height: 1.55; }

/* ── BUILDS ── */
.sec--builds { background: var(--surface-2); }
.builds-head {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
  margin-bottom: clamp(3.5rem, 7vw, 6.5rem);
}
.builds-side { display: flex; flex-direction: column; gap: 1.625rem; padding-bottom: 0.5em; }
.peek-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.peek-card {
  position: relative;
  border-radius: 0.875rem;
  overflow: hidden;
  background: #030508;
  cursor: pointer;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
  transition: transform .6s var(--ease), box-shadow .6s ease;
}
.peek-card:hover { transform: translateY(-0.375rem); }
.peek-vid { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.peek-vid iframe {
  position: absolute; top: 50%; left: 50%;
  width: 134%; height: 134%;
  transform: translate(-50%, -50%) scale(1);
  border: 0; pointer-events: none;
  transition: transform 1.1s var(--ease);
}
.peek-card:hover .peek-vid iframe { transform: translate(-50%, -50%) scale(1.05); }
.peek-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(4,6,14,0) 40%, rgba(4,6,14,0.9) 100%);
  pointer-events: none;
}
.peek-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem;
  padding: clamp(1.25rem, 2.4vw, 2.125rem);
}
.peek-title { font-family: var(--f-d); font-size: clamp(1.9rem, 2.8vw, 2.9rem); font-weight: 400; line-height: 1.05; color: #f2ede4; margin-bottom: 0.5rem; }
.peek-type { font-size: var(--t-small); color: rgba(242,237,228,0.86); max-width: 30em; }
.peek-play {
  flex-shrink: 0;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,168,67,0.16);
  border: 1px solid rgba(212,168,67,0.6);
  color: #e8be58;
  backdrop-filter: blur(0.375rem);
  transition: background .3s ease, transform .45s var(--ease), color .3s ease;
}
.peek-play svg { width: 1.25rem; height: 1.25rem; margin-left: 0.1875rem; }
.peek-card:hover .peek-play, .peek-card:focus-visible .peek-play { background: #d4a843; color: #04060e; transform: scale(1.08); }

/* ── CRAFT ── */
.sec--craft { background: var(--void); }
.craft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.craft-item {
  padding: 2.125rem clamp(1.5rem, 3vw, 3rem) 0.5rem;
  border-left: 1px solid var(--rule);
  position: relative;
}
.craft-item:first-child { border-left: 0; padding-left: 0; }
.craft-item.no-bar::before {
  content: ''; position: absolute; top: 0; left: clamp(1.5rem, 3vw, 3rem);
  width: 2.5rem; height: 2px; background: var(--gold);
}
.craft-item:first-child::before { left: 0; }
.craft-title { font-family: var(--f-d); font-size: var(--t-h3); font-weight: 500; line-height: 1.1; color: var(--ink); margin-bottom: 1.125rem; text-wrap: balance; }
.craft-item p { color: var(--body); font-size: var(--t-body); line-height: 1.7; }

.schools { margin-top: clamp(5rem, 10vw, 8.75rem); padding-top: 2.5rem; border-top: 1px solid var(--rule); }
.schools-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.schools-list li { display: flex; flex-direction: column; gap: 0.625rem; }
.school-name { font-family: var(--f-d); font-size: clamp(1.7rem, 2.7vw, 2.6rem); font-weight: 400; line-height: 1.05; color: var(--ink); letter-spacing: -0.015em; }
.school-note { font-size: var(--t-small); color: var(--body); }

/* ── QUOTE ── */
.quote {
  position: relative;
  background: linear-gradient(150deg, var(--navy) 0%, #0b1324 100%);
  padding: clamp(6.875rem, 14vw, 12.5rem) 0;
  overflow: hidden;
  color: #f2ede4;
}
[data-theme="light"] .quote { background: linear-gradient(150deg, #1b2d4f 0%, #0b1529 100%); }
.quote::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(212,168,67,0.12), transparent 70%);
  pointer-events: none;
}
.quote-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.quote-mark { font-family: var(--f-d); font-size: clamp(6rem, 12vw, 10rem); line-height: .6; color: #d4a843; opacity: .5; height: .45em; }
.quote-text {
  font-family: var(--f-d);
  font-size: clamp(2.2rem, 4.6vw, 4.6rem);
  font-weight: 400; font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 22em;
  text-wrap: balance;
  color: #f2ede4;
}
.quote-by { margin-top: 2.5rem; font-family: var(--f-b); font-size: var(--t-label); letter-spacing: 0; color: rgba(242,237,228,0.8); }

/* ── METHOD ── */
.sec--method { background: var(--surface-2); }
.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(2.5rem, 7vw, 8.125rem);
  align-items: start;
}
.method-aside { position: sticky; top: 8.125rem; display: flex; flex-direction: column; gap: 1.75rem; }
.method-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(2.125rem, 4vw, 3.25rem) 0;
  border-top: 1px solid var(--rule-2);
}
.method-item:last-child { border-bottom: 1px solid var(--rule-2); }
.method-num {
  font-family: var(--f-d);
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  font-weight: 300;
  line-height: .9;
  color: var(--gold-ink);
  transition: color .5s var(--ease), transform .6s var(--ease);
}
.method-item:hover .method-num { transform: translateX(0.375rem); }
[data-theme="dark"] .method-num { color: var(--gold); }
.method-title { font-family: var(--f-d); font-size: var(--t-h3); font-weight: 500; line-height: 1.1; color: var(--ink); margin-bottom: 0.875rem; }
.method-item p { color: var(--body); max-width: 38em; }

/* ── ABOUT ── */
.sec--about { background: var(--void); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(2.5rem, 6vw, 7.5rem);
  align-items: start;
}
.about-aside { position: sticky; top: 6.875rem; }
.about-split {
  position: relative;
  width: min(100%, calc((100vh - 14.375rem) * 0.8));
  min-width: min(100%, 22.5rem);
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  --split: 50%;
  isolation: isolate;
  touch-action: pan-y;
}
@media (hover: hover) and (pointer: fine) {
  .about-split:hover .as-handle span { scale: 1.06; }
}
.about-split img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none; -webkit-user-drag: none;
}
/* The alt photo sits about 2% higher in its frame; this lines the two faces up at the divider */
.as-b { object-position: 50% 24%; clip-path: inset(0 0 0 var(--split)); }
.as-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split);
  width: 2px; margin-left: -1px;
  background: #f2ede4;
  box-shadow: 0 0 0 1px rgba(4,6,14,0.15), 0 0 1.125rem rgba(4,6,14,0.35);
  z-index: 3; pointer-events: none;
}
.as-handle span {
  position: absolute; top: 50%; left: 50%;
  width: 3.375rem; height: 3.375rem; margin: -1.6875rem 0 0 -1.6875rem;
  border-radius: 50%;
  background: #f2ede4;
  box-shadow: 0 0.5rem 1.5rem rgba(4,6,14,0.35);
  display: flex; align-items: center; justify-content: center;
  color: #0b1529;
  transition: transform .35s var(--ease);
}
.as-handle span svg { width: 1.625rem; height: 1.625rem; }
.about-split:hover .as-handle span, .about-split.is-dragging .as-handle span { transform: scale(1.08); }
.about-split.is-focused .as-handle span { outline: 2px solid var(--gold); outline-offset: 0.25rem; }
.as-tag {
  position: absolute; bottom: 1.125rem; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  background: rgba(4,6,14,0.72);
  backdrop-filter: blur(0.5rem); -webkit-backdrop-filter: blur(0.5rem);
  color: #f2ede4;
  font-family: var(--f-d); font-size: 1.3rem; font-weight: 500; line-height: 1.1;
  transition: opacity .3s ease;
  pointer-events: none;
}
.as-tag small { font-family: var(--f-b); font-size: 0.86rem; font-weight: 400; color: rgba(242,237,228,0.82); }
.as-tag--a { left: 1.125rem; }
.as-tag--b { right: 1.125rem; top: 1.125rem; bottom: auto; text-align: right; }
@media (max-width: 680px) { .as-tag { font-size: 1.1rem; padding: 8px 12px; } .as-tag small { font-size: .8rem; } }
.about-split.hide-a .as-tag--a, .about-split.hide-b .as-tag--b { opacity: 0; }
.about-split { cursor: grab; user-select: none; -webkit-user-select: none; }
.about-split.is-dragging { cursor: grabbing; }
.as-range {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.about-hint { display: block; margin-top: 0.875rem; font-size: var(--t-small); color: var(--body); }
.about-hint b { font-weight: 600; color: var(--gold-ink); }
[data-theme="dark"] .about-hint b { color: var(--gold-lt); }
.about-caption { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 1.375rem; }
.about-name { font-family: var(--f-d); font-size: 1.75rem; font-weight: 500; color: var(--ink); line-height: 1.1; }
.about-role { font-size: var(--t-small); color: var(--body); }
.about-name, .about-role { display: block; }
.about-caption.is-b .about-name { color: var(--gold-ink); }
[data-theme="dark"] .about-caption.is-b .about-name { color: var(--gold-lt); }
.about-li {
  display: inline-flex; align-items: center; gap: 0.625rem; margin-top: 0.875rem;
  font-family: var(--f-b); font-size: var(--t-label); letter-spacing: 0;
  color: var(--gold-ink);
  transition: color .2s ease;
}
[data-theme="dark"] .about-li { color: var(--gold-lt); }
.about-li svg { width: 0.9375rem; height: 0.9375rem; flex-shrink: 0; }
.about-li span { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.about-body .display { margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.about-copy p { font-size: var(--t-body); color: var(--body); line-height: 1.8; margin-bottom: 1.3em; max-width: 36em; }
.about-copy p:last-child { margin-bottom: 0; }
.about-pull {
  margin: clamp(2.5rem, 5vw, 4rem) 0;
  padding: 0.5rem 0 0.5rem clamp(1.5rem, 3vw, 2.5rem);
  border-left: 2px solid var(--gold);
}
.about-pull p { font-family: var(--f-d); font-style: italic; font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.15; color: var(--ink); text-wrap: balance; }
.about-pull-link {
  display: inline-flex; gap: 0.5rem; margin-top: 0.625rem;
  font-size: var(--t-small); color: var(--gold-ink);
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
  transition: color .2s ease;
}
[data-theme="dark"] .about-pull-link { color: var(--gold-lt); }
.about-pull-link:hover { color: var(--ink); }
.about-pull cite { display: block; margin-top: 1rem; font-style: normal; font-family: var(--f-b); font-size: var(--t-label); letter-spacing: 0; color: var(--body); }

/* ── CONTACT ── */
.sec--contact { background: var(--surface-2); }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7.5rem);
  align-items: start;
}
.contact-intro { display: flex; flex-direction: column; gap: 1.875rem; }
.contact-ways { margin-top: 0.625rem; border-top: 1px solid var(--rule-2); }
.contact-ways a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule-2);
  font-family: var(--f-d); font-size: clamp(1.35rem, 2vw, 1.8rem); color: var(--ink);
  transition: color .3s ease, padding .45s var(--ease);
}
.cw-arr { font-family: var(--f-b); font-size: 1.1rem; color: var(--gold-ink); transition: transform .45s var(--ease); }
.contact-ways a:hover { color: var(--gold-ink); padding-left: 0.625rem; }
[data-theme="dark"] .contact-ways a:hover { color: var(--gold-lt); }
.contact-ways a:hover .cw-arr { transform: translate(0.1875rem, -0.1875rem); }
.cw-email { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--rule-2); }
.cw-email a { flex: 1; border-bottom: 0; }
.cw-copy {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.875rem; border: 1px solid var(--edge); border-radius: 6.25rem;
  font-family: var(--f-b); font-size: 0.74rem; letter-spacing: 0;
  color: var(--body);
  transition: border-color .2s ease, color .2s ease, background .2s ease, scale .16s ease-out;
}
.cw-copy svg { width: 0.9375rem; height: 0.9375rem; }
.cw-copy:hover { border-color: var(--gold); color: var(--gold-ink); }
[data-theme="dark"] .cw-copy:hover { color: var(--gold-lt); }
.cw-copy:active { scale: 0.96; }
.cw-copy.is-done { background: var(--gold); border-color: var(--gold); color: #04060e; }
.toast {
  position: fixed; left: 50%; bottom: 1.75rem; z-index: 1000;
  translate: -50% 1rem;
  padding: 0.75rem 1.25rem; border-radius: 6.25rem;
  background: var(--navy-deep); color: #f2ede4;
  border: 1px solid rgba(212,168,67,0.35);
  box-shadow: 0 1rem 2.5rem -0.75rem rgba(0,0,0,0.5);
  font-size: 0.98rem;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, translate .35s var(--ease);
}
.toast.show { opacity: 1; translate: -50% 0; }

.contact-form-inner {
  padding: clamp(1.75rem, 3.6vw, 3.25rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0.875rem;
  box-shadow: var(--shadow-lg);
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.cf-group { margin-bottom: 1.625rem; }
.cf-label {
  display: block; font-family: var(--f-b); font-size: 0.8rem;
  letter-spacing: 0;
  color: var(--gold-ink); margin-bottom: 0.5rem;
}
[data-theme="dark"] .cf-label { color: var(--gold); }
.cf-input, .cf-select, .cf-textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--edge);
  border-radius: 0;
  padding: 0.625rem 0 0.75rem;
  font-family: var(--f-b); font-size: 1.12rem;
  color: var(--ink); outline: none;
  transition: border-color .3s;
}
.cf-input:focus, .cf-select:focus, .cf-textarea:focus { border-bottom-color: var(--gold); }
.cf-input:focus-visible, .cf-select:focus-visible, .cf-textarea:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--gold); }
.cf-input::placeholder, .cf-textarea::placeholder { color: var(--muted); }
.cf-select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4a843' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .25rem center;
  padding-right: 1.5rem;
}
.cf-select option { background: var(--surface); color: var(--ink); }
.cf-optional { text-transform: none; letter-spacing: 0; color: var(--muted); font-family: var(--f-b); }
.cf-textarea { resize: vertical; min-height: 7.5rem; line-height: 1.6; }
#cf-submit-btn { margin-top: 0.625rem; min-height: 3.5rem; }

/* ── FOOTER ── */
.foot { background: var(--void); border-top: 1px solid var(--rule); padding: clamp(3.5rem, 7vw, 6rem) 0 2.25rem; overflow: hidden; }
.foot-mark::before { content: 'Tenneri'; }
.foot-mark {
  display: block;
  font-family: var(--f-d);
  font-size: clamp(5rem, 19vw, 18rem);
  font-weight: 300;
  line-height: .8;
  letter-spacing: -0.05em;
  color: color-mix(in srgb, var(--ink) 9%, transparent);
  transition: color .6s var(--ease);
  margin-bottom: clamp(2.25rem, 4vw, 3.75rem);
  margin-left: -0.04em;
}

.foot-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.125rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.foot-links { display: flex; gap: 1.625rem; flex-wrap: wrap; }
.foot-links a { font-family: var(--f-b); font-size: 0.8rem; letter-spacing: 0; color: var(--muted); transition: color .2s; }
.foot-links a:hover { color: var(--gold-ink); }
.foot-copy { font-size: 1rem; color: var(--body); }

/* ── VIDEO MODAL ── */
.peek-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(4,6,14,0.9); backdrop-filter: blur(0.625rem);
  align-items: center; justify-content: center; padding: 1.5rem;
}
.peek-modal-overlay.open { display: flex; }
.peek-modal {
  background: var(--surface); width: min(100%, calc((100vh - 9.375rem) * 16 / 9)); max-width: 100rem;
  border-radius: 0.875rem; overflow: hidden;
  box-shadow: 0 2.5rem 6.25rem rgba(0,0,0,0.5);
  border: 1px solid var(--rule);
}
.peek-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.125rem 1.5rem; border-bottom: 1px solid var(--rule); }
.peek-modal-title { font-family: var(--f-d); font-size: 1.4rem; font-weight: 500; color: var(--ink); line-height: 1.1; }
.peek-modal-type { font-size: 1rem; color: var(--body); margin-top: 0.25rem; }
.peek-modal-actions { display: flex; gap: 0.625rem; align-items: center; }
.peek-modal-close {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--rule-2); color: var(--muted); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s, border-color .2s;
}
.peek-modal-close:hover { color: var(--ink); border-color: var(--gold); }
.peek-modal-video { padding-top: 56.25%; position: relative; background: #000; }
.peek-modal-video:fullscreen { padding-top: 0; width: 100vw; height: 100vh; }
.peek-modal-video iframe,
.peek-modal-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.peek-modal-video video { object-fit: contain; background: #000; }

/* ── ROSE MODAL ── */
#rose-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 800;
  background: rgba(2,3,5,0.92); backdrop-filter: blur(0.75rem);
  overflow-y: auto; padding: 2.5rem 1.5rem;
}
#rose-modal-overlay.open { display: block; }
#rose-modal { max-width: 55rem; margin: 0 auto; background: var(--surface); border: 1px solid rgba(212,168,67,0.15); border-radius: 0.875rem; overflow: hidden; }
.rose-modal-head { background: linear-gradient(150deg, #060a14 0%, #0e1830 100%); padding: 3.25rem 3rem 2.75rem; position: relative; border-bottom: 1px solid rgba(212,168,67,0.12); }
.rose-modal-kicker { font-family: var(--f-b); font-size: var(--t-label); letter-spacing: 0; color: #d4a843; margin-bottom: 1rem; display: block; }
.rose-modal-title { font-family: var(--f-d); font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; color: #f2ede4; margin-bottom: 0.875rem; }
.rose-modal-title em { font-style: italic; color: #e8be58; }
.rose-modal-subtitle { font-size: 1.02rem; color: rgba(242,237,228,0.62); line-height: 1.7; max-width: 34em; }
.rose-modal-close-btn {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 2.375rem; height: 2.375rem; border-radius: 50%;
  background: rgba(242,237,228,0.07); border: 1px solid rgba(242,237,228,0.18);
  color: rgba(242,237,228,0.7); font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
}
.rose-modal-body { padding: 3rem; }
.rose-modal-section { margin-bottom: 3rem; }
.rose-section-label { font-family: var(--f-b); font-size: var(--t-label); letter-spacing: 0; color: var(--gold-ink); margin-bottom: 0.75rem; display: block; }
[data-theme="dark"] .rose-section-label { color: var(--gold); }
.rose-section-heading { font-family: var(--f-d); font-size: 1.8rem; font-weight: 300; color: var(--ink); margin-bottom: 0.875rem; line-height: 1.15; }
.rose-section-heading em { font-style: italic; color: var(--gold-ink); }
[data-theme="dark"] .rose-section-heading em { color: var(--gold-lt); }
.rose-section-body { font-size: 1rem; color: var(--body); line-height: 1.8; margin-bottom: 1.375rem; max-width: 40em; }
.far-mini-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 0.625rem; overflow: hidden; }
.far-mini-step { background: var(--surface-2); padding: 1.5rem 1.375rem; }
.far-mini-title { font-family: var(--f-d); font-size: 1.3rem; font-weight: 500; color: var(--ink); margin-bottom: 0.5rem; }
.far-mini-body { font-size: .92rem; color: var(--body); line-height: 1.6; }
.rose-stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 0.625rem; overflow: hidden; }
.rose-stat-cell { background: var(--surface-2); padding: 1.75rem 1.375rem; text-align: center; }
.rose-stat-cell-n { font-family: var(--f-d); font-size: 3rem; font-weight: 300; color: var(--gold-ink); line-height: 1; margin-bottom: 0.625rem; display: block; }
[data-theme="dark"] .rose-stat-cell-n { color: var(--gold-lt); }
.rose-stat-cell-l { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.rose-spec-list { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 0.625rem; overflow: hidden; }
.rose-spec-item { background: var(--surface-2); padding: 0.875rem 1.25rem; display: flex; align-items: baseline; gap: 1rem; font-size: .95rem; border-top: 1px solid var(--rule); }
.rose-spec-item:first-child { border-top: 0; }
.rose-spec-key { font-family: var(--f-b); font-size: 0.7rem; letter-spacing: 0; color: var(--gold-ink); width: 8.125rem; flex-shrink: 0; }
[data-theme="dark"] .rose-spec-key { color: var(--gold); }
.rose-spec-val { color: var(--body); }
.rose-modal-footer { margin-top: 0.5rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); display: flex; justify-content: center; }

/* ── THEME SWITCH: circular reveal (View Transitions) ── */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
::view-transition-group(root) { background: #000; }
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }

/* ── TYPE REFRESH ──
   One sans for every label, button and link, in sentence case. Monospace is
   kept only where it means something: the ruler and the ROSe window bar. */
.btn { font-size: 1.02rem; font-weight: 600; letter-spacing: 0; gap: 0.6rem; }
.btn--small { font-size: 0.95rem; }
.n-links a { font-size: 1.02rem; font-weight: 500; }
.n-cta { padding: 0.6rem 1.15rem; font-weight: 600; }
.hero-eyebrow { font-size: 1.02rem; font-weight: 500; color: var(--body); }
.kicker { font-size: 1.02rem; font-weight: 600; margin-bottom: 1.1rem; }
.mini-head { font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.cf-label { font-size: 0.95rem; font-weight: 600; }
.quote-by, .about-pull cite { font-size: 0.98rem; font-weight: 500; }
.foot-links a { font-size: 0.95rem; }
.cw-copy { font-size: 0.88rem; font-weight: 600; }
.about-li { font-size: 0.98rem; font-weight: 600; }
.rose-modal-kicker, .rose-section-label { font-size: 0.95rem; font-weight: 600; }
.rose-spec-key { font-size: 0.9rem; font-weight: 600; }

/* Headings carry no accent word; any stray <em> just reads as plain text */
.display em, .statement em, .rose-modal-title em, .rose-section-heading em { font-style: inherit; color: inherit; }

/* The quote reads as a statement, not a decorative italic */
.quote-inner { text-align: center; align-items: center; }
.quote-text { font-style: normal; font-weight: 300; max-width: 24em; }

/* Two learner quotes side by side, divided by a thin gold rule */
.quote-pair {
  display: grid; grid-template-columns: 1fr 1fr;
  width: 100%; margin-top: 1.5rem;
}
.quote-item { display: flex; flex-direction: column; align-items: center; padding: 0 clamp(1.5rem, 4vw, 4rem); }
.quote-item + .quote-item { border-left: 1px solid rgba(212,168,67,0.3); }
.quote-pair .quote-text { font-size: clamp(1.5rem, 2.5vw, 2.5rem); line-height: 1.25; max-width: 18em; }
.quote-pair .quote-by { margin-top: auto; padding-top: 2rem; }
@media (max-width: 780px) {
  .quote-pair { grid-template-columns: 1fr; }
  .quote-item { padding: 0; }
  .quote-item + .quote-item { border-left: 0; border-top: 1px solid rgba(212,168,67,0.3); margin-top: 3rem; padding-top: 3rem; }
}

/* Method and timeline no longer number things that aren't steps */
.method-item { padding-left: 0; }
.method-title { font-size: var(--t-h3); }

/* ── HERO: the teacher's edit ──
   "have to" gets crossed out and "want to" is written in above it, like a
   correction in the margin. Screen readers and search engines get the plain
   sentence from the hidden copy. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.hero-vis { display: block; }
.hero-line--edit { margin-top: 0.36em; }
.edit { position: relative; display: inline-block; white-space: nowrap; }
.edit-old { display: inline-block; color: color-mix(in srgb, var(--ink) 45%, transparent); }
.edit-strike {
  position: absolute; left: -4%; top: 30%; width: 108%; height: 0.42em;
  overflow: visible; pointer-events: none;
}
.edit-strike path, .edit-caret path {
  fill: none; stroke: var(--gold-ink); stroke-linecap: round; stroke-linejoin: round;
}
.edit-strike path, .edit-caret path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.edit-strike path { stroke-width: 5; }
.edit-caret path { stroke-width: 4; }
[data-theme="dark"] .edit-strike path, [data-theme="dark"] .edit-caret path { stroke: var(--gold-lt); }
.edit-new {
  position: absolute; left: 50%; bottom: 86%;
  translate: -50% 0;
  font-family: 'Kalam', 'Segoe Print', 'Bradley Hand', cursive;
  font-size: 0.5em; font-weight: 700; line-height: 1;
  letter-spacing: 0; white-space: nowrap;
  color: var(--gold-ink);
  rotate: -3deg;
  /* Hidden before GSAP runs; GSAP keeps the inline clip-path after animation so this never re-applies */
  clip-path: inset(-20% 100% -20% 0);
}
[data-theme="dark"] .edit-new { color: var(--gold-lt); }
/* If the animation scripts never load, show the finished edit instead of a bare "have to" */
html:not(.js) .edit-new, html.no-anim .edit-new { clip-path: none; }
html:not(.js) .edit-strike path, html:not(.js) .edit-caret path,
html.no-anim .edit-strike path, html.no-anim .edit-caret path { stroke-dashoffset: 0; }
.edit-caret {
  position: absolute; left: 50%; bottom: 62%;
  width: 0.34em; height: 0.26em;
  translate: -50% 0;
  overflow: visible;
}

/* ── RESPONSIVE ── */
@media (max-width: 1180px) {
  .rose-dock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rose-dock li:nth-child(3) { border-left: 0; padding-left: 0; }
  .rose-dock li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .rose-detail { grid-template-columns: 1fr; }
  .rose-stat { display: flex; align-items: flex-end; gap: 2rem; }
  .rose-stat p { margin-top: 0; padding-bottom: .4em; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 8.125rem; gap: 3.5rem; }
  .hero-h { font-size: min(15cqi, 6.4rem); }
  .split-head, .builds-head { grid-template-columns: 1fr; align-items: start; }
  .split-head-side, .builds-side { padding-bottom: 0; }
  .craft-grid { grid-template-columns: 1fr; }
  .craft-item, .craft-item:first-child { border-left: 0; padding: 2.125rem 0 2.5rem; }
  .craft-item::before, .craft-item:first-child::before { left: 0; }
  .schools-list { grid-template-columns: 1fr; }
  .method-layout, .about-grid, .contact-layout { grid-template-columns: 1fr; }
  .method-aside, .about-aside { position: static; }
  .about-aside { max-width: 32.5rem; }
  .about-split { width: 100%; }
  .far-mini-grid, .rose-stats-row { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .n-links { display: none; }
  .n-ham { display: flex; opacity: 1; pointer-events: auto; max-width: 2.25rem; }
  nav { top: 0.625rem; height: 3.75rem; }
  nav.scrolled { width: calc(100% - 1.5rem); }
  .hero-inner { padding-top: 6.75rem; }
  .hero-demo-cap { flex-direction: column; }
  .peek-grid { grid-template-columns: 1fr; }
  .rose-titlebar { grid-template-columns: auto 1fr; gap: 0.875rem; }
  .rose-titlebar-name span, .rose-titlebar-live { display: none; }
  .rose-stat { flex-direction: column; align-items: flex-start; gap: 1.125rem; }
  .rose-evo { grid-template-columns: 1fr; }
  .rose-evo li, .rose-evo li + li { padding: 1.5rem 0 1.75rem; }
  .rose-evo li + li::before { left: 0; }
  .rose-dock { grid-template-columns: 1fr; }
  .rose-dock li, .rose-dock li:first-child, .rose-dock li:nth-child(3) { border-left: 0; padding: 1.75rem 0; }
  .rose-dock li + li { border-top: 1px solid var(--rule); }
  .method-item { grid-template-columns: 1fr; gap: 0.625rem; }
  .cf-row { grid-template-columns: 1fr; gap: 0; }
  .rose-modal-head { padding: 2.75rem 1.5rem 2rem; }
  .rose-modal-body { padding: 1.75rem 1.5rem; }
  .rose-spec-item { flex-direction: column; gap: 0.25rem; }
  #rose-modal-overlay { padding: 1rem 0.75rem; }
}

/* ── PHONE EXPERIENCE ──
   Built for the thumb, not shrunk from the laptop: the demo comes straight after
   the headline as proof, one action stays in reach, and the dock hands the site
   off to a laptop for the labs that need a big screen. Groups of things (projects,
   versions, apps) sit side by side and swipe, so the page stays short. */
.hero-video-tag, .m-dock, .rose-handoff, .swipe-dots { display: none; }

@media (max-width: 680px) {
  /* Headline, then the demo, then the pitch */
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; container-type: inline-size; padding-bottom: 2.75rem; }
  .hero-text { display: contents; }
  .hero-eyebrow { order: 1; margin-bottom: 1.25rem; }
  .hero-h { order: 2; margin-bottom: 1.75rem; }
  .hero-demo { order: 3; margin: 0 calc(-1 * var(--gutter)) 2.25rem; }
  .hero-sub { order: 4; margin-bottom: 1.875rem; }
  .hero-cta-row { order: 5; }
  .hero-avail { order: 6; }

  /* Edge to edge like a native video, labelled on the frame itself */
  .hero-video-frame { border-radius: 0; border-width: 1px 0; box-shadow: none; }
  .hero-demo-cap { display: none; }
  .hero-video-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    position: absolute; left: var(--gutter); bottom: 0.875rem; z-index: 1;
    padding: 0.4375rem 0.875rem 0.4375rem 0.5rem;
    border-radius: 6.25rem;
    background: rgba(4,6,14,0.8);
    border: 1px solid rgba(212,168,67,0.38);
    box-shadow: 0 0.5rem 1.25rem -0.5rem rgba(4,6,14,0.6);
    font-size: 0.9rem; line-height: 1.2; color: #f2ede4;
    pointer-events: none;
  }
  .hero-video-tag svg {
    width: 1.5rem; height: 1.5rem; padding: 0.3125rem 0.25rem 0.3125rem 0.375rem;
    border-radius: 50%; background: #d4a843; fill: #0b1529; flex-shrink: 0;
  }
  .hero-video-tag b { font-weight: 600; }
  .hero-video-tag span { color: rgba(242,237,228,0.74); }
  .hero-video-frame:active .hero-video-tag { scale: 0.97; }

  /* Two buttons share one row instead of stacking */
  .btn-row, .hero-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
  .btn-row .btn, .hero-cta-row .btn { padding-inline: 0.75rem; }

  /* Swipe rows: projects, ROSe versions and ROSe apps sit side by side.
     The next item peeks in from the right so the swipe is obvious. */
  .peek-grid, .rose-evo, .rose-dock {
    display: flex; gap: 0.875rem;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0.25rem var(--gutter) 1.25rem;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .peek-grid::-webkit-scrollbar, .rose-evo::-webkit-scrollbar, .rose-dock::-webkit-scrollbar { display: none; }
  .peek-card:last-child, .rose-evo li:last-child, .rose-dock li:last-child { scroll-snap-align: end; }

  /* Where you are in a row: the current item's dot stretches into a bar */
  .swipe-dots { display: flex; justify-content: center; gap: 0.375rem; margin-top: 0.125rem; }
  .swipe-dots i { width: 0.375rem; height: 0.375rem; border-radius: 1rem; background: var(--rule-2); transition: width .4s var(--ease), background-color .3s ease; }
  .swipe-dots i.on { width: 1.375rem; background: var(--gold); }

  /* ROSe: a handoff line under the window, since the desktop needs a big screen */
  .rose-handoff {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.625rem;
    margin-top: 1.25rem;
    font-size: 0.98rem; line-height: 1.45; color: var(--body);
  }
  .rose-handoff svg { width: 1.375rem; height: 1.375rem; color: var(--gold-ink); flex-shrink: 0; }
  .rose-handoff span { flex: 1; min-width: 12rem; }
  .rose-handoff-btn {
    min-height: 2.75rem; padding: 0 1.125rem;
    border-radius: 6.25rem; border: 1px solid var(--gold);
    color: var(--gold-ink); font-size: 0.92rem; font-weight: 600; white-space: nowrap;
  }
  .rose-handoff-btn:active { scale: 0.96; }

  /* The stat sits beside its sentence */
  .rose-detail { gap: 2.25rem; margin-top: 2.75rem; }
  .rose-stat { flex-direction: row; align-items: center; gap: 1.25rem; }
  .rose-stat-n { font-size: 5.5rem; }
  .rose-stat p { margin-top: 0; padding-bottom: 0; font-size: 1.08rem; }

  /* Versions: a timeline you swipe along */
  .rose-evo li, .rose-evo li + li {
    flex: 0 0 74%; scroll-snap-align: start;
    padding: 1.5rem 0.5rem 0 0;
  }
  .rose-evo li::before, .rose-evo li + li::before { left: 0; }
  .rose-evo h4 { font-size: 1.6rem; }

  /* Apps: tiles you swipe through */
  .rose-dock-wrap { margin-top: 2.5rem; }
  .rose-dock { border: 0; }
  .rose-dock li, .rose-dock li:first-child, .rose-dock li:nth-child(3), .rose-dock li + li {
    flex: 0 0 62%; scroll-snap-align: start;
    padding: 1.375rem 1.25rem 1.5rem;
    border: 1px solid var(--rule); border-radius: 0.875rem;
    background: var(--surface);
  }
  .rose-dock-icon { margin-bottom: 1rem; }
  .rose-dock h4 { font-size: 1.4rem; }
  .rose-dock p { font-size: 0.98rem; }

  /* Projects: captions on a dark band under each video */
  .peek-card {
    flex: 0 0 86%; scroll-snap-align: start;
    background: #0b1529;
    box-shadow: 0 1rem 2rem -1rem rgba(4,6,14,0.5);
  }
  .peek-card:hover { transform: none; }
  .peek-vid { aspect-ratio: 16 / 9; }
  .peek-vid iframe, .peek-card:hover .peek-vid iframe { width: 100%; height: 100%; transform: translate(-50%, -50%); }
  .peek-shade { display: none; }
  .peek-info { position: static; align-items: center; gap: 1rem; padding: 1.125rem 1.25rem 1.375rem; }
  .peek-title { font-size: 1.6rem; margin-bottom: 0.375rem; }
  .peek-type { font-size: 0.98rem; line-height: 1.5; }
  .peek-play { width: 3rem; height: 3rem; background: #d4a843; color: #0b1529; border-color: #d4a843; }
  .peek-card:active .peek-play { scale: 0.94; }

  /* The dock rises when the visitor scrolls back up, past the hero */
  .m-dock {
    container: dock / inline-size;
    display: flex; gap: 0.375rem;
    position: fixed; z-index: 190;
    left: 0.75rem; right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    padding: 0.375rem;
    background: #0b1529;
    border: 1px solid rgba(212,168,67,0.32);
    border-radius: 6.25rem;
    box-shadow: 0 1.125rem 2.5rem -0.75rem rgba(4,6,14,0.55);
    translate: 0 calc(100% + 1.5rem + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    transition: translate .7s var(--ease), opacity .3s ease;
  }
  .m-dock.is-on { translate: 0 0; opacity: 1; }
  .m-dock-cta, .m-dock-hand {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 3rem; border-radius: 6.25rem;
    font-family: var(--f-b); line-height: 1; white-space: nowrap;
    transition: scale .2s var(--ease), background-color .2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .m-dock-cta {
    flex: 1 1 0; min-width: 0; padding: 0 0.75rem;
    background: #d4a843; color: #0b1529;
    font-size: 1rem; font-weight: 600;
  }
  .m-dock-hand {
    flex: 1 1 0; min-width: 0;
    padding: 0 0.75rem;
    color: #f2ede4; font-size: 0.9rem; font-weight: 500;
    border: 1px solid rgba(242,237,228,0.18);
  }
  .m-dock-cta svg, .m-dock-hand svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
  .m-dock-hand svg { width: 1.3rem; height: 1.3rem; color: #e8be58; }
  .m-dock-cta:active, .m-dock-hand:active { scale: 0.96; }
  .m-dock-hand:active { background: rgba(242,237,228,0.08); }
  .m-dock-cta:focus-visible, .m-dock-hand:focus-visible { outline: 2px solid #e8be58; outline-offset: 2px; }

  /* Keep toasts clear of the dock while it is up */
  html.dock-on .toast { bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
}
/* When the dock is tight (narrow phone or larger text), the laptop icon drops
   and the words stay, so both halves still say what they do */
@container dock (max-width: 21rem) {
  .m-dock-hand svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-ticker-track { animation: none; }
  [data-cursor], [data-cursor-dot] { display: none !important; }
  body { cursor: auto !important; }
  /* Show the edit's final state without animation */
  .edit-new { clip-path: none !important; }
  .edit-strike path, .edit-caret path { stroke-dashoffset: 0 !important; }
}
