/* ═══════════════════════════════════════════════════════════════
   TENNERI — Dual Theme (Light + Dark)
   Light  = refined academic (original)
   Dark   = cinematic product (Apple-style)
═══════════════════════════════════════════════════════════════ */

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

/* ── THEME VARIABLES ── */
:root, [data-theme="light"] {
  --void:      #f8f5f0;
  --surface:   #ffffff;
  --surface-2: #faf8f4;
  --ink:       #0f0e0c;
  --body:      #3d3a36;
  --muted:     #6b6560;
  --rule:      #ddd8ce;
  --gold:      #b8913c;
  --gold-lt:   #d4ac58;
  --navy:      #1b2d4f;
  --navy-lt:   #2a4270;
  --cream:     #faf8f4;
  --overlay:   rgba(15,14,12,0.55);
  --card-bg:   #ffffff;
  --nav-bg:    rgba(250,248,244,0.92);
  --hero-text: #0f0e0c;
  --hero-sub:  #3d3a36;
  --glow:      rgba(184,145,60,0.08);
  --f-d: 'Cormorant Garamond', Georgia, serif;
  --f-b: 'Instrument Sans', system-ui, sans-serif;
  --f-m: 'DM Mono', monospace;
  --ease: cubic-bezier(0.22,1,0.36,1);
}

[data-theme="dark"] {
  --void:      #04060e;
  --surface:   #0c1020;
  --surface-2: #111828;
  --ink:       #f2ede4;
  --body:      rgba(242,237,228,0.72);
  --muted:     rgba(242,237,228,0.40);
  --rule:      rgba(242,237,228,0.08);
  --gold:      #d4a843;
  --gold-lt:   #e8be58;
  --navy:      #162440;
  --navy-lt:   #1f3360;
  --cream:     #f2ede4;
  --overlay:   rgba(4,6,14,0.75);
  --card-bg:   #0c1020;
  --nav-bg:    rgba(12,16,32,0.88);
  --hero-text: #f2ede4;
  --hero-sub:  rgba(242,237,228,0.60);
  --glow:      rgba(212,168,67,0.10);
}

body {
  font-family: var(--f-b);
  background: var(--void);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
  transition: background-color 0.8s var(--ease), color 0.6s var(--ease);
  padding-right: 0;
}
@media (min-width: 981px) {
  body { padding-right: clamp(5.5rem, 7.5vw, 7.25rem); }
}

/* ── FILM STRIP (ArtCraft-inspired, fluid) ── */
#strip {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: clamp(5.5rem, 7.5vw, 7.25rem);
  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(12px);
  border-left-color: rgba(15,14,12,0.1);
  box-shadow: -4px 0 24px rgba(15,14,12,0.04);
}
@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;
  gap: 0.15rem;
  border-bottom: 1px solid var(--rule);
}
#strip-brand {
  padding: 0 0.75rem;
  font-family: var(--f-m);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
[data-theme="light"] #strip-brand {
  color: var(--ink);
  opacity: 0.55;
}
.strip-past-label {
  display: block;
  width: 100%;
  text-align: right;
  padding: 0.2rem 0.75rem;
  font-family: var(--f-m);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateX(0.5rem);
  max-height: 0;
  overflow: hidden;
  transition:
    color 0.35s var(--ease),
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    max-height 0.55s var(--ease);
}
.strip-past-label.visible {
  opacity: 0.85;
  transform: translateX(0);
  max-height: 1.75rem;
}
.strip-past-label:hover { color: var(--gold); opacity: 1; }
[data-theme="light"] .strip-past-label { color: rgba(15,14,12,0.45); }
[data-theme="light"] .strip-past-label.visible { color: rgba(15,14,12,0.55); }
#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.12s;
}
#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: 16px; top: -8px;
  font-family: var(--f-m); font-size: 8.5px;
  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) 6%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--gold) 14%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 14%, transparent);
}
.tick {
  position: absolute; right: 0; height: 1px;
  display: flex; align-items: center;
}
.tick-line-major {
  width: 12px; height: 1px;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  flex-shrink: 0;
}
[data-theme="light"] .tick-line-major {
  background: color-mix(in srgb, var(--ink) 38%, transparent);
}
.tick-line-minor {
  width: 5px; height: 1px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  flex-shrink: 0;
}
[data-theme="light"] .tick-line-minor {
  background: color-mix(in srgb, var(--ink) 22%, transparent);
}
.tick-num {
  position: absolute; right: 16px;
  font-family: var(--f-m); font-size: 8.5px;
  color: color-mix(in srgb, var(--ink) 22%, transparent);
  line-height: 1; transform: translateY(-50%); top: 0;
  white-space: nowrap; letter-spacing: 0.04em;
}
[data-theme="light"] .tick-num {
  color: color-mix(in srgb, var(--ink) 45%, transparent);
}

/* ── LIGHT MODE CARD DEPTH ── */
[data-theme="light"] .method-card {
  border: 1px solid var(--rule);
  box-shadow: 0 1px 4px rgba(15,14,12,0.06);
}
[data-theme="light"] .method-card:hover {
  box-shadow: 0 4px 16px rgba(15,14,12,0.10);
}
[data-theme="light"] .craft-card {
  border: 1px solid var(--rule);
  box-shadow: 0 1px 3px rgba(15,14,12,0.05);
}
[data-theme="light"] .craft-card:hover {
  box-shadow: 0 4px 12px rgba(15,14,12,0.09);
}
[data-theme="light"] #rose-panels .rose-panel-eyebrow {
  color: var(--navy);
}
[data-theme="light"] #rose-panels .rose-panel-eyebrow::before,
[data-theme="light"] #rose-panels .rose-panel-eyebrow::after {
  background: var(--navy);
  opacity: 0.3;
}

