/* Agent Brand Guidelines, 2026 edition.
   Black / ivory #DBDAD2 / Agent red #FB090B. PP Neue Montreal.
   Editorial planes, hairlines, sharp corners. No decorative noise. */

@font-face {
  font-family: "PP Neue Montreal";
  src: url("./assets/fonts/PPNeueMontreal-Book.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("./assets/fonts/PPNeueMontreal-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("./assets/fonts/PPNeueMontreal-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #000000;
  --ink: #050505;
  --panel: #0b0a0a;
  --charcoal: #221e1e;
  --ivory: #dbdad2;
  --ivory-70: rgba(219, 218, 210, 0.7);
  --ivory-55: rgba(219, 218, 210, 0.55);
  --ivory-38: rgba(219, 218, 210, 0.38);
  --red: #fb090b;
  --hairline: rgba(219, 218, 210, 0.14);
  --hairline-soft: rgba(219, 218, 210, 0.09);
  --pad-x: clamp(22px, 6vw, 96px);
  --measure: 60ch;
  --caps: 0.22em;
}

* { box-sizing: border-box; }
[hidden],
.hero-scroll[hidden],
.marquee-set[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
}
body { overflow-x: hidden; line-height: 1.5; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; color: inherit; padding: 0; cursor: pointer; }

::selection { background: var(--red); color: var(--ivory); }

.skip {
  position: fixed;
  left: -200vw;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--red);
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: var(--caps);
  text-transform: uppercase;
}
.skip:focus { left: 12px; }

/* ============================ NAV ============================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  padding: 0 var(--pad-x);
  height: 62px;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.nav-brand img { height: 24px; width: auto; }
.nav-brand span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--caps);
  text-transform: uppercase;
  line-height: 1.1;
}
.nav-brand i {
  display: block;
  font-style: normal;
  color: var(--ivory-55);
  font-weight: 400;
}
.nav-links {
  display: flex;
  gap: clamp(14px, 2.2vw, 30px);
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  position: relative;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-55);
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--red);
  transition: right 0.3s ease;
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a.active { color: var(--ivory); }
.nav-links a.active::after { right: 0; }
.nav-edition {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--caps);
  text-transform: uppercase;
  color: var(--ivory-55);
  border: 1px solid var(--hairline);
  padding: 7px 12px;
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px var(--pad-x) 96px;
  isolation: isolate;
  background: var(--black);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("./assets/patterns/geo-charcoal.png");
  background-size: 520px auto;
  opacity: 0.34;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(130% 95% at 50% 42%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.82) 78%, #000 100%);
}
.hero-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(26px, 3.6vw, 44px);
  max-width: 980px;
}
.hero-lockup {
  width: clamp(300px, 54vw, 760px);
  height: auto;
  animation: heroFloat 9s ease-in-out infinite;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.55));
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-title {
  font-size: clamp(15px, 1.8vw, 22px);
  font-weight: 500;
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  text-transform: uppercase;
  color: var(--ivory);
}
.hero-lede {
  max-width: 54ch;
  color: var(--ivory-70);
  font-size: clamp(15px, 1.35vw, 18px);
}
.hero-meta {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--caps);
  text-transform: uppercase;
  color: var(--ivory-55);
}
.hero-scroll {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--ivory-38);
}
.hero-scroll-line {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--red), rgba(251, 9, 11, 0));
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.55); opacity: 0.5; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ============================ MARQUEE ============================ */
.marquee {
  overflow: hidden;
  background: var(--red);
  border-block: 1px solid rgba(0, 0, 0, 0.5);
  padding: clamp(16px, 1.8vw, 22px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 38s linear infinite;
}
.marquee-set {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  padding-right: clamp(40px, 5vw, 72px);
}
.mq-word { height: clamp(22px, 2.5vw, 30px); width: auto; }
.mq-mark { height: clamp(26px, 3vw, 38px); width: auto; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================ CHAPTER SCAFFOLD ============================ */
.chapter {
  padding: clamp(92px, 11vw, 168px) var(--pad-x);
  border-top: 1px solid var(--hairline-soft);
}
.sec-head { max-width: 900px; margin-bottom: clamp(52px, 6.5vw, 92px); }
.eyebrow {
  color: var(--red);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: var(--caps);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.sec-head h2 {
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.lede {
  max-width: var(--measure);
  color: var(--ivory-70);
  font-size: clamp(15px, 1.35vw, 18px);
}
.sub-head {
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 700;
  line-height: 1;
  margin: clamp(72px, 8.5vw, 120px) 0 14px;
}
.sub-head + .detail-rail,
.sub-head + .program,
.sub-head + .kit-stack { margin-top: clamp(28px, 3.4vw, 44px); }

.spec-line {
  margin-top: 22px;
  max-width: var(--measure);
  color: var(--ivory-38);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plane {
  background: var(--panel);
  border: 1px solid var(--hairline-soft);
}

/* ============================ LOGOMARKS ============================ */
.logo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}
.logo-plane {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: clamp(300px, 34vw, 480px);
}
.logo-plane img {
  place-self: center;
  margin: clamp(36px, 5vw, 72px);
}
.logo-word { width: min(64%, 520px); }
.logo-mark { width: min(38%, 300px); }
.logo-plane figcaption,
.lockup-plane figcaption,
.chrome-band figcaption,
.scale-band figcaption,
.clearspace figcaption,
.minsize figcaption {
  display: grid;
  gap: 6px;
  padding: 18px clamp(18px, 2.4vw, 28px) 20px;
  border-top: 1px solid var(--hairline-soft);
}
.logo-plane strong,
.lockup-plane strong,
.chrome-band strong,
.scale-band strong,
.clearspace strong,
.minsize strong {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--caps);
  text-transform: uppercase;
}
.logo-plane figcaption span,
.lockup-plane figcaption span,
.chrome-band figcaption span,
.scale-band figcaption span,
.clearspace figcaption span,
.minsize figcaption span {
  color: var(--ivory-55);
  font-size: 14px;
  max-width: 64ch;
}

.chrome-band {
  margin-top: clamp(16px, 2vw, 28px);
  background: var(--black);
  border: 1px solid var(--hairline-soft);
}
.chrome-band > img { width: 100%; }

.lockup-solo { margin-top: clamp(16px, 2vw, 28px); }
.lockup-plane { display: grid; grid-template-rows: 1fr auto; min-height: clamp(260px, 27vw, 400px); }
.lockup-plane img { place-self: center; margin: clamp(30px, 4vw, 56px); width: min(62%, 700px); }

.construction {
  margin-top: clamp(16px, 2vw, 28px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}
.clearspace, .minsize { display: grid; grid-template-rows: 1fr auto; }
.clearspace-fig {
  position: relative;
  place-self: center;
  margin: clamp(40px, 5vw, 64px);
}
.cs-box {
  border: 1px dashed rgba(219, 218, 210, 0.3);
  padding: clamp(34px, 4.4vw, 62px);
}
.cs-box img { width: clamp(150px, 16vw, 220px); }
.cs-x {
  position: absolute;
  color: var(--ivory-38);
  font-size: 12px;
  font-weight: 500;
}
.cs-top { top: clamp(8px, 1.6vw, 22px); left: 50%; translate: -50% 0; }
.cs-bottom { bottom: clamp(8px, 1.6vw, 22px); left: 50%; translate: -50% 0; }
.cs-left { left: clamp(8px, 1.6vw, 22px); top: 50%; translate: 0 -50%; }
.cs-right { right: clamp(8px, 1.6vw, 22px); top: 50%; translate: 0 -50%; }

.minsize-fig {
  place-self: center;
  display: flex;
  align-items: flex-end;
  gap: clamp(40px, 6vw, 88px);
  padding: clamp(40px, 5vw, 64px);
}
.minsize-item { display: grid; justify-items: center; gap: 16px; }
.minsize-item img { width: auto; }
.minsize-item span {
  color: var(--ivory-38);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
}

.scale-band {
  margin-top: clamp(16px, 2vw, 28px);
  background: var(--black);
  border: 1px solid var(--hairline-soft);
}
.scale-band > img { width: 100%; }

/* ============================ COLOR ============================ */
.swatches { display: grid; border: 1px solid var(--hairline-soft); }
.swatch {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) 1.4fr minmax(200px, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  text-align: left;
  padding: clamp(24px, 3.2vw, 42px) clamp(20px, 3vw, 40px);
  transition: filter 0.2s ease;
}
.swatch + .swatch { border-top: 1px solid var(--hairline-soft); }
.swatch:hover { filter: brightness(1.06); }
.sw-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--caps);
  text-transform: uppercase;
}
.sw-hex {
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}
.sw-meta { display: grid; gap: 5px; font-size: 13px; }
.sw-meta span:first-child { font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }
.sw-copy {
  font-size: 10px !important;
  letter-spacing: var(--caps) !important;
  text-transform: uppercase;
  opacity: 0.55;
}
.sw-black { background: var(--black); color: var(--ivory); }
.sw-black .sw-meta span:nth-child(2) { color: var(--ivory-55); }
.sw-ivory { background: var(--ivory); color: #000; }
.sw-ivory .sw-meta span:nth-child(2) { color: rgba(0, 0, 0, 0.6); }
.sw-red { background: var(--red); color: var(--ivory); }
.sw-red .sw-hex { color: #fff; }
.sw-red .sw-meta span:nth-child(2) { color: rgba(255, 255, 255, 0.78); }
.sw-charcoal { background: var(--charcoal); color: var(--ivory); }
.sw-charcoal .sw-meta span:nth-child(2) { color: var(--ivory-55); }

.registers {
  margin-top: clamp(16px, 2vw, 28px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}
.register { padding: clamp(30px, 4vw, 56px); display: grid; gap: 22px; align-content: start; }
.register h3 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; line-height: 1; }
.register p { max-width: 46ch; font-size: clamp(14px, 1.25vw, 16.5px); }
.reg-lifestyle { background: var(--ivory); color: #000; }
.reg-lifestyle p { color: rgba(0, 0, 0, 0.72); }
.reg-esports { background: var(--black); border: 1px solid var(--hairline-soft); border-top: 2px solid var(--red); }
.reg-esports p { color: var(--ivory-70); }
.usage {
  display: flex;
  height: 52px;
  border: 1px solid rgba(0, 0, 0, 0.35);
}
.reg-esports .usage { border-color: var(--hairline); }
.usage span {
  display: grid;
  place-items: center;
  min-width: 0;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  white-space: nowrap;
  overflow: hidden;
}
.u-black { background: #000; color: var(--ivory); }
.u-ivory { background: var(--ivory); color: #000; }
.reg-lifestyle .u-ivory { border-left: 1px solid rgba(0, 0, 0, 0.25); }
.u-red { background: var(--red); color: #fff; }
.register-note {
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.reg-lifestyle .register-note { color: rgba(0, 0, 0, 0.55); }
.reg-esports .register-note { color: var(--red); }
.register-demo {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.16);
}
.reg-esports .register-demo { border-top-color: var(--hairline-soft); }
.register-demo img { width: clamp(76px, 8vw, 104px); }
.register-demo span { font-size: 13px; max-width: 26ch; }
.reg-lifestyle .register-demo span { color: rgba(0, 0, 0, 0.6); }
.reg-esports .register-demo span { color: var(--ivory-55); }

/* ============================ PATTERNS ============================ */
.pattern-feature {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(24px, 3.4vw, 56px);
  align-items: center;
}
.pattern-feature + .pattern-feature { margin-top: clamp(48px, 6vw, 88px); }
.pf-flip { grid-template-columns: 0.85fr 1.25fr; }
.pf-flip .pattern-panel { order: 2; }
.pf-flip .pattern-copy { order: 1; }
.pattern-panel {
  overflow: hidden;
  border: 1px solid var(--hairline-soft);
  aspect-ratio: 16 / 10;
  background: var(--black);
}
.pattern-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.pattern-panel:hover img { transform: scale(1.05); }
.pattern-copy { display: grid; gap: 20px; align-content: center; }
.pattern-copy h3 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; line-height: 1; }
.pattern-copy > p { color: var(--ivory-70); max-width: 44ch; font-size: clamp(14px, 1.25vw, 16.5px); }
.flat-list { display: grid; }
.flat-list li {
  padding: 12px 0;
  border-top: 1px solid var(--hairline-soft);
  color: var(--ivory-55);
  font-size: 13.5px;
}
.flat-list li:last-child { border-bottom: 1px solid var(--hairline-soft); }
.tiles { display: flex; gap: 12px; }
.tile {
  width: clamp(56px, 6vw, 76px);
  aspect-ratio: 1;
  border: 1px solid var(--hairline);
  background-color: var(--black);
  background-size: 190px auto;
}
.t-org-ivory { background-image: url("./assets/patterns/organic-ivory.png"); }
.t-org-red { background-image: url("./assets/patterns/organic-red.png"); }
.t-org-charcoal { background-image: url("./assets/patterns/organic-ivory.png"); filter: brightness(0.28); }
.t-geo-ivory { background-image: url("./assets/patterns/geo-ivory.png"); }
.t-geo-red { background-image: url("./assets/patterns/geo-red.png"); }
.t-geo-charcoal { background-image: url("./assets/patterns/geo-charcoal.png"); }

.pattern-rules {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 44px);
}
.pattern-rules p {
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  color: var(--ivory-55);
  font-size: 14px;
  max-width: 34ch;
}
.pattern-rules strong { display: block; color: var(--ivory); font-weight: 500; margin-bottom: 6px; }

/* ============================ SOCIAL ============================ */
.channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.6vw, 40px);
  align-items: start;
}
.channel { display: grid; min-width: 0; }
.channel-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--caps);
  text-transform: uppercase;
  color: var(--ivory-55);
  padding-bottom: 14px;
}
.channel-tag-red { color: var(--red); }
.acct { overflow: hidden; border: 1px solid var(--hairline); }
.acct-x { background: #000; }
.channel figcaption {
  display: grid;
  gap: 6px;
  padding: 16px 2px 0;
}
.channel figcaption strong {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--caps);
  text-transform: uppercase;
}
.channel figcaption span { color: var(--ivory-55); font-size: 14px; max-width: 52ch; }
.channel-note {
  margin: clamp(40px, 5vw, 64px) auto 0;
  max-width: 56ch;
  text-align: center;
  color: var(--ivory-55);
  font-size: clamp(14px, 1.25vw, 16.5px);
}
.x-cover { aspect-ratio: 3 / 1; overflow: hidden; }
.x-cover img { width: 100%; height: 100%; object-fit: cover; }
.x-body {
  position: relative;
  min-height: 150px;
  padding: 70px clamp(20px, 3vw, 32px) 26px;
}
.x-avatar {
  position: absolute;
  top: -52px;
  left: clamp(20px, 3vw, 32px);
  display: block;
  width: 104px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--black);
}
.x-avatar img { width: 100%; height: 100%; object-fit: cover; }
.x-follow {
  position: absolute;
  top: 18px;
  right: clamp(20px, 3vw, 32px);
  display: grid;
  place-items: center;
  height: 34px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ivory);
  color: #000;
  font-size: 13px;
  font-weight: 700;
}
.x-id { display: grid; gap: 4px; justify-items: start; }
.x-id strong { font-size: 22px; font-weight: 700; line-height: 1; }
.x-id .x-handle { color: var(--ivory-38); font-size: 14px; }
.x-id p { color: var(--ivory-70); font-size: 15px; margin-top: 6px; }
.x-id .x-stats { color: var(--ivory-38); font-size: 13.5px; margin-top: 10px; }
.x-stats b { color: var(--ivory); font-weight: 700; margin-right: 4px; }

.acct-yt { background: #0f0f0f; }
.yt-banner { aspect-ratio: 6.2 / 1; overflow: hidden; }
.yt-banner img { width: 100%; height: 100%; object-fit: cover; }
.yt-body {
  display: flex;
  gap: clamp(18px, 2.2vw, 26px);
  align-items: flex-start;
  padding: clamp(20px, 2.4vw, 30px) clamp(20px, 3vw, 32px) clamp(24px, 2.8vw, 34px);
}
.yt-avatar {
  flex: 0 0 auto;
  display: block;
  width: clamp(80px, 8.5vw, 108px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}
.yt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.yt-id { display: grid; gap: 5px; justify-items: start; min-width: 0; color: #f1f1f1; }
.yt-id strong { font-size: 22px; font-weight: 700; line-height: 1; }
.yt-meta { color: rgba(241, 241, 241, 0.6); font-size: 13.5px; }
.yt-meta b { color: #f1f1f1; font-weight: 700; margin-right: 10px; }
.yt-id p { color: rgba(241, 241, 241, 0.78); font-size: 14.5px; }
.yt-sub {
  margin-top: 10px;
  display: grid;
  place-items: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #0f0f0f;
  font-size: 13.5px;
  font-weight: 700;
}

/* ============================ APPAREL ============================ */
.kit-stack { display: grid; gap: clamp(16px, 2vw, 28px); }
.kit { border: 1px solid var(--hairline-soft); background: #292929; }
.kit > img { width: 100%; }
.kit-spec {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px clamp(18px, 2.4vw, 28px);
  background: var(--panel);
  border-top: 1px solid var(--hairline-soft);
}
.kit-name {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
}
.kit-spec span:not(.kit-name) { font-size: 12.5px; color: var(--ivory-70); }
.kit-spec i {
  display: block;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-38);
  margin-bottom: 3px;
}

.detail-rail {
  display: flex;
  gap: clamp(14px, 1.8vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.detail-rail::-webkit-scrollbar { display: none; }
.detail {
  flex: 0 0 clamp(280px, 32vw, 420px);
  scroll-snap-align: start;
  border: 1px solid var(--hairline-soft);
  background: var(--black);
}
.detail img { width: 100%; }
.detail figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--hairline-soft);
  color: var(--ivory-55);
  font-size: 13px;
}

.program { border-top: 1px solid var(--hairline); }
.prog-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) 1.6fr minmax(150px, 0.6fr);
  gap: clamp(16px, 3vw, 44px);
  align-items: center;
  padding: clamp(18px, 2.2vw, 26px) 0;
  border-bottom: 1px solid var(--hairline);
}
.prog-row strong { font-size: clamp(16px, 1.6vw, 21px); font-weight: 700; }
.prog-row > span:not(.prog-status) { color: var(--ivory-55); font-size: 14px; max-width: 58ch; }
.prog-status {
  justify-self: end;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-38);
  border: 1px dashed rgba(219, 218, 210, 0.3);
  padding: 8px 12px;
  white-space: nowrap;
}
.prog-status.is-live {
  border: 1px solid var(--red);
  color: var(--ivory);
  background: rgba(251, 9, 11, 0.12);
}

/* ============================ APPLICATIONS ============================ */
.apps-table { border-top: 1px solid var(--hairline); }
.apps-head,
.apps-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(14px, 2.4vw, 36px);
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.apps-head {
  padding: 12px 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--caps);
  text-transform: uppercase;
  color: var(--ivory-38);
}
.apps-row { padding: clamp(16px, 2vw, 24px) 0; transition: background 0.25s ease, padding-left 0.25s ease; }
.apps-row:hover { background: rgba(219, 218, 210, 0.028); padding-left: 12px; }
.apps-row strong { font-size: clamp(16px, 1.7vw, 22px); font-weight: 700; }
.apps-row span {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-55);
}
.apps-row span:nth-of-type(2) { color: var(--ivory-70); }

