/* ============ Scythe Model Works 镰月刃工坊 — CTA-style system ============ */

@font-face {
  font-family: "Space Mono";
  src: url("/fonts/space-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/fonts/space-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #050505;
  --bg-alt: #0b0b0c;
  --panel: #101012;
  --panel-2: #16161a;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f1f0ea;
  --muted: #7f8388;
  --muted-2: #a7abb0;
  --red: #e21b1b;
  --red-soft: #ff3b3b;
  --radius: 2px;
  --sans: "Helvetica Neue", "HND", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --pad: clamp(1.25rem, 5vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }

/* scroll progress readout (home) */
.scroll-prog {
  position: fixed; right: 1.1rem; top: 50%; transform: translateY(-50%);
  z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem;
  font-family: var(--mono); pointer-events: none; mix-blend-mode: difference;
}
.scroll-prog .pct { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.scroll-prog .track { width: 2px; height: 120px; background: rgba(255,255,255,0.25); position: relative; }
.scroll-prog .track i { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--red); }
@media (max-width: 720px) { .scroll-prog { display: none; } }

/* film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 900; pointer-events: none;
  opacity: 0.05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ shared type helpers ============ */
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono); text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 0.68rem; color: var(--muted);
  font-weight: 400;
}
.eyebrow.red { color: var(--red-soft); }
h1, h2, h3 { font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.98; }
.muted { color: var(--muted-2); }
.center { text-align: center; }

/* ============ boot: logo + red-line progress bar ============ */
#boot {
  position: fixed; inset: 0; z-index: 1000;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