#needle {
  position: absolute; left: 0; right: 0; height: 1px;
  background: var(--gold); z-index: 10; pointer-events: none;
}
#needle::after {
  content: '';
  position: absolute; right: 0; top: -3px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
}
#needle-pct {
  position: absolute; right: 16px; top: -8px;
  font-family: var(--f-m); font-size: 8.5px;
  color: var(--gold); letter-spacing: 0.04em; white-space: nowrap;
}
.ruler-label {
  position: absolute; right: 0;
  font-family: var(--f-m);
  font-size: 0.5rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  transform: translateY(-50%);
  white-space: nowrap; cursor: pointer;
  background: none; border: none;
  padding: 0.4rem 0.75rem 0.4rem 0.5rem;
  transition:
    color 0.4s var(--ease),
    font-size 0.45s var(--ease),
    letter-spacing 0.45s var(--ease),
    opacity 0.4s var(--ease);
  text-align: right;
  display: flex; align-items: center; gap: 0.4rem; justify-content: flex-end;
}
[data-theme="light"] .ruler-label {
  color: rgba(15,14,12,0.4);
}
.ruler-label::before {
  content: ''; display: block; width: 0; height: 1px;
  background: var(--muted);
  transition: width 0.4s var(--ease), background 0.4s var(--ease);
  flex-shrink: 0;
}
.ruler-label:hover { color: var(--ink); opacity: 1; }
.ruler-label:hover::before { width: 0.5rem; background: var(--muted); }
.ruler-label.active {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.ruler-label.active::before {
  width: 0.9rem; background: var(--gold);
}
.ruler-label.passed {
  color: var(--muted); opacity: 0.32;
}
#strip-bottom {
  flex-shrink: 0;
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 0.15rem;
  border-top: 1px solid var(--rule);
  padding: 0.65rem 0 1.1rem;
}
.strip-upcoming-label {
  display: block; width: 100%; text-align: right;
  padding: 0.2rem 0.75rem;
  font-family: var(--f-m); font-size: 0.5rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); background: none; border: none; cursor: pointer;
  transition:
    color 0.35s var(--ease),
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    max-height 0.55s var(--ease);
  overflow: hidden; max-height: 1.75rem; opacity: 0.9; transform: translateX(0);
}
[data-theme="light"] .strip-upcoming-label {
  color: rgba(15,14,12,0.5);
}
.strip-upcoming-label.fading {
  opacity: 0; transform: translateX(0.5rem); max-height: 0;
  padding-top: 0; padding-bottom: 0; pointer-events: none;
}
.strip-upcoming-label:hover { color: var(--gold); }

/* Active section — vertical on the ruler
   Starts rotated (reads horizontal-ish), lands vertical */
.strip-active-label {
  position: absolute;
  right: 0.15rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--f-m);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem 0.3rem;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 12;
  text-shadow: 0 0 28px color-mix(in srgb, var(--gold) 40%, transparent);
  /* GSAP owns transform (yPercent + rotate + scale) */
  transform-origin: center center;
}
.strip-active-label.visible {
  pointer-events: auto;
}
.strip-active-label:hover {
  color: var(--gold-lt);
}
/* Keep needle above labels */
#needle {
  z-index: 15 !important;
}
#needle-pct {
  z-index: 16;
}

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

/* ── THEME TRANSITION OVERLAY ── */
#theme-wipe {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  background: #d4a843;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}

/* ── CUSTOM CURSOR (dark only) ── */
[data-cursor], [data-cursor-dot] {
  position: fixed; top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  will-change: transform;
  display: none;
}
[data-cursor] {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(212,168,67,0.45);
}
[data-cursor-dot] {
  width: 5px; height: 5px;
  background: var(--gold);
}
[data-theme="dark"].cursor-ready body { cursor: none; }
[data-theme="dark"].cursor-ready a,
[data-theme="dark"].cursor-ready button { cursor: none; }

/* ── PRELOADER ── */
#preloader {
  position: fixed; inset: 0;
  z-index: 9000;
  background: var(--void);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.4s ease;
}
#pl-wordmark {
  font-family: var(--f-m);
  font-size: clamp(2.8rem, 10vw, 7rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  display: flex;
}
#pl-tagline {
  font-family: var(--f-d);
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-top: 1.4rem;
}
#pl-bar {
  width: 200px; height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt), transparent);
  margin-top: 2.2rem;
  transform-origin: left center;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  height: 64px;
  width: calc(100% - 24px);
  max-width: 1380px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  backdrop-filter: blur(0);
  transition:
    width .6s var(--ease), height .6s var(--ease),
    top .6s var(--ease), padding .5s var(--ease),
    border-radius .6s var(--ease), border-color .4s ease,
    background .45s ease, box-shadow .5s ease, backdrop-filter .4s ease,
    opacity .35s ease, transform .35s ease;
}
/* Hide nav when ROSe section is active */
nav.nav-rose-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

nav.scrolled {
  top: 12px;
  height: 52px;
  width: min(760px, calc(100% - 40px));
  padding: 0 18px;
  border-radius: 100px;
  background: var(--nav-bg);
  border-color: rgba(212,168,67,0.18);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  backdrop-filter: blur(20px) saturate(150%);
}
.n-logo {
  display: flex; align-items: center; gap: 0;
  text-decoration: none;
  transition: gap .5s var(--ease);
}
.n-logo-img {
  height: 22px; width: 0; opacity: 0;
  transition: width .5s var(--ease), opacity .3s ease, filter .4s ease;
}
[data-theme="dark"] .n-logo-img {
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(5deg);
  opacity: 0.95;
}
nav.scrolled .n-logo { gap: 9px; }
nav.scrolled .n-logo-img { width: 22px; opacity: 1; }
[data-theme="dark"] nav.scrolled .n-logo-img { opacity: 0.95; }
.n-logo-name {
  font-family: var(--f-d);
  font-size: 1.75rem; font-weight: 600;
  color: var(--ink);
  overflow: hidden; white-space: nowrap;
  transition: font-size .5s var(--ease), opacity .3s ease, width .5s var(--ease);
}
nav.scrolled .n-logo-name { font-size: 0; opacity: 0; width: 0; }

.n-links {
  display: flex; align-items: center; gap: 22px;
  transition: gap .5s var(--ease);
}
nav.scrolled .n-links { gap: 10px; }
.n-links li {
  overflow: hidden; max-width: 180px;
  transition: opacity .3s var(--ease), max-width .5s var(--ease);
}
.n-links a {
  font-family: var(--f-m);
  font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.n-links a:hover { color: var(--ink); }
nav.scrolled .n-links li:not(.n-persist) {
  opacity: 0; max-width: 0; pointer-events: none;
}
.n-cta {
  padding: 7px 16px;
  background: var(--gold) !important;
  color: var(--void) !important;
  border-radius: 2px;
  font-weight: 600;
  transition: background .2s !important;
}
.n-cta:hover { background: var(--gold-lt) !important; }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: border-color .25s, background .25s, color .25s, transform .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.06);
}
.theme-toggle svg { width: 16px; height: 16px; transition: opacity .3s, transform .4s var(--ease); }
.theme-toggle .icon-sun { position: absolute; opacity: 0; transform: rotate(-40deg) scale(0.6); }
.theme-toggle .icon-moon { opacity: 1; }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(40deg) scale(0.6); }

