/* ================= Tokens ================= */
:root {
  --ink: #0a0a0b;
  --ink-2: #121214;
  --ink-3: #1a1a1d;
  --line: #26262a;
  --bone: #ede8e0;
  --mute: #8a8680;
  --rec: #ff3b1f;
  --rec-glow: rgba(255, 59, 31, 0.35);

  --f-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Type scale — golden ratio (x1.618) from a 16px body */
  --fs-micro: 9.89px;
  --fs-label: 12.58px; /* half-step (x1.272) — functional small labels */
  --fs-body: 16px;
  --fs-h6: 25.89px;
  --fs-h5: 41.89px;
  --fs-h4: 67.77px;
  --fs-h3: 109.66px;
  --fs-h2: 177.42px;
  --fs-h1: 287.07px;

  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--rec); color: #fff; }

.mono { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; }
.thin { font-weight: 200; }
.dim { color: var(--mute); }

/* ================= Focus + skip link ================= */
:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; border-radius: 4px; }
.frame:focus-visible { outline-offset: 4px; }
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  padding: 12px 18px; border-radius: 999px;
  background: var(--bone); color: var(--ink); font-weight: 500; font-size: var(--fs-body);
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ================= Atmosphere ================= */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.rec-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--rec); box-shadow: 0 0 0 0 var(--rec-glow);
  animation: rec 1.6s ease-in-out infinite; margin-right: 8px; vertical-align: 1px;
}
@keyframes rec {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--rec-glow); }
  50% { opacity: 0.35; box-shadow: 0 0 0 6px transparent; }
}

/* ================= Cursor ================= */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--bone); mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease),
              background 0.4s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease),
              backdrop-filter 0.4s;
  border: 1px solid transparent;
}
.cursor-tri {
  width: 0; height: 0; margin-left: 4px;
  border-left: 10px solid var(--bone); border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.3s var(--ease), transform 0.45s var(--ease);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}