/* ============================ CLOSING ============================ */
.closing {
  position: relative;
  min-height: 96svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(30px, 4vw, 48px);
  padding: clamp(100px, 12vw, 180px) var(--pad-x) 0;
  text-align: center;
  border-top: 1px solid var(--hairline-soft);
  background: var(--black);
  isolation: isolate;
  overflow: hidden;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("./assets/patterns/organic-ivory.png");
  background-size: 900px auto;
  opacity: 0.04;
}
.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.9) 82%);
}
.closing-emblem {
  width: clamp(170px, 20vw, 250px);
  border: 1px solid var(--hairline-soft);
  animation: heroFloat 10s ease-in-out infinite;
}
.closing-title {
  font-size: clamp(44px, 8vw, 110px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.closing-line {
  color: var(--ivory-55);
  font-size: clamp(14px, 1.3vw, 17px);
  max-width: 44ch;
}
.foot {
  width: calc(100% + 2 * var(--pad-x));
  margin: clamp(60px, 8vw, 110px) calc(-1 * var(--pad-x)) 0;
  padding: 26px var(--pad-x) 30px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--caps);
  text-transform: uppercase;
  color: var(--ivory-38);
}
.foot img { height: 18px; width: auto; opacity: 0.9; }
.foot a { color: var(--ivory-70); border-bottom: 1px solid var(--hairline); padding-bottom: 2px; margin-left: 14px; }
.foot a:hover { color: var(--ivory); border-bottom-color: var(--red); }

/* ============================ MOTION ============================ */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-lockup, .closing-emblem { animation: none; }
  .marquee-track { animation: none; }
  .hero-scroll-line { animation: none; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1100px) {
  .swatch { grid-template-columns: minmax(110px, 0.8fr) 1.2fr minmax(170px, 1fr); }
}

@media (max-width: 960px) {
  .logo-grid, .construction { grid-template-columns: 1fr; }
  .pattern-feature { grid-template-columns: 1fr; }
  .pf-flip .pattern-panel { order: 0; }
  .pf-flip .pattern-copy { order: 1; }
  .channel-grid { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 44px); }
}