/* Fixed floating theme toggle — gold-rimmed, soft glow */
.theme-toggle-fixed {
  position: fixed;
  bottom: 28px; left: 28px;
  z-index: 190;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid rgba(212,168,67,0.45);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s, color .25s, transform .35s var(--ease), box-shadow .35s ease;
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 0 0 0 rgba(212,168,67,0);
}
.theme-toggle-fixed:hover {
  border-color: var(--gold);
  color: var(--gold-lt);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(212,168,67,0.35);
}
.theme-toggle-fixed:active { transform: scale(0.96); }
.theme-toggle-fixed svg { width: 18px; height: 18px; transition: opacity .3s, transform .45s var(--ease); }
.theme-toggle-fixed .icon-sun { position: absolute; opacity: 0; transform: rotate(-40deg) scale(0.6); }
.theme-toggle-fixed .icon-moon { opacity: 1; }
[data-theme="dark"] .theme-toggle-fixed .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle-fixed .icon-moon { opacity: 0; transform: rotate(40deg) scale(0.6); }
[data-theme="dark"] .theme-toggle-fixed {
  background: rgba(12,16,32,0.9);
  border-color: rgba(212,168,67,0.55);
  box-shadow: 0 0 16px rgba(212,168,67,0.15);
}

.n-ham {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
  opacity: 0; pointer-events: none; max-width: 0; overflow: hidden;
  transition: opacity .3s, max-width .4s;
}
.n-ham span { width: 20px; height: 1.5px; background: var(--ink); display: block; }
nav.scrolled .n-ham { opacity: 1; pointer-events: auto; max-width: 36px; }

.mob-nav {
  display: none; position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--rule);
  padding: 22px 28px;
  flex-direction: column; gap: 16px;
  z-index: 199;
  backdrop-filter: blur(16px);
}
.mob-nav.open { display: flex; }
.mob-nav a {
  font-family: var(--f-m); font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--void);
  transition: background 0.8s var(--ease);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 12% 88%, var(--glow) 0%, transparent 65%),
    radial-gradient(ellipse 70% 60% at 88% 12%, rgba(27,45,79,0.12) 0%, transparent 60%);
  transition: opacity 0.8s ease;
}
[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 70% 60% at 10% 90%, rgba(212,168,67,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 80% 70% at 90% 10%, rgba(22,36,64,0.45) 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-bg-video-wrap {
  position: absolute; inset: 0; z-index: 1;
  opacity: 0.18;
  transition: opacity 0.9s ease;
}
[data-theme="dark"] #hero-bg-video-wrap { opacity: 0.42; }
#hero-bg-video {
  position: absolute; top: -10%; left: -10%;
  width: 120%; height: 120%;
  object-fit: cover; border: none;
}
.hero-video-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg,
    var(--void) 0%,
    rgba(0,0,0,0.25) 35%,
    rgba(0,0,0,0.3) 65%,
    var(--void) 100%);
  opacity: 0.88;
}
[data-theme="dark"] .hero-video-overlay {
  background: linear-gradient(180deg,
    var(--void) 0%,
    rgba(4,6,14,0.55) 35%,
    rgba(4,6,14,0.6) 65%,
    var(--void) 100%);
  opacity: 0.88;
}
/* Ghost marquee disabled — was creating visual noise / dead weight */
.hero-marquee-bg {
  display: none;
}
.hero-marquee-track { display: none; }

.hero-inner {
  position: relative; z-index: 10;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 100px 64px 72px;
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
}
.hero-text {
  display: flex;
  flex-direction: column;
}
.hero-video-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-video-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #030508;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  border: 1px solid var(--rule);
  transition: box-shadow 0.6s ease, border-color 0.6s ease;
}
[data-theme="dark"] .hero-video-frame {
  box-shadow: 0 32px 100px rgba(0,0,0,0.50);
  border-color: rgba(242,237,228,0.07);
}
.hero-video-caption {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding: 0 2px;
}
.hero-video-caption--centered {
  align-items: center;
  text-align: center;
}
.hero-video-caption--centered .hero-video-desc {
  max-width: 42ch;
}

/* Hero brand mark (logo + wordmark in hero before nav scrolls) */
.hero-brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-brand-mark-img {
  height: 26px;
  width: auto;
  opacity: 0.85;
  transition: filter 0.4s ease;
}
[data-theme="dark"] .hero-brand-mark-img {
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(5deg);
  opacity: 0.95;
}
[data-theme="light"] .hero-brand-mark-img {
  filter: none;
  opacity: 0.75;
}
.hero-brand-mark-name {
  font-family: var(--f-d);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.hero-video-tag {
  font-family: var(--f-m);
  font-size: .56rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-video-desc {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.55;
  max-width: 36ch;
}
.hero-video-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.hero-eyebrow {
  font-family: var(--f-m);
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: ''; width: 26px; height: 1px;
  background: var(--gold); flex-shrink: 0;
}
.hero-h {
  font-family: var(--f-d);
  font-size: clamp(2.8rem, 6vw, 6.2rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--hero-text);
  margin-bottom: 28px;
  transition: color 0.6s ease;
  text-shadow: 0 2px 24px rgba(0,0,0,0.12);
}
[data-theme="dark"] .hero-h {
  text-shadow: 0 2px 32px rgba(0,0,0,0.55);
}
.hero-h em {
  font-style: italic;
  color: var(--gold-lt);
}
.hero-h .hero-line { display: block; }
.word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.05em; margin-bottom: -0.05em; }
.word-inner { display: inline-block; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--hero-sub);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 36px;
  transition: color 0.6s ease;
}
.hero-cta-row {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  background: var(--gold);
  color: var(--void);
  font-family: var(--f-m); font-size: .66rem;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 2px;
  border: 1.5px solid var(--gold);
  position: relative; overflow: hidden;
  transition: background .2s, transform .2s, box-shadow .25s;
  box-shadow: 0 6px 24px rgba(184,145,60,0.28);
}
.btn-hero-primary::after {
  content: '';
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  animation: shine 3.5s ease-in-out infinite;
}
@keyframes shine { 0%{left:-60%} 45%{left:130%} 100%{left:130%} }
.btn-hero-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(184,145,60,0.4);
}
.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  color: var(--muted);
  font-family: var(--f-m); font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: border-color .25s, color .25s, transform .2s;
}
.btn-hero-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