/* glass play cursor over video cards */
.cursor.is-play {
  width: 66px; height: 66px; margin: -33px 0 0 -33px;
  mix-blend-mode: normal;
  background: rgba(237, 232, 224, 0.12);
  border-color: rgba(237, 232, 224, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(140%) brightness(1.06);
  backdrop-filter: blur(14px) saturate(140%) brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -8px 18px rgba(255, 255, 255, 0.06),
              0 12px 28px -12px rgba(0, 0, 0, 0.7);
}
.cursor.is-play .cursor-tri { opacity: 1; transform: none; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ================= Loader ================= */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: grid; place-items: center; transition: clip-path 1.1s var(--ease);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader-inner { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.loader-sig { position: relative; width: min(620px, 78vw); }
.loader-still {
  display: block; width: 100%; height: auto; transform: translateX(-0.9%);
  animation: sign 1.5s var(--ease) both; /* the signature draws itself even if the video can't play */
}
@keyframes sign { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.loader-video {
  position: absolute; inset: 0; width: 100%; height: auto; mix-blend-mode: screen;
  transform: translateX(-0.9%); opacity: 0; transition: opacity 0.25s linear;
}
.loader-video.is-playing { opacity: 1; }
.loader-video.is-playing + .loader-still, .loader-sig.has-video .loader-still { opacity: 0; }
.loader-sig.has-video .loader-still { animation: none; }
.loader-slate { width: min(620px, 78vw); display: flex; justify-content: space-between; align-items: center; color: var(--mute); border-top: 1px solid var(--line); padding-top: 12px; }
.loader-skip { position: absolute; bottom: 40px; right: var(--pad); color: var(--mute); transition: color 0.3s; }
.loader-skip:hover { color: var(--bone); }
.loader-count { font-size: var(--fs-label); color: var(--mute); }

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  font-weight: 500; font-size: var(--fs-body); letter-spacing: -0.01em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s, transform 0.4s var(--ease);
  will-change: transform;
}
.btn-sm { padding: 10px 18px; font-size: var(--fs-body); }
.btn-rec { background: var(--rec); color: #fff; box-shadow: 0 10px 40px -10px var(--rec-glow); }
.btn-rec:hover { background: var(--bone); color: var(--ink); }
.btn-ghost { border: 1px solid rgba(237, 232, 224, 0.28); backdrop-filter: blur(10px); background: rgba(10, 10, 11, 0.3); }
.btn-ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.play-ico { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ================= Nav ================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  transition: background 0.5s, padding 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10, 10, 11, 0.72); backdrop-filter: blur(18px) saturate(140%); padding-block: 12px; border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-rule { width: 1px; height: 26px; background: var(--line); transition: height 0.5s var(--ease); }
.brand-word { font-size: var(--fs-body); font-weight: 500; letter-spacing: -0.02em; transition: color 0.3s; }
.brand:hover .brand-word { color: var(--mute); }
.brand-logo { height: 34px; width: auto; transition: height 0.5s var(--ease), opacity 0.3s; }
.brand:hover .brand-logo { opacity: 0.75; }
.nav.is-scrolled .brand-logo { height: 26px; }
.nav.is-scrolled .brand-rule { height: 20px; }
.nav-links { display: flex; gap: 30px; font-size: var(--fs-body); color: var(--mute); }
.nav-links a { position: relative; transition: color 0.3s; }
.nav-links a:hover { color: var(--bone); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--rec); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.status-pill {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(18, 18, 20, 0.6); color: var(--bone); font-size: var(--fs-label); white-space: nowrap;
}
.status-pill.big { font-size: var(--fs-label); padding: 12px 22px; }
.menu-toggle { display: none; width: 40px; height: 40px; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--bone); transition: transform 0.4s var(--ease); }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: var(--pad);
}
.mobile-menu a { font-size: var(--fs-h5); font-weight: 600; letter-spacing: -0.04em; border-bottom: 1px solid var(--line); padding: 8px 0; }

/* ================= Hero ================= */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-media { position: absolute; inset: 0; transform: scale(1.02); }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 10, 11, 0.82) 0%, rgba(10, 10, 11, 0.55) 34%, rgba(10, 10, 11, 0.12) 62%, transparent 80%),
    radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(10, 10, 11, 0.7) 100%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.45) 0%, transparent 28%, rgba(10, 10, 11, 0.92) 100%);
}
.letterbox { position: absolute; left: 0; right: 0; height: max(6vh, 66px); background: #000; z-index: 2; transition: transform 1.4s var(--ease); }
.letterbox-bottom { height: max(6vh, 48px); }
.letterbox-top { top: 0; transform: translateY(-100%); }
.letterbox-bottom { bottom: 0; transform: translateY(100%); }
.is-ready .letterbox { transform: none; }

.hero-hud {
  position: absolute; top: calc(6vh + 84px); left: var(--pad); right: var(--pad); z-index: 3;
  display: flex; justify-content: space-between; color: rgba(237, 232, 224, 0.6);
}
.hero-content { position: relative; z-index: 3; padding: 0 var(--pad) calc(6vh + 70px); text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45); }
.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--mute); margin: 0 0 22px; }
.eyebrow .line { width: 40px; height: 1px; background: var(--rec); }
.hero-title {
  margin: 0; font-weight: 700; letter-spacing: -0.055em; line-height: 0.88;
  font-size: clamp(var(--fs-h4), 12.5vw, var(--fs-h1));
}
.hero-title .thin { font-size: 0.52em; letter-spacing: -0.045em; line-height: 1.02; color: rgba(237, 232, 224, 0.88); }
/* room for descenders (g, y, p) — the overflow clip is what the rise animation needs */
.mask { display: block; overflow: hidden; line-height: 0; padding-bottom: 0.22em; margin-bottom: -0.16em; }
.rise { display: inline-block; line-height: 0.92; transform: translateY(110%); transition: transform 1.3s var(--ease); }
.is-ready .hero .rise, .rise.is-in { transform: none; }
.hero-title .mask:nth-child(2) .rise { transition-delay: 0.08s; }
.hero-title .mask:nth-child(3) .rise { transition-delay: 0.16s; }