#boot.done { opacity: 0; pointer-events: none; }
.boot-logo { position: relative; width: min(340px, 62vw); }
.boot-logo img { width: 100%; display: block; }
/* overlays positioned to the logo's printed red line (measured from logo.png) */
.boot-cover, .boot-bar {
  position: absolute; left: 24.11%; width: 51.67%;
  top: 76.1%; height: 1.15%;
}
.boot-cover { background: #000; }        /* hides the logo's static red line */
.boot-bar {
  background: var(--red);
  transform-origin: left center; transform: scaleX(0);
  transition: transform 0.25s ease-out;
  box-shadow: 0 0 14px rgba(226, 27, 27, 0.75);
}
/* fallback when the logo has no detectable red line: a bar beneath it */
.boot-fallback .boot-cover { display: none; }
.boot-fallback .boot-bar { left: 18% !important; width: 64% !important; top: 106% !important; height: 3px !important; }

/* ============ intro gate (glitch overlay + prompt) ============ */
#gate {
  position: fixed; inset: 0; z-index: 950; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 5, 5, 0.58);
}
.gate-glitch { position: absolute; inset: 0; pointer-events: none; }
/* dense scanlines + interlace, with a touch of h-sync instability */
.gate-glitch::before {
  content: ""; position: absolute; inset: -12%;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.66) 0 1px, rgba(0,0,0,0) 1px 3px);
  animation: gateHsync 0.28s steps(2) infinite;
}
/* horizontal drift only — no brightness oscillation, which would read as flicker */
@keyframes gateHsync {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-2px); }
}
/* colour bleed + tube vignette (holds still — the picture never moves) */
.gate-glitch::after {
  content: ""; position: absolute; inset: -12%;
  background:
    linear-gradient(90deg, rgba(226,27,27,0.40) 0%, rgba(226,27,27,0) 26%, rgba(0,180,255,0) 74%, rgba(0,180,255,0.32) 100%),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 36%, rgba(0,0,0,0.88) 100%);
  mix-blend-mode: screen;
}
/* TV snow */
.gate-static {
  position: absolute; inset: -20%; pointer-events: none;
  opacity: 0.12; mix-blend-mode: screen;
  transition: opacity 0.08s linear;
  background-size: 170px 170px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: gateSnow 0.2s steps(1) infinite;
}
@keyframes gateSnow {
  0%   { background-position: 0 0; }
  20%  { background-position: -47px 31px; }
  40%  { background-position: 63px -22px; }
  60%  { background-position: -26px -54px; }
  80%  { background-position: 38px 47px; }
  100% { background-position: -61px 12px; }
}
/* vertical-hold band rolling down the tube */
.gate-roll {
  position: absolute; left: -10%; right: -10%; height: 16%; top: -20%;
  pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(180deg,
    rgba(255,255,255,0) 0%, rgba(0,0,0,0.35) 6%,
    rgba(255,255,255,0.07) 40%, rgba(255,255,255,0.11) 52%,
    rgba(255,255,255,0.05) 70%, rgba(255,255,255,0) 100%);
  animation: gateRollBand 7s linear infinite;
}
@keyframes gateRollBand { 0% { top: -20%; } 100% { top: 108%; } }
/* h-sync tear slices — position/size/offset/filter set from JS */
.gate-bar {
  position: absolute; left: -6%; right: -6%; height: 6%; top: 30%;
  opacity: 0; mix-blend-mode: screen; will-change: transform, opacity;
}
/* signal dropout flash, driven from JS */
.gate-flash {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity 0.05s linear;
}
.gate-copy { position: relative; z-index: 2; text-align: center; padding: 0 1.5rem; }
.gate-welcome {
  font-family: var(--mono); text-transform: uppercase; color: var(--text);
  font-size: clamp(0.72rem, 1.7vw, 0.98rem); letter-spacing: 0.34em; margin-bottom: 1.15rem;
  text-shadow: 0 0 26px rgba(0,0,0,0.9), 2px 0 0 rgba(226,27,27,0.55), -2px 0 0 rgba(0,180,255,0.32);
}
.gate-prompt {
  font-family: var(--mono); text-transform: uppercase; color: var(--red-soft);
  font-size: 0.64rem; letter-spacing: 0.28em;
  animation: gateBlink 1.6s ease-in-out infinite;
}
@keyframes gateBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.22; } }
@media (prefers-reduced-motion: reduce) { #gate { display: none; } }

/* ============ nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  background: linear-gradient(180deg, rgba(5,5,5,0.9), rgba(5,5,5,0));
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
/* when the mega-menu is open the bar goes transparent so the X + circles float on top */
.menu-open .nav { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.menu-open .nav-pill { opacity: 0; pointer-events: none; }
.nav.scrolled {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.nav-left { display: flex; align-items: center; gap: 1rem; }
.nav-brand { display: flex; align-items: center; gap: 0.7rem; }
.nav-brand img { width: 34px; height: 34px; }
.nav-brand-text { line-height: 1.1; }
.nav-brand-text strong { display: block; font-size: 0.9rem; letter-spacing: 0.12em; font-weight: 700; }
.nav-brand-text span { display: block; font-family: var(--mono); font-size: 0.6rem; color: var(--muted); letter-spacing: 0.32em; }

/* hamburger → X */
.nav-burger {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  flex-shrink: 0; transition: border-color 0.2s;
}
.nav-burger:hover { border-color: var(--red); }
.nav-burger span { display: block; width: 16px; height: 1.5px; background: var(--text); transition: transform 0.3s ease, opacity 0.3s ease; }
.menu-open .nav-burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .nav-burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.menu-open .nav-burger { border-color: var(--red); }

/* center pill nav */
.nav-pill {
  display: flex; align-items: center; gap: 0.15rem;
  background: rgba(255,255,255,0.045); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.32rem 0.4rem;
}
.nav-pill a {
  position: relative; isolation: isolate;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-2); padding: 0.42rem 0.95rem; border-radius: 999px;
  transition: color 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), letter-spacing 0.35s ease;
}
/* red fill sweeps up from the bottom to fill the pill */
.nav-pill a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px;
  background: var(--red); transform: scaleY(0); transform-origin: bottom center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-pill a:hover {
  color: var(--red-soft); transform: translateY(-3px) scale(1.08); letter-spacing: 0.22em;
}
.nav-pill a.active { color: #fff; }
.nav-pill a.active::before { transform: scaleY(1); }

/* right circular buttons */
.nav-right { display: flex; align-items: center; gap: 0.6rem; }
.nav-circle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; color: var(--muted-2);
  background: transparent; transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.nav-circle:hover { border-color: var(--red); color: var(--red-soft); transform: translateY(-1px); }
.nav-sub { background: var(--red); border-color: var(--red); color: #fff; font-size: 0.8rem; }
.nav-sub:hover { background: var(--red-soft); border-color: var(--red-soft); color: #fff; }

/* full-screen overlay mega-menu */
.nav-overlay { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.nav-overlay.open { visibility: visible; }
.nav-scrim {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55);
  opacity: 0; transition: opacity 0.45s ease;
}
.nav-overlay.open .nav-scrim { opacity: 1; }
.nav-panel {
  position: absolute; top: 0; left: 0; height: 100%; width: min(90vw, 860px);
  background: #050505; border-right: 1px solid var(--line);
  border-top-right-radius: 30px; border-bottom-right-radius: 30px;
  transform: translateX(-102%); transition: transform 0.55s cubic-bezier(0.7, 0, 0.15, 1);
  overflow-y: auto; box-shadow: 40px 0 120px rgba(0,0,0,0.5);
}
.nav-overlay.open .nav-panel { transform: translateX(0); }
.nav-panel-inner { min-height: 100%; padding: clamp(5.5rem, 12vh, 8rem) clamp(1.5rem, 6vw, 5rem) 3rem; display: flex; flex-direction: column; }
.nav-panel-eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.66rem; color: var(--muted); margin-bottom: 1.6rem; }
.nav-big-list { display: flex; flex-direction: column; }
.nav-big {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
  color: var(--text); transition: color 0.2s;
}
.nav-big:hover { color: var(--red-soft); }
.nav-big .idx { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; flex-shrink: 0; width: 2.4ch; }
.nav-big:hover .idx { color: var(--red-soft); }
.nav-big .lbl { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.05; }
.nav-big .alt { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; margin-left: auto; align-self: center; }
.nav-big.active .lbl { color: var(--red-soft); }
.nav-panel-foot { margin-top: auto; padding-top: 2.5rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.npf-col h4 { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; font-weight: 400; }
.npf-socials { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; max-width: 32ch; }
.npf-socials a { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.npf-socials a:hover { color: var(--red-soft); }

.lang-btn { cursor: pointer; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 0.85rem 1.5rem; border: 0; border-radius: 2px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-soft); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--red); color: var(--red-soft); }
.btn-ghost::after { content: "+"; margin-left: auto; color: var(--red-soft); }
.btn-small { padding: 0.5rem 1rem; font-size: 0.66rem; }
.btn-small.btn-ghost::after { content: none; }

/* ============ layout primitives ============ */
.section { padding: clamp(4rem, 10vw, 9rem) var(--pad); max-width: 1400px; margin: 0 auto; position: relative; }
.page-head { padding: clamp(7rem, 14vw, 10rem) var(--pad) 0; max-width: 1400px; margin: 0 auto; }
.page-head h1 { font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -0.02em; }
.page-head .rule { display: none; }
.page-head p { color: var(--muted-2); margin-top: 1.4rem; max-width: 640px; font-size: 1.02rem; }
/* content follows a page header tightly — no dead band between title and content */
.page-head + .section { padding-top: clamp(2.2rem, 4.5vw, 3.5rem); }
/* project pages: header shares the gallery's narrower column so edges align */
.page-head.ph-narrow { max-width: 1000px; }
.eyebrow { display: inline-block; }

/* framed block with corner + markers */
.frame { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.frame::before, .frame::after {
  content: "+"; position: absolute; color: var(--muted); font-size: 1rem; line-height: 1;
  font-family: var(--mono);
}
.frame::before { top: -8px; left: -6px; }
.frame::after { top: -8px; right: -6px; }
.frame .corner-b::before, .frame .corner-b::after {
  content: "+"; position: absolute; color: var(--muted); font-size: 1rem; font-family: var(--mono);
}
.frame .corner-b::before { bottom: -8px; left: -6px; }
.frame .corner-b::after { bottom: -8px; right: -6px; }

/* section index label: 00 / MANDATE */
.sec-index { font-family: var(--mono); }
.sec-index .num { display: block; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; color: var(--text); line-height: 1; }
.sec-index .tag { display: block; margin-top: 0.6rem; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); max-width: 12ch; }

/* spec table (LABEL · VALUE hairline rows) */
.spec { width: 100%; border-collapse: collapse; font-family: var(--mono); }
.spec .row { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.spec .row:first-child { border-top: 1px solid var(--line); }
.spec .k { font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.spec .v { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }

/* reveal animation base (JS animates to visible) */
[data-reveal] { opacity: 0; transform: translateY(26px); }
.no-anim [data-reveal] { opacity: 1; transform: none; }
/* staggered children (grids, page headers) — JS reveals them in sequence */
[data-stagger] > * { opacity: 0; }
.no-anim [data-stagger] > * { opacity: 1; }

/* ============ hero ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8rem var(--pad) 3.5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 70% 0%, rgba(226,27,27,0.16), transparent 55%),
    radial-gradient(ellipse 70% 60% at 15% 100%, rgba(226,27,27,0.07), transparent 60%),
    #050505;
}
.hero-bg::after {
  content: "镰"; position: absolute; right: -3vw; top: 50%; transform: translateY(-50%);
  font-size: clamp(20rem, 42vw, 44rem); font-weight: 900; line-height: 1;
  color: rgba(226, 27, 27, 0.06); pointer-events: none;
}
/* uploaded image/video background */
.hero-media {
  position: absolute; left: 0; top: -20%; width: 100%; height: 140%;
  object-fit: cover; z-index: 0; will-change: transform;
}
.hero-bg.has-media::after { display: none; }             /* hide watermark over media */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.45) 45%, rgba(5,5,5,0.25) 100%),
    linear-gradient(0deg, rgba(5,5,5,0.85) 0%, rgba(5,5,5,0.15) 55%, rgba(5,5,5,0.4) 100%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1400px; margin: 0 auto; }
.hero-eyebrow-row {
  display: flex; justify-content: flex-end; gap: 2rem; margin-bottom: 2rem;
  text-align: right; flex-wrap: wrap;
}
.hero-eyebrow-row .col { display: flex; flex-direction: column; gap: 0.35rem; }
.hero-hairline { height: 1px; background: var(--line); margin: 0 0 2.5rem; }
.hero h1 {
  font-size: clamp(2.8rem, 9.5vw, 8.5rem); letter-spacing: -0.03em; line-height: 0.92;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.3em;
}
.hero h1 .accent { color: var(--red-soft); }
.hero-sub { color: var(--muted-2); font-size: 1.08rem; max-width: 540px; margin: 1.8rem 0 2.2rem; }
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-foot .stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-foot .stats .st strong { display: block; font-size: 1.15rem; font-weight: 600; }
.hero-foot .stats .st span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero-foot .scroll-cue { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.hero-foot .scroll-cue .bar { width: 1px; height: 34px; background: linear-gradient(var(--red), transparent); animation: scrollpulse 1.8s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============ mandate / statement block ============ */
.statement { display: grid; grid-template-columns: 200px 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.statement .big { font-size: clamp(1.9rem, 4.6vw, 3.6rem); letter-spacing: -0.02em; line-height: 1.02; text-transform: uppercase; font-weight: 600; }
.statement .big .accent { color: var(--red-soft); }
.statement .body { color: var(--muted-2); max-width: 620px; margin-top: 1.6rem; font-size: 1.05rem; }
.statement .body.mono-note { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em; }
.statement .spec { margin-top: 2rem; }

/* ============ numbered feature sections ============ */
/* 01/02/03 stack on top of each other: each card sticks at the top while the
   next slides over it, so the content inside never scrolls up and down */
.feature-stack { position: relative; }
.feature {
  position: sticky; top: 0; height: 100vh; display: flex; align-items: flex-end;
  padding: clamp(3rem, 8vw, 7rem) var(--pad);
  overflow: hidden; background: var(--bg);
  will-change: transform, filter;
}
/* the content that follows must fully occlude the last pinned card */
.post-stack { position: relative; z-index: 5; background: var(--bg); }
/* works handoff: the section pins while its title blooms and the deck deals */
.works-intro { background: var(--bg); position: relative; overflow: hidden; }
/* no rule above Selected Builds — the bloom hands off to it directly */
.works-intro .strip-head { border-top: 0; padding-top: 0; }
/* pinned to the first viewport of the section so it centres on screen, not in
   the (much taller) section box */
.works-bloom {
  position: absolute; top: 0; left: 0; right: 0; height: 100vh;
  z-index: 2; pointer-events: none; opacity: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 var(--pad);
  font-size: clamp(2.2rem, 8.5vw, 6.5rem); font-weight: 600; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1; color: var(--text);
  will-change: transform, opacity;
}
.no-anim .works-bloom { display: none; }
.works-grid.deck > * { opacity: 0; will-change: transform, opacity; }
.no-anim .works-grid.deck > *, .no-anim .works-intro .strip-head { opacity: 1; }
.feature-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.feature-bg img, .feature-bg video { width: 100%; height: 190%; object-fit: cover; opacity: 0.55; filter: grayscale(0.2) contrast(1.05); will-change: transform; }
.sec-index, .feature .f-title, .feature .spec-wrap, .hero-inner { will-change: transform; }
/* keeps the lower third readable while letting the artwork stay bright */
.feature-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,0.52), rgba(5,5,5,0.12) 38%, rgba(5,5,5,0.86)); }
.feature-inner {
  position: relative; z-index: 1; width: 100%; max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 130px 1fr 1fr; gap: clamp(1.2rem, 4vw, 3.5rem); align-items: end;
}
.feature .sec-index .num { color: var(--red-soft); }
.feature .f-title { font-size: clamp(1.9rem, 4.4vw, 3.4rem); letter-spacing: -0.02em; }
.feature .f-body { color: var(--muted-2); margin: 1.4rem 0 2rem; max-width: 460px; }
.feature .btn { margin-top: 0.5rem; }

/* ============ home: recent works + video strips ============ */
.strip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.4rem; flex-wrap: wrap; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.strip-head .lead { display: flex; flex-direction: column; gap: 0.7rem; }
.strip-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.strip-head a { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-soft); }
.strip-head a:hover { color: var(--text); }

.feat-label { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.68rem; color: var(--red-soft); margin-bottom: 1rem; }
.home-feat iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; display: block; border: 1px solid var(--line); }
.home-feat h3 { margin-top: 1.1rem; font-size: 1.25rem; text-transform: none; letter-spacing: 0; font-weight: 600; line-height: 1.3; }
.mw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .mw-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ works gallery ============ */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.6rem; }
.work-card { display: flex; flex-direction: column; gap: 0.7rem; }
.work-card .thumb {
  aspect-ratio: 3 / 4; overflow: hidden; background: var(--panel);
  border: 1px solid var(--line); position: relative;
  transition: border-color 0.25s ease;
}
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.4s ease; filter: grayscale(0.15); }
.work-card:hover .thumb { border-color: var(--red); }
.work-card:hover .thumb img { transform: scale(1.04); filter: grayscale(0); }
.work-card .thumb::before {
  content: "+"; position: absolute; top: 6px; left: 8px; z-index: 2;
  font-family: var(--mono); color: var(--muted); font-size: 0.9rem; opacity: 0.6;
}
.work-card .thumb .noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(226,27,27,0.3); font-size: 3rem; font-weight: 900; }
.work-card figcaption { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); line-height: 1.4; }
.work-card .count { display: block; color: var(--muted); font-size: 0.64rem; margin-top: 0.2rem; letter-spacing: 0.14em; }