/* All Projects: gold ghost button with shimmer */
.btn-all-projects {
  border-color: rgba(212,168,67,0.45);
  color: var(--gold);
  position: relative;
  overflow: hidden;
}
.btn-all-projects::after {
  content: '';
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(212,168,67,0.22), transparent);
  transform: skewX(-20deg);
  animation: shine-gold 4.5s ease-in-out infinite;
}
@keyframes shine-gold { 0%{left:-60%} 45%{left:130%} 100%{left:130%} }
.btn-all-projects:hover {
  background: rgba(212,168,67,0.07);
  border-color: var(--gold);
  color: var(--gold-lt);
  transform: translateY(-1px);
}
.hero-contact-line {
  font-family: var(--f-m); font-size: .82rem;
  letter-spacing: .04em; color: var(--muted);
}
.hero-contact-line a {
  color: var(--gold);
  border-bottom: 1px solid rgba(184,145,60,0.3);
  padding-bottom: 1px;
  transition: color .2s;
}
.hero-contact-line a:hover { color: var(--gold-lt); }

#hero-scroll-hint {
  position: absolute; bottom: 70px; left: 64px;
  z-index: 10;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-m); font-size: .56rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
#hero-scroll-hint::before {
  content: ''; width: 1px; height: 36px;
  background: linear-gradient(180deg, transparent, var(--gold));
}

/* Ticker */
.hero-ticker-wrap {
  position: relative; z-index: 10;
  border-top: 1px solid var(--rule);
  padding: 13px 0;
  overflow: hidden;
  background: rgba(0,0,0,0.02);
  transition: background 0.6s ease, border-color 0.6s ease;
}
[data-theme="dark"] .hero-ticker-wrap { background: rgba(242,237,228,0.02); }
.hero-ticker-track {
  display: flex; white-space: nowrap;
  animation: ticker-scroll 36s linear infinite;
}
.hero-ticker-item {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 0 20px;
  font-family: var(--f-m); font-size: .55rem;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); flex-shrink: 0;
}
.hero-ticker-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold); opacity: .45; flex-shrink: 0;
}
.hero-ticker-badge { color: var(--gold) !important; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── UTILITIES ── */
.wrap  { max-width: 1100px; margin: 0 auto; padding: 0 64px; }
.sec   { padding: 72px 0; }
.label {
  font-family: var(--f-m); font-size: .64rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 16px;
}
.label::before { content: ''; width: 22px; height: 1px; background: var(--gold); flex-shrink: 0; }
.display {
  font-family: var(--f-d);
  font-size: clamp(2.1rem, 3.8vw, 3.5rem);
  font-weight: 300; line-height: 1.08; letter-spacing: -.02em;
  color: var(--ink);
  transition: color 0.6s ease;
}
.display em  { font-style: italic; color: var(--gold-lt); }
.display strong { font-weight: 600; color: var(--gold-lt); }

/* Reveals start visible so content never disappears if GSAP is delayed */
.reveal, .reveal-words, .reveal-chars { opacity: 1; }
.stagger-grid > * { opacity: 1; }

/* ── ROSE FLAGSHIP (contained frame, like hero video) ── */
#rose {
  position: relative;
  width: 100%;
  min-height: auto;
  height: auto;
  overflow: visible;
  display: block;
  background: var(--void);
  transition: background 0.8s ease;
}
[data-theme="light"] #rose {
  background: var(--void);
}
.rose-contain { max-width: 1100px; }
.rose-intro {
  margin-bottom: 2rem;
  max-width: 36rem;
}
.rose-intro .display { margin-bottom: 0.85rem; }
.rose-intro-body {
  font-size: 1.02rem;
  color: var(--body);
  line-height: 1.75;
}
.rose-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #030508;
  border: 1px solid var(--rule);
  box-shadow: 0 24px 80px rgba(0,0,0,0.22);
}
[data-theme="dark"] .rose-frame {
  border-color: rgba(242,237,228,0.08);
  box-shadow: 0 32px 100px rgba(0,0,0,0.45);
}
#rose-video-wrap {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
#rose-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  filter: brightness(0.72) saturate(0.88);
}
#rose-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(2,3,5,0.35) 0%,
    rgba(2,3,5,0.55) 45%,
    rgba(2,3,5,0.88) 100%);
}
#rose-panels {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
  padding: 22px 0 0;
  min-height: 0;
  overflow: visible;
}
.rose-panel {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: auto;
  max-width: none;
  opacity: 1;
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px 24px 24px;
}
.rose-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}
.rose-panel-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.rose-panel-eyebrow {
  font-family: var(--f-m); font-size: .56rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
  display: block;
}
.rose-panel-eyebrow::before,
.rose-panel-eyebrow::after { content: none; }
.rose-panel-heading {
  font-family: var(--f-d);
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  font-weight: 300; line-height: 1.12;
  letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 12px;
}
.rose-panel-heading em { font-style: italic; color: var(--gold-lt); }
.rose-panel-body {
  font-size: 1rem; color: var(--body);
  line-height: 1.7; max-width: none; margin: 0;
}
.rose-apps {
  display: flex; flex-direction: column; gap: 8px;
  max-width: none; margin: 0;
}
.rose-app {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(242,237,228,0.04);
  border: 1px solid rgba(212,168,67,0.14);
  border-radius: 6px;
  text-align: left;
}
.rose-app-icon {
  width: 32px; height: 32px; border-radius: 6px;
  background: rgba(212,168,67,0.12);
  border: 1px solid rgba(212,168,67,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}
.rose-app-name {
  font-family: var(--f-d); font-size: 1rem; font-weight: 500;
  color: var(--ink); margin-bottom: 2px;
}
.rose-app-desc {
  font-family: var(--f-b); font-size: .92rem;
  letter-spacing: 0; text-transform: none;
  color: var(--muted);
}
/* Spacer off — pin releases immediately after ROSe */
#rose-spacer { height: 0; }

/* Sticky bar (top of viewport while in ROSe) */
#rose-bar {
  position: fixed; top: -60px; left: 0; right: 0;
  z-index: 190; height: 50px;
  background: rgba(4,6,14,0.94);
  border-bottom: 1px solid rgba(212,168,67,0.15);
  backdrop-filter: blur(18px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px;
  transition: top .45s var(--ease);
}
#rose-bar.visible { top: 0; }
.rose-bar-label {
  font-family: var(--f-m); font-size: .6rem;
  letter-spacing: .13em; text-transform: uppercase;
  color: rgba(242,237,228,0.45);
}
.rose-bar-label strong { color: var(--gold-lt); font-weight: 500; }
.rose-bar-actions { display: flex; gap: 10px; align-items: center; }

/* Bar under the contained ROSe frame */
.rose-under-bar {
  background: var(--navy);
  border: 1px solid color-mix(in srgb, var(--navy-lt) 50%, transparent);
  border-radius: 12px;
  padding: 18px 28px;
  margin-top: 18px;
}
.rose-under-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 40px;
}
.rose-under-bar .rose-inframe-label {
  color: rgba(242,237,228,0.65);
}
.rose-under-bar .rose-inframe-label strong {
  color: var(--gold-lt);
}
.rose-inframe-label {
  font-family: var(--f-m);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.65);
}
.rose-inframe-label strong {
  color: var(--gold-lt);
  font-weight: 500;
  font-size: .85rem;
}
.rose-inframe-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn-rose-learn {
  padding: 11px 22px; font-family: var(--f-m); font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(242,237,228,0.85);
  background: rgba(242,237,228,0.08); border: 1px solid rgba(242,237,228,0.2);
  border-radius: 100px; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.btn-rose-learn:hover { border-color: var(--gold); color: var(--gold-lt); background: rgba(212,168,67,0.08); }
.btn-rose-projects {
  padding: 11px 22px; font-family: var(--f-m); font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--void); background: var(--gold); border: none;
  border-radius: 100px; cursor: pointer; transition: background .2s;
  text-decoration: none; display: inline-flex; align-items: center;
  font-weight: 600;
}
.btn-rose-projects:hover { background: var(--gold-lt); }