.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 36px; flex-wrap: wrap; }
.hero-line { margin: 0; max-width: 420px; color: rgba(237, 232, 224, 0.9); font-size: clamp(var(--fs-body), 1.6vw, var(--fs-h6)); color: rgba(237, 232, 224, 0.78); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-bottom .hero-line { max-width: 460px; }
.hero-foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(6vh + 20px); z-index: 3;
  display: flex; justify-content: space-between; color: var(--mute);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 26px; background: linear-gradient(var(--bone), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ================= Placeholder frames ================= */
.ph {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 59, 31, 0.16), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(237, 232, 224, 0.06), transparent 50%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 64px),
    var(--ink-2);
  display: grid; place-items: center; text-align: center;
}
.ph::before, .ph::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-color: rgba(237, 232, 224, 0.4); border-style: solid;
}
.ph::before { top: 14px; left: 14px; border-width: 1px 0 0 1px; }
.ph::after { bottom: 14px; right: 14px; border-width: 0 1px 1px 0; }
.ph-label { display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 20px; }
.ph-label strong { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone); font-weight: 500; }
.ph-label small { font-family: var(--f-mono); font-size: var(--fs-micro); color: var(--mute); letter-spacing: 0.04em; word-break: break-all; }
.ph-tag { position: absolute; top: 14px; right: 16px; font-family: var(--f-mono); font-size: var(--fs-micro); letter-spacing: 0.16em; color: var(--rec); text-transform: uppercase; }
.hero .ph { background:
    radial-gradient(ellipse at 70% 30%, rgba(255, 59, 31, 0.22), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(90, 80, 70, 0.25), transparent 60%),
    #0d0d0f; animation: drift 14s ease-in-out infinite alternate; }
.hero .ph { place-items: center end; }
.hero .ph-label { align-items: flex-end; text-align: right; padding: 0 var(--pad); transform: translateY(-4vh); opacity: 0.75; }
@keyframes drift { to { background-position: 40px -30px, -30px 20px, 0 0; filter: hue-rotate(-12deg); } }

/* ================= Marquee ================= */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--ink); }
.marquee-track { display: flex; width: max-content; gap: 40px; align-items: center; animation: marquee 38s linear infinite; font-size: clamp(var(--fs-h6), 4vw, var(--fs-h4)); font-weight: 600; letter-spacing: -0.04em; white-space: nowrap; }
.marquee-track b { color: var(--rec); font-size: 0.5em; font-weight: 400; }
.marquee-track .thin { color: var(--mute); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= Stats ================= */
.stats { padding: 0 var(--pad); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 48px 28px 44px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat-num { font-size: clamp(var(--fs-h5), 5.4vw, var(--fs-h4)); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.stat-num em { font-style: normal; color: var(--rec); }
.stat p { margin: 14px 0 0; color: var(--mute); font-size: var(--fs-body); max-width: 230px; }

/* ================= Sections ================= */
.section { padding: clamp(90px, 13vw, 180px) var(--pad) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 1100px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.idx { color: var(--rec); display: block; margin-bottom: 18px; font-size: var(--fs-body); letter-spacing: 0.16em; }
h2 { margin: 0; font-size: clamp(var(--fs-h5), 7.4vw, var(--fs-h3)); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; }
h2 .thin { color: var(--mute); }
.section-sub { margin: 22px 0 0; max-width: 560px; color: var(--mute); font-size: clamp(var(--fs-body), 1.4vw, var(--fs-h6)); }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Media frames */
.frame {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-2);
  border: 1px solid var(--line); cursor: pointer; isolation: isolate;
  transform: translateZ(0); /* clip on the GPU: no hairline at the rounded corners */
}
.frame > .media, .frame > .ph { position: absolute; inset: 0; border-radius: inherit; transform: scale(1.01); transition: transform 1.2s var(--ease), filter 0.6s; }
.frame .media img, .frame .media video, .frame > img, .frame > video:not(.hover-preview) { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.frame:hover > .media, .frame:hover > .ph { transform: scale(1.05); }
.hover-preview {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover;
  border-radius: inherit; transform: scale(1.015); /* slight overscan: no hairline at the edges */
  opacity: 0; transition: opacity 0.45s var(--ease); pointer-events: none;
}
.hover-preview.is-on { opacity: 1; }

.frame-play {
  position: absolute; left: 20px; bottom: 20px; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10, 10, 11, 0.55); backdrop-filter: blur(10px); border: 1px solid rgba(237, 232, 224, 0.2);
  transition: background 0.4s, transform 0.5s var(--ease);
}
.frame-play::before { content: ""; border-left: 12px solid var(--bone); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.frame-play { transition: background 0.4s, transform 0.5s var(--ease), opacity 0.35s var(--ease); }
.frame:hover .frame-play { opacity: 0; transform: scale(0.9); }
.frame-rt { position: absolute; right: 16px; bottom: 16px; z-index: 2; padding: 5px 9px; border-radius: 6px; background: rgba(10, 10, 11, 0.7); font-size: var(--fs-label); }

.meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; align-items: baseline; }
.meta h3 { margin: 0; font-size: clamp(var(--fs-body), 2vw, var(--fs-h6)); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.meta p { margin: 6px 0 0; color: var(--mute); font-size: var(--fs-body); }
.meta .mono { color: var(--mute); white-space: nowrap; }

/* Featured */
.featured { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: end; }
.featured .frame { aspect-ratio: 16 / 9; border-radius: 18px; max-width: calc(74vh * 16 / 9); }
.feat-metric { font-size: clamp(var(--fs-h5), 7vw, var(--fs-h4)); font-weight: 700; letter-spacing: -0.06em; line-height: 0.9; }
.feat-metric span { display: block; font-weight: 300; font-size: var(--fs-label); letter-spacing: -0.02em; color: var(--mute); margin-top: 8px; }
.feat-info h3 { margin: 32px 0 6px; font-size: clamp(var(--fs-h6), 3vw, var(--fs-h5)); letter-spacing: -0.03em; font-weight: 600; }
.feat-info p { color: var(--mute); margin: 0 0 22px; }
.feat-rows { border-top: 1px solid var(--line); }
.feat-rows div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-body); }
.feat-rows dt { color: var(--mute); }
.feat-rows dd { margin: 0; }

.feat-metrics { display: flex; gap: clamp(20px, 3vw, 44px); flex-wrap: wrap; }
.feat-metrics .feat-metric { font-size: clamp(var(--fs-h5), 5.4vw, var(--fs-h4)); }

/* Long-form */
.lf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.lf-grid .frame { aspect-ratio: 16 / 9; }
.lf-item:nth-child(even) { transform: translateY(clamp(0px, 8vw, 120px)); }
.lf-item:nth-child(even).reveal:not(.is-in) { transform: translateY(calc(clamp(0px, 8vw, 120px) + 36px)); }
.lf-grid { padding-bottom: clamp(0px, 8vw, 120px); }
.lf-num { color: var(--rec); margin-right: 10px; }

/* Short-form rail */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 22vw, 320px); gap: 18px;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px; scroll-padding-inline: var(--pad);
}
.rail::-webkit-scrollbar { display: none; }
.rail {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--pad), #000 calc(100% - var(--pad)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--pad), #000 calc(100% - var(--pad)), transparent 100%);
}