/* works intro: year count-up */
.year-count {
  max-width: 1400px; margin: 0 auto; overflow: hidden;
  padding: clamp(2.2rem, 4.5vw, 3.5rem) var(--pad) 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem;
}
.year-count .yc-label {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.24em;
  font-size: 0.66rem; color: var(--muted);
}
.year-count .yc-num {
  font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: clamp(3.5rem, 13vw, 9rem); line-height: 0.95; letter-spacing: -0.02em;
  color: var(--text); transition: color 0.35s ease, text-shadow 0.35s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* opening year holds big and glowing so it reads clearly before the count runs */
.year-count.holding .yc-num { color: #fff; transform: scale(1.14); text-shadow: 0 0 40px rgba(255, 255, 255, 0.28); }
.year-count.complete .yc-num { color: var(--red-soft); text-shadow: 0 0 46px rgba(226, 27, 27, 0.4); }
.year-count .yc-track {
  display: block; position: relative; height: 2px; width: min(460px, 68vw);
  background: var(--line); margin-top: 0.5rem;
}
.year-count .yc-track i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--red); box-shadow: 0 0 12px rgba(226, 27, 27, 0.65);
}

/* year groups */
.year-block { margin-bottom: 4rem; }
.year-block.collapsed { margin-bottom: 1.5rem; }
.year-head { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.8rem; cursor: pointer; user-select: none; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.year-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; font-family: var(--mono); transition: color 0.3s ease; }
/* the open year is highlighted red */
.year-block:not(.collapsed) > .year-head h2 { color: var(--red-soft); }
.year-head .meta { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.year-head .chev { margin-left: auto; color: var(--red-soft); font-size: 1rem; transition: transform 0.2s ease; }
.year-block.collapsed .chev { transform: rotate(-90deg); }
.year-block.collapsed .works-grid { display: none; }

/* ============ project detail ============ */
/* breadcrumb-style back button above the title */
.back-arrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 1.1rem 0.5rem 0.8rem; margin-bottom: 1.6rem;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.back-arrow span { font-size: 0.9rem; line-height: 1; transition: transform 0.25s ease; }
.back-arrow:hover { border-color: var(--red); color: var(--red-soft); }
.back-arrow:hover span { transform: translateX(-4px); }
.page-head .eyebrow { display: block; margin-bottom: 0.4rem; }

.viewer { margin: 0 auto; max-width: 1000px; }
.viewer-main { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.viewer-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #000; }
.viewer-main img.zoomable { cursor: zoom-in; }
.viewer-main iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
/* circular prev / next controls, scythe style */
.viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 5, 5, 0.6); backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong); color: #fff;
  font-family: var(--mono); font-size: 1.15rem; line-height: 1; padding: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.viewer-nav:hover { background: var(--red); border-color: var(--red); transform: translateY(-50%) scale(1.12); }
.viewer-nav.prev { left: 0.9rem; } .viewer-nav.next { right: 0.9rem; }
.viewer-count { text-align: center; font-family: var(--mono); color: var(--muted); margin-top: 0.9rem; font-size: 0.75rem; letter-spacing: 0.2em; }
.viewer-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.7rem; margin-top: 2rem; }
.viewer-thumbs img { aspect-ratio: 16/10; object-fit: cover; width: 100%; cursor: pointer; border: 1px solid transparent; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s; }
.viewer-thumbs img:hover { opacity: 1; }
.viewer-thumbs img.active { border-color: var(--red); opacity: 1; }
.proj-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.proj-nav a { flex: 1; min-width: 220px; max-width: 48%; border: 1px solid var(--line); padding: 1.1rem 1.3rem; background: var(--panel); transition: border-color 0.2s, transform 0.2s; }
.proj-nav a:hover { border-color: var(--red); transform: translateY(-2px); }
.proj-nav a small { display: block; font-family: var(--mono); color: var(--red-soft); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.4rem; }
.proj-nav a span { font-family: var(--mono); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; line-height: 1.35; }
.proj-nav .pn-next { text-align: right; }

/* ============ video popup + lightbox ============ */
.video-modal { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,0.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; }
.vm-frame { width: min(1100px, 92vw); aspect-ratio: 16/9; }
.vm-frame.short { width: auto; height: min(80vh, 720px); aspect-ratio: 9/16; }
.vm-frame iframe { width: 100%; height: 100%; border: 1px solid var(--line); background: #000; }
.vm-title { margin-top: 1rem; font-family: var(--mono); color: var(--text); font-size: 0.82rem; max-width: min(1100px,92vw); text-align: center; text-transform: uppercase; letter-spacing: 0.04em; }
.video-modal .lb-close, .lightbox .lb-close { position: absolute; top: 1rem; right: 1.4rem; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; }
.video-modal .lb-close:hover, .lightbox .lb-close:hover { color: var(--red-soft); }
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,0.94); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 5, 5, 0.6); backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong); color: #fff;
  font-family: var(--mono); font-size: 1.3rem; line-height: 1;
  transition: background 0.2s, border-color 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lightbox .lb-nav:hover { background: var(--red); border-color: var(--red); transform: translateY(-50%) scale(1.12); }
.lightbox .lb-nav.prev { left: 1rem; } .lightbox .lb-nav.next { right: 1rem; }
.lightbox .lb-count { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); font-family: var(--mono); color: var(--muted); font-size: 0.8rem; letter-spacing: 0.2em; }

/* ============ videos page ============ */
.featured-video { margin-top: 2.5rem; }
.featured-video .label { font-family: var(--mono); color: var(--red-soft); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.68rem; margin-bottom: 0.9rem; }
.featured-video iframe { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: var(--radius); background: #000; }
.featured-video h2 { margin-top: 1rem; font-size: 1.3rem; text-transform: none; letter-spacing: 0; font-weight: 600; }
.video-row { margin-top: 3.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.video-row h2 { font-size: 1.35rem; margin-bottom: 0.3rem; font-family: var(--mono); font-weight: 700; }
.video-row .row-sub { margin-bottom: 1.3rem; }
.video-row .row-sub a { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.video-row .row-sub a:hover { color: var(--red-soft); }
/* overflow-y is clamped: `overflow-x: auto` makes the Y axis `auto` too, and the
   horizontal scrollbar's own height then triggers a phantom vertical scrollbar */
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px); gap: 1rem; overflow-x: auto; overflow-y: hidden; padding-bottom: 1rem; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--red) var(--bg-alt); }
.row-scroll.dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.row-scroll.shorts { grid-auto-columns: minmax(150px, 170px); }
.row-scroll::-webkit-scrollbar { height: 5px; }
.row-scroll::-webkit-scrollbar-track { background: var(--bg-alt); }
.row-scroll::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--red), #8f1220); }
.row-scroll::-webkit-scrollbar-thumb:hover { background: var(--red-soft); }
.vid-card { background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.vid-card:hover { border-color: var(--red); transform: translateY(-3px); }
.vid-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.vid-card.short img { aspect-ratio: 9/14; }
.vid-card span { display: block; padding: 0.7rem 0.8rem 0.3rem; font-size: 0.8rem; line-height: 1.4; max-height: 4.2em; overflow: hidden; }
.vid-card .views { display: block; padding: 0 0.8rem 0.7rem; font-family: var(--mono); color: var(--muted); font-size: 0.64rem; letter-spacing: 0.06em; }

/* end-of-row CTA → the rest of the playlist on YouTube */
.vid-more {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  text-align: center; padding: 1.4rem 1rem;
  background: var(--panel); border: 1px dashed var(--line-strong);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.vid-more:hover { border-color: var(--red); background: var(--panel-2); transform: translateY(-3px); }
.vid-more .vm-icon {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vid-more:hover .vm-icon { transform: scale(1.14); }
.vid-more .vm-text {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); line-height: 1.55;
}
.vid-more .vm-sub {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; color: var(--muted);
  line-height: 1.5; max-width: 24ch;
}
.vid-more:hover .vm-sub { color: var(--red-soft); }
.row-scroll.shorts .vid-more { padding: 1rem 0.55rem; gap: 0.55rem; }
.row-scroll.shorts .vid-more .vm-icon { width: 38px; height: 38px; font-size: 0.8rem; }
.row-scroll.shorts .vid-more .vm-text { font-size: 0.6rem; letter-spacing: 0.1em; }

/* ============ about ============ */
.about-wrap { display: grid; grid-template-columns: 280px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: 2.5rem; }
.about-logo { width: 100%; border: 1px solid var(--line); }
.about-body p { color: var(--muted-2); margin-bottom: 1rem; white-space: pre-line; font-size: 1.05rem; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; margin-top: 1.8rem; background: var(--line); border: 1px solid var(--line); }
.social-card { display: flex; align-items: center; gap: 0.85rem; background: var(--bg); padding: 1.1rem 1.2rem; transition: background 0.2s; }
.social-card:hover { background: var(--panel-2); }
.social-card.disabled { opacity: 0.4; pointer-events: none; }
.social-card .dot { width: 9px; height: 9px; background: var(--red); transform: rotate(45deg); flex-shrink: 0; }
.social-card .sicon { width: 22px; height: 22px; flex-shrink: 0; background: var(--red); -webkit-mask: var(--icon) center/contain no-repeat; mask: var(--icon) center/contain no-repeat; transition: background 0.2s; }
.social-card:hover .sicon { background: var(--red-soft); }
.social-card span { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.social-card small { display: block; color: var(--muted); font-size: 0.6rem; letter-spacing: 0.14em; }

/* ============ partners ============ */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; margin-top: 2.5rem; background: var(--line); border: 1px solid var(--line); }
.partner-card { background: var(--bg); padding: 2rem 1.6rem; text-align: center; cursor: pointer; transition: background 0.2s; position: relative; }
.partner-card:hover { background: var(--panel-2); }
.partner-card .plogo { height: 84px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.partner-card .plogo img { max-height: 84px; max-width: 100%; object-fit: contain; filter: grayscale(1) brightness(1.4); transition: filter 0.2s; }
.partner-card:hover .plogo img { filter: grayscale(0) brightness(1); }
.partner-card .plogo .initials { width: 78px; height: 78px; border: 1px solid var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--red-soft); }
.partner-card h3 { font-family: var(--mono); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.partner-card .hascode { display: inline-block; margin-top: 0.6rem; font-family: var(--mono); color: var(--red-soft); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; }

.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 200; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.modal-back.open { display: flex; }
.modal { background: var(--bg-alt); border: 1px solid var(--line-strong); max-width: 440px; width: 100%; padding: 2.2rem; position: relative; text-align: center; }
.modal .close { position: absolute; top: 0.7rem; right: 1rem; background: none; border: 0; color: var(--muted); font-size: 1.5rem; }
.modal .plogo { height: 84px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.modal .plogo img { max-height: 84px; max-width: 80%; object-fit: contain; }
.modal .plogo .initials { width: 78px; height: 78px; border: 1px solid var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--red-soft); }
.modal h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.modal p { color: var(--muted-2); font-size: 0.95rem; }
.code-box { margin: 1.3rem auto; padding: 0.9rem 1.2rem; border: 1px dashed var(--red); font-family: var(--mono); font-size: 1.2rem; letter-spacing: 0.2em; font-weight: 700; color: var(--red-soft); cursor: pointer; user-select: all; }
.code-hint { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--muted); }

/* contact */
.contact { max-width: 720px; margin: clamp(4rem,8vw,7rem) auto 0; border: 1px solid var(--line); padding: clamp(1.6rem, 4vw, 2.6rem); background: var(--panel); }
.contact h2 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.contact .sub { color: var(--muted-2); margin-bottom: 1.8rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 0.4rem; }
.field input, .field textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 2px; padding: 0.75rem 0.9rem; font: inherit; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { margin-top: 1rem; font-family: var(--mono); font-size: 0.78rem; }
.form-note.ok { color: #6fd672; } .form-note.err { color: var(--red-soft); }

/* ============ footer ============ */
.footer { border-top: 1px solid var(--line); margin-top: 5rem; }
.footer-main { max-width: 1400px; margin: 0 auto; padding: clamp(3rem,6vw,5rem) var(--pad) 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.footer-col .fc-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.6rem; }
.footer-col .fc-logo img { width: 30px; }
.footer-col .fc-logo strong { font-size: 0.85rem; letter-spacing: 0.12em; }
.footer-col h4 { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; font-weight: 400; }
.footer-col p { color: var(--muted-2); font-size: 0.92rem; margin-bottom: 1.4rem; max-width: 30ch; }
.footer-links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a { font-size: 1.05rem; color: var(--muted-2); transition: color 0.2s; width: fit-content; }
.footer-links a:hover { color: var(--red-soft); }
.footer-social-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-social-links a { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.footer-social-links a:hover { color: var(--red-soft); }
.footer-bar { border-top: 1px solid var(--line); }
.footer-bar .inner { max-width: 1400px; margin: 0 auto; padding: 1.2rem var(--pad); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ============ mobile ============ */
/* below this width the pill collapses — the burger overlay is the menu */
@media (max-width: 960px) {
  .nav-pill { display: none; }
}
@media (max-width: 860px) {
  .statement { grid-template-columns: 1fr; }
  .feature-inner { grid-template-columns: 1fr; gap: 1.2rem; }
  .feature .spec { max-width: 480px; }
  .footer-main { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-brand-text { display: none; }
  .nav-panel { width: 100vw; border-radius: 0; border-right: 0; }
  .nav-panel-foot { flex-direction: column; align-items: flex-start; }
  .nav-big .alt { display: none; }
  .hero { min-height: 92vh; }
  .about-wrap { grid-template-columns: 1fr; }
  .about-logo { max-width: 220px; margin: 0 auto; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .proj-nav a { max-width: 100%; }
  .hero-eyebrow-row { justify-content: flex-start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-foot .scroll-cue .bar { animation: none; }
}