/* ── BUILDS / PEEK ── */
#builds { background: var(--void); border-top: 1px solid var(--rule); transition: background 0.8s ease; }
.build-intro { margin-bottom: 48px; }
.build-lead {
  font-size: 1.05rem;
  color: var(--body);
  margin-top: 14px;
}
/* ── METHOD ── */
#method { background: var(--surface-2); border-top: 1px solid var(--rule); transition: background 0.8s ease; }
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.method-card {
  background: var(--surface);
  padding: 44px 36px;
  position: relative;
  transition: background 0.45s var(--ease), transform 0.45s var(--ease);
  overflow: hidden;
}
.method-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.method-card:hover {
  background: var(--surface-2);
  transform: translateY(-3px);
}
.method-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}
.method-num {
  font-family: var(--f-d);
  font-size: 2rem;
  font-weight: 300;
  color: rgba(212,168,67,0.28);
  line-height: 1;
  margin-bottom: 12px;
  display: inline-block;
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}
.method-card:hover .method-num {
  color: var(--gold);
  transform: translateX(4px);
  animation: method-num-pulse 1.2s var(--ease) 1;
}
@keyframes method-num-pulse {
  0%   { letter-spacing: 0; }
  40%  { letter-spacing: 0.06em; }
  100% { letter-spacing: 0; }
}
.method-title {
  font-family: var(--f-d);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}
.method-card:hover .method-title { color: var(--gold-lt); }
.method-body {
  font-size: 1.02rem;
  color: var(--body);
  line-height: 1.75;
}