.rail .frame { aspect-ratio: 9 / 16; border-radius: 18px; }
.rail-controls { display: flex; gap: 10px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: -12px 0 28px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--fs-label); color: var(--mute); transition: color 0.3s, border-color 0.3s, background 0.3s; }
.chip .mono { font-size: var(--fs-micro); opacity: 0.7; }
.chip:hover { color: var(--bone); border-color: var(--mute); }
.chip[aria-selected="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.rail { transition: opacity 0.22s var(--ease), transform 0.22s var(--ease); }
.rail.is-switching { opacity: 0; transform: translateY(8px); }
.reel-cat { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 9px; border-radius: 999px; font-size: var(--fs-label); background: rgba(10, 10, 11, 0.6); backdrop-filter: blur(8px); border: 1px solid rgba(237, 232, 224, 0.15); }
.rail-btn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); font-size: var(--fs-h6); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.rail-btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.frame.is-contain .media video, .frame.is-contain .hover-preview { object-fit: contain; background: #000; }

/* Album art */
.aa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 44px); max-width: min(100%, calc(56vh * 2 + 44px)); }
.aa-item { perspective: 900px; }
.aa-cover {
  position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; border: 1px solid var(--line);
  transform-style: preserve-3d; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.8);
}
.aa-cover img { width: 100%; height: 100%; object-fit: cover; }
.aa-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 40%); opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.aa-item:hover .aa-cover { box-shadow: 0 40px 80px -30px rgba(255, 59, 31, 0.35); }
.aa-item:hover .aa-cover::after { opacity: 1; }
.aa-item .meta h3 { font-size: clamp(var(--fs-body), 2vw, var(--fs-h6)); }
.aa-cover { border-radius: 10px; }