@media (max-width: 880px) {
  .nav {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 0;
    row-gap: 6px;
  }
  .nav-brand { order: 1; }
  .nav-edition { order: 2; margin-left: auto; }
  .nav-links {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    padding-bottom: 10px;
  }
  .hero { padding-top: 150px; }
  .registers { grid-template-columns: 1fr; }
  .pattern-rules { grid-template-columns: 1fr; gap: 18px; }
  .hero-meta span:last-child { display: none; }
}

@media (max-width: 720px) {
  .swatch { grid-template-columns: 1fr; gap: 10px; padding: 22px 20px; }
  .sw-hex { font-size: 30px; }
  .kit-spec { grid-template-columns: repeat(2, 1fr); }
  .kit-spec .kit-name { grid-column: span 2; }
  .prog-row { grid-template-columns: 1fr; gap: 10px; }
  .prog-status { justify-self: start; }
  .apps-head { display: none; }
  .apps-row { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .apps-row strong { grid-column: span 2; }
  .apps-row span::before {
    content: attr(data-label);
    display: block;
    font-size: 8.5px;
    color: var(--ivory-38);
    margin-bottom: 3px;
  }
  .construction { grid-template-columns: 1fr; }
  .minsize-fig { gap: 44px; padding: 34px 20px; }
  .x-body { padding: 62px 18px 22px; }
  .x-avatar { width: 88px; top: -44px; }
  .foot { flex-direction: column; gap: 14px; text-align: center; }
}

@media (max-width: 520px) {
  .hero-lockup { width: 86vw; }
  .hero-meta { font-size: 9px; }
  .yt-body { flex-direction: column; }
}