/* ── CRAFT / WHAT I DO ── */
#craft {
  background: var(--surface-2);
  border-top: 1px solid var(--rule);
  transition: background 0.8s ease;
}
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
}
.craft-card {
  background: var(--surface);
  padding: 32px 26px 28px;
  position: relative;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.craft-card:hover {
  background: var(--void);
  transform: translateY(-2px);
}
.craft-icon {
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 18px;
  letter-spacing: 0;
  opacity: 0.85;
}
.craft-title {
  font-family: var(--f-d);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}
.craft-body {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 18px;
}
.craft-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.craft-tags li {
  font-family: var(--f-m);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 100px;
  padding: 5px 10px;
}
.craft-delivered {
  border-top: 1px solid var(--rule);
  padding-top: 40px;
}
.craft-delivered-label {
  font-family: var(--f-m);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.craft-schools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 24px;
}
.craft-school {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  transition: border-color 0.3s ease, transform 0.35s var(--ease);
}
.craft-school:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  transform: translateY(-2px);
}
.craft-school-name {
  font-family: var(--f-d);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.craft-school-note {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.5;
}
.craft-delivered-note {
  font-size: 1rem;
  color: var(--body);
  font-style: italic;
  max-width: 48ch;
}
@media (max-width: 980px) {
  .craft-grid,
  .craft-schools { grid-template-columns: 1fr; }
}

.peek-strip {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 2px; background: var(--rule);
  border-radius: 10px; overflow: hidden;
  margin: 0 auto 40px; max-width: 680px;
}
.peek-card {
  background: var(--card-bg); position: relative;
  overflow: hidden; cursor: pointer;
  transition: background 0.6s ease;
}
.peek-card:hover .peek-overlay { opacity: 0.4; }
.peek-vid-ratio {
  padding-top: 56.25%; position: relative; background: #030508;
}
.peek-vid-ratio iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none; pointer-events: none;
}
.peek-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(4,6,14,0.75) 100%);
  opacity: .7; transition: opacity .25s;
  display: flex; align-items: center; justify-content: center;
}
.peek-play {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(212,168,67,0.15);
  border: 1.5px solid rgba(212,168,67,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: var(--gold-lt);
  transition: background .2s, transform .2s;
}
.peek-card:hover .peek-play { background: rgba(212,168,67,0.28); transform: scale(1.08); }
.peek-info { padding: 14px 16px; }
.peek-title {
  font-family: var(--f-d); font-size: 1rem; font-weight: 500;
  color: var(--ink); line-height: 1.3; margin-bottom: 3px;
  transition: color 0.6s ease;
}
.peek-type {
  font-family: var(--f-m); font-size: .54rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}

/* ── ABOUT ── */
#about { background: var(--void); border-top: 1px solid var(--rule); transition: background 0.8s ease; }
.about-grid {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 56px; align-items: start;
}
.about-frame {
  position: relative; border-radius: 8px; overflow: hidden;
  aspect-ratio: 3/4; background: var(--surface);
}
.about-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.4s ease;
}
.about-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 18px;
  background: linear-gradient(transparent, rgba(4,6,14,0.85));
}
.about-name {
  font-family: var(--f-d); font-size: 1.15rem; font-weight: 500;
  color: #f2ede4; margin-bottom: 2px;
}
.about-role {
  font-family: var(--f-m); font-size: .56rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(242,237,228,0.5);
}
.about-body p {
  font-size: 1rem; color: var(--body); line-height: 1.85;
  margin-bottom: 18px;
  transition: color 0.6s ease;
}
.about-body p strong { color: var(--ink); font-weight: 600; }
.about-sig {
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.about-sig-name {
  font-family: var(--f-d); font-size: 1rem; font-weight: 600;
  color: var(--ink); margin-bottom: 2px;
}
.about-sig-role {
  font-family: var(--f-m); font-size: .58rem;
  color: var(--muted); letter-spacing: .04em;
}
.inst-strip { margin-top: 20px; }
.inst-label {
  font-family: var(--f-m); font-size: .54rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; display: block;
}
.inst-row {
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  font-size: .8rem; color: var(--body);
}
.inst-sep { color: var(--muted); }

/* ── CONTACT ── */
#contact { background: var(--void); border-top: 1px solid var(--rule); transition: background 0.8s ease; }
.contact-form-inner {
  margin-top: 8px; padding: 36px;
  background: var(--surface);
  border: 1px solid var(--rule); border-radius: 8px;
  transition: background 0.6s ease, border-color 0.6s ease;
}
.cf-heading {
  font-family: var(--f-d); font-size: 1.35rem;
  font-weight: 300; color: var(--ink); margin-bottom: 6px;
}
.cf-heading em { font-style: italic; color: var(--gold-lt); }
.cf-sub { font-size: .85rem; color: var(--body); line-height: 1.7; margin-bottom: 26px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.cf-group { margin-bottom: 16px; }
.cf-label {
  display: block; font-family: var(--f-m); font-size: .56rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 7px;
}
.cf-input, .cf-select, .cf-textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font-family: var(--f-b); font-size: .92rem; font-weight: 300;
  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::placeholder, .cf-textarea::placeholder {
  color: var(--muted); font-size: .85rem;
}
.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-textarea { resize: vertical; min-height: 90px; line-height: 1.7; }
.cf-submit {
  width: 100%; display: flex; align-items: center;
  justify-content: center; gap: 10px;
  margin-top: 26px; padding: 14px 28px;
  background: var(--gold); color: var(--void); border: none;
  border-radius: 2px; font-family: var(--f-m); font-size: .66rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.cf-submit:hover:not(:disabled) { background: var(--gold-lt); transform: translateY(-1px); }
.cf-submit:disabled { opacity: .45; cursor: not-allowed; }

/* ── CTA BAND ── */
.cta {
  background: linear-gradient(150deg, var(--navy) 0%, #0e1218 100%);
  padding: 110px 48px; text-align: center;
  position: relative; overflow: hidden;
}
[data-theme="light"] .cta {
  background: linear-gradient(150deg, #1b2d4f 0%, #111e35 100%);
}
.cta-inner { max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.cta-qm {
  font-family: var(--f-d); font-size: 3.6rem;
  color: var(--gold); opacity: .22; line-height: .8;
  margin-bottom: 14px; display: block;
}
.cta-qt {
  font-family: var(--f-d); font-size: clamp(1.4rem,2.4vw,2rem);
  font-weight: 300; font-style: italic;
  color: rgba(242,237,228,0.88); line-height: 1.45; margin-bottom: 8px;
}
.cta-qa {
  font-family: var(--f-m); font-size: .58rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(242,237,228,0.4); margin-bottom: 42px; display: block;
}
.cta-h {
  font-family: var(--f-d); font-size: clamp(1.5rem,2.4vw,2rem);
  font-weight: 300; color: #f2ede4; line-height: 1.25; margin-bottom: 32px;
}
.cta-h strong { font-weight: 600; color: var(--gold-lt); }
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; background: var(--gold); color: #04060e;
  border-radius: 2px; font-family: var(--f-m); font-size: .66rem;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 4px 22px rgba(212,168,67,0.35);
  transition: background .2s, transform .2s;
}
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: var(--void);
  border-top: 1px solid var(--rule);
  padding: 36px 48px;
  transition: background 0.8s ease;
}
.foot-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.foot-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-d); font-size: .92rem;
  color: var(--muted);
}
.foot-logo img { height: 20px; width: auto; opacity: .65; }
[data-theme="dark"] .foot-logo img {
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(5deg);
  opacity: 0.85;
}
.foot-links { display: flex; gap: 22px; }
.foot-links a {
  font-family: var(--f-m); font-size: .58rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.foot-links a:hover { color: var(--gold); }
.foot-copy { font-family: var(--f-m); font-size: .56rem; color: var(--muted); opacity: 0.6; }

/* ── VIDEO MODAL ── */
.peek-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(4,6,14,0.9); backdrop-filter: blur(10px);
  align-items: center; justify-content: center; padding: 24px;
}
.peek-modal-overlay.open { display: flex; }
.peek-modal {
  background: var(--surface); width: 100%; max-width: 900px;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  border: 1px solid var(--rule);
}
.peek-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid var(--rule);
}
.peek-modal-title {
  font-family: var(--f-d); font-size: 1rem;
  font-weight: 600; color: var(--ink);
}
.peek-modal-type {
  font-family: var(--f-m); font-size: .56rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-top: 2px;
}
.peek-modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.06);
  border: 1px solid var(--rule);
  color: var(--muted); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.peek-modal-close:hover { background: rgba(0,0,0,0.1); color: var(--ink); }
.peek-modal-video {
  padding-top: 56.25%; position: relative; background: #000;
}
.peek-modal-video iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}