/* 3D */
.td-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); }
.td-item:first-child { grid-column: span 2; }
.td-item:first-child .frame { max-width: calc(66vh * 16 / 9); margin-inline: auto; }
.td-grid .frame { aspect-ratio: 16 / 9; }

/* About */
.about { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.about.no-portrait { grid-template-columns: 1fr; max-width: 1100px; }
.about.no-portrait .about-story p { font-size: clamp(var(--fs-body), 2vw, var(--fs-h6)); max-width: 46ch; }
.about.no-portrait .about-story { margin-top: 44px; }
.about-media { position: sticky; top: 110px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.about-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2) contrast(1.05); }
.about-story { margin-top: 36px; }
.about-story p { font-size: clamp(var(--fs-body), 1.6vw, var(--fs-h6)); line-height: 1.5; margin: 0 0 20px; color: rgba(237, 232, 224, 0.86); letter-spacing: -0.01em; }
.about-facts { margin: 40px 0 0; border-top: 1px solid var(--line); }
.about-facts div { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.about-facts dt { color: var(--mute); padding-top: 3px; }
.about-facts dd { margin: 0; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.tool-col h4 { margin: 0 0 12px; color: var(--rec); }
.tool-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tool-col li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: var(--fs-body); background: var(--ink-2); }

.skills { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--fs-label); color: var(--mute); }

/* Experience */
.xp { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.xp-item { display: grid; grid-template-columns: 260px 1fr; gap: clamp(20px, 4vw, 80px); padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); position: relative; }
.xp-item::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--rec); transition: width 1.2s var(--ease); }
.xp-item.is-in::before { width: 100%; }
.xp-when { color: var(--mute); padding-top: 10px; }
.xp-item:first-child .xp-when { color: var(--rec); }
.xp-body h3 { margin: 0; font-size: clamp(var(--fs-h6), 3vw, var(--fs-h5)); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.xp-co { margin: 6px 0 20px; font-weight: 200; font-size: clamp(var(--fs-body), 2vw, var(--fs-h6)); letter-spacing: -0.02em; color: var(--mute); }
.xp-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 760px; }
.xp-body ul li { position: relative; padding-left: 22px; color: rgba(237, 232, 224, 0.8); }
.xp-body ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: var(--rec); }

