/* ==========================================================================
   NYCE GUY INNOVATIONS — style.css
   Metallic navy · brushed silver · black void · amber accent
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --void: #05070D;
  --navy-900: #0A1428;
  --navy-700: #122347;
  --navy-500: #1E3A6E;
  --steel: #4A6A9B;
  --silver-100: #EEF2F7;
  --silver-300: #C4CCD8;
  --silver-500: #8993A6;
  --silver-700: #4B5467;
  --amber: #E3A65B;

  --hair: rgba(196, 204, 216, .14);
  --hair-strong: rgba(196, 204, 216, .28);
  --glass: rgba(10, 20, 40, .55);

  --grad-silver: linear-gradient(180deg, #FFFFFF 0%, #DDE3EB 38%, #8A94A8 56%, #C9D1DC 78%, #EEF2F7 100%);
  --grad-navy: linear-gradient(135deg, #1E3A6E 0%, #0A1428 50%, #122347 100%);

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-display: clamp(3rem, 8.4vw, 10.5rem);
  --fs-h2: clamp(2.6rem, 6.6vw, 8rem);
  --fs-h3: clamp(1.6rem, 2.6vw, 2.6rem);
  --fs-body: clamp(1rem, 1.05vw, 1.15rem);
  --fs-lead: clamp(1.1rem, 1.5vw, 1.45rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(1rem, 4vw, 4rem);
  --maxw: 1480px;
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); color-scheme: dark; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--void);
  color: var(--silver-300);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--steel); color: var(--silver-100); }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: .75rem 1rem; background: var(--silver-100); color: var(--void);
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: var(--fs-display);
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--silver-100);
}
.metal, .metal .char {
  background: var(--grad-silver);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.serif-accent {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  text-transform: none;
  letter-spacing: -.01em;
}
.display .serif-accent { font-size: 1.08em; line-height: .8; padding-right: .06em; }
.label {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--silver-500);
}
.section-label { display: flex; align-items: center; gap: .9rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-label::before { content: ""; width: 36px; height: 1px; background: var(--amber); }

/* Line masks — the Rise motif */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line-inner { display: block; will-change: transform; }
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; will-change: transform; }