/* ── ROSE MODAL ── */
#rose-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 800;
  background: rgba(2,3,5,0.92); backdrop-filter: blur(12px);
  overflow-y: auto; padding: 40px 24px;
}
#rose-modal-overlay.open { display: block; }
#rose-modal {
  max-width: 840px; margin: 0 auto;
  background: var(--surface); border: 1px solid rgba(212,168,67,0.15);
  border-radius: 12px; overflow: hidden;
}
.rose-modal-head {
  background: linear-gradient(150deg, #060a14 0%, #0e1830 100%);
  padding: 48px 44px 40px; position: relative;
  border-bottom: 1px solid rgba(212,168,67,0.1);
}
.rose-modal-kicker {
  font-family: var(--f-m); font-size: .58rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px; display: block;
}
.rose-modal-title {
  font-family: var(--f-d); font-size: clamp(1.7rem,3.3vw,2.6rem);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; color: #f2ede4; margin-bottom: 12px;
}
.rose-modal-title em { font-style: italic; color: var(--gold-lt); }
.rose-modal-subtitle { font-size: .9rem; color: rgba(242,237,228,0.5); line-height: 1.75; max-width: 520px; }
.rose-modal-close-btn {
  position: absolute; top: 20px; right: 20px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(242,237,228,0.07); border: 1px solid rgba(242,237,228,0.15);
  color: rgba(242,237,228,0.55); font-size: 1.05rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.rose-modal-body { padding: 44px; }
.rose-modal-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: center;
}
.rose-modal-section { margin-bottom: 44px; }
.rose-modal-section:last-child { margin-bottom: 0; }
.rose-section-label {
  font-family: var(--f-m); font-size: .6rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.rose-section-label::before { content: ''; width: 16px; height: 1px; background: var(--gold); flex-shrink: 0; }
.rose-section-heading {
  font-family: var(--f-d); font-size: 1.4rem; font-weight: 300;
  color: var(--ink); margin-bottom: 12px; line-height: 1.2;
}
.rose-section-heading em { font-style: italic; color: var(--gold-lt); }
.rose-section-body { font-size: .9rem; color: var(--body); line-height: 1.85; margin-bottom: 20px; }
.far-mini-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--rule); border-radius: 8px; overflow: hidden;
}
.far-mini-step { background: var(--surface-2); padding: 24px 20px; }
.far-mini-n {
  font-family: var(--f-d); font-size: 2rem; font-weight: 300;
  color: rgba(212,168,67,0.15); line-height: 1; margin-bottom: 10px;
}
.far-mini-title { font-family: var(--f-d); font-size: .98rem; color: var(--ink); margin-bottom: 6px; }
.far-mini-body { font-size: .8rem; color: var(--body); line-height: 1.7; }
.rose-apps-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1px; background: var(--rule); border-radius: 8px; overflow: hidden;
}
.rose-app-card {
  background: var(--surface-2); padding: 20px 18px;
  display: flex; align-items: flex-start; gap: 12px;
}
.rose-app-card-icon {
  width: 36px; height: 36px; border-radius: 7px;
  background: rgba(212,168,67,0.1); border: 1px solid rgba(212,168,67,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}
.rose-app-card-name { font-family: var(--f-d); font-size: .95rem; font-weight: 500; color: var(--ink); margin-bottom: 3px; }
.rose-app-card-desc { font-size: .78rem; color: var(--body); line-height: 1.6; }
.rose-stats-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--rule); border-radius: 8px; overflow: hidden;
}
.rose-stat { background: var(--surface-2); padding: 26px 20px; text-align: center; }
.rose-stat-n {
  font-family: var(--f-d); font-size: 2.4rem; font-weight: 300;
  color: var(--gold-lt); line-height: 1; margin-bottom: 7px; display: block;
}
.rose-stat-l {
  font-family: var(--f-m); font-size: .54rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); line-height: 1.5;
}
.rose-spec-list { display: flex; flex-direction: column; gap: 1px; background: var(--rule); border-radius: 8px; overflow: hidden; }
.rose-spec-item {
  background: var(--surface-2); padding: 13px 18px;
  display: flex; align-items: center; gap: 14px; font-size: .86rem;
}
.rose-spec-key {
  font-family: var(--f-m); font-size: .56rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); width: 120px; flex-shrink: 0;
}
.rose-spec-val { color: var(--body); }

/* ── RESPONSIVE ── */
@media(max-width:980px){
  .wrap { padding: 0 32px; }
  .hero-inner { grid-template-columns: 1fr; padding: 130px 32px 64px; }
  .hero-video-frame { display: none; }
  #hero-scroll-hint { left: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-frame { max-width: 260px; aspect-ratio: 3/2; }
  .peek-strip { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
  .far-mini-grid, .rose-apps-grid, .rose-stats-row, .method-grid { grid-template-columns: 1fr; }

  /* ROSe contained frame on tablet */
  .rose-frame { aspect-ratio: 16 / 11; }
  #rose-panels { grid-template-columns: 1fr; padding: 18px 0 0; min-height: 0; }
  .rose-panel { width: calc(100% - 32px); }
  .rose-under-bar { padding: 16px 22px; }
}
@media(max-width:680px){
  .n-links { display: none; }
  .n-ham { opacity: 1; pointer-events: auto; max-width: 36px; }
  .hero-inner { padding: 110px 20px 50px; grid-template-columns: 1fr; }
  .hero-h { font-size: clamp(2.1rem,8vw,2.9rem); }
  #hero-scroll-hint { display: none; }
  .hero-ticker-wrap { display: none; }
  .sec { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  .cta { padding: 72px 20px; }
  footer { padding: 28px 20px; }

  /* ROSe on phone */
  .rose-frame { aspect-ratio: 4 / 3; }
  #rose-spacer { height: 0; }
  #rose-panels { grid-template-columns: 1fr; padding: 16px 0 0; min-height: 0; }
  .rose-panel-heading { font-size: clamp(1.4rem, 6vw, 2rem); }
  .rose-panel-body { font-size: .88rem; }
  .rose-under-bar { padding: 14px 16px; }
  .rose-under-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .rose-inframe-label { font-size: .7rem; }
  .rose-inframe-actions { width: 100%; }
  .rose-inframe-actions .btn-rose-projects { margin-left: auto; }
}

/* Reduced motion */
@media(prefers-reduced-motion:reduce){
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .hero-glow { animation: none; }
  .hero-marquee-track, .hero-ticker-track { animation: none; }
  [data-cursor], [data-cursor-dot] { display: none !important; }
  body { cursor: auto !important; }
}
#strip-labels {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}
/* Each label is a zero-size anchor; its letters move individually (slinky effect) */
.strip-travel {
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 0;
  margin: 0; padding: 0;
  border: none;
  background: none;
  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.6rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1;
  white-space: pre;
  color: var(--muted);
  transform-origin: center center;
  -webkit-font-smoothing: antialiased;
  transition: color 0.35s 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); }
.strip-travel.is-active .strip-char { color: var(--gold); }
[data-theme="light"] .strip-travel.is-active .strip-char { color: var(--navy); }
[data-theme="light"] .strip-travel:hover .strip-char,
[data-theme="light"] .strip-travel:focus-visible .strip-char { color: var(--gold); }
.strip-travel:focus-visible { outline: none; }
#strip-top, #strip-bottom { overflow: hidden; }

/* Skip preloader on repeat visits within a session */
.intro-seen #preloader { display: none !important; }

/* ── ROSe FAR card: single, horizontal ── */
#rose-panels { grid-template-columns: 1fr; }
.rose-panel--far {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr);
  gap: 32px;
  align-items: center;
  width: auto;
}
.rose-panel--far .rose-panel-heading { margin-bottom: 0; }
.rose-panel--far .rose-apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
[data-theme="light"] .rose-panel--far .rose-app {
  background: var(--surface-2);
  border-color: var(--rule);
}
@media (max-width: 980px) {
  .rose-panel--far { grid-template-columns: 1fr; gap: 20px; width: auto; }
}
@media (max-width: 680px) {
  .rose-panel--far .rose-apps { grid-template-columns: 1fr; }
}