/* Hire */
.hire { padding: clamp(120px, 16vw, 220px) var(--pad) clamp(80px, 10vw, 140px); margin-top: clamp(90px, 12vw, 180px); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.hire::before { content: ""; position: absolute; left: 50%; top: 0; width: 80vw; height: 80vw; transform: translate(-50%, -60%); background: radial-gradient(circle, rgba(255, 59, 31, 0.14), transparent 60%); pointer-events: none; }
.hire-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hire-title { margin: 36px 0 60px; font-size: clamp(var(--fs-h5), 10.4vw, var(--fs-h2)); font-weight: 700; letter-spacing: -0.06em; line-height: 0.9; }
.hire-title .thin { color: var(--rec); }
.hire-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 980px; text-align: left; }
.path {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--ink-2); transition: border-color 0.4s, background 0.4s, transform 0.5s var(--ease);
}
.path strong { font-size: var(--fs-h6); letter-spacing: -0.04em; font-weight: 600; }
.path > span:not(.mono):not(.path-arrow) { color: var(--mute); font-size: var(--fs-body); max-width: 360px; }
.path-arrow { position: absolute; top: 26px; right: 28px; font-size: var(--fs-h6); transition: transform 0.4s var(--ease), color 0.3s; }
.path:hover { border-color: var(--rec); background: var(--ink-3); }
.path:hover .path-arrow { transform: translate(4px, -4px); color: var(--rec); }
.path:first-child { border-color: rgba(255, 59, 31, 0.45); }
.hire-contact { display: flex; align-items: center; gap: 16px; margin-top: 56px; flex-wrap: wrap; justify-content: center; }
.hire-email { font-size: clamp(var(--fs-h6), 3.6vw, var(--fs-h4)); letter-spacing: -0.04em; font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.6s var(--ease); padding-bottom: 4px; }
.hire-email:hover { background-size: 100% 1px; }
.copy { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); transition: background 0.3s, color 0.3s; }
.copy:hover { background: var(--bone); color: var(--ink); }
.hire-links { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.hire-links a, .hire-links span { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--fs-body); transition: border-color 0.3s, color 0.3s; }
.hire-links a:hover { border-color: var(--bone); }
.hire-links .is-empty { color: var(--mute); border-style: dashed; }
.hire-links .resume { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* Footer */
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand img { height: 20px; width: auto; opacity: 0.75; }
.footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px var(--pad); border-top: 1px solid var(--line); color: var(--mute); }
.footer a:hover { color: var(--bone); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(5, 5, 6, 0.94); backdrop-filter: blur(12px); display: grid; place-items: center; padding: 70px var(--pad) 40px; animation: fade 0.4s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lb-frame { width: min(1400px, 100%); aspect-ratio: 16 / 9; max-height: 100%; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.lb-frame.is-vertical { width: auto; height: min(86vh, 900px); aspect-ratio: 9 / 16; }
.lb-frame iframe, .lb-frame video { width: 100%; height: 100%; border: 0; }
.lb-close { position: absolute; top: 22px; right: var(--pad); padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; }
.lb-close:hover { background: var(--bone); color: var(--ink); }

/* Toast */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px); z-index: 160; background: var(--bone); color: var(--ink); padding: 12px 20px; border-radius: 999px; opacity: 0; transition: all 0.4s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ================= Responsive ================= */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .featured { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-media { position: relative; top: 0; max-width: 520px; }
}
@media (max-width: 820px) {
  .nav .status-pill, .nav .btn { display: none; }
  .nav {
    padding-block: 11px;
    background: rgba(10, 10, 11, 0.82);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--line);
  }
  .brand-logo { height: 23px; }
  /* comfortable touch targets */
  .brand { min-height: 44px; align-items: center; }
  .footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .nav.is-scrolled .brand-logo { height: 23px; }
  .brand-rule, .brand-word { display: none; }
  .menu-toggle { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 32px 16px 30px 0; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .lf-grid { grid-template-columns: 1fr; padding-bottom: 0; }
  .lf-item:nth-child(even), .lf-item:nth-child(even).reveal:not(.is-in) { transform: none; }
  .aa-grid { grid-template-columns: 1fr 1fr; }
  .td-grid { grid-template-columns: 1fr; }
  .td-item:first-child { grid-column: auto; }
  .hire-paths { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; }
  .hero-hud span:last-child { display: none; }
  .hero .ph-label { display: none; }
  .eyebrow { font-size: var(--fs-micro); }
  .eyebrow-year { display: none; }
  .hero-hud { font-size: var(--fs-micro); }
  .hero .ph-tag { display: none; }
  .hero-ctas .btn { white-space: nowrap; }
  .hero-ctas .dim { display: none; }
  .hero-foot > span:first-child { display: none; }
  .hero-foot { justify-content: flex-end; }
  .rail-controls { display: none; }
  .about-facts div { grid-template-columns: 1fr; gap: 4px; }
  .xp-item { grid-template-columns: 1fr; gap: 8px; }
  .xp-when { padding-top: 0; }
  #resume-btn { display: none; }
}
@media (max-width: 520px) {
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
  .meta { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .rise { opacity: 1; transform: none; }
}