/* Sheen sweep on metallic lines */
.sheen {
  background-image:
    linear-gradient(105deg, transparent 38%, rgba(255,255,255,.95) 48%, transparent 58%),
    var(--grad-silver);
  background-size: 260% 100%, 100% 100%;
  background-position: 130% 0, 0 0;
  background-repeat: no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .75rem;
  height: 56px; padding: 0 1.6rem;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  font-family: var(--f-body); font-weight: 500; font-size: .98rem;
  color: var(--silver-100);
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--silver-100);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--void); border-color: var(--silver-100); }
.btn__arrow { font-style: normal; transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary { background: linear-gradient(180deg, rgba(238,242,247,.14), rgba(238,242,247,.04)); border-color: rgba(238,242,247,.4); }
.btn--ghost { background: transparent; }
.btn--pill { height: 44px; padding: 0 1.2rem; font-size: .88rem; }
.btn--amber { background: linear-gradient(120deg, var(--amber), #C9D1DC); color: var(--void); border: 0; font-weight: 600; }
.btn--amber::before { background: var(--silver-100); }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  width: 200%; height: 200%;
  opacity: .06; mix-blend-mode: overlay;
  background-size: 256px 256px;
  animation: grain 1s steps(8) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 12% { transform: translate(-5%,-8%); } 25% { transform: translate(-12%,4%); }
  37% { transform: translate(7%,-12%); } 50% { transform: translate(-4%,12%); } 62% { transform: translate(-12%,2%); }
  75% { transform: translate(10%,6%); } 87% { transform: translate(3%,-4%); } 100% { transform: translate(0,0); }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  background: radial-gradient(ellipse at 50% 60%, var(--navy-900), var(--void) 70%);
}
.js .preloader { display: grid; animation: preloader-failsafe 0s 7s forwards; }
@keyframes preloader-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
.preloader__inner { display: grid; justify-items: center; gap: 1.4rem; }
.preloader__word {
  display: flex; overflow: hidden;
  font-family: var(--f-display); font-weight: 800; font-stretch: 125%;
  font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -.01em;
}
.preloader__word span { display: inline-block; background: var(--grad-silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.preloader__bar { width: min(240px, 50vw); height: 1px; background: var(--hair); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; background: var(--silver-100); transform-origin: left; transform: scaleX(0); }
.preloader__word--logo span { display: block; background: none; }
.preloader__logo { display: block; width: clamp(170px, 22vw, 260px); height: auto; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: text; }
.has-cursor .preview__screen, .has-cursor .preview__screen * { cursor: auto; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; }
.cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--silver-100); }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(238,242,247,.45);
  display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease);
}
.cursor__text { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--void); opacity: 0; transition: opacity .3s; }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--silver-100); }
.cursor.is-view .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--silver-100); border-color: var(--silver-100); }
.cursor.is-view .cursor__text { opacity: 1; }
.cursor.is-view .cursor__dot { opacity: 0; }
.cursor.is-hidden { opacity: 0 !important; }
.cursor.is-cta .cursor__ring { border-color: var(--amber); background: rgba(227,166,91,.12); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  transition: transform .6s var(--ease), background-color .6s var(--ease), backdrop-filter .6s;
}
.nav.is-scrolled { background: rgba(5,7,13,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: .7rem; font-family: var(--f-display); font-weight: 800; font-stretch: 125%; letter-spacing: .02em; color: var(--silver-100); font-size: 1.05rem; }
.nav__logo { height: 28px; width: auto; flex-shrink: 0; }
.nav__tagline { font-family: var(--f-body); font-weight: 500; font-stretch: 100%; font-size: .82rem; letter-spacing: .06em; color: var(--silver-300); white-space: nowrap; }
.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.nav__link { position: relative; font-size: .92rem; color: var(--silver-300); transition: color .3s; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: var(--silver-100); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__link:hover { color: var(--silver-100); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--silver-100); transition: transform .5s var(--ease); }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 95;
  background: radial-gradient(ellipse at 50% 100%, var(--navy-700), var(--void) 70%);
  display: flex; align-items: center; padding: var(--gutter);
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: .4rem; }
.menu__link { display: block; overflow: hidden; font-family: var(--f-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase; font-size: clamp(2.4rem, 11vw, 4.5rem); line-height: 1.05; color: var(--silver-100); }
.menu__link span { display: block; }
.menu__link--cta { color: var(--amber); margin-top: 1rem; font-size: clamp(1.6rem, 7vw, 2.6rem); }

/* ---------- Scenes (video / fallback) ---------- */
.stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.scene { position: absolute; inset: 0; overflow: hidden; background: var(--void); }
.scene__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.scene.has-video .scene__video { opacity: 1; }
.scene.has-video .scene__fallback { opacity: 0; visibility: hidden; transition: opacity 1s, visibility 0s 1s; }
.scene__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 30%, rgba(5,7,13,.75) 100%),
    linear-gradient(180deg, rgba(5,7,13,.5) 0%, transparent 22%, transparent 55%, rgba(5,7,13,.92) 100%);
}
.scene__shade--heavy { background: linear-gradient(90deg, rgba(5,7,13,.92) 0%, rgba(5,7,13,.55) 55%, rgba(5,7,13,.3) 100%), linear-gradient(180deg, rgba(5,7,13,.6), transparent 30%, transparent 70%, rgba(5,7,13,.9)); }

/* ---------- HERO ---------- */
.hero { position: relative; }
.motion .hero { height: 170vh; }
.motion .hero__stage { position: sticky; top: 0; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__portrait {
  position: absolute; right: 4%; bottom: 0;
  height: 92%; width: auto; max-width: none;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(.78);
  mix-blend-mode: luminosity;
  opacity: .72;
  -webkit-mask-image: radial-gradient(ellipse 48% 56% at 50% 44%, #000 42%, transparent 78%);
  mask-image: radial-gradient(ellipse 48% 56% at 50% 44%, #000 42%, transparent 78%);
  transform-origin: 50% 40%;
}
.hero__content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) clamp(5.5rem, 12vh, 8rem);
  max-width: var(--maxw); margin-inline: auto;
}
.hero__eyebrow { margin-bottom: 1.4rem; }
.hero__title { max-width: 14ch; }
.hero__bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.6rem 3rem; margin-top: clamp(1.6rem, 3.5vw, 2.8rem); }
.hero__sub { max-width: 34ch; font-size: var(--fs-lead); line-height: 1.45; color: var(--silver-300); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; z-index: 2; transform: translateX(-50%); display: flex; align-items: center; gap: .8rem; }
.scroll-cue__line { position: relative; width: 1px; height: 38px; background: var(--hair); overflow: hidden; }
.scroll-cue__line i { position: absolute; left: -1px; top: 0; width: 3px; height: 10px; background: var(--silver-100); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-12px); } 100% { transform: translateY(40px); } }

/* ---------- STATS ---------- */
.stats { position: relative; background: var(--navy-900); border-block: 1px solid var(--hair); overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: var(--grad-navy); opacity: .5; }
.marquee { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; opacity: .045; }
.marquee__track { display: flex; white-space: nowrap; animation: marquee 60s linear infinite; }
.marquee__track span { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(5rem, 14vw, 13rem); color: var(--silver-100); padding-right: .3em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--maxw); margin-inline: auto; }
.stat { display: grid; gap: .9rem; padding: clamp(2.4rem, 5vw, 4.5rem) var(--gutter); border-left: 1px solid var(--hair); }
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--f-display); font-weight: 800; font-stretch: 118%; font-size: clamp(3rem, 6vw, 6.5rem); line-height: .9; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__suffix { font-size: .55em; vertical-align: .55em; margin-left: .04em; }

/* ---------- MISSION ---------- */
.mission { position: relative; min-height: 100vh; display: flex; align-items: center; padding-block: clamp(6rem, 14vh, 11rem); }
.mission::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: clamp(4rem, 12vh, 8rem); background: linear-gradient(var(--hair-strong), transparent); }
.mission__title {
  font-family: var(--f-display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(2.4rem, 6.2vw, 7.2rem); line-height: .95; letter-spacing: -.02em;
  text-transform: uppercase; color: var(--silver-100);
  max-width: 16ch;
}
.mission__accent { background: linear-gradient(var(--amber), var(--amber)) no-repeat 0 94% / 0% .05em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html:not(.motion) .mission__accent { background-size: 100% .05em; }
.mission__body { margin-top: clamp(2rem, 4vw, 3.5rem); max-width: 40ch; margin-left: auto; font-size: clamp(1.3rem, 2.2vw, 2.1rem); line-height: 1.35; color: var(--silver-100); font-family: var(--f-body); letter-spacing: -.01em; }
[data-words] .w { display: inline; transition: none; }

/* ---------- PILLARS ---------- */
.pillars { position: relative; }
.pillars__stage { height: auto; min-height: 100vh; overflow: visible; }
.pillars__stage .scene, .pillars__stage .scene__shade { position: absolute; }
.pillars__content { position: relative; z-index: 2; padding-block: clamp(6rem, 12vh, 9rem); }
.pillars__title { font-size: var(--fs-h2); margin-bottom: clamp(3rem, 6vw, 5rem); }
.pillars__list { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.pillar { position: relative; }
.pillar__num {
  position: absolute; right: -2%; top: -12%;
  font-family: var(--f-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(8rem, 30vw, 28rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(137,147,166,.35);
  pointer-events: none; z-index: -1;
}
.pillar__card {
  max-width: 620px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background: var(--glass);
  border: 1px solid var(--hair);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 2px;
}
.pillar__kicker { color: var(--amber); margin-bottom: 1.1rem; }
.pillar__title { font-family: var(--f-display); font-weight: 700; font-stretch: 105%; font-size: var(--fs-h3); line-height: 1.05; letter-spacing: -.015em; color: var(--silver-100); margin-bottom: 1rem; }
.pillar__title .serif-accent { font-size: 1.1em; color: var(--silver-300); }
.pillar__copy { color: var(--silver-300); margin-bottom: 1.4rem; max-width: 46ch; }
.pillar__tags, .work-card__tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.pillar__tags li, .work-card__tags li { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--silver-300); padding: .45rem .75rem; border: 1px solid var(--hair); border-radius: 999px; }

/* Desktop motion: pinned stage, panels swap */
@media (min-width: 900px) {
  .motion .pillars { height: 300vh; }
  .motion .pillars__stage { position: sticky; top: 0; height: 100vh; min-height: 0; overflow: hidden; }
  .motion .pillars__content { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 4rem; padding-block: var(--nav-h) 2rem; max-width: var(--maxw); left: 50%; transform: translateX(-50%); }
  .motion .pillars__title { margin-bottom: 0; }
  .motion .pillars__list { position: relative; height: min(62vh, 520px); display: block; }
  .motion .pillar { position: absolute; inset: 0; display: flex; align-items: center; }
  .motion .pillar__num { top: 2%; right: -6%; font-size: clamp(10rem, 20vw, 20rem); }
}

/* Holographic placeholder (Scene 02 fallback) */
.holo { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 68% 55%, rgba(30,58,110,.55), transparent 70%), var(--void); perspective: 1200px; overflow: hidden; }
.holo__glow { position: absolute; left: 55%; top: 30%; width: 50vw; height: 50vw; border-radius: 50%; background: radial-gradient(circle, rgba(74,106,155,.35), transparent 65%); filter: blur(20px); }
.holo__desk { position: absolute; left: 30%; right: -10%; bottom: -8%; height: 30%; background: radial-gradient(ellipse at 50% 0%, rgba(196,204,216,.12), transparent 60%); transform: perspective(600px) rotateX(70deg); border-top: 1px solid rgba(196,204,216,.25); }
.holo__panel {
  position: absolute;
  background: linear-gradient(160deg, rgba(74,106,155,.22), rgba(10,20,40,.35));
  border: 1px solid rgba(196,204,216,.28);
  box-shadow: 0 0 40px rgba(74,106,155,.25), inset 0 0 30px rgba(74,106,155,.12);
  border-radius: 3px;
  padding: 12px;
  backdrop-filter: blur(3px);
}
.holo__bar { height: 6px; width: 40%; background: rgba(238,242,247,.35); border-radius: 3px; margin-bottom: 12px; }
.holo__panel--a { left: 54%; top: 18%; width: 22vw; height: 15vw; }
.holo__panel--b { left: 74%; top: 30%; width: 20vw; height: 12vw; }
.holo__panel--c { left: 48%; top: 52%; width: 16vw; height: 11vw; }
.holo__panel--d { left: 68%; top: 58%; width: 18vw; height: 13vw; }
.holo__panel--e { left: 60%; top: 6%; width: 26vw; height: 8vw; }
.holo__panel--f { left: 86%; top: 62%; width: 14vw; height: 12vw; }
.holo__rows i { display: block; height: 5px; margin-bottom: 10px; background: rgba(196,204,216,.22); border-radius: 3px; }
.holo__rows i:nth-child(2) { width: 80%; } .holo__rows i:nth-child(3) { width: 60%; } .holo__rows i:nth-child(4) { width: 70%; }
.holo__panel svg { width: 100%; height: 70%; }
.holo__panel polyline { fill: none; stroke: rgba(238,242,247,.7); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.holo__swatches { display: flex; gap: 8px; }
.holo__swatches i { flex: 1; aspect-ratio: 1; border-radius: 50%; background: var(--navy-500); border: 1px solid rgba(238,242,247,.3); }
.holo__swatches i:nth-child(2) { background: var(--silver-300); } .holo__swatches i:nth-child(3) { background: var(--steel); } .holo__swatches i:nth-child(4) { background: var(--amber); opacity: .7; }
.holo__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.holo__grid i { aspect-ratio: 1; background: rgba(196,204,216,.14); border: 1px solid rgba(196,204,216,.18); }
.holo__timeline { display: grid; gap: 6px; }
.holo__timeline i { height: 8px; border-radius: 2px; background: linear-gradient(90deg, rgba(74,106,155,.7) 0 30%, rgba(196,204,216,.35) 30% 55%, rgba(227,166,91,.45) 55% 70%, rgba(74,106,155,.5) 70%); }
.holo__timeline i:nth-child(2) { width: 80%; margin-left: 10%; } .holo__timeline i:nth-child(3) { width: 60%; }
.holo__nodes { position: relative; height: 70%; }
.holo__nodes i { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(238,242,247,.6); }
.holo__nodes i:nth-child(1) { left: 10%; top: 20%; } .holo__nodes i:nth-child(2) { left: 50%; top: 60%; } .holo__nodes i:nth-child(3) { left: 78%; top: 15%; }

/* ---------- STORY ---------- */
.story { position: relative; padding-block: clamp(7rem, 16vh, 12rem); overflow: hidden; }
.story__rise {
  position: absolute; left: 50%; top: 10%; transform: translateX(-50%);
  font-family: var(--f-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(9rem, 34vw, 34rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(137,147,166,.18);
  pointer-events: none; white-space: nowrap;
}
.story__grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.story__media { position: sticky; top: calc(var(--nav-h) + 3rem); display: grid; gap: 1rem; }
.story__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy-900); }
.story__frame img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: grayscale(1) contrast(1.15) brightness(1.08); transform: scale(1.12); }
.story__frame::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, #2A4A86, #0A1428); mix-blend-mode: multiply; opacity: .5; pointer-events: none; }
.story__frame::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(0deg, rgba(5,7,13,.7), transparent 45%), linear-gradient(90deg, rgba(227,166,91,.12), transparent 40%); pointer-events: none; }
.story__title { font-size: var(--fs-h2); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.story__body { display: grid; gap: 1.4rem; max-width: 56ch; font-size: clamp(1.05rem, 1.2vw, 1.25rem); line-height: 1.7; }
.story__pull { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.25; color: var(--silver-100); padding-left: 1.4rem; border-left: 1px solid var(--amber); }
.signature { margin-top: 2.6rem; display: grid; gap: .2rem; width: max-content; }
.signature__name { font-family: var(--f-serif); font-style: italic; font-size: 2rem; color: var(--silver-100); }
.signature__swash { width: 220px; height: 28px; }
.signature__swash path { fill: none; stroke: var(--amber); stroke-width: 1.5; stroke-linecap: round; }

/* ---------- PROCESS ---------- */
.process { position: relative; padding-block: clamp(5rem, 12vh, 9rem); border-top: 1px solid var(--hair); background: linear-gradient(180deg, var(--void), var(--navy-900) 60%, var(--void)); }
.process__title { font-size: var(--fs-h2); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.process__viewport { overflow: hidden; }
.process__track { display: grid; gap: 1rem; padding-inline: var(--gutter); max-width: var(--maxw); margin-inline: auto; }
.step { position: relative; display: grid; align-content: space-between; gap: 2rem; min-height: 300px; padding: clamp(1.6rem, 2.6vw, 2.4rem); border: 1px solid var(--hair); background: linear-gradient(160deg, rgba(30,58,110,.25), rgba(5,7,13,.2)); }
.step__num { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: clamp(3.5rem, 6vw, 6rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--silver-500); }
.step__title { font-family: var(--f-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; color: var(--silver-100); margin-bottom: .8rem; }
.step p { max-width: 32ch; }
.step--rise { border-color: rgba(227,166,91,.45); }
.step--rise .step__num { -webkit-text-stroke-color: var(--amber); }
.step--note { border: 0; background: none; align-content: center; min-height: 0; }
.step__community { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.5rem, 2.4vw, 2.4rem); line-height: 1.2; color: var(--silver-100); max-width: 18ch; }
.process__progress { margin-top: 2.5rem; }
.process__progress i { display: block; height: 1px; background: linear-gradient(90deg, var(--silver-100), var(--amber)); transform-origin: left; transform: scaleX(0); }

@media (min-width: 900px) {
  .process__track { grid-template-columns: repeat(2, 1fr); }
  .motion .process { padding-block: 0; }
  .motion .process__pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .motion .process__head { padding-top: var(--nav-h); }
  .motion .process__title { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); font-size: clamp(2.4rem, 5vw, 6rem); }
  .motion .process__track { display: flex; width: max-content; max-width: none; margin: 0; padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); padding-right: 12vw; gap: 1.2rem; will-change: transform; }
  .motion .step { width: clamp(320px, 30vw, 460px); min-height: min(46vh, 420px); }
  .motion .step--note { width: clamp(300px, 26vw, 400px); }
}

/* ---------- WORK ---------- */
.work { padding-block: clamp(7rem, 16vh, 12rem); }
.work__head { display: flex; flex-direction: column; margin-bottom: clamp(3rem, 6vw, 5rem); }
.work__title { font-size: var(--fs-h2); }
.work__intro { max-width: 46ch; margin: -1.5rem 0 clamp(2rem, 4vw, 3rem); color: var(--silver-300); font-size: var(--fs-lead); line-height: 1.45; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* High-tech browser workspace */
.browser {
  position: relative;
  border: 1px solid var(--hair-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18,35,71,.55), rgba(5,7,13,.9));
  box-shadow: 0 60px 140px rgba(0,0,0,.55), 0 0 0 1px rgba(74,106,155,.12), 0 0 80px rgba(74,106,155,.12);
  overflow: hidden;
}
.browser__bar { display: flex; align-items: flex-end; gap: 14px; height: 46px; padding: 0 14px; background: rgba(8,14,28,.92); border-bottom: 1px solid var(--hair); }
.browser__dots { display: flex; gap: 7px; align-self: center; flex-shrink: 0; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--silver-700); }
.browser__dots i:first-child { background: rgba(227,166,91,.75); }
.browser__tabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.browser__tabs::-webkit-scrollbar { display: none; }
.browser__tab {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  height: 34px; padding: 0 16px;
  border: 1px solid var(--hair); border-bottom: 0; border-radius: 9px 9px 0 0;
  font-size: .8rem; color: var(--silver-500); background: rgba(5,7,13,.4);
  transition: color .3s, background-color .3s, border-color .3s;
}
.browser__tab:hover { color: var(--silver-100); }
.browser__tab.is-active { color: var(--silver-100); background: var(--navy-700); border-color: var(--hair-strong); }
.browser__tab-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--steel); }
.browser__tab.is-active .browser__tab-dot { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.browser__status { margin-left: auto; align-self: center; display: flex; align-items: center; gap: 8px; font-size: .64rem; flex-shrink: 0; }
.browser__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(227,166,91,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(227,166,91,0); } 100% { box-shadow: 0 0 0 0 rgba(227,166,91,0); } }
.browser__address { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 14px; background: rgba(5,7,13,.65); border-bottom: 1px solid var(--hair); }
.browser__nav { display: flex; gap: 12px; color: var(--silver-700); font-style: normal; }
.browser__nav i { font-style: normal; font-size: 1rem; }
.browser__url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; height: 28px; padding: 0 14px; border-radius: 999px; background: rgba(18,35,71,.55); border: 1px solid var(--hair); font-family: var(--f-mono); font-size: .74rem; color: var(--silver-300); white-space: nowrap; overflow: hidden; }
.browser__url svg { color: var(--steel); flex-shrink: 0; }
.browser__mode { font-size: .62rem; color: var(--steel); }

.browser__canvas {
  position: relative;
  height: clamp(560px, 78vh, 820px);
  overflow: hidden;
  background-color: #04070f;
  background-image:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(30,58,110,.45), transparent 70%),
    linear-gradient(rgba(74,106,155,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,106,155,.07) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  background-position: center, center, center;
}
.browser__canvas::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px); z-index: 60; }
.browser__corner { position: absolute; width: 18px; height: 18px; border: 1px solid rgba(196,204,216,.35); pointer-events: none; }
.browser__corner--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.browser__corner--tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.browser__corner--bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.browser__corner--br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.browser__readout { position: absolute; left: 40px; bottom: 16px; font-size: .62rem; color: var(--steel); pointer-events: none; }

/* No-JS / pre-JS fallback: a simple grid */
.browser__canvas:not(.is-live) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding: 2.5rem; height: auto; }
.browser__canvas:not(.is-live) .win { position: relative; width: auto; }

/* Draggable windows */
.win {
  position: absolute; left: 0; top: 0;
  width: clamp(250px, 31%, 440px);
  display: block;
  border: 1px solid var(--hair-strong);
  border-radius: 10px;
  background: var(--navy-900);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(74,106,155,.12);
  touch-action: none;
  user-select: none; -webkit-user-select: none;
  cursor: grab;
  transition: box-shadow .45s var(--ease), border-color .45s var(--ease), scale .45s var(--ease);
  opacity: var(--eo, 1);
  transform: translateY(var(--ey, 0%)) scale(var(--es, 1));
  will-change: translate;
}
.win:hover { border-color: var(--silver-500); box-shadow: 0 36px 70px rgba(0,0,0,.6), 0 0 34px rgba(74,106,155,.35); }
.win.is-dragging { cursor: grabbing; scale: 1.04; border-color: var(--steel); box-shadow: 0 60px 100px rgba(0,0,0,.65), 0 0 50px rgba(74,106,155,.5); transition: box-shadow .3s, border-color .3s, scale .3s var(--ease); }
.win__chrome { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: linear-gradient(180deg, rgba(30,58,110,.55), rgba(10,20,40,.95)); border-bottom: 1px solid var(--hair); }
.win__chrome i { width: 6px; height: 6px; border-radius: 50%; background: var(--silver-700); }
.win__domain { margin-left: 8px; padding: 1px 10px; border-radius: 999px; background: rgba(5,7,13,.6); border: 1px solid var(--hair); font-family: var(--f-mono); font-size: .6rem; letter-spacing: .06em; color: var(--silver-500); }
.win__screen { display: block; aspect-ratio: 1869 / 816; overflow: hidden; }
.win__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.win__label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--hair); }
.win__title { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: .92rem; color: var(--silver-100); white-space: nowrap; }
.win__tags { margin-left: auto; font-size: .56rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Preview card */
.preview {
  position: absolute; inset: 14px; z-index: 50;
  display: flex; flex-direction: column;
  border: 1px solid var(--hair-strong); border-radius: 12px;
  background: rgba(6,11,24,.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 60px rgba(74,106,155,.25);
  overflow: hidden;
}
.preview[hidden] { display: none; }
.preview__bar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-bottom: 1px solid var(--hair); background: rgba(8,14,28,.9); }
.preview__url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 14px; border-radius: 999px; background: rgba(18,35,71,.55); border: 1px solid var(--hair); font-size: .66rem; letter-spacing: .06em; text-transform: none; color: var(--silver-300); white-space: nowrap; overflow: hidden; }
.preview__url svg { color: var(--amber); flex-shrink: 0; }
.preview__tools { display: flex; align-items: center; gap: 10px; }
.preview__device { display: flex; padding: 3px; border: 1px solid var(--hair); border-radius: 999px; }
.preview__device button { padding: .3rem .8rem; border-radius: 999px; font-size: .74rem; color: var(--silver-500); transition: background-color .3s, color .3s; }
.preview__device button[aria-pressed="true"] { background: var(--silver-100); color: var(--void); }
.preview__close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hair-strong); font-size: 1.3rem; line-height: 1; color: var(--silver-100); transition: background-color .3s, color .3s; }
.preview__close:hover { background: var(--silver-100); color: var(--void); }
.preview__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.preview__screen {
  position: relative; min-height: 0; overflow: hidden;
  display: flex; justify-content: center; align-items: flex-start; padding: 16px;
  background-color: #03050b;
  background-image: linear-gradient(rgba(74,106,155,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(74,106,155,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.preview__frame { position: relative; overflow: hidden; border-radius: 8px; border: 1px solid var(--hair-strong); background: var(--navy-900); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.preview__frame.is-mobile { border-radius: 28px; border: 7px solid #0e1628; box-shadow: 0 0 0 1px var(--hair-strong), 0 20px 60px rgba(0,0,0,.6); }
.preview__shot { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.preview__frame.is-mobile .preview__shot { display: none; }
.preview__frame iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; opacity: 0; transition: opacity .6s var(--ease); }
.preview__frame.is-loaded iframe { opacity: 1; }
.preview__loading { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: .5rem 1rem; border-radius: 999px; background: rgba(5,7,13,.85); border: 1px solid var(--hair); font-size: .62rem; white-space: nowrap; color: var(--silver-300); }
.preview__frame.is-loaded .preview__loading { display: none; }
.preview__info { display: flex; flex-direction: column; gap: 14px; padding: 26px 24px; border-left: 1px solid var(--hair); overflow-y: auto; }
.preview__title { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; text-transform: uppercase; font-size: clamp(1.6rem, 2.2vw, 2.3rem); line-height: 1; color: var(--silver-100); }
.preview__desc { color: var(--silver-300); }
.preview__visit { align-self: flex-start; margin-top: 6px; }
.preview__hint { margin-top: auto; font-size: .6rem; }

/* ---------- CLUBHOUSE / CONTACT ---------- */
.club { position: relative; }
.club__stage { position: sticky; top: 0; z-index: 0; }
.club__shade { background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 20%, rgba(5,7,13,.8) 100%), linear-gradient(180deg, rgba(5,7,13,.7), transparent 30%, rgba(5,7,13,.5)); }
.club__content { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; }
.club__intro { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-block: var(--nav-h) 4rem; }
.club__intro .section-label { justify-content: center; }
.club__title { font-size: clamp(3rem, 9.6vw, 11.5rem); }
.club__title .char { background: var(--grad-silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.club__sub { margin-top: 2rem; font-size: var(--fs-lead); color: var(--silver-100); max-width: 36ch; }
.club__form-wrap { padding-bottom: clamp(6rem, 14vh, 10rem); scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* Corridor placeholder (Scene 03 fallback) */
.corridor { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Contact form */
.contact {
  position: relative;
  max-width: 980px; margin-inline: auto;
  padding: clamp(1.6rem, 4vw, 3.4rem);
  background: rgba(10,20,40,.62);
  border: 1px solid var(--hair-strong);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 4px;
  box-shadow: 0 40px 120px rgba(0,0,0,.5);
}
.contact__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 2.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--hair); }
.contact__lede { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 2.2vw, 2rem); color: var(--silver-100); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2rem; }
.field { position: relative; }
.field--full, .field--chips { grid-column: 1 / -1; }
.field > input, .field > textarea, .field > select {
  width: 100%; padding: 1.5rem 0 .7rem;
  background: transparent; border: 0; border-bottom: 1px solid var(--hair-strong);
  font-size: 1.05rem; color: var(--silver-100);
  border-radius: 0; outline: none;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--silver-500) 50%), linear-gradient(-45deg, transparent 50%, var(--silver-500) 50%); background-position: calc(100% - 12px) 58%, calc(100% - 6px) 58%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--navy-900); color: var(--silver-100); }
.field > label { position: absolute; left: 0; top: 1.5rem; color: var(--silver-500); font-size: 1.05rem; pointer-events: none; transform-origin: left top; transition: transform .45s var(--ease), color .45s var(--ease); }
.field > input:focus + label, .field > input:not(:placeholder-shown) + label,
.field > textarea:focus + label, .field > textarea:not(:placeholder-shown) + label,
.field > label.is-static { transform: translateY(-1.35rem) scale(.78); color: var(--silver-300); }
.field > input:focus, .field > textarea:focus, .field > select:focus { border-bottom-color: var(--steel); box-shadow: 0 1px 0 0 var(--steel), 0 8px 20px -12px rgba(74,106,155,.8); }
.field [aria-invalid="true"] { border-bottom-color: #E07A6A; }
.field__error { display: block; min-height: 1.2em; margin-top: .35rem; font-size: .8rem; color: #F09A8A; }
.field--chips { border: 0; padding: 0; margin: 0; }
.field--chips legend { color: var(--silver-500); font-size: .9rem; margin-bottom: .9rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.2rem; border: 1px solid var(--hair-strong); border-radius: 999px; font-size: .92rem; color: var(--silver-300); transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); user-select: none; }
.chip:hover span { border-color: var(--silver-300); }
.chip input:checked + span { background: var(--silver-100); color: var(--void); border-color: var(--silver-100); }
.chip input:focus-visible + span { outline: 2px solid var(--steel); outline-offset: 3px; }
.chip.pop span { transform: scale(1.06); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 2.6rem; }
.contact__status { font-size: .92rem; color: var(--silver-300); }
.contact__status.is-error { color: #F09A8A; }
.contact__success { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 1rem; padding: 2rem; background: rgba(10,20,40,.94); border-radius: 4px; }
.contact__success[hidden] { display: none; }
.contact__success .display { font-size: clamp(2.2rem, 5vw, 4.4rem); }

/* ---------- FOOTER ---------- */
.footer { position: relative; padding-top: clamp(4rem, 10vh, 7rem); border-top: 1px solid var(--hair); background: linear-gradient(180deg, var(--void), var(--navy-900)); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.footer__signoff { font-size: clamp(1.8rem, 3.2vw, 3rem); color: var(--silver-100); }
.footer__top-btn { padding: .8rem 0; transition: color .3s; }
.footer__top-btn:hover { color: var(--silver-100); }
.footer__mark { overflow: hidden; text-align: center; padding-top: clamp(2rem, 5vw, 4rem); line-height: .78; }
.footer__mark-inner { display: inline-block; line-height: 0; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.footer__mark-logo { display: block; width: clamp(140px, 16vw, 230px); height: auto; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.6rem 2rem; border-top: 1px solid var(--hair); font-size: .88rem; color: var(--silver-500); }
.footer__social { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__social a { transition: color .3s; }
.footer__social a:hover { color: var(--silver-100); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 899px) {
  :root { --nav-h: 64px; }
  .nav__logo { height: 24px; }
  .nav__tagline { font-size: .72rem; letter-spacing: .04em; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .hero__portrait { right: 50%; transform: translateX(50%); height: 70%; bottom: auto; top: 8%; opacity: .6; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .story__grid { grid-template-columns: 1fr; }
  .story__media { position: relative; top: 0; max-width: 460px; }
  .browser__canvas { height: 640px; }
  .browser__canvas:not(.is-live) { grid-template-columns: 1fr; padding: 1.2rem; }
  .browser__status, .browser__mode, .browser__nav { display: none; }
  .win { width: 64%; }
  .win__tags { display: none; }
  .preview { inset: 8px; }
  .preview__url { visibility: hidden; }
  .preview__body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .preview__info { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-left: 0; border-top: 1px solid var(--hair); }
  .preview__info > .label, .preview__desc, .preview__hint, .preview__info .work-card__tags { display: none; }
  .preview__title { font-size: 1.3rem; }
  .preview__visit { margin: 0 0 0 auto; height: 44px; }
  .preview__device button { padding: .3rem .6rem; }
  .pillar__num { font-size: 42vw; top: -6%; }
  .holo__panel--a { left: 40%; width: 44vw; height: 30vw; }
  .holo__panel--b { left: 62%; top: 42%; width: 36vw; height: 22vw; }
  .holo__panel--c, .holo__panel--f { display: none; }
  .holo__panel--d { left: 14%; top: 70%; width: 36vw; height: 24vw; }
  .holo__panel--e { left: 20%; top: 8%; width: 50vw; height: 14vw; }
}
@media (max-width: 640px) {
  .contact__grid { grid-template-columns: 1fr; }
  .stat { padding: 2rem 1.2rem; }
  .btn { height: 52px; padding: 0 1.3rem; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}

/* ---------- Touch / reduced motion ---------- */
@media (hover: none) {
  .cursor { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { animation: none; }
  .marquee__track { animation: none; }
  .js .preloader { display: none; }
}

/* Mobile hero pin length */
@media (max-width: 899px) { .motion .hero { height: 135vh; } }