/* ── Light mode: navy pill once scrolled, for contrast over light sections ── */
[data-theme="light"] nav.scrolled {
  background: rgba(27,45,79,0.95);
  border-color: rgba(212,168,67,0.28);
  box-shadow: 0 12px 40px rgba(15,14,12,0.22);
}
[data-theme="light"] nav.scrolled .n-links a:not(.n-cta) { color: rgba(242,237,228,0.72); }
[data-theme="light"] nav.scrolled .n-links a:not(.n-cta):hover { color: #f2ede4; }
[data-theme="light"] nav.scrolled .n-ham span { background: #f2ede4; }
[data-theme="light"] nav.scrolled .n-logo-img {
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(5deg);
}
[data-theme="light"] .mob-nav {
  background: rgba(27,45,79,0.97);
  border-bottom-color: rgba(212,168,67,0.2);
}
[data-theme="light"] .mob-nav a { color: rgba(242,237,228,0.8); }

/* ── Hero availability line ── */
.hero-avail {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-m); font-size: .62rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--body);
  margin: 4px 0 14px;
}
.hero-avail-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #3fa66b; flex-shrink: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, #3fa66b 22%, transparent);
}
/* Learner quote band */
.cta-qa { margin-bottom: 0; }
.cta-qt { max-width: 34ch; margin-left: auto; margin-right: auto; }
.cta-qa { color: rgba(242,237,228,0.62); font-size: .62rem; }

/* ── Theme toggle in the nav (replaces the bottom-left button) ── */
.n-right { display: flex; align-items: center; gap: 10px; }
.theme-toggle--nav {
  width: 38px; height: 38px; flex-shrink: 0;
  color: var(--gold);
  border-color: rgba(212,168,67,0.5);
  background: transparent;
  overflow: visible;
}
.theme-toggle--nav svg { width: 17px; height: 17px; }
.theme-toggle--nav:hover { color: var(--gold-lt); border-color: var(--gold); box-shadow: 0 0 18px rgba(212,168,67,0.3); }
.theme-toggle--nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
nav.scrolled .theme-toggle--nav { width: 32px; height: 32px; }
nav.scrolled .theme-toggle--nav svg { width: 15px; height: 15px; }
/* Two soft pulses after the page settles, so first-time visitors spot it */
.theme-toggle--nav::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--nav::after { animation-delay: 1.4s; }
@keyframes ttPulse {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .theme-toggle--nav::after { animation: none; } }
@media (max-width: 680px) { .n-right { gap: 6px; } }

/* ── LinkedIn links ── */
.about-li, .contact-li {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-m); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color .2s ease;
}
.about-li { margin-top: 14px; }
.contact-li { display: flex; justify-content: center; margin-top: 14px; color: var(--muted); }
.about-li svg, .contact-li svg { width: 14px; height: 14px; flex-shrink: 0; }
.about-li:hover, .contact-li:hover { color: var(--gold-lt); }
.about-li span, .contact-li span { border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* Keep the full-width nav clear of the section ruler on the right */
@media (min-width: 981px) {
  body:not([data-page="projects"]) nav:not(.scrolled) {
    left: calc((100% - clamp(5.5rem, 7.5vw, 7.25rem)) / 2);
    width: calc(100% - clamp(5.5rem, 7.5vw, 7.25rem) - 24px);
  }
}

/* ── Methodology: hovered card magnifies, the rest step back ── */
@media (hover: hover) and (min-width: 981px) {
  .method-grid { overflow: visible; background: transparent; gap: 1px; }
  .method-grid .method-card {
    transition: background 0.45s var(--ease), transform 0.5s var(--ease), opacity 0.4s ease, box-shadow 0.5s ease;
    outline: 1px solid var(--rule);
  }
  .method-grid .method-card:nth-child(1) { border-top-left-radius: 10px; }
  .method-grid .method-card:nth-child(2) { border-top-right-radius: 10px; }
  .method-grid .method-card:nth-child(3) { border-bottom-left-radius: 10px; }
  .method-grid .method-card:nth-child(4) { border-bottom-right-radius: 10px; }
  .method-grid:hover .method-card:not(:hover) { opacity: 0.45 !important; }
  .method-grid .method-card:hover {
    opacity: 1;
    transform: scale(1.07);
    z-index: 3;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  }
  .method-grid .method-card:hover .method-body { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .method-grid .method-card:hover { transform: none; }
}

/* ── 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; }
/* Freeze color transitions while the snapshot is taken so the new theme lands crisp */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }
