@import url("../colors_and_type.css");

/* ============================================================
   THUNDERSTRIKE — Website chrome  (v3)
   Orbitron = TITLES only · Chakra Petch = body/UI · JetBrains Mono = labels
   Canvas = pure black · orange used sparingly · one glow per view
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #000; color: var(--fg-on-dark); overflow-x: hidden; font-family: var(--font-body); }
img { display: block; max-width: 100%; }
::selection { background: rgba(231,142,54,0.28); color: #fff; }
a { color: var(--thunder-orange); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 34px; }
.wrap-wide { max-width: 1340px; }
.wrap-narrow { max-width: 780px; }
section { position: relative; }

body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 80% at 82% -10%, rgba(231,142,54,0.045), transparent 55%), radial-gradient(90% 60% at 0% 100%, rgba(60,59,55,0.22), transparent 60%); }

/* ============================================================
   NAV — brand left, tabs RIGHT, cascade hover menus
   ============================================================ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: 66px; display: flex; align-items: center; background: rgba(0,0,0,0); border-bottom: 1px solid transparent; transition: background var(--duration-base) var(--ease-stand), border-color var(--duration-base) var(--ease-stand), height var(--duration-base) var(--ease-stand); }
.nav.scrolled { height: 60px; background: rgba(5,5,5,0.72); backdrop-filter: saturate(150%) blur(20px); -webkit-backdrop-filter: saturate(150%) blur(20px); border-bottom-color: rgba(206,197,184,0.1); }
.nav-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--thunder-orange); box-shadow: 0 0 8px rgba(231,142,54,0.6); }
.nav-inner { width: 100%; max-width: 1340px; margin: 0 auto; padding: 0 30px; display: flex; align-items: center; gap: 8px; }
.nav-brand { display: flex; align-items: center; flex-shrink: 0; margin-right: auto; }
.nav-brand img { height: 34px; width: auto; display: block; transition: transform var(--duration-base) var(--ease-snap); }
.nav-brand:hover img { transform: scale(1.04); }
.nav-links { display: flex; align-items: stretch; gap: 2px; height: 66px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-links > a, .nav-item > .nav-top { display: inline-flex; align-items: center; gap: 6px; height: 100%; font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: 0.01em; color: var(--fg-on-dark); opacity: 0.82; padding: 0 15px; position: relative; transition: color var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out); }
.nav-links > a::after, .nav-item > .nav-top::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 20px; height: 1.5px; background: var(--thunder-orange); transform: scaleX(0); transform-origin: left; transition: transform var(--duration-base) var(--ease-snap); }
.nav-links > a:hover, .nav-item:hover > .nav-top, .nav-links a.active, .nav-item.active > .nav-top { color: #fff; opacity: 1; }
.nav-links > a:hover::after, .nav-item:hover > .nav-top::after, .nav-links a.active::after, .nav-item.active > .nav-top::after { transform: scaleX(1); }
.nav-item .caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.6; transition: transform var(--duration-base) var(--ease-snap); }
.nav-item:hover .caret { transform: rotate(225deg) translateY(-2px); opacity: 1; }

/* cascade menu */
.nav-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px); min-width: 300px; background: rgba(11,10,9,0.9); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); border: 1px solid rgba(206,197,184,0.12); border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow-lift); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--duration-base) var(--ease-stand), transform var(--duration-base) var(--ease-snap), visibility var(--duration-base); }
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(4px); }
.nav-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-menu-label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-on-dark-muted); padding: 6px 14px 10px; }
.nav-menu a { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: var(--radius-md); color: var(--fg-on-dark); opacity: 1; }
.nav-menu a strong { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 14px; color: #fff; }
.nav-menu a em { font-style: normal; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-on-dark-muted); }
.nav-menu a:hover { background: rgba(231,142,54,0.1); }
.nav-menu a:hover strong { color: var(--thunder-orange); }
.nav-menu a.all { border-top: 1px solid rgba(206,197,184,0.1); margin-top: 6px; padding-top: 14px; }
.nav-menu a.all strong { color: var(--thunder-orange); font-size: 12px; }

.nav-apply { flex-shrink: 0; margin-left: 14px; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.03em; color: #000; background: var(--thunder-orange); padding: 9px 20px; border: 1.5px solid var(--thunder-orange); border-radius: var(--radius-pill); cursor: pointer; transition: all var(--duration-fast) var(--ease-snap); }
.nav-apply:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: #000; box-shadow: var(--glow-orange-sm); }
.nav-apply:active { transform: scale(0.97); }
.nav-login { flex-shrink: 0; margin-left: 8px; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.03em; color: var(--fg-on-dark); padding: 9px 20px; border: 1.5px solid rgba(206,197,184,0.32); background: transparent; border-radius: var(--radius-pill); cursor: pointer; transition: all var(--duration-fast) var(--ease-snap); }
.nav-login:hover { color: #fff; border-color: rgba(206,197,184,0.7); }
.nav-login:active { transform: scale(0.97); }
.nav-burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; margin-left: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--fg-on-dark); transition: transform var(--duration-base) var(--ease-snap), opacity var(--duration-base); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-body); font-size: 15px; font-weight: 600; padding: 14px 28px; border-radius: var(--radius-pill); cursor: pointer; border: 1.5px solid transparent; transition: all var(--duration-fast) var(--ease-snap); }
.btn .arw { transition: transform var(--duration-base) var(--ease-snap); }
.btn:hover .arw { transform: translateX(5px); }
.btn-primary { background: var(--thunder-orange); color: #000; }
.btn-primary:hover { background: var(--color-accent-hover); color: #000; box-shadow: var(--glow-orange-md); }
.btn-primary:active { transform: scale(0.98); background: var(--color-accent-press); }
.btn-ghost { color: var(--fg-on-dark); border-color: rgba(206,197,184,0.28); }
.btn-ghost:hover { color: #fff; border-color: rgba(206,197,184,0.65); }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-text { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--thunder-orange); }
.btn-text .arw { transition: transform var(--duration-base) var(--ease-snap); }
.btn-text:hover { color: var(--color-accent-hover); }
.btn-text:hover .arw { transform: translateX(6px); }

/* ============================================================
   HEADINGS
   ============================================================ */
.eyebrow-lg { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--thunder-orange); margin-bottom: 22px; }
.kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-on-dark-muted); margin-bottom: 18px; }
.big-head, .statement h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; line-height: 0.98; font-size: clamp(38px, 6.4vw, 92px); color: #fff; margin: 0; }
.lede { font-family: var(--font-body); font-weight: 400; font-size: clamp(17px, 2.1vw, 22px); line-height: 1.55; color: var(--fg-on-dark); }
.grad-orange { color: var(--thunder-orange); }
.strike-bar { width: 60px; height: 3px; background: var(--thunder-orange); border: 0; }
.strike-bar.center { margin-left: auto; margin-right: auto; }

/* ============================================================
   HERO — grounded, centered
   ============================================================ */
.hero { position: relative; width: 100%; padding-top: 66px; overflow: hidden; background: #000; }
.hero-media { position: relative; width: 100%; aspect-ratio: 16 / 9; z-index: 0; }
.hero-media iframe, .hero-media #hero-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.hero-media .hero-shield { position: absolute; inset: 0; z-index: 2; background: transparent; }
.hero-media video, .hero-media .video-fallback { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(0.85) brightness(0.78); }
.video-fallback { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(115deg, #0c0b0a 0 22px, #080706 22px 44px); }
.video-fallback::after { content: "\25B6  DROP INTRO VIDEO HERE  ·  hero-video.mp4"; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--fg-on-dark-muted); border: 1px dashed rgba(206,197,184,0.3); padding: 12px 20px; }
.hero-scrim { position: absolute; inset: 66px 0 0 0; z-index: 1; background: radial-gradient(120% 95% at 50% 20%, rgba(0,0,0,0.1), rgba(0,0,0,0.45) 58%, rgba(0,0,0,0.9) 100%), linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 34%, rgba(0,0,0,0) 54%, rgba(0,0,0,0.92) 100%); }
.hero-content { position: absolute; inset: 66px 0 0 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; will-change: opacity; pointer-events: none; }
.hero-wordmark { width: min(68vw, 1150px); margin-bottom: 30px; }
.hero-tagline { font-family: var(--font-display); font-weight: 700; font-size: clamp(15px, 2.3vw, 21px); letter-spacing: 0.26em; text-transform: uppercase; color: var(--fg-on-dark); margin: 0; }
.hero-tagline b { color: var(--thunder-orange); font-weight: 700; }
.hero-sub { margin-top: 20px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; color: var(--fg-on-dark-muted); text-transform: uppercase; }
/* On phones the 16:9 video band is short; shrink the overlay so the wordmark
   and both lines sit inside it and stay vertically centred on the video
   rather than spilling below the frame. */
@media (max-width: 640px) {
  .hero-content { padding: 12px; }
  .hero-wordmark { width: min(66vw, 320px); margin-bottom: 12px; }
  .hero-tagline { font-size: 12px; letter-spacing: 0.16em; }
  .hero-sub { margin-top: 10px; font-size: 10.5px; letter-spacing: 0.1em; }
}
.load { opacity: 0; transform: translateY(24px); }
.hero-content .load { animation: riseIn 0.9s var(--ease-snap) forwards; }
.hero-content .load:nth-child(1) { animation-delay: 0.15s; }
.hero-content .load:nth-child(2) { animation-delay: 0.34s; }
.hero-content .load:nth-child(3) { animation-delay: 0.5s; }
@keyframes riseIn { to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--fg-on-dark-muted); display: flex; flex-direction: column; align-items: center; gap: 8px; animation: riseIn 1s var(--ease-snap) 0.8s both; }
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--thunder-orange), transparent); animation: cueDrop 1.9s var(--ease-stand) infinite; }
@keyframes cueDrop { 0% { transform: scaleY(0); transform-origin: top; opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; } }

/* Hero scroll scene — side view: the robot drives back, then shoots three cog
   artifacts into a DECODE-style goal. Scroll-driven; final frame centered. */
@keyframes sceneIn { from { opacity: 0; } to { opacity: 1; } }
.scroll-scene { position: relative; margin: 0 auto; z-index: 3; width: 210px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: min(84px, 11.8vw) 0; opacity: 0; animation: sceneIn 1s var(--ease-stand) 0.4s both; }
.ss-stage { position: relative; width: 210px; height: 160px; }
.sm-gear { position: absolute; will-change: transform; opacity: 0.95; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.55)); }
.sm-gear.g1 { width: 104px; left: 4px; top: 46px; }
.sm-gear.g2 { width: 72px; left: 86px; top: 32px; }
.sm-gear.g3 { width: 54px; left: 143px; top: 63px; }
.ss-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--fg-on-dark-muted); }

/* ============================================================
   STATEMENT — CENTERED, grounded
   ============================================================ */
.statement { padding: 0 0 clamp(96px, 16vh, 180px); text-align: center; }
.statement h2 { font-size: clamp(40px, 7vw, 96px); }
.statement .lede { max-width: 680px; margin: 26px auto 0; }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band { border-top: 1px solid rgba(206,197,184,0.1); border-bottom: 1px solid rgba(206,197,184,0.1); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 52px 24px; text-align: center; border-left: 1px solid rgba(206,197,184,0.08); }
.stat-cell:first-child { border-left: 0; }
.stat-num { font-family: var(--font-display); font-weight: 900; color: var(--thunder-orange); font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.stat-cap { margin-top: 12px; font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; color: var(--fg-on-dark-muted); }

/* ============================================================
   STAT CARDS — bold cards for the landing (match Achievements)
   ============================================================ */
.statcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.statcard { position: relative; border-radius: var(--radius-xl); background: linear-gradient(160deg, #17150f, #0e0d0b); border: 1px solid rgba(206,197,184,0.1); min-height: 186px; overflow: hidden; transition: border-color var(--duration-base) var(--ease-stand); }
.statcard .sc-inner { position: absolute; inset: 0; padding: 28px 28px; display: flex; flex-direction: column; justify-content: space-between; animation: floatY 6s var(--ease-stand) infinite; }
.statcard:nth-child(2) .sc-inner { animation-delay: -1.5s; }
.statcard:nth-child(3) .sc-inner { animation-delay: -3s; }
.statcard:nth-child(4) .sc-inner { animation-delay: -4.5s; }
.statcard:first-child { border-color: rgba(231,142,54,0.4); box-shadow: var(--glow-orange-sm); background: radial-gradient(120% 100% at 20% 10%, rgba(231,142,54,0.12), transparent 55%), linear-gradient(160deg, #1a1710, #0e0d0b); }
.statcard .sc-num { font-family: var(--font-display); font-weight: 900; color: var(--thunder-orange); font-size: clamp(34px, 4.4vw, 60px); line-height: 0.95; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.statcard .sc-cap { font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0.05em; color: var(--fg-on-dark-muted); }
.statcard .sc-glyph { position: absolute; right: -18px; bottom: -30px; font-family: var(--font-display); font-weight: 900; font-size: 150px; line-height: 1; color: rgba(206,197,184,0.03); pointer-events: none; }
.statcard:hover { border-color: rgba(231,142,54,0.5); }
@media (max-width: 820px) { .statcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .statcards { grid-template-columns: 1fr; } }
.statcards.impact .sc-num { font-size: clamp(23px, 3vw, 42px); white-space: nowrap; }
/* The two "culture" cards on what-is-ftc (Gracious Professionalism / Coopertition):
   always 2-up on desktop, a single column on phones. The title runs smaller than
   a stat number, and on phones the inner goes static so long words can't clip
   against the card's fixed height. */
.statcards.values { grid-template-columns: repeat(2, 1fr); }
.statcards.values .sc-num { font-size: clamp(24px, 3vw, 38px); line-height: 1.05; }
@media (max-width: 560px) {
  .statcards.values { grid-template-columns: 1fr; }
  .statcards.values .statcard { min-height: auto; }
  .statcards.values .sc-inner { position: static; }
  .statcards.values .sc-num { font-size: 24px; }
}

/* ============================================================
   GEAR MECHANISM — scroll-actuated, stays in place
   ============================================================ */
.mech-sec { padding: clamp(90px, 16vh, 190px) 0; }
.mech-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.mech { position: relative; display: flex; align-items: center; justify-content: center; min-height: clamp(240px, 30vw, 340px); }
.cog { display: block; will-change: transform; opacity: 0.95; filter: drop-shadow(0 14px 30px rgba(0,0,0,0.55)); }
.cog-a { width: clamp(150px, 18vw, 210px); z-index: 2; }
.cog-b { width: clamp(96px, 11.5vw, 134px); margin-left: -6%; z-index: 1; }
.cog-c { width: clamp(74px, 9vw, 104px); margin-left: -5%; z-index: 1; align-self: flex-end; margin-bottom: 8%; }
.mech-copy .eyebrow-lg { margin-bottom: 18px; }
.mech-copy h2 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 5vw, 76px); color: #fff; margin: 0; line-height: 0.96; letter-spacing: 0.01em; }
.mech-copy p { margin: 22px 0 0; max-width: 44ch; color: var(--fg-on-dark-muted); font-size: 17px; line-height: 1.6; }
@media (max-width: 860px) { .mech-grid { grid-template-columns: 1fr; gap: 20px; } .mech { order: 2; } }

/* ============================================================
   CATALOG — numbered news-index on the landing page
   ============================================================ */
.catalog { padding: clamp(30px, 5vh, 60px) 0 clamp(50px, 9vh, 100px); }
.cat-row { display: grid; grid-template-columns: auto minmax(180px, 1fr) clamp(280px, 38%, 460px) auto; gap: clamp(18px, 3vw, 46px); align-items: center; padding: clamp(24px, 3.4vh, 40px) 0; border-top: 1px solid rgba(206,197,184,0.12); text-decoration: none; color: inherit; position: relative; }
.cat-row:last-of-type { border-bottom: 1px solid rgba(206,197,184,0.12); }
.cat-row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--thunder-orange); transition: width var(--duration-slow) var(--ease-snap); z-index: 2; }
.cat-row:hover::after { width: 100%; }
.cat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.6vw, 56px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(206,197,184,0.28); transition: color var(--duration-base) var(--ease-stand), -webkit-text-stroke-color var(--duration-base) var(--ease-stand); }
.cat-main { min-width: 0; }
.cat-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-on-dark-muted); margin-bottom: 8px; }
.cat-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 3.4vw, 46px); color: #fff; line-height: 1; margin: 0; transition: transform var(--duration-base) var(--ease-snap); }
.cat-desc { font-family: var(--font-body); font-size: 15px; color: var(--fg-on-dark-muted); margin: 10px 0 0; max-width: 42ch; }
.cat-arw { font-size: 24px; color: var(--fg-on-dark-muted); transition: transform var(--duration-base) var(--ease-snap), color var(--duration-base) var(--ease-stand); }
.cat-row:hover .cat-num { color: rgba(231,142,54,0.16); -webkit-text-stroke-color: var(--thunder-orange); }
.cat-row:hover .cat-title { transform: translateX(8px); }
.cat-row:hover .cat-arw { transform: translateX(8px); color: var(--thunder-orange); }
/* preview filmstrip */
.cat-preview { height: clamp(86px, 12vh, 128px); display: flex; gap: 5px; }
.cat-tile { position: relative; flex: 1 1 0; height: 100%; overflow: hidden; border-radius: 3px; }
.cat-tile.wide { flex: 1.6 1 0; }
.cat-tile.narrow { flex: 0.7 1 0; }
.cat-tile img, .cat-tile .ph { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.5) contrast(1.05); opacity: 0.72; transition: filter 0.55s var(--ease-stand), opacity 0.55s var(--ease-stand), transform 0.7s var(--ease-snap); }
.cat-tile .ph { background: repeating-linear-gradient(125deg, #1a1815 0 14px, #100f0d 14px 28px); display: flex; align-items: center; justify-content: center; }
.cat-tile .ph span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; color: var(--fg-on-dark-faint); }
.cat-row:hover .cat-tile img, .cat-row:hover .cat-tile .ph { filter: grayscale(0) brightness(0.92) contrast(1.03); opacity: 1; }
.cat-row:hover .cat-tile img { transform: scale(1.06); }
/* mini timeline preview */
.cat-tl { position: relative; padding: 0 8px; }
.cat-tl .mini-line { position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; background: rgba(206,197,184,0.2); transition: background var(--duration-base) var(--ease-stand); }
.cat-tl .m-node { position: relative; flex: 1 1 0; height: 100%; }
.cat-tl .m-dot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 11px; height: 11px; border-radius: 50%; background: #0a0a0a; border: 2px solid rgba(206,197,184,0.4); box-shadow: 0 0 0 4px #000; transition: background var(--duration-base) var(--ease-snap), border-color var(--duration-base) var(--ease-snap); }
.cat-tl .m-chip { position: absolute; top: calc(50% + 13px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-on-dark-muted); }
.cat-tl .m-date { position: absolute; bottom: calc(50% + 13px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-mono); font-size: 9px; color: var(--fg-on-dark-faint); }
/* hover sweep — on hover the line fills orange left → right (linear, 0.8s)
   and each dot/chip ignites exactly when the front reaches its center
   (12.5 / 37.5 / 62.5 / 87.5% → 0.1 / 0.3 / 0.5 / 0.7s). On mouse-out the
   sequence unwinds in reverse: the fill retracts right → left and the dots
   go dark rightmost-first (mirrored delays on the non-hover state). */
.cat-tl .mini-line { overflow: visible; }
.cat-tl .mini-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--thunder-orange), var(--color-accent-hover)); box-shadow: 0 0 10px rgba(231,142,54,0.55); transform: scaleX(0); transform-origin: left; transition: transform 0.8s linear; }
.cat-row:hover .cat-tl .mini-line::after { transform: scaleX(1); }
.cat-tl .m-dot { transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out); }
.cat-tl .m-chip { transition: color 0.15s var(--ease-out); }
.cat-row:hover .cat-tl .m-dot { background: var(--thunder-orange); border-color: var(--thunder-orange); box-shadow: 0 0 0 4px #000, 0 0 10px rgba(231,142,54,0.7); }
.cat-row:hover .cat-tl .m-chip { color: var(--fg-on-dark); }
.cat-row:hover .cat-tl .m-node:nth-child(2) .m-dot, .cat-row:hover .cat-tl .m-node:nth-child(2) .m-chip { transition-delay: 0.1s; }
.cat-row:hover .cat-tl .m-node:nth-child(3) .m-dot, .cat-row:hover .cat-tl .m-node:nth-child(3) .m-chip { transition-delay: 0.3s; }
.cat-row:hover .cat-tl .m-node:nth-child(4) .m-dot, .cat-row:hover .cat-tl .m-node:nth-child(4) .m-chip { transition-delay: 0.5s; }
.cat-row:hover .cat-tl .m-node:nth-child(5) .m-dot, .cat-row:hover .cat-tl .m-node:nth-child(5) .m-chip { transition-delay: 0.7s; }
.cat-tl .m-node:nth-child(2) .m-dot, .cat-tl .m-node:nth-child(2) .m-chip { transition-delay: 0.7s; }
.cat-tl .m-node:nth-child(3) .m-dot, .cat-tl .m-node:nth-child(3) .m-chip { transition-delay: 0.5s; }
.cat-tl .m-node:nth-child(4) .m-dot, .cat-tl .m-node:nth-child(4) .m-chip { transition-delay: 0.3s; }
.cat-tl .m-node:nth-child(5) .m-dot, .cat-tl .m-node:nth-child(5) .m-chip { transition-delay: 0.1s; }
/* sponsor tier preview */
.cat-sp { gap: 6px; }
.sp-mini { flex: 1 1 0; height: 100%; border: 1px solid rgba(206,197,184,0.14); border-radius: 4px; display: flex; align-items: center; justify-content: center; background: var(--bg-card); transition: border-color var(--duration-base) var(--ease-stand); }
.sp-mini.title { flex: 1.7 1 0; border-color: rgba(231,142,54,0.32); }
.sp-mini.brand { background: #FFFFFF; display: flex; align-items: center; justify-content: center; padding: 10px 12px; }
.sp-mini.brand img { max-width: 84%; max-height: 70%; object-fit: contain; }
.sp-mini span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; color: var(--fg-on-dark-faint); }
.cat-row:hover .sp-mini { border-color: rgba(231,142,54,0.38); }
.cat-row:hover .sp-mini.title span { color: var(--thunder-orange); }
@media (max-width: 900px) { .cat-row { grid-template-columns: auto 1fr auto; } .cat-preview { display: none; } }
@media (max-width: 560px) { .cat-desc { display: none; } }

/* ============================================================
   CLOSING BRAND STATEMENT
   ============================================================ */
.brandmark { text-align: center; padding: clamp(100px, 18vh, 200px) 0; }
.brandmark .gear { width: 96px; opacity: 0.9; margin: 0 auto 32px; animation: spinSlow 40s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.brandmark h2 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(38px, 7vw, 104px); color: #fff; margin: 0; line-height: 0.96; letter-spacing: 0.01em; }
.brandmark p { margin: 24px auto 0; max-width: 540px; color: var(--fg-on-dark-muted); font-size: 17px; }

/* ============================================================
   INTERIOR PAGE HERO
   ============================================================ */
.page-hero { padding: clamp(130px, 21vh, 220px) 0 clamp(46px, 7vh, 80px); text-align: center; overflow-x: clip; }

/* content blocks */
.block { padding: clamp(64px, 11vh, 130px) 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 92px); align-items: center; }
.split.rev .split-media { order: 2; }
.split h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3.6vw, 46px); color: #fff; line-height: 1.04; margin: 0 0 20px; }
.split p { font-size: 17px; line-height: 1.62; color: var(--fg-on-dark); margin: 0 0 16px; }
/* Portrait-orientation photos must not be forced into the 4:3 well — it
   slices heads off. Faces are the whole point of these frames. */
.split-media.portrait img { aspect-ratio: 4 / 5; }
.split-media img { object-position: center 28%; }
.card-bg img { object-position: center 26%; }
.media-ph, .split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); background: repeating-linear-gradient(125deg, #131210 0 20px, #0d0c0b 20px 40px); border: 1px solid rgba(206,197,184,0.08); display: flex; align-items: center; justify-content: center; }
.media-ph span { font-family: var(--font-mono); font-size: 12px; color: var(--fg-on-dark-faint); text-align: center; padding: 0 20px; }

/* trio cards */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--bg-card); border: 1px solid rgba(206,197,184,0.08); min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; transition: transform var(--duration-base) var(--ease-snap), border-color var(--duration-base) var(--ease-stand); }
.card:hover { transform: translateY(-4px); border-color: rgba(231,142,54,0.4); }
.card-bg { position: absolute; inset: 0; z-index: 0; }
.card-bg .ph { width: 100%; height: 100%; background: repeating-linear-gradient(125deg, #131210 0 20px, #0d0c0b 20px 40px); display: flex; align-items: center; justify-content: center; }
/* real photo in place of the .ph placeholder — desaturated so the orange
   eyebrow stays the only warm thing in the card */
.card-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.55) contrast(1.06) brightness(0.82); }
.card-bg .ph span { font-family: var(--font-mono); font-size: 11px; color: var(--fg-on-dark-faint); }
.card-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,0.9) 8%, rgba(0,0,0,0.3) 55%, transparent); }
.card-body { position: relative; z-index: 2; }
.card-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--thunder-orange); margin-bottom: 10px; }
.card-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 24px; color: #fff; margin: 0 0 8px; }
.card-sub { font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: var(--fg-on-dark); margin: 0; }

/* ============================================================
   TEAM MEMBER GRID (no glass)
   ============================================================ */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); gap: 26px 18px; }
@media (max-width: 560px) { .people { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; } }
.person-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(206,197,184,0.1); background: var(--bg-card); cursor: default; }
.person-card img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.03) saturate(0.9) brightness(0.9); transition: transform 0.5s var(--ease-snap), filter 0.5s var(--ease-stand); }
.person-card .ph { width: 100%; height: 100%; background: repeating-linear-gradient(125deg, #161512 0 16px, #0f0e0c 16px 32px); display: flex; align-items: center; justify-content: center; }
.person-card .ph span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--fg-on-dark-faint); }
.person-ov { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.15) 55%, transparent); opacity: 0; transition: opacity 0.4s var(--ease-stand); }
.person-card:hover .person-ov { opacity: 1; }
.person-card:hover img { transform: scale(1.05); filter: none; }
.person-ov .pn { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 19px; color: #fff; letter-spacing: 0.02em; line-height: 1.05; }
.person-ov .pr { font-family: var(--font-body); font-size: 13px; color: var(--thunder-orange); margin-top: 5px; }
.person-cap { margin-top: 13px; }
.person-cap .cn { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 14px; color: #fff; letter-spacing: 0.03em; }
.person-cap .cr { font-family: var(--font-body); font-size: 13px; color: var(--fg-on-dark-muted); margin-top: 2px; }

/* member bio page */
.bio-hero { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.bio-photo { aspect-ratio: 4 / 5; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid rgba(206,197,184,0.1); }
.bio-photo img, .bio-photo .ph { width: 100%; height: 100%; object-fit: cover; }
.bio-photo .ph { background: repeating-linear-gradient(125deg, #161512 0 18px, #0f0e0c 18px 36px); display: flex; align-items: center; justify-content: center; }
.bio-photo .ph span { font-family: var(--font-mono); font-size: 12px; color: var(--fg-on-dark-faint); }
.bio-role { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--thunder-orange); margin-bottom: 14px; }
.bio-name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 5vw, 64px); color: #fff; line-height: 0.98; margin: 0 0 22px; }
.bio-body p { font-size: 17px; line-height: 1.62; color: var(--fg-on-dark); margin: 0 0 16px; }
@media (max-width: 760px) { .bio-hero { grid-template-columns: 1fr; } }

/* ============================================================
   SEASON SELECTOR
   ============================================================ */
.season-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.season-btn { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0.01em; color: var(--fg-on-dark); padding: 10px 22px; border: 1px solid rgba(206,197,184,0.22); background: transparent; border-radius: var(--radius-pill); cursor: pointer; transition: all var(--duration-fast) var(--ease-snap); }
.season-btn:hover { border-color: rgba(231,142,54,0.5); color: #fff; }
.season-btn.active { background: var(--thunder-orange); border-color: var(--thunder-orange); color: #000; }

/* ============================================================
   AWARD CATEGORY — floating cards (sorted by prestige)
   ============================================================ */
.awards { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 172px; gap: 16px; }
.award { position: relative; border-radius: var(--radius-xl); background: linear-gradient(160deg, #17150f, #0e0d0b); border: 1px solid rgba(206,197,184,0.1); overflow: hidden; }
.award-inner { position: absolute; inset: 0; padding: 26px 28px; display: flex; flex-direction: column; justify-content: space-between; animation: floatY 6s var(--ease-stand) infinite; }
.award:nth-child(2) .award-inner { animation-delay: -1.5s; }
.award:nth-child(3) .award-inner { animation-delay: -3s; }
.award:nth-child(4) .award-inner { animation-delay: -4.5s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.award .a-count { font-family: var(--font-display); font-weight: 900; color: var(--thunder-orange); line-height: 0.9; letter-spacing: 0.01em; font-size: clamp(40px, 5vw, 76px); }
.award .a-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; font-size: 18px; }
.award .a-note { font-family: var(--font-body); font-size: 13px; color: var(--fg-on-dark-muted); margin-top: 6px; max-width: 34ch; }
.award .a-glyph { position: absolute; right: -20px; bottom: -24px; font-family: var(--font-display); font-weight: 900; font-size: 190px; line-height: 1; color: rgba(206,197,184,0.03); pointer-events: none; }
.award .a-count { transition: opacity 0.35s var(--ease-stand); }
.award.has-desc .a-desc { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 2; font-family: var(--font-body); font-size: 14px; line-height: 1.45; color: var(--fg-on-dark); opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease-stand), transform 0.45s var(--ease-snap); pointer-events: none; }
.award.inspire.has-desc .a-desc { font-size: 17px; line-height: 1.5; right: 32px; left: 28px; bottom: 28px; max-width: 30ch; }
.award.has-desc:hover .a-count { opacity: 0; }
.award.has-desc:hover .a-desc { opacity: 1; transform: none; }
.award.inspire { grid-column: span 2; grid-row: span 2; border-color: rgba(231,142,54,0.4); box-shadow: var(--glow-orange-sm); background: radial-gradient(120% 100% at 20% 10%, rgba(231,142,54,0.12), transparent 55%), linear-gradient(160deg, #1a1710, #0e0d0b); }
.award.inspire .a-count { font-size: clamp(64px, 9vw, 132px); }
.award.inspire .a-name { font-size: 24px; }
.award.winner { grid-column: span 2; }
.award.finalist { grid-column: span 1; }
.award.design { grid-column: span 1; }
.award::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 20px 50px rgba(0,0,0,0.5); opacity: 0; transition: opacity var(--duration-base) var(--ease-stand); pointer-events: none; }
.award:hover { border-color: rgba(231,142,54,0.55); }
.award:hover::after { opacity: 1; }
@media (max-width: 820px) { .awards { grid-template-columns: repeat(2, 1fr); } .award.inspire { grid-column: span 2; grid-row: span 2; } .award.winner { grid-column: span 2; } }
@media (max-width: 520px) { .awards { grid-template-columns: 1fr; grid-auto-rows: 150px; } .award.inspire, .award.winner, .award.finalist, .award.design { grid-column: span 1; grid-row: span 1; } .award.inspire { grid-row: span 2; } }

/* ============================================================
   HORIZONTAL SCROLL TIMELINE (pinned)
   ============================================================ */
/* The timeline track is intentionally wider than the screen; clip it at the
   section so those 34px don't become a real sideways scroll on phones.
   `clip` (not `hidden`) — hidden would make this a scroll container and the
   sticky pin inside would stop working. */
.htl { position: relative; overflow-x: clip; }
.cat-cta { display: flex; justify-content: center; margin-top: clamp(36px, 6vh, 64px); }
.htl-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.htl-head { text-align: center; z-index: 5; flex: 0 0 auto; padding: 3.5vh 20px clamp(6px, 1.2vh, 14px); }
.htl-head .eyebrow-lg { margin-bottom: 10px; }
.htl-head h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 3.6vw, 46px); color: #fff; margin: 0; }
.htl-viewport { position: relative; width: 100%; flex: 1 1 auto; overflow: hidden; }
.htl-track { position: absolute; inset: 0; display: flex; align-items: center; gap: clamp(30px, 4vw, 60px); padding: 0 0 0 max(11vw, 96px); will-change: transform; }
.htl-spacer { flex: 0 0 auto; width: max(11vw, 96px); align-self: stretch; }
.htl-baseline { position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 2px; width: 100%; background: rgba(206,197,184,0.14); z-index: 0; }
.htl-baseline .fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: linear-gradient(90deg, var(--thunder-orange), var(--color-accent-hover)); box-shadow: 0 0 10px rgba(231,142,54,0.5); }
.htl-node { position: relative; flex: 0 0 auto; align-self: stretch; width: clamp(258px, 25vw, 320px); opacity: 0; transition: opacity 0.55s var(--ease-stand); }
.htl-node.on { opacity: 1; }
.htl-node .dot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 18px; height: 18px; border-radius: 50%; background: #0a0a0a; border: 2px solid var(--thunder-orange); box-shadow: 0 0 0 6px #000; z-index: 3; transition: background var(--duration-base) var(--ease-snap), box-shadow var(--duration-base) var(--ease-snap); }
.htl-node.on .dot { background: var(--thunder-orange); box-shadow: 0 0 0 6px #000, var(--glow-orange-sm); }
.htl-node.next .dot { border-color: #46d17a; }
.htl-node.next.on .dot { background: #46d17a; box-shadow: 0 0 0 6px #000, 0 0 16px rgba(70,209,122,0.75); }
.htl-node.next .dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(70,209,122,0.6); animation: nextPulse 1.8s var(--ease-stand) infinite; }
@keyframes nextPulse { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(2); opacity: 0; } }
.htl-node .stem { position: absolute; left: 50%; transform: translateX(-50%); width: 2px; background: rgba(231,142,54,0.4); z-index: 1; }
.htl-node.up .stem { bottom: 50%; height: 24px; }
.htl-node.down .stem { top: 50%; height: 24px; }
.htl-node .card { position: absolute; left: 0; right: 0; z-index: 2; min-height: 0; display: block; background: var(--bg-card); border: 1px solid rgba(206,197,184,0.12); border-radius: var(--radius-lg); padding: 15px 17px; transform: translateY(12px); transition: transform 0.55s var(--ease-snap); }
.htl-node.on .card { transform: none; }
.htl-node.up .card { bottom: calc(50% + 30px); }
.htl-node.down .card { top: calc(50% + 30px); }
.htl-date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--thunder-orange); }
.htl-event { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 15px; color: #fff; margin: 6px 0 3px; letter-spacing: 0.02em; line-height: 1.1; }
.htl-loc { font-family: var(--font-body); font-size: 12px; color: var(--fg-on-dark-muted); margin-bottom: 12px; }
.htl-awards { display: flex; flex-wrap: wrap; gap: 7px; }
.htl-awards .chip { font-size: 12px; padding: 5px 12px; }
/* Scroll affordance. Sits ABOVE the track, in the flex flow rather than pinned
   to the bottom, and at roughly double the old size — testers were not reading
   this as a horizontally-scrolling timeline. Clamped so the line does not
   overflow a phone at full tracking. */
.htl-hint { position: relative; z-index: 5; flex: 0 0 auto; padding: 0 20px clamp(8px, 1.6vh, 18px); text-align: center; font-family: var(--font-mono); font-size: clamp(14px, 3.6vw, 22px); letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-on-dark); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; }
.htl-hint .arrows { color: var(--thunder-orange); letter-spacing: 0.3em; animation: htlNudge 1.9s var(--ease-stand) infinite; }
@keyframes htlNudge { 0%, 100% { transform: translateX(0); opacity: 0.75; } 50% { transform: translateX(7px); opacity: 1; } }
.chip { font-family: var(--font-body); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: var(--radius-pill); white-space: nowrap; }
.chip-win { background: var(--thunder-orange); color: #000; }
.chip-award { background: rgba(231,142,54,0.12); color: var(--color-accent-hover); border: 1px solid rgba(231,142,54,0.4); }
.chip-note { background: rgba(206,197,184,0.08); color: var(--fg-on-dark); border: 1px solid rgba(206,197,184,0.16); }
.chip-next { background: #46d17a; color: #04140a; }
.awards-empty { border: 1px dashed rgba(206,197,184,0.2); border-radius: var(--radius-xl); padding: clamp(40px, 7vh, 72px) 28px; text-align: center; color: var(--fg-on-dark-muted); }
.awards-empty .ae-big { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 3vw, 34px); color: #fff; margin-bottom: 12px; letter-spacing: 0.02em; }
.awards-empty p { font-size: 16px; line-height: 1.5; max-width: 44ch; margin: 0 auto; }

/* ============================================================
   ROBOTS INDEX — glass cards
   ============================================================ */
.robot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 26px; }
.robot-card { position: relative; display: block; aspect-ratio: 16 / 11; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid rgba(206,197,184,0.18); cursor: pointer; isolation: isolate; }
.robot-card .rc-img { position: absolute; inset: 0; z-index: 0; }
.robot-card .rc-img img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.04) saturate(0.98) brightness(0.9); transition: transform var(--duration-slow) var(--ease-snap), filter var(--duration-slow) var(--ease-stand); }
.robot-card .rc-glass { position: absolute; inset: 0; z-index: 1; backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(140deg, rgba(206,197,184,0.05), rgba(0,0,0,0.18)); border-radius: inherit; transition: background var(--duration-slow) var(--ease-stand); }
.robot-card .rc-sheen { position: absolute; top: 0; left: 0; right: 0; height: 40%; z-index: 2; background: linear-gradient(rgba(255,255,255,0.08), transparent); pointer-events: none; }
.robot-card .rc-tag { position: absolute; top: 20px; left: 22px; z-index: 3; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-on-dark); opacity: 0.8; display: flex; align-items: center; gap: 8px; }
.robot-card .rc-tag::before { content: ""; width: 7px; height: 7px; background: var(--thunder-orange); border-radius: 50%; box-shadow: var(--glow-orange-sm); }
.robot-card .rc-body { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; opacity: 0; transform: translateY(14px); transition: opacity var(--duration-slow) var(--ease-stand), transform var(--duration-slow) var(--ease-snap); }
.robot-card .rc-name { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(32px, 4vw, 56px); color: #fff; letter-spacing: 0.02em; line-height: 1; }
.robot-card .rc-season { margin-top: 14px; font-family: var(--font-body); font-size: 15px; letter-spacing: 0.04em; color: var(--fg-on-dark); }
.robot-card .rc-season b { color: var(--thunder-orange); font-weight: 600; }
.robot-card .rc-cta { margin-top: 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--thunder-orange); display: inline-flex; gap: 8px; align-items: center; }
.robot-card:hover .rc-glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(140deg, rgba(0,0,0,0.42), rgba(0,0,0,0.72)); }
.robot-card:hover .rc-img img { transform: scale(1.05); filter: grayscale(0) contrast(1.08) saturate(0.95) brightness(0.9); }
.robot-card:hover .rc-body { opacity: 1; transform: none; }
.robot-card:hover .rc-tag { opacity: 0; }

/* ============================================================
   ROBOT DETAIL — specs
   ============================================================ */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(206,197,184,0.1); border: 1px solid rgba(206,197,184,0.1); border-radius: var(--radius-lg); overflow: hidden; }
.spec { background: #0d0c0b; padding: 32px 26px; transition: background var(--duration-base) var(--ease-stand); }
.spec:hover { background: #14120f; }
.spec-val { font-family: var(--font-display); font-weight: 900; color: var(--thunder-orange); font-size: clamp(26px, 3vw, 40px); line-height: 1; }
.spec-lab { margin-top: 12px; font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--fg-on-dark-muted); line-height: 1.5; }
.robot-stage { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid rgba(206,197,184,0.1); background: #050505; }
.robot-stage img { width: 100%; display: block; }
/* No filter and no overlay on renders — they are finished artwork, and a
   tint or a radial glow wrecks the reflections they were rendered for. */
.robot-stage .glow { display: none; }
@media (max-width: 820px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   SPONSORS
   ============================================================ */
.tier { margin-bottom: 62px; }
.tier-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.tier-head h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 18px; color: #fff; margin: 0; white-space: nowrap; }
.tier-head .rule { flex: 1; height: 1px; background: rgba(206,197,184,0.14); }
.tier-head .tier-tag { font-family: var(--font-mono); font-size: 12px; color: var(--fg-on-dark-muted); }

/* Each tier heading wears its own metal. Title gets a warm gold→orange
   gradient with a faint glow — the one premium treatment on the page. */
.tier[data-tier="title"] .tier-head h3 {
  background: linear-gradient(96deg, #F6E27A 0%, #E8C25A 28%, #FFF3C4 46%, #E78E36 74%, #C9761F 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(231,142,54,0.35));
}
.tier[data-tier="platinum"] .tier-head h3 {
  background: linear-gradient(96deg, #DCE3E8 0%, #FFFFFF 40%, #B9C4CC 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.tier[data-tier="gold"] .tier-head h3 {
  background: linear-gradient(96deg, #C9962F 0%, #F2D479 45%, #A87A1E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.tier[data-tier="silver"] .tier-head h3 {
  background: linear-gradient(96deg, #9AA3AA 0%, #E8EDF1 45%, #8B949B 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.tier[data-tier="bronze"] .tier-head h3 {
  background: linear-gradient(96deg, #A85F28 0%, #D89552 45%, #8A4A1C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
/* Supporters are not a metal and are not ranked against the paid tiers. */
.tier[data-tier="supporter"] .tier-head h3 { color: var(--fg-on-dark); }
/* "What partners get" — each tier name wears the same metal as its heading. */
#tier-perks .spec[data-tier="title"] .spec-val {
  background: linear-gradient(96deg, #F6E27A 0%, #E8C25A 28%, #FFF3C4 46%, #E78E36 74%, #C9761F 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(231,142,54,0.3));
}
#tier-perks .spec[data-tier="platinum"] .spec-val {
  background: linear-gradient(96deg, #DCE3E8 0%, #FFFFFF 40%, #B9C4CC 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
#tier-perks .spec[data-tier="gold"] .spec-val {
  background: linear-gradient(96deg, #C9962F 0%, #F2D479 45%, #A87A1E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
#tier-perks .spec[data-tier="silver"] .spec-val {
  background: linear-gradient(96deg, #9AA3AA 0%, #E8EDF1 45%, #8B949B 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
#tier-perks .spec[data-tier="bronze"] .spec-val {
  background: linear-gradient(96deg, #A85F28 0%, #D89552 45%, #8A4A1C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.tier[data-tier="title"] .tier-head .rule { background: linear-gradient(90deg, rgba(231,142,54,0.55), rgba(206,197,184,0.14)); height: 2px; }
.tier[data-tier="title"] .tier-head .tier-tag { color: var(--thunder-orange); }
/* Title plates get a little more presence than the rest. */
.tier[data-tier="title"] .sponsor.brand { padding: 34px 40px; }
.tier[data-tier="title"] .sponsor.brand img { max-height: 92px; }
@media (prefers-reduced-motion: no-preference) {
  .tier[data-tier="title"] .tier-head h3 { background-size: 200% 100%; animation: titleSheen 7s linear infinite; }
  @keyframes titleSheen { to { background-position: 200% 0; } }
}

.sponsor-grid { display: grid; gap: 16px; }
.sponsor-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.sponsor-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.sponsor-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.sponsor { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid rgba(206,197,184,0.09); display: flex; align-items: center; justify-content: center; padding: 24px; transition: transform var(--duration-base) var(--ease-snap), border-color var(--duration-base) var(--ease-stand); }
.sponsor:hover { transform: translateY(-3px); border-color: rgba(231,142,54,0.35); }
.sponsor img { max-height: 64px; max-width: 80%; object-fit: contain; filter: saturate(0) brightness(1.6); opacity: 0.85; }
/* Branded plate: the sponsor's real logo, full colour, on the background its
   brand book intends (usually white). Reads as a row of real company cards
   instead of a row of grey ghosts. */
.sponsor.brand { background: #FFFFFF; border-color: rgba(206,197,184,0.16); padding: 26px 30px; }
.sponsor.brand img { filter: none; opacity: 1; max-height: 70px; max-width: 84%; }
.sponsor.brand:hover { border-color: var(--thunder-orange); box-shadow: 0 10px 34px rgba(0,0,0,0.45), var(--glow-orange-sm); }
.sponsor.brand .slot .mk, .sponsor.brand .slot .sub { color: #3C3B37; }
/* link affordance on clickable plates */
.sponsor.brand[href]::after { content: ""; position: absolute; top: 12px; right: 12px; width: 15px; height: 15px; opacity: 0; transition: opacity var(--duration-base) var(--ease-out);
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233C3B37' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E"); }
.sponsor.brand[href] { position: relative; }
.sponsor.brand[href]:hover::after { opacity: 0.75; }
.sponsor .slot { text-align: center; }
.sponsor .slot .mk { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-on-dark-faint); font-size: 14px; }
.sponsor .slot .sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--fg-on-dark-faint); margin-top: 6px; }
.sponsor-cta { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); border: 1.5px dashed rgba(231,142,54,0.4); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; transition: all var(--duration-base) var(--ease-snap); }
.sponsor-cta:hover { border-color: var(--thunder-orange); background: rgba(231,142,54,0.05); }
.sponsor-cta .plus { font-family: var(--font-display); font-size: 30px; color: var(--thunder-orange); line-height: 1; }
.sponsor-cta .t { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--fg-on-dark); }
@media (max-width: 820px) { .sponsor-grid.cols-4, .sponsor-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
/* narrow screens: a long tier tag ("Venue, institutional & in-kind") can't sit
   on one line beside the heading — drop the rule to its own row instead of
   letting the tag push the page sideways */
@media (max-width: 620px) {
  .tier-head { flex-wrap: wrap; gap: 8px 14px; }
  .tier-head h3 { white-space: normal; }
  .tier-head .rule { order: 3; flex: 1 1 100%; }
}
.spec-grid.tiers5 { grid-template-columns: repeat(5, 1fr); }
.spec-grid.tiers5 .spec-val { font-size: clamp(18px, 2vw, 26px); }
@media (max-width: 820px) { .spec-grid.tiers5 { grid-template-columns: repeat(2, 1fr); } }
/* DOM order is Bronze→Title (ascending); column-reverse stacks Title at the top down to Bronze. */
@media (max-width: 560px) { .spec-grid.tiers5 { display: flex; flex-direction: column-reverse; } }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { text-align: center; padding: clamp(84px, 15vh, 160px) 0; }
.cta-band h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 5vw, 62px); color: #fff; margin: 0 0 28px; line-height: 1.04; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid rgba(206,197,184,0.1); padding: 68px 0 46px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 50px; }
.footer-brand img { height: 66px; width: auto; }
.footer-brand .fb-sub { font-family: var(--font-mono); font-size: 11px; color: var(--fg-on-dark-muted); letter-spacing: 0.06em; margin-top: 14px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-on-dark-muted); margin: 0 0 16px; }
.footer-col a { display: block; font-family: var(--font-body); font-size: 14px; color: var(--fg-on-dark); margin-bottom: 10px; opacity: 0.85; }
.footer-col a:hover { color: var(--thunder-orange); opacity: 1; }
.footer-bar { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid rgba(206,197,184,0.08); }
/* index footer variant — big brand lockup, vertically centered against the
   link columns; left edge stays aligned with the wrap padding */
.footer-big-brand .footer-top { align-items: center; }
.footer-big-brand .footer-brand { display: flex; align-items: center; }
.footer-big-brand .footer-brand img { height: 132px; }
.footer-bar span { font-family: var(--font-mono); font-size: 11px; color: var(--fg-on-dark-faint); letter-spacing: 0.05em; }

/* ============================================================
   LOGIN MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity var(--duration-base) var(--ease-stand); }
.modal.open .modal-scrim { opacity: 1; }
.modal-card { position: relative; width: 100%; max-width: 420px; background: var(--bg-elevated); border: 1px solid rgba(206,197,184,0.12); border-radius: var(--radius-xl); padding: 44px 40px 40px; box-shadow: var(--shadow-lift); transform: translateY(16px) scale(0.98); opacity: 0; transition: transform var(--duration-slow) var(--ease-snap), opacity var(--duration-slow) var(--ease-stand); }
.modal.open .modal-card { transform: none; opacity: 1; }
.modal-card::before { content: ""; position: absolute; top: 0; left: 44px; right: 44px; height: 3px; background: var(--thunder-orange); }
.modal-close { position: absolute; top: 16px; right: 18px; background: none; border: 0; color: var(--fg-on-dark-muted); font-size: 22px; cursor: pointer; line-height: 1; padding: 6px; }
.modal-close:hover { color: #fff; }
.modal-logo { height: 40px; width: auto; margin-bottom: 20px; }
.modal-card h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 24px; color: #fff; margin: 0 0 6px; }
.modal-card .msub { font-family: var(--font-body); font-size: 14px; color: var(--fg-on-dark-muted); margin: 0 0 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-on-dark-muted); margin-bottom: 8px; }
.field input { width: 100%; background: #050505; border: 1px solid rgba(206,197,184,0.16); border-radius: var(--radius-md); padding: 13px 15px; color: #fff; font-family: var(--font-body); font-size: 15px; transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
.field input::placeholder { color: var(--fg-on-dark-faint); }
.field input:focus { outline: none; border-color: var(--thunder-orange); box-shadow: 0 0 0 3px rgba(231,142,54,0.18); }
.modal-card .btn-primary { width: 100%; justify-content: center; margin-top: 8px; padding: 14px; }
.modal-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 22px; }
.modal-row label { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 13px; color: var(--fg-on-dark); }
.modal-row a { font-family: var(--font-body); font-size: 13px; }
.modal-foot { margin-top: 24px; text-align: center; font-family: var(--font-body); font-size: 13px; color: var(--fg-on-dark-muted); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(42px); transition: opacity 1s cubic-bezier(0.5, 0, 0.2, 1), transform 1.05s cubic-bezier(0.32, 0, 0.15, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.pop { transform: translateY(12px) scale(0.9); transition: opacity 0.7s cubic-bezier(0.5, 0, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.25, 1.28); }
.reveal.pop.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .load, .hero-content .load, .scroll-cue, .scroll-scene, .htl-node { opacity: 1 !important; transform: none !important; transition: none; animation: none; }
  .htl-hint .arrows, .scroll-cue .line, .brandmark .gear, .award-inner, .statcard .sc-inner, .cat-tl .mini-line::after, .cat-tl .m-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  /* Full-height panel that scrolls on its own; overscroll-contain keeps the
     scroll from chaining to the page behind it (paired with body.nav-open). */
  .nav-links { position: fixed; top: 66px; right: 0; bottom: 0; left: 0; height: auto; flex-direction: column; align-items: stretch; background: rgba(8,8,8,0.97); backdrop-filter: blur(20px); padding: 12px 20px 40px; gap: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity var(--duration-base) var(--ease-stand), transform var(--duration-base) var(--ease-snap); }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-item { flex-direction: column; align-items: stretch; }
  .nav-links > a, .nav-item > .nav-top { height: auto; padding: 15px 6px; font-size: 16px; }
  .nav-links > a::after, .nav-item > .nav-top::after { display: none; }
  /* Submenus flow inline in the open panel. NOTE: no pointer-events:auto here —
     declaring it would let the (invisible) closed menu escape the parent's
     pointer-events:none and steal taps over the page. And the hover/focus
     transform below must be neutralised, or tapping a dropdown slid it 50%
     off-screen. */
  .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; background: transparent; border: 0; box-shadow: none; padding: 0 0 8px 16px; backdrop-filter: none; }
  .nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu { transform: none; }
  .nav-item .caret { display: none; }
  body.nav-open { overflow: hidden; }
  .nav-burger { display: flex; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(3) { border-left: 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .split-media { order: 0; }
  .trio { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .wrap { padding: 0 20px; } .sponsor-grid.cols-2 { grid-template-columns: 1fr; } .nav-apply, .nav-login { padding: 7px 13px; font-size: 12px; margin-left: 6px; } }

/* ============================================================
   MEMBERS — profile chip · login errors · dashboard
   ============================================================ */
.nav-profile { flex-shrink: 0; margin-left: 8px; display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.03em; color: var(--fg-on-dark); padding: 4px 16px 4px 5px; border: 1.5px solid rgba(206,197,184,0.32); border-radius: var(--radius-pill); cursor: pointer; transition: all var(--duration-fast) var(--ease-snap); }
.nav-profile:hover { color: #fff; border-color: var(--thunder-orange); box-shadow: var(--glow-orange-sm); }
.nav-profile:active { transform: scale(0.97); }
.np-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--thunder-orange); color: #000; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; }
.nav-signout { flex-shrink: 0; margin-left: 8px; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.03em; color: var(--fg-on-dark-muted); padding: 9px 16px; border: 1.5px solid transparent; background: transparent; border-radius: var(--radius-pill); cursor: pointer; transition: all var(--duration-fast) var(--ease-snap); }
.nav-signout:hover { color: #fff; border-color: rgba(206,197,184,0.32); }

.form-err { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--thunder-orange); margin: 0 0 12px; min-height: 1em; }

.dash-main { padding: clamp(120px, 16vh, 170px) 0 40px; }
.dash-kicker { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.dash-session { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-on-dark-muted); }
.dash-session b { color: var(--thunder-orange); font-weight: 500; }

.dash-section { padding: clamp(36px, 6vh, 64px) 0; }
.dash-section .sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 6px; }

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 28px; }
.app-card { position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--bg-elevated, #0B0A09); border: 1px solid rgba(206,197,184,0.12); border-radius: var(--radius-xl); padding: 28px 26px 26px; overflow: hidden; transition: transform var(--duration-base) var(--ease-snap), border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out); }
.app-card::before { content: ""; position: absolute; top: 0; left: 26px; right: 26px; height: 2px; background: rgba(206,197,184,0.14); transition: background var(--duration-base) var(--ease-out); }
.app-card:hover { transform: translateY(-2px); border-color: rgba(206,197,184,0.3); box-shadow: var(--shadow-card); }
.app-card:hover::before { background: var(--thunder-orange); }
.ac-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ac-glyph { width: 44px; height: 44px; border-radius: var(--radius-md); background: rgba(231,142,54,0.1); border: 1px solid rgba(231,142,54,0.28); color: var(--thunder-orange); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.ac-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-on-dark-muted); border: 1px solid rgba(206,197,184,0.18); border-radius: var(--radius-pill); padding: 4px 10px; white-space: nowrap; }
.app-card h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 17px; color: #fff; margin: 4px 0 0; }
.app-card p { font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--fg-on-dark-muted); margin: 0; flex: 1; }
.ac-cta { margin-top: 8px; }
.app-card.soon { opacity: 0.6; }
.app-card.soon:hover { transform: none; box-shadow: none; border-color: rgba(206,197,184,0.12); }
.app-card.soon:hover::before { background: rgba(206,197,184,0.14); }
.app-card.soon .ac-glyph { background: transparent; border-color: rgba(206,197,184,0.18); color: var(--fg-on-dark-muted); }
.app-slot { display: flex; align-items: center; justify-content: center; min-height: 210px; border: 1.5px dashed rgba(206,197,184,0.22); border-radius: var(--radius-xl); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-on-dark-faint); text-align: center; padding: 20px; }

.dash-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ============================================================
   TROPHY CASE — significance tiers (dynamic awards from /api/events)
   t1 = 2×2 flagship (Inspire) · t2 = 2×1 (Winner) · t3 = 1×1 judged.
   New award types flow into the grid at their tier automatically.
   ============================================================ */
.award.t1 { grid-column: span 2; grid-row: span 2; border-color: rgba(231,142,54,0.4); box-shadow: var(--glow-orange-sm); background: radial-gradient(120% 100% at 20% 10%, rgba(231,142,54,0.12), transparent 55%), linear-gradient(160deg, #1a1710, #0e0d0b); }
.award.t1 .a-count { font-size: clamp(64px, 9vw, 132px); }
.award.t1 .a-name { font-size: 24px; }
.award.t1 .a-desc { font-size: 17px; line-height: 1.5; max-width: 30ch; }
.award.t2 { grid-column: span 2; }
.award.t3 .a-desc { font-size: 12.5px; line-height: 1.45; left: 22px; right: 22px; bottom: 22px; }
.award .a-name { transition: opacity 0.35s var(--ease-stand); }
.award.t3.has-desc:hover .a-name { opacity: 0; }
.award:nth-child(4n+1) .award-inner { animation-delay: 0s; }
.award:nth-child(4n+2) .award-inner { animation-delay: -1.5s; }
.award:nth-child(4n+3) .award-inner { animation-delay: -3s; }
.award:nth-child(4n) .award-inner { animation-delay: -4.5s; }
@media (max-width: 820px) { .award.t1 { grid-column: span 2; grid-row: span 2; } .award.t2 { grid-column: span 2; } }
@media (max-width: 520px) { .award.t1, .award.t2, .award.t3 { grid-column: span 1; grid-row: span 1; } .award.t1 { grid-row: span 2; } }

/* ============================================================
   DASHBOARD — event manager
   ============================================================ */
.event-list { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.event-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 18px; align-items: center; background: var(--bg-elevated, #0B0A09); border: 1px solid rgba(206,197,184,0.12); border-radius: var(--radius-xl); padding: 20px 24px; transition: border-color var(--duration-base) var(--ease-out); }
.event-row:hover { border-color: rgba(206,197,184,0.28); }
.ev-date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-on-dark-muted); }
.ev-date b { display: block; color: var(--thunder-orange); font-weight: 500; margin-top: 3px; }
.ev-main h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 15px; color: #fff; margin: 0 0 4px; }
.ev-main .ev-loc { font-family: var(--font-body); font-size: 13px; color: var(--fg-on-dark-muted); }
.ev-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ev-chips .chip { font-size: 11.5px; padding: 4px 10px; }
.ev-actions { display: flex; gap: 8px; }
.ev-btn { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--fg-on-dark); background: transparent; border: 1.5px solid rgba(206,197,184,0.28); border-radius: var(--radius-pill); padding: 8px 16px; cursor: pointer; transition: all var(--duration-fast) var(--ease-snap); }
.ev-btn:hover { color: #fff; border-color: rgba(206,197,184,0.6); }
.ev-btn.danger:hover { color: #fff; border-color: rgba(231,90,60,0.8); background: rgba(231,90,60,0.12); }
.event-empty { border: 1.5px dashed rgba(206,197,184,0.22); border-radius: var(--radius-xl); padding: 36px; text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-on-dark-faint); margin-top: 28px; }
@media (max-width: 700px) { .event-row { grid-template-columns: 1fr; gap: 10px; } .ev-actions { justify-content: flex-start; } }

.modal-card.wide { max-width: 560px; max-height: 88vh; overflow-y: auto; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field select { width: 100%; background: #050505; border: 1px solid rgba(206,197,184,0.16); border-radius: var(--radius-md); padding: 13px 15px; color: #fff; font-family: var(--font-body); font-size: 15px; transition: border-color var(--duration-fast) var(--ease-out); }
.field select:focus { outline: none; border-color: var(--thunder-orange); box-shadow: 0 0 0 3px rgba(231,142,54,0.18); }
.awards-editor { margin: 6px 0 18px; }
.awards-editor .ae-label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-on-dark-muted); margin-bottom: 8px; }
.award-row { display: grid; grid-template-columns: 1fr 110px 34px; gap: 8px; margin-bottom: 8px; }
.award-row select { background: #050505; border: 1px solid rgba(206,197,184,0.16); border-radius: var(--radius-md); padding: 10px 12px; color: #fff; font-family: var(--font-body); font-size: 14px; }
.award-row .ar-del { background: transparent; border: 1px solid rgba(206,197,184,0.2); border-radius: var(--radius-md); color: var(--fg-on-dark-muted); font-size: 16px; cursor: pointer; transition: all var(--duration-fast) var(--ease-out); }
.award-row .ar-del:hover { color: #fff; border-color: rgba(231,90,60,0.8); }
.ae-add { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--thunder-orange); background: none; border: 0; cursor: pointer; padding: 4px 0; }
.ae-add:hover { color: var(--color-accent-hover); }

/* ============================================================
   DASHBOARD — Apple-style home screen
   Icon image covers the tile; the <b> letter underneath is the
   fallback when an app has no icon (or it fails to load).
   ============================================================ */
.home-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 28px; margin-top: 34px; }
.home-grid .home-app { width: 112px; }
.home-app { display: flex; flex-direction: column; align-items: center; gap: 11px; border-bottom: 0; }
.home-app:hover { border-bottom: 0; }
.ha-icon { position: relative; width: 94px; height: 94px; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #17150f, #0e0d0b); border: 1px solid rgba(206,197,184,0.16); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-card); transition: transform var(--duration-base) var(--ease-snap); }
.ha-icon b { font-family: var(--font-display); font-weight: 800; font-size: 36px; color: var(--thunder-orange); }
.ha-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); /* the generated artwork carries wide black margins — zoom so the glyph fills the tile */ }
.ha-icon img[src*="posting-automator"] { transform: scale(1.8); /* this glyph sits smaller in its artwork */ }
.ha-icon img[src*="clickup"] { transform: scale(0.62); object-fit: contain; /* official mark is full-bleed on transparency */ }
.ha-icon img[src*="attendance"] { transform: scale(1.9); /* clock glyph sits small in its artwork */ }
.ha-icon img[src*="icon-blog"],
.ha-icon img[src*="icon-requests"] { transform: none; /* drawn full-bleed, no black margin to crop away */ }
.home-app:hover .ha-icon { transform: translateY(-3px) scale(1.05); }
.home-app:active .ha-icon { transform: scale(0.96); }
.ha-name { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--fg-on-dark); text-align: center; max-width: 112px; line-height: 1.3; }
.home-app:hover .ha-name { color: #fff; }

/* ============================================================
   ATTENDANCE — summary cards · view tabs · calendars · admin panels
   ============================================================ */
.att-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 6px 0 26px; }
.att-card { background: var(--bg-elevated, #0B0A09); border: 1px solid rgba(206,197,184,0.12); border-radius: var(--radius-xl); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.att-card .ac-cap { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-on-dark-muted); }
.att-card .ac-num { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: #fff; }
.att-card .ac-num span { font-size: 16px; color: var(--fg-on-dark-muted); font-weight: 600; }
.att-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.att-tabs { display: flex; gap: 4px; background: #0B0A09; border: 1px solid rgba(206,197,184,0.14); border-radius: var(--radius-pill); padding: 4px; }
.att-tabs button { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--fg-on-dark-muted); background: transparent; border: 0; border-radius: var(--radius-pill); padding: 8px 18px; cursor: pointer; transition: all var(--duration-fast) var(--ease-out); }
.att-tabs button.active { background: var(--thunder-orange); color: #000; }
.att-nav { display: flex; align-items: center; gap: 10px; }
.att-nav button { width: 34px; height: 34px; border-radius: 50%; background: transparent; border: 1px solid rgba(206,197,184,0.25); color: var(--fg-on-dark); font-size: 16px; cursor: pointer; transition: all var(--duration-fast) var(--ease-out); }
.att-nav button:hover { border-color: var(--thunder-orange); color: #fff; }
.att-nav span { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-on-dark); min-width: 180px; text-align: center; }
.att-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.att-right select { background: #050505; border: 1px solid rgba(206,197,184,0.16); border-radius: var(--radius-md); padding: 10px 12px; color: #fff; font-family: var(--font-body); font-size: 14px; }
.att-pill { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid; white-space: nowrap; }
.att-pill.ok { color: #6fdc95; border-color: rgba(70,209,122,0.5); }
.att-pill.bad { color: #ff8d75; border-color: rgba(231,90,60,0.55); }
.att-pill.open { color: var(--thunder-orange); border-color: rgba(231,142,54,0.55); }
.att-pill.hol { color: #7cc7ff; border-color: rgba(90,170,231,0.5); }
.att-pill.dim { color: var(--fg-on-dark-faint); border-color: rgba(206,197,184,0.2); }
.att-weekbar { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-body); font-size: 14px; color: var(--fg-on-dark-muted); margin-bottom: 12px; }
.att-weekbar b { color: #fff; font-size: 18px; }
.att-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.att-day { background: #0B0A09; border: 1px solid rgba(206,197,184,0.1); border-radius: var(--radius-md); padding: 12px; min-height: 120px; }
.att-day.today { border-color: rgba(231,142,54,0.6); }
.ad-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--fg-on-dark-muted); margin-bottom: 8px; }
.ad-head b { color: #fff; }
.ad-hours { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--thunder-orange); margin-bottom: 8px; }
.ad-hours.dim { color: var(--fg-on-dark-faint); }
.ad-chip { font-family: var(--font-body); font-size: 11.5px; color: var(--fg-on-dark); background: rgba(206,197,184,0.07); border-radius: 6px; padding: 4px 7px; margin-top: 4px; border-left: 2px solid rgba(206,197,184,0.3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-chip.ok { border-left-color: var(--thunder-orange); }
.att-entries { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.att-entry { display: flex; align-items: center; gap: 12px; background: #0B0A09; border: 1px solid rgba(206,197,184,0.1); border-radius: var(--radius-md); padding: 10px 14px; font-family: var(--font-body); font-size: 13.5px; }
.ae-date { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; color: var(--fg-on-dark-muted); min-width: 56px; }
.ae-hours { font-weight: 700; color: #fff; min-width: 40px; }
.ae-note { color: var(--fg-on-dark-muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ae-actions { display: flex; gap: 6px; }
.att-month-head { display: grid; grid-template-columns: repeat(7, 1fr) 140px; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; color: var(--fg-on-dark-faint); margin-bottom: 8px; }
.att-month-row { display: grid; grid-template-columns: repeat(7, 1fr) 140px; gap: 8px; margin-bottom: 8px; }
.att-mday { background: #0B0A09; border: 1px solid rgba(206,197,184,0.08); border-radius: 8px; min-height: 64px; padding: 8px 10px; display: flex; flex-direction: column; justify-content: space-between; }
.att-mday span { font-family: var(--font-mono); font-size: 11px; color: var(--fg-on-dark-muted); }
.att-mday b { font-family: var(--font-display); font-size: 15px; color: var(--thunder-orange); }
.att-mday.out { opacity: 0.32; }
.att-mday.today { border-color: rgba(231,142,54,0.6); }
.att-mstatus { display: flex; align-items: center; }
.att-season { display: flex; flex-direction: column; gap: 6px; }
.att-srow { display: grid; grid-template-columns: 210px 1fr 56px 160px; gap: 14px; align-items: center; padding: 8px 14px; border: 1px solid transparent; border-radius: var(--radius-md); font-family: var(--font-body); font-size: 13px; }
.att-srow.now { background: #0B0A09; border-color: rgba(231,142,54,0.4); }
.att-srow.upcoming { opacity: 0.45; }
.as-range { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; color: var(--fg-on-dark-muted); }
.as-bar { height: 6px; border-radius: 3px; background: rgba(206,197,184,0.1); overflow: hidden; }
.as-bar i { display: block; height: 100%; background: var(--thunder-orange); border-radius: 3px; }
.att-srow.holiday .as-bar i { background: #5aaae7; }
.as-hours { text-align: right; color: #fff; font-weight: 600; }
.att-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 26px; }
.att-panel { background: #0B0A09; border: 1px solid rgba(206,197,184,0.12); border-radius: var(--radius-xl); padding: 24px; }
.att-panel h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 15px; letter-spacing: 0.05em; color: #fff; margin: 0 0 6px; }
.ap-sub { font-family: var(--font-body); font-size: 12.5px; color: var(--fg-on-dark-muted); margin: 0 0 14px; }
.ap-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.ap-row input, .ap-row select { background: #050505; border: 1px solid rgba(206,197,184,0.16); border-radius: var(--radius-md); padding: 9px 11px; color: #fff; font-family: var(--font-body); font-size: 13px; min-width: 0; flex: 1; }
.ap-row input[type="date"] { flex: 0 0 auto; }
.ap-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(206,197,184,0.07); font-family: var(--font-body); font-size: 13.5px; color: #fff; }
.ap-item em { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--fg-on-dark-muted); flex: 1; }
.ap-empty { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-on-dark-faint); text-transform: uppercase; padding: 8px 0; }
@media (max-width: 760px) { .att-week { grid-template-columns: repeat(2, 1fr); } .att-srow { grid-template-columns: 1fr 56px; } .as-bar, .att-srow .att-pill { display: none; } }

/* attendance: session-type segmented control · deliverables · lab hours */
.seg { display: flex; gap: 4px; background: #050505; border: 1px solid rgba(206,197,184,0.16); border-radius: var(--radius-pill); padding: 4px; }
.seg button { flex: 1; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--fg-on-dark-muted); background: transparent; border: 0; border-radius: var(--radius-pill); padding: 9px 0; cursor: pointer; transition: all var(--duration-fast) var(--ease-out); }
.seg button.active { background: var(--thunder-orange); color: #000; }
.field textarea { width: 100%; background: #050505; border: 1px solid rgba(206,197,184,0.16); border-radius: var(--radius-md); padding: 13px 15px; color: #fff; font-family: var(--font-body); font-size: 14px; resize: vertical; transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
.field textarea::placeholder { color: var(--fg-on-dark-faint); }
.field textarea:focus { outline: none; border-color: var(--thunder-orange); box-shadow: 0 0 0 3px rgba(231,142,54,0.18); }
.ac-lab { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-on-dark-muted); line-height: 1.7; }
.ac-num.lab-open { color: #6fdc95; }
.ac-num.lab-closed { color: var(--fg-on-dark-muted); }
.att-entry .chip { font-size: 10.5px; padding: 3px 9px; }

/* ============================================================
   CAD CARD — Fusion screenshots ship on a light grid background, so
   they get their own light plate rather than being forced onto black.
   Reads as a drawing pinned to the page. Used on the robot pages.
   ============================================================ */
.cad-card { background: #FFFFFF; border: 1px solid rgba(206,197,184,0.16); border-radius: var(--radius-lg); overflow: hidden; }
.cad-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.cad-card.portrait img { aspect-ratio: 3 / 4; }
.cad-card .cad-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; border-top: 1px solid rgba(60,59,55,0.14); background: #F5F1EB; }
.cad-card .cad-cap b { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: #3C3B37; }
.cad-card .cad-cap span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(60,59,55,0.6); white-space: nowrap; }
.cad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .cad-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cad-grid { grid-template-columns: 1fr; } }
/* a CAD plate sitting in the .mech half of a .mech-grid row */
.mech .cad-card { width: 100%; }

/* ============================================================
   PRODUCT-PAGE FEATURE BLOCKS — benefit headline, a spec line
   carrying the numbers, then the explainer. Consumer-product
   cadence rather than an engineering notebook.
   ============================================================ */
.mech-copy .mc-sub { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--thunder-orange); margin: 18px 0 0; line-height: 1.7; }
.mech-copy h2 + .mc-sub { margin-top: 20px; }
.mech-copy .mc-sub + p { margin-top: 16px; }

/* one-line claim strip between feature blocks */
.claim { text-align: center; padding: clamp(56px, 9vh, 104px) 0; }
.claim h2 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(28px, 5vw, 66px); color: #fff; margin: 0; line-height: 1.02; letter-spacing: 0.01em; }
.claim p { font-family: var(--font-body); font-size: 17px; color: var(--fg-on-dark-muted); max-width: 56ch; margin: 22px auto 0; line-height: 1.6; }

/* how-a-match-works: three plain-language beats */
.beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.beat { background: var(--bg-card); border: 1px solid rgba(206,197,184,0.1); border-radius: var(--radius-lg); padding: 30px 28px; }
.beat .b-when { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--thunder-orange); margin-bottom: 14px; }
.beat h4 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 19px; color: #fff; margin: 0 0 10px; line-height: 1.15; }
.beat p { font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--fg-on-dark-muted); margin: 0; }
@media (max-width: 860px) { .beats { grid-template-columns: 1fr; } }

/* full spec sheet, closing the page */
.spectable { border: 1px solid rgba(206,197,184,0.1); border-radius: var(--radius-lg); overflow: hidden; }
.sp-group { border-bottom: 1px solid rgba(206,197,184,0.1); }
.sp-group:last-child { border-bottom: 0; }
.sp-head { background: #16130d; padding: 14px 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--thunder-orange); }
.sp-line { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 15px 24px; border-top: 1px solid rgba(206,197,184,0.06); background: #0d0c0b; }
.sp-line dt { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: var(--fg-on-dark-muted); margin: 0; }
.sp-line dd { font-family: var(--font-body); font-size: 14px; color: #fff; margin: 0; }
@media (max-width: 680px) { .sp-line { grid-template-columns: 1fr; gap: 5px; } }

/* ============================================================
   EVENT PAGE — Lisbon Scrimmage (roster, run of show, guests,
   media gallery). Reusable for any future event write-up.
   ============================================================ */
.roster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(206,197,184,0.1); border: 1px solid rgba(206,197,184,0.1); border-radius: var(--radius-lg); overflow: hidden; }
.rt { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: baseline; background: #0d0c0b; padding: 18px 22px; transition: background var(--duration-base) var(--ease-stand); }
.rt:hover { background: #14120f; }
.rt.host { background: #16130d; }
.rt.host:hover { background: #1c1810; }
.rt .rt-num { font-family: var(--font-mono); font-size: 13px; color: var(--thunder-orange); letter-spacing: 0.04em; }
.rt .rt-name { font-family: var(--font-body); font-size: 14.5px; font-weight: 600; color: #fff; }
.rt .rt-name b { display: block; font-weight: 500; font-size: 11.5px; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--thunder-orange); margin-top: 5px; }
.rt .rt-loc { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-on-dark-muted); text-align: right; white-space: nowrap; }
@media (max-width: 760px) { .roster { grid-template-columns: 1fr; } .rt { grid-template-columns: 64px 1fr; } .rt .rt-loc { grid-column: 2; text-align: left; margin-top: 4px; } }

.runsheet { border: 1px solid rgba(206,197,184,0.1); border-radius: var(--radius-lg); overflow: hidden; }
.rs-row { display: grid; grid-template-columns: 132px 1fr; gap: 20px; padding: 17px 24px; border-bottom: 1px solid rgba(206,197,184,0.07); background: #0d0c0b; }
.rs-row:last-child { border-bottom: 0; }
.rs-row.key { background: #16130d; }
.rs-time { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.05em; color: var(--thunder-orange); }
.rs-what { font-family: var(--font-body); font-size: 14.5px; color: var(--fg-on-dark); }
.rs-what b { display: block; font-weight: 600; color: #fff; margin-bottom: 3px; }
@media (max-width: 620px) { .rs-row { grid-template-columns: 1fr; gap: 6px; } }

.guests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guest { background: var(--bg-card); border: 1px solid rgba(206,197,184,0.1); border-radius: var(--radius-lg); padding: 28px 26px; }
.guest .g-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 16px; color: #fff; margin-bottom: 10px; line-height: 1.25; }
.guest .g-role { font-family: var(--font-body); font-size: 13.5px; color: var(--fg-on-dark-muted); line-height: 1.55; }
@media (max-width: 860px) { .guests { grid-template-columns: 1fr; } }

/* media gallery — fed by /site-media/scrimmage/manifest.json */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery a, .gallery figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(206,197,184,0.08); display: block; }
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(0.8) contrast(1.05); transition: transform var(--duration-slow) var(--ease-stand); }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-on-dark); }
.gallery.wide { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .gallery, .gallery.wide { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery, .gallery.wide { grid-template-columns: 1fr; } }
.video-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(206,197,184,0.1); background: #050505; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 820px) { .video-row { grid-template-columns: 1fr; } }
/* shown only when the manifest has nothing in it yet */
.media-empty { border: 1.5px dashed rgba(206,197,184,0.22); border-radius: var(--radius-xl); padding: 44px 32px; text-align: center; }
.media-empty p { font-family: var(--font-body); font-size: 14px; color: var(--fg-on-dark-muted); margin: 0 auto; max-width: 46ch; line-height: 1.6; }
.media-empty .me-lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--thunder-orange); margin-bottom: 12px; }

/* ============================================================
   SPONSORS MANAGER (admin-only members app)
   ============================================================ */
.sponsor-admin { margin-top: 28px; }
.sa-tier { margin-bottom: 40px; }
.sa-tier .tier-head { margin-bottom: 16px; }
.sa-row { display: grid; grid-template-columns: 132px 1fr auto; gap: 20px; align-items: center; background: var(--bg-elevated, #0B0A09); border: 1px solid rgba(206,197,184,0.12); border-radius: var(--radius-xl); padding: 18px 24px; margin-bottom: 12px; transition: border-color var(--duration-base) var(--ease-out); }
.sa-row:hover { border-color: rgba(206,197,184,0.28); }
.sa-mark { display: flex; align-items: center; justify-content: center; height: 56px; background: #050505; border: 1px solid rgba(206,197,184,0.09); border-radius: var(--radius-md); padding: 10px; }
.sa-mark img { max-height: 100%; max-width: 100%; object-fit: contain; }
.sa-mark img.inv { filter: invert(1) brightness(1.7); }
.sa-nologo { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--fg-on-dark-faint); }
.sa-main h4 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 15px; color: #fff; margin: 0 0 4px; }
.sa-blurb { font-family: var(--font-body); font-size: 13px; color: var(--fg-on-dark-muted); }
.sa-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-on-dark-faint); margin-top: 8px; }
.sa-meta a { color: var(--fg-on-dark-muted); }
.sa-meta a:hover { color: var(--thunder-orange); }
.sa-hidden { color: var(--thunder-orange); text-transform: uppercase; }
/* logo picker inside the add/edit modal */
.logo-drop { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; background: #050505; border: 1px solid rgba(206,197,184,0.16); border-radius: var(--radius-md); padding: 14px; }
.ld-preview { display: flex; align-items: center; justify-content: center; height: 74px; background: #000; border-radius: var(--radius-sm, 4px); padding: 8px; }
.ld-preview img { max-height: 100%; max-width: 100%; object-fit: contain; }
.ld-preview.inv img { filter: invert(1) brightness(1.7); }
.ld-preview span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-on-dark-faint); }
.ld-body { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ld-hint { flex: 1 1 100%; font-family: var(--font-body); font-size: 12px; color: var(--fg-on-dark-faint); margin: 2px 0 0; line-height: 1.5; }
.bg-row { display: flex; gap: 10px; align-items: center; }
.bg-row input[type="color"] { width: 52px; height: 40px; padding: 3px; background: #050505; border: 1px solid rgba(206,197,184,0.16); border-radius: var(--radius-md); cursor: pointer; }
.bg-row input[type="text"] { flex: 1; min-width: 0; background: #050505; border: 1px solid rgba(206,197,184,0.16); border-radius: var(--radius-md); padding: 11px 14px; color: #fff; font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; }
.bg-row input[type="text"]:focus { outline: none; border-color: var(--thunder-orange); }
.sp-toggles { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 22px; }
.sp-toggles label { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 13px; color: var(--fg-on-dark); cursor: pointer; }
@media (max-width: 720px) {
  .sa-row { grid-template-columns: 1fr; }
  .logo-drop { grid-template-columns: 1fr; }
}
/* Public sponsor plates: dark-artwork logos get flipped to white. The base
   .sponsor img rule already desaturates and lifts every logo. */
.sponsor img.inv { filter: invert(1) saturate(0) brightness(1.35); }


/* The longest word on the site ("Thunderstrike.") is wider than a 390px
   viewport at the previous clamp floor. Shrink the floor on small screens
   rather than letting it push the page sideways. */
@media (max-width: 460px) {
  .brandmark h2, .statement h2, .big-head { font-size: clamp(26px, 11vw, 44px); }
  .mech-copy h2, .claim h2 { font-size: clamp(26px, 10.5vw, 44px); }
  /* "Thunderstrike." is the longest unbreakable word on the site and is wider
     than a 390px viewport at any comfortable display size — scale it to fit. */
  h2:has(> .grad-orange) { font-size: clamp(24px, 9.2vw, 40px); }
}

/* ============================================================
   LIGHT MODE — members area only (dashboard + team apps).
   Activated by html[data-theme="light"], which only members
   pages ever set; the public site never gets the attribute and
   stays pure black. Surfaces flip to the design system's light
   tokens (--bg-light / --fg-on-light); orange stays the accent.
   ============================================================ */
html[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #FFFFFF;
  --bg-elevated: #F5F1EB;
  --bg-card: #EFEAE1;
  /* remap the on-dark roles to the on-light values so every
     token-driven rule flips without being rewritten */
  --fg-on-dark: #3C3B37;
  --fg-on-dark-muted: #6E6C66;
  --fg-on-dark-faint: #B8B4AB;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 24px rgba(60,59,55,0.14);
  --shadow-lift: 0 24px 60px rgba(60,59,55,0.22);
  --glow-orange-sm: 0 0 0 1px rgba(231,142,54,0.45), 0 0 12px rgba(231,142,54,0.22);
}
html[data-theme="light"] body { background: #FFFFFF; }
html[data-theme="light"] body::before { background: radial-gradient(120% 80% at 82% -10%, rgba(231,142,54,0.06), transparent 55%), radial-gradient(90% 60% at 0% 100%, rgba(60,59,55,0.06), transparent 60%); }
html[data-theme="light"] ::selection { background: rgba(231,142,54,0.28); color: #000; }

/* nav */
html[data-theme="light"] .nav.scrolled { background: rgba(255,255,255,0.78); border-bottom-color: rgba(60,59,55,0.14); }
html[data-theme="light"] .nav-links > a:hover,
html[data-theme="light"] .nav-links a.active { color: #000; }
html[data-theme="light"] .nav-brand img { content: url("../assets/logo-gear-light-bg.svg"); }
html[data-theme="light"] .nav-login:hover,
html[data-theme="light"] .nav-signout:hover,
html[data-theme="light"] .nav-profile:hover { color: #000; }
html[data-theme="light"] .nav-login,
html[data-theme="light"] .nav-profile { border-color: rgba(60,59,55,0.3); }
html[data-theme="light"] .nav-signout:hover { border-color: rgba(60,59,55,0.3); }
html[data-theme="light"] .nav-burger span { background: var(--fg-on-dark); }
html[data-theme="light"] .nav-links { background: transparent; }
@media (max-width: 900px) {
  html[data-theme="light"] .nav-links { background: rgba(255,255,255,0.97); border-bottom-color: rgba(60,59,55,0.14); }
}

/* theme toggle button */
.nav-theme { flex-shrink: 0; margin-left: 8px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1; color: var(--fg-on-dark); background: transparent; border: 1.5px solid rgba(206,197,184,0.32); border-radius: 50%; cursor: pointer; transition: all var(--duration-fast) var(--ease-snap); }
.nav-theme:hover { color: #fff; border-color: var(--thunder-orange); box-shadow: var(--glow-orange-sm); }
.nav-theme:active { transform: scale(0.94); }
.nav-theme .nt-moon { display: none; }
html[data-theme="light"] .nav-theme { border-color: rgba(60,59,55,0.3); }
html[data-theme="light"] .nav-theme:hover { color: #000; }
html[data-theme="light"] .nav-theme .nt-sun { display: none; }
html[data-theme="light"] .nav-theme .nt-moon { display: inline; }

/* headings & strong text that hardcode white */
html[data-theme="light"] .big-head,
html[data-theme="light"] .statement h2,
html[data-theme="light"] .app-card h3,
html[data-theme="light"] .ev-main h3,
html[data-theme="light"] .modal-card h3,
html[data-theme="light"] .att-card .ac-num,
html[data-theme="light"] .att-weekbar b,
html[data-theme="light"] .ad-head b,
html[data-theme="light"] .ae-hours,
html[data-theme="light"] .as-hours,
html[data-theme="light"] .att-panel h3,
html[data-theme="light"] .ap-item,
html[data-theme="light"] .season-btn:hover,
html[data-theme="light"] .btn-ghost:hover,
html[data-theme="light"] .ev-btn:hover,
html[data-theme="light"] .modal-close:hover,
html[data-theme="light"] .att-nav button:hover,
html[data-theme="light"] .award-row .ar-del:hover,
html[data-theme="light"] .home-app:hover .ha-name { color: #1D1C1A; }
html[data-theme="light"] h2[style], html[data-theme="light"] .dash-main h2 { color: #1D1C1A; }

/* panels, rows & inputs that hardcode near-black backgrounds */
html[data-theme="light"] .att-tabs,
html[data-theme="light"] .att-day,
html[data-theme="light"] .att-entry,
html[data-theme="light"] .att-mday,
html[data-theme="light"] .att-srow.now,
html[data-theme="light"] .att-panel { background: #F5F1EB; border-color: rgba(60,59,55,0.16); }
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .award-row select,
html[data-theme="light"] .att-right select,
html[data-theme="light"] .ap-row input,
html[data-theme="light"] .ap-row select,
html[data-theme="light"] .seg { background: #FFFFFF; border-color: rgba(60,59,55,0.22); color: #1D1C1A; }
html[data-theme="light"] .app-card,
html[data-theme="light"] .event-row { border-color: rgba(60,59,55,0.16); }
html[data-theme="light"] .app-card::before { background: rgba(60,59,55,0.14); }
html[data-theme="light"] .app-card:hover { border-color: rgba(60,59,55,0.34); }
html[data-theme="light"] .app-card:hover::before { background: var(--thunder-orange); }
html[data-theme="light"] .ac-tag,
html[data-theme="light"] .ev-btn,
html[data-theme="light"] .season-btn,
html[data-theme="light"] .att-nav button,
html[data-theme="light"] .nav-theme,
html[data-theme="light"] .btn-ghost { border-color: rgba(60,59,55,0.28); }
html[data-theme="light"] .ad-chip { background: rgba(60,59,55,0.07); border-left-color: rgba(60,59,55,0.3); color: #1D1C1A; }
html[data-theme="light"] .ad-chip.ok { border-left-color: var(--thunder-orange); }
html[data-theme="light"] .as-bar { background: rgba(60,59,55,0.12); }
html[data-theme="light"] .ap-item { border-bottom-color: rgba(60,59,55,0.1); }
html[data-theme="light"] .footer { border-top-color: rgba(60,59,55,0.12); }
html[data-theme="light"] .footer-bar { border-top-color: rgba(60,59,55,0.1); }
html[data-theme="light"] .app-slot,
html[data-theme="light"] .event-empty { border-color: rgba(60,59,55,0.24); }
html[data-theme="light"] .modal-card { border-color: rgba(60,59,55,0.16); }
html[data-theme="light"] .modal-scrim { background: rgba(60,59,55,0.4); }
html[data-theme="light"] .stats-band { border-color: rgba(60,59,55,0.12); }
html[data-theme="light"] .stat-cell { border-left-color: rgba(60,59,55,0.1); }

/* status pills — darker inks for light surfaces */
html[data-theme="light"] .att-pill.ok { color: #2F8F4E; border-color: rgba(47,143,78,0.55); }
html[data-theme="light"] .att-pill.bad { color: #C24A32; border-color: rgba(194,74,50,0.55); }
html[data-theme="light"] .att-pill.hol { color: #2F79B8; border-color: rgba(47,121,184,0.5); }
html[data-theme="light"] .ac-num.lab-open { color: #2F8F4E; }
html[data-theme="light"] .att-srow.holiday .as-bar i { background: #2F79B8; }

/* the app icons carry black artwork backgrounds — keep the tiles dark
   (dark-squircle look on the light desk), just soften the edge */
html[data-theme="light"] .ha-icon { border-color: rgba(60,59,55,0.25); }

/* sponsors manager — light surfaces. Logo wells stay dark: most brand kits
   ship white-on-transparent artwork that would vanish on a white card. */
html[data-theme="light"] .sa-row { border-color: rgba(60,59,55,0.14); }
html[data-theme="light"] .sa-row:hover { border-color: rgba(60,59,55,0.3); }
html[data-theme="light"] .sa-main h4 { color: #000; }
html[data-theme="light"] .logo-drop { background: var(--bg-elevated); border-color: rgba(60,59,55,0.18); }
html[data-theme="light"] .sa-mark { border-color: rgba(60,59,55,0.14); }


/* ============================================================
   OUTREACH — scrolling rail + impact ledger
   ============================================================ */

/* A continuous rail of outreach frames under the page title. Duplicated
   track so the loop is seamless; hover and reduced-motion both stop it,
   and it stays a normal horizontal scroller for touch/keyboard. */
.rail { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rail-track { display: flex; gap: 14px; width: max-content; animation: railScroll 64s linear infinite; }
.rail:hover .rail-track, .rail:focus-within .rail-track { animation-play-state: paused; }
@keyframes railScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rail-card { position: relative; flex: 0 0 auto; width: clamp(232px, 26vw, 320px); aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(206,197,184,0.1); }
.rail-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-stand); }
.rail-card:hover img { transform: scale(1.05); }
.rail-card .rc-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.86) 4%, rgba(0,0,0,0.18) 52%, transparent); }
.rail-card .rc-lab { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.rail-card .rc-lab b { display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 14px; letter-spacing: 0.03em; color: #fff; }
.rail-card .rc-lab span { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--thunder-orange); margin-top: 5px; }
@media (prefers-reduced-motion: reduce) { .rail-track { animation: none; } .rail { overflow-x: auto; } }

/* Two panels instead of eight equal tiles: one hero number each, then the
   supporting rows. Keeps "reached" and "involved" visibly separate — the
   outreach vault treats merging them as a reporting error. */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ledger-panel { background: var(--bg-card); border: 1px solid rgba(206,197,184,0.1); border-radius: var(--radius-xl); padding: clamp(26px, 3vw, 38px); }
.ledger-panel.lead { border-color: rgba(231,142,54,0.35); background: radial-gradient(120% 90% at 15% 0%, rgba(231,142,54,0.09), transparent 58%), var(--bg-card); }
.ledger-panel .lp-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--thunder-orange); margin: 0 0 18px; }
.ledger-panel .lp-hero { font-family: var(--font-display); font-weight: 900; color: #fff; font-size: clamp(40px, 6vw, 78px); line-height: 0.94; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.ledger-panel .lp-hero em { font-style: normal; color: var(--thunder-orange); }
.ledger-panel .lp-sub { font-family: var(--font-body); font-size: 14.5px; line-height: 1.5; color: var(--fg-on-dark); margin: 14px 0 0; max-width: 34ch; }
.ledger-rows { margin-top: 26px; border-top: 1px solid rgba(206,197,184,0.12); }
.ledger-row { display: grid; grid-template-columns: 116px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(206,197,184,0.07); align-items: baseline; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row b { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--thunder-orange); }
.ledger-row span { font-family: var(--font-body); font-size: 13.5px; line-height: 1.5; color: var(--fg-on-dark-muted); }
.ledger-note { font-family: var(--font-body); font-size: 14px; color: var(--fg-on-dark-muted); margin: 20px 0 0; max-width: 78ch; }
@media (max-width: 860px) { .ledger { grid-template-columns: 1fr; } .ledger-row { grid-template-columns: 96px 1fr; } }

/* The Scrimmage band on the outreach page: black → Lisbon blue → black, so
   the blue field lines up exactly with the event's own section. Inside it we
   hand over to the Lisbon Scrimmage design system (see .ls-scope). */
.ls-inset { position: relative; padding: clamp(70px, 11vh, 130px) 0; }
.ls-inset::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #000 0%, #052142 16%, #0B3A66 50%, #052142 84%, #000 100%);
}
.ls-inset > * { position: relative; z-index: 1; }
.ls-inset .ls-lockup-sm { width: min(300px, 62vw); height: auto; display: block; margin-bottom: 26px; }

/* ── game explainer cards: image-led, caption underneath ── */
.game-card { margin: 0; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid rgba(206,197,184,0.1); background: var(--bg-card); }
.game-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.game-card figcaption { padding: 20px 22px 24px; }
.game-card figcaption b { display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: 16px; color: #fff; }
.game-card figcaption span { display: block; font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: var(--fg-on-dark-muted); margin-top: 7px; }


/* ============================================================
   BLOG — public index (blog.html) and reader (post.html)
   Rendered by blog.js from /api/blog. Editorial rather than
   card-heavy: one lead story, then a plain grid.
   ============================================================ */
.post-lead { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: 30px 0 clamp(40px, 6vh, 64px); border-bottom: 1px solid rgba(206,197,184,0.12); color: inherit; }
.post-lead:hover { color: inherit; }
.pl-media, .pc-media { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid rgba(206,197,184,0.1); background: var(--bg-card); }
.pl-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(0.9) contrast(1.04); transition: transform var(--duration-slow) var(--ease-snap); }
.post-lead:hover .pl-media img, .post-card:hover .pc-media img { transform: scale(1.04); }
/* A post with no cover still has to look intentional — a typographic plate
   carrying its own initial, not a broken frame. */
.pl-media.no-cover, .pc-media.no-cover, .bm-thumb.no-cover { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #17150f, #0e0d0b); }
.pl-media.no-cover { aspect-ratio: 16 / 10; }
.pc-media.no-cover { aspect-ratio: 16 / 10; }
.pl-media.no-cover span, .pc-media.no-cover span, .bm-thumb.no-cover span { font-family: var(--font-display); font-weight: 900; color: rgba(231,142,54,0.5); font-size: clamp(40px, 6vw, 84px); line-height: 1; }
.pl-latest { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--thunder-orange); margin: 0 0 14px; }
/* Post titles are long editorial sentences — Orbitron all-caps at this size
    was overwhelming (user, Aug 2026). They run in the body face, natural
    case; Orbitron stays for the page chrome ("BLOG") and labels. */
.post-lead h2 { font-family: var(--font-body); font-weight: 600; text-transform: none; font-size: clamp(24px, 3vw, 40px); line-height: 1.18; letter-spacing: -0.01em; color: #fff; margin: 0; text-wrap: balance; transition: color var(--duration-base) var(--ease-stand); }
.post-lead:hover h2 { color: var(--thunder-orange); }
.pl-dek { font-family: var(--font-body); font-size: 16.5px; line-height: 1.6; color: var(--fg-on-dark-muted); margin: 18px 0 20px; max-width: 46ch; }
.pc-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-on-dark-faint); }
.pc-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--thunder-orange); }
.pc-cta .arw { transition: transform var(--duration-base) var(--ease-snap); }
.post-lead:hover .pc-cta .arw, .post-card:hover .pc-cta .arw { transform: translateX(6px); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px 24px; padding: clamp(38px, 6vh, 60px) 0 0; }
.post-card { display: flex; flex-direction: column; color: inherit; }
.post-card:hover { color: inherit; }
.pc-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(0.9) contrast(1.04); transition: transform var(--duration-slow) var(--ease-snap); }
.pc-body { padding: 18px 2px 0; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-family: var(--font-body); font-weight: 600; text-transform: none; font-size: 19px; line-height: 1.3; letter-spacing: 0; color: #fff; margin: 10px 0 0; text-wrap: balance; transition: color var(--duration-base) var(--ease-stand); }
.post-card:hover h3 { color: var(--thunder-orange); }
.post-card .pc-body p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.6; color: var(--fg-on-dark-muted); margin: 10px 0 0; flex: 1; }
@media (max-width: 860px) { .post-lead { grid-template-columns: 1fr; gap: 24px; } }

/* ---- the article itself ---- */
.article-head h1 { font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: -0.012em; line-height: 1.12; font-size: clamp(28px, 4.4vw, 54px); color: #fff; margin: 0; text-wrap: balance; }
.article-dek { font-family: var(--font-body); font-size: clamp(17px, 2vw, 21px); line-height: 1.55; color: var(--fg-on-dark); margin: 22px auto 0; max-width: 42ch; }
.article-meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-on-dark-faint); margin-top: 26px; }
.article-cover { margin-top: clamp(34px, 5vh, 56px); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid rgba(206,197,184,0.1); }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Reading measure, generous leading — this is the one part of the site that
   is meant to be read straight through rather than scanned. */
.article-body { font-family: var(--font-body); font-size: 17.5px; line-height: 1.78; color: var(--fg-on-dark); background: rgba(10, 9, 8, 0.44); border: 1px solid rgba(206, 197, 184, 0.07); border-radius: var(--radius-xl); padding: clamp(24px, 4.5vw, 48px); }
.article-body > p:first-child { font-size: 19.5px; line-height: 1.68; color: #fff; }
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 26px; }
.article-body b { color: #fff; font-weight: 700; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body h3 { font-family: var(--font-body); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: clamp(20px, 2.3vw, 26px); color: #fff; margin: 46px 0 16px; line-height: 1.22; }
.article-body h3::before { content: ""; display: block; width: 34px; height: 3px; background: var(--thunder-orange); border-radius: 2px; margin-bottom: 14px; }
.article-body ul { margin: 0 0 26px; padding-left: 22px; }
.article-body li { margin-bottom: 10px; }
.article-body li::marker { color: var(--thunder-orange); }
.article-body blockquote { margin: 34px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--thunder-orange); }
.article-body blockquote p { font-family: var(--font-body); font-weight: 500; font-style: italic; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.45; color: #fff; margin: 0; letter-spacing: 0; }
.article-body blockquote cite { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; font-style: normal; color: var(--thunder-orange); }
/* Figures break the measure — the text column is narrow, photographs are not. */
.article-body figure { margin: 38px 0; width: 100%; }
.article-body figure img { width: 100%; border-radius: var(--radius-lg); border: 1px solid rgba(206,197,184,0.1); }
.article-body figcaption { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-on-dark-faint); margin-top: 12px; line-height: 1.6; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.article-foot { margin-top: 40px; padding-top: 34px; border-top: 1px solid rgba(206,197,184,0.12); }

/* ============================================================
   NOTIFICATIONS — nav bell + panel (site.js)
   ============================================================ */
.nav-notif { position: relative; flex-shrink: 0; margin-left: 8px; }
.nav-bell { position: relative; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: var(--fg-on-dark); background: transparent; border: 1.5px solid rgba(206,197,184,0.32); border-radius: 50%; cursor: pointer; transition: all var(--duration-fast) var(--ease-snap); }
.nav-bell svg { width: 18px; height: 18px; }
.nav-bell:hover { color: #fff; border-color: var(--thunder-orange); box-shadow: var(--glow-orange-sm); }
.nav-notif.open .nav-bell { color: #fff; border-color: var(--thunder-orange); }
.nav-bell:active { transform: scale(0.94); }
.nb-dot { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--thunder-orange); color: #000; font-family: var(--font-mono); font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px #000; }

.notif-panel { position: absolute; top: calc(100% + 12px); right: 0; z-index: 120; width: min(384px, calc(100vw - 28px)); background: rgba(11,10,9,0.94); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); border: 1px solid rgba(206,197,184,0.14); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); overflow: hidden; }
.np-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(206,197,184,0.1); }
.np-head span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-on-dark-muted); }
.np-head button { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--thunder-orange); background: none; border: 0; cursor: pointer; padding: 2px 0; }
.np-head button:hover { color: var(--color-accent-hover); }
.np-list { max-height: min(60vh, 460px); overflow-y: auto; }
.np-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(206,197,184,0.07); color: var(--fg-on-dark); transition: background var(--duration-fast) var(--ease-out); }
.np-item:last-child { border-bottom: 0; }
a.np-item:hover { background: rgba(231,142,54,0.08); color: var(--fg-on-dark); }
/* The unread marker is the dot, not a colour wash — the list stays readable
   once everything has been seen. */
.np-kind { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: rgba(206,197,184,0.22); }
.np-item.unread .np-kind { background: var(--thunder-orange); box-shadow: 0 0 8px rgba(231,142,54,0.6); }
.np-text { display: block; min-width: 0; }
.np-text b { display: block; font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: #fff; }
.np-text em { display: block; font-style: normal; font-family: var(--font-body); font-size: 13px; line-height: 1.5; color: var(--fg-on-dark-muted); margin-top: 3px; }
.np-when { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-on-dark-faint); margin-top: 7px; }
.np-empty { font-family: var(--font-body); font-size: 13px; color: var(--fg-on-dark-muted); padding: 26px 18px; margin: 0; text-align: center; line-height: 1.6; }
@media (max-width: 560px) {
  .nav-bell { width: 34px; height: 34px; }
  .notif-panel { position: fixed; top: 68px; right: 12px; left: 12px; width: auto; }
  /* The bell costs ~46px in a bar that was already tight, and on the members
     nav that was enough to push the burger clean off the right edge — the menu
     became unreachable on every phone. The signed-in name is the cheapest
     thing to give up: the avatar still says who you are, and the name is one
     tap away on the dashboard. Scoped to the members chrome, which is the only
     nav carrying the bell — the public bar has the room and keeps the name. */
  [data-chrome="members"] .nav-profile .np-name { display: none; }
  [data-chrome="members"] .nav-profile { padding: 4px 5px; }
  [data-chrome="members"] .nav-theme { width: 34px; height: 34px; margin-left: 6px; }
  [data-chrome="members"] .nav-notif { margin-left: 6px; }
  [data-chrome="members"] .nav-signout { padding: 7px 10px; font-size: 12px; margin-left: 4px; }
}

/* 320-class phones. The members bar still carries five controls plus the
   burger, and at 320px the burger used to hang off the right edge —
   unreachable, though the page itself never scrolled. Give up chrome, not
   controls: everything shrinks one step, the paddings tighten, and the
   burger stays on screen down to 320. */
@media (max-width: 380px) {
  [data-chrome="members"] .nav-inner { padding: 0 10px; gap: 4px; }
  [data-chrome="members"] .nav-brand img { height: 28px; }
  [data-chrome="members"] .nav-bell, [data-chrome="members"] .nav-theme { width: 30px; height: 30px; }
  [data-chrome="members"] .nav-theme, [data-chrome="members"] .nav-notif { margin-left: 2px; }
  [data-chrome="members"] .nav-signout { padding: 6px 7px; font-size: 11px; margin-left: 2px; }
  [data-chrome="members"] .nav-burger { width: 32px; margin-left: 0; }
}

/* ============================================================
   READING BACKGROUND — post.html's live backdrop
   Not flat black (user, 26 Aug): the cover blurred deep under
   an engineering grid that pans diagonally, two orange energy
   beams sweeping through, sparks drifting upward, and two slow
   glows. Every moving part animates transform/opacity only,
   inside a fixed inset-0 overflow-hidden layer — it cannot
   create sideways scroll — and reduced-motion stills it all.
   ============================================================ */
/* z-index 0, not -1: body paints its own opaque background AFTER
   negative-z children (CSS painting order), which would bury this layer
   entirely. At 0 it sits above the body background; the article and
   footer are lifted to z-index 1 below, and the nav is already fixed
   far above. */
.read-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #050505; }
.read-bg ~ article, .read-bg ~ footer { position: relative; z-index: 1; }
.read-bg .rb-img { position: absolute; inset: -8%; background-position: center; background-size: cover; background-repeat: no-repeat; filter: blur(48px) saturate(0.85) brightness(0.45); opacity: 0.4; transform: scale(1.05); animation: rbDrift 44s ease-in-out infinite alternate; }
.read-bg .rb-grid { position: absolute; inset: -96px;
  background-image:
    repeating-linear-gradient(0deg, rgba(231,142,54,0.18) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, rgba(231,142,54,0.18) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(206,197,184,0.06) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(206,197,184,0.06) 0 1px, transparent 1px 24px);
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% 30%, rgba(0,0,0,0.3) 12%, #000 58%);
  mask-image: radial-gradient(ellipse 95% 75% at 50% 30%, rgba(0,0,0,0.3) 12%, #000 58%);
  animation: rbGridPan 16s linear infinite; }
.read-bg .rb-glow { position: absolute; width: 46vw; height: 46vw; min-width: 340px; min-height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(231,142,54,0.3), transparent 62%); }
.read-bg .rb-glow.a { top: -12%; left: -10%; animation: rbGlowA 32s ease-in-out infinite alternate; }
.read-bg .rb-glow.b { bottom: -14%; right: -8%; animation: rbGlowB 38s ease-in-out infinite alternate; }
.read-bg .rb-beam { position: absolute; left: -20%; width: 140%; height: 2px; opacity: 0; background: linear-gradient(90deg, transparent, rgba(231,142,54,0.75), transparent); box-shadow: 0 0 16px 1px rgba(231,142,54,0.35); }
.read-bg .rb-beam.a { --r: -16deg; top: 24%; animation: rbBeam 8s ease-in-out infinite; }
.read-bg .rb-beam.b { --r: 9deg; top: 64%; animation: rbBeam 10s ease-in-out 4s infinite; }
.read-bg .rb-sparks i { position: absolute; bottom: -3vh; left: var(--x); width: 4px; height: 4px; border-radius: 50%; opacity: 0; background: rgba(231,142,54,0.85); box-shadow: 0 0 10px 2px rgba(231,142,54,0.3); animation: rbSpark var(--d) linear var(--dl) infinite; }
.read-bg .rb-sparks i:nth-child(3n) { width: 3px; height: 3px; }
.read-bg .rb-sparks i:nth-child(5n) { width: 5px; height: 5px; }
.read-bg .rb-sparks i:nth-child(1)  { --x: 4%;  --d: 17s; --dl: 0s;    --dx: 3vw; }
.read-bg .rb-sparks i:nth-child(2)  { --x: 12%; --d: 21s; --dl: 4s;   --dx: -2vw; }
.read-bg .rb-sparks i:nth-child(3)  { --x: 19%; --d: 15s; --dl: 9s;   --dx: 4vw; }
.read-bg .rb-sparks i:nth-child(4)  { --x: 27%; --d: 23s; --dl: 2s;   --dx: -3vw; }
.read-bg .rb-sparks i:nth-child(5)  { --x: 34%; --d: 18s; --dl: 12s;  --dx: 2vw; }
.read-bg .rb-sparks i:nth-child(6)  { --x: 43%; --d: 26s; --dl: 6s;   --dx: -4vw; }
.read-bg .rb-sparks i:nth-child(7)  { --x: 51%; --d: 16s; --dl: 14s;  --dx: 3vw; }
.read-bg .rb-sparks i:nth-child(8)  { --x: 58%; --d: 22s; --dl: 1s;   --dx: -2vw; }
.read-bg .rb-sparks i:nth-child(9)  { --x: 66%; --d: 19s; --dl: 8s;   --dx: 5vw; }
.read-bg .rb-sparks i:nth-child(10) { --x: 73%; --d: 24s; --dl: 11s;  --dx: -3vw; }
.read-bg .rb-sparks i:nth-child(11) { --x: 81%; --d: 17s; --dl: 5s;   --dx: 2vw; }
.read-bg .rb-sparks i:nth-child(12) { --x: 88%; --d: 25s; --dl: 15s;  --dx: -4vw; }
.read-bg .rb-sparks i:nth-child(13) { --x: 94%; --d: 20s; --dl: 3s;   --dx: 3vw; }
.read-bg .rb-sparks i:nth-child(14) { --x: 47%; --d: 28s; --dl: 18s;  --dx: -2vw; }
.read-bg .rb-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,0.4) 0%, rgba(5,5,5,0.56) 45%, rgba(8,7,6,0.82) 100%); }
@keyframes rbDrift { from { transform: scale(1.05) translate3d(-1.5%, -1%, 0); } to { transform: scale(1.1) translate3d(1.5%, 2%, 0); } }
@keyframes rbGridPan { from { transform: translate3d(-96px, -96px, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes rbGlowA { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(9vw, 7vh, 0); } }
@keyframes rbGlowB { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-8vw, -6vh, 0); } }
@keyframes rbBeam {
  0%   { opacity: 0;   transform: rotate(var(--r)) translateX(-12%); }
  16%  { opacity: 0.9; }
  55%  { opacity: 0.2; }
  100% { opacity: 0;   transform: rotate(var(--r)) translateX(12%); }
}
@keyframes rbSpark {
  0%   { opacity: 0;   transform: translate3d(0, 0, 0) scale(0.7); }
  8%   { opacity: 0.9; }
  60%  { opacity: 0.45; }
  100% { opacity: 0;   transform: translate3d(var(--dx, 2vw), -108vh, 0) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .read-bg .rb-img, .read-bg .rb-grid, .read-bg .rb-glow, .read-bg .rb-beam, .read-bg .rb-sparks i { animation: none; }
}

/* ============================================================
   BLOG APP — members area (blog-manager.html)
   ============================================================ */
.bm-rows .event-empty { margin-top: 0; }
.bm-rows { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.bm-row { display: grid; grid-template-columns: 116px 1fr auto; gap: 20px; align-items: center; background: var(--bg-elevated, #0B0A09); border: 1px solid rgba(206,197,184,0.12); border-radius: var(--radius-xl); padding: 18px 22px; transition: border-color var(--duration-base) var(--ease-out); }
.bm-row:hover { border-color: rgba(206,197,184,0.28); }
.bm-thumb { border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(206,197,184,0.1); background: #050505; }
.bm-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.bm-thumb.no-cover { aspect-ratio: 16 / 10; }
.bm-thumb.no-cover span { font-size: 30px; }
.bm-main { min-width: 0; }
.bm-main h4 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 15px; color: #fff; margin: 0 0 5px; line-height: 1.25; }
.bm-sub { font-family: var(--font-body); font-size: 13px; line-height: 1.5; color: var(--fg-on-dark-muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bm-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.bm-meta span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg-on-dark-faint); }
.bm-sent-back { margin-top: 10px; padding: 9px 12px; border-left: 2px solid rgba(231,90,60,0.7); background: rgba(231,90,60,0.08); border-radius: 0 6px 6px 0; font-family: var(--font-body); font-size: 12.5px; line-height: 1.5; color: var(--fg-on-dark); }
.bm-mini { padding: 9px 18px; font-size: 13px; }
@media (max-width: 760px) { .bm-row { grid-template-columns: 1fr; } .bm-thumb { max-width: 180px; } .ev-actions { flex-wrap: wrap; } }

/* ---- editor ---- */
.bm-editor-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid rgba(206,197,184,0.12); margin: 0 auto 24px; max-width: 940px; }
.bm-editor-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bm-save-state { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-on-dark-faint); }
.bm-note { max-width: 940px; margin-left: auto; margin-right: auto; padding: 14px 18px; border-left: 3px solid var(--thunder-orange); background: rgba(231,142,54,0.08); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--fg-on-dark); margin-bottom: 24px; }
.bm-note b { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--thunder-orange); margin-bottom: 6px; }

.bm-compose { max-width: 940px; margin: 0 auto; }
.bm-title, .bm-dek { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(206,197,184,0.16); color: #fff; padding: 10px 0; transition: border-color var(--duration-fast) var(--ease-out); }
.bm-title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(24px, 3vw, 36px); line-height: 1.12; resize: none; overflow: hidden; }
.bm-dek { font-family: var(--font-body); font-size: 17px; color: var(--fg-on-dark); margin-top: 6px; }
.bm-title::placeholder, .bm-dek::placeholder { color: var(--fg-on-dark-faint); }
.bm-title:focus, .bm-dek:focus { outline: none; border-bottom-color: var(--thunder-orange); }
.bm-meta-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 26px 0 18px; }
.cover-drop { grid-template-columns: 200px 1fr; }
.cover-drop .ld-preview { height: 112px; background: #0B0A09; border: 1px solid rgba(206,197,184,0.12); }
.cover-drop .ld-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

/* Each block carries its own type label and controls in a left rail, so the
   structure of the post is legible at a glance rather than inferred. */
.bm-blocks { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.blk { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; padding: 14px; border: 1px solid rgba(206,197,184,0.1); border-radius: var(--radius-md); background: var(--bg-elevated, #0B0A09); transition: border-color var(--duration-fast) var(--ease-out); }
.blk:focus-within { border-color: rgba(231,142,54,0.5); }
.blk-side { display: flex; flex-direction: column; gap: 10px; }
.blk-type { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-on-dark-muted); }
.blk-ops { display: flex; gap: 5px; }
.blk-ops button { width: 27px; height: 27px; border-radius: 6px; background: transparent; border: 1px solid rgba(206,197,184,0.2); color: var(--fg-on-dark-muted); font-size: 12px; line-height: 1; cursor: pointer; transition: all var(--duration-fast) var(--ease-out); }
.blk-ops button:hover:not(:disabled) { color: #fff; border-color: rgba(206,197,184,0.6); }
.blk-ops button.danger:hover:not(:disabled) { color: #fff; border-color: rgba(231,90,60,0.8); background: rgba(231,90,60,0.14); }
.blk-ops button:disabled { opacity: 0.28; cursor: default; }
.blk-main { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.blk-main textarea, .blk-main input[type="text"], .blk-main input:not([type]) { width: 100%; background: #050505; border: 1px solid rgba(206,197,184,0.16); border-radius: var(--radius-md); padding: 11px 13px; color: #fff; font-family: var(--font-body); font-size: 15px; line-height: 1.6; resize: none; overflow: hidden; }
.blk-main textarea:focus, .blk-main input:focus { outline: none; border-color: var(--thunder-orange); box-shadow: 0 0 0 3px rgba(231,142,54,0.16); }
.blk-main ::placeholder { color: var(--fg-on-dark-faint); }
.blk-h { font-family: var(--font-display) !important; font-weight: 800 !important; text-transform: uppercase; letter-spacing: 0.03em; font-size: 18px !important; }
.blk-quote { font-family: var(--font-display) !important; font-weight: 700 !important; font-size: 17px !important; }
.blk-cite { font-family: var(--font-mono) !important; font-size: 12.5px !important; }
.blk-img { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: start; }
.blk-img-prev { border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(206,197,184,0.14); background: #050505; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.blk-img-prev img { width: 100%; height: 100%; object-fit: cover; }
.blk-img-prev span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-on-dark-faint); }
.blk-img-fields { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.blk-img-fields input { width: 100%; }
@media (max-width: 720px) { .blk { grid-template-columns: 1fr; } .blk-side { flex-direction: row; align-items: center; justify-content: space-between; } .blk-img { grid-template-columns: 1fr; } }

.bm-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px dashed rgba(206,197,184,0.18); }
.bm-add-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-on-dark-muted); margin-right: 4px; }
.bm-syntax { font-family: var(--font-body); font-size: 12.5px; color: var(--fg-on-dark-faint); margin: 18px 0 0; }
.bm-syntax code { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-on-dark-muted); background: rgba(206,197,184,0.08); padding: 2px 6px; border-radius: 4px; }

/* preview + review modals reuse the article styles so what an author checks
   is literally what a reader gets */
.bm-preview-card { max-width: 760px; padding: 40px 38px 34px; }
.bm-preview-card .article-body { font-size: 16.5px; }
.bm-preview-card .article-cover { margin-top: 24px; }
.bm-preview-card .article-cover img { aspect-ratio: 16 / 9; }
.article-head-mini h1 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.05; color: #fff; margin: 0; }
.article-head-mini .article-dek { margin: 14px 0 0; max-width: none; font-size: 16px; }
.article-head-mini .article-meta { margin-top: 16px; }
.bm-preview-card .article-body { margin-top: 28px; }
.bm-review-body { max-height: 46vh; border-bottom: 1px solid rgba(206,197,184,0.12); padding-bottom: 18px; overflow-y: auto; padding-right: 8px; margin-top: 18px; border-top: 1px solid rgba(206,197,184,0.1); padding-top: 20px; }
.bm-review-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.bm-review-actions .btn-primary { width: auto; margin-top: 0; padding: 13px 26px; }

/* ============================================================
   LIGHT MODE — blog app, bell and article surfaces
   (members area only; the public blog is always dark)
   ============================================================ */
html[data-theme="light"] .nav-bell { border-color: rgba(60,59,55,0.3); }
html[data-theme="light"] .nav-bell:hover { color: #000; }
html[data-theme="light"] .nb-dot { box-shadow: 0 0 0 2px #FFFFFF; }
html[data-theme="light"] .notif-panel { background: rgba(255,255,255,0.96); border-color: rgba(60,59,55,0.16); }
html[data-theme="light"] .np-head { border-bottom-color: rgba(60,59,55,0.12); }
html[data-theme="light"] .np-item { border-bottom-color: rgba(60,59,55,0.09); }
html[data-theme="light"] .np-text b { color: #1D1C1A; }
html[data-theme="light"] .np-kind { background: rgba(60,59,55,0.2); }
html[data-theme="light"] .bm-row { border-color: rgba(60,59,55,0.14); }
html[data-theme="light"] .bm-row:hover { border-color: rgba(60,59,55,0.3); }
html[data-theme="light"] .bm-main h4,
html[data-theme="light"] .bm-title,
html[data-theme="light"] .article-head-mini h1,
html[data-theme="light"] .bm-preview-card .article-body b,
html[data-theme="light"] .bm-preview-card .article-body h3,
html[data-theme="light"] .bm-preview-card blockquote p { color: #1D1C1A; }
html[data-theme="light"] .bm-title, html[data-theme="light"] .bm-dek { border-bottom-color: rgba(60,59,55,0.2); color: #1D1C1A; background: transparent; }
html[data-theme="light"] .blk { background: #F5F1EB; border-color: rgba(60,59,55,0.16); }
html[data-theme="light"] .blk-main textarea,
html[data-theme="light"] .blk-main input,
html[data-theme="light"] .blk-img-prev { background: #FFFFFF; border-color: rgba(60,59,55,0.22); color: #1D1C1A; }
html[data-theme="light"] .blk-ops button { border-color: rgba(60,59,55,0.24); }
html[data-theme="light"] .blk-ops button:hover:not(:disabled) { color: #1D1C1A; border-color: rgba(60,59,55,0.5); }
html[data-theme="light"] .bm-add { border-top-color: rgba(60,59,55,0.2); }
html[data-theme="light"] .bm-syntax code { background: rgba(60,59,55,0.08); }
html[data-theme="light"] .bm-editor-bar { border-bottom-color: rgba(60,59,55,0.14); }
html[data-theme="light"] .bm-review-body { border-top-color: rgba(60,59,55,0.12); }
html[data-theme="light"] .bm-thumb { border-color: rgba(60,59,55,0.14); }
html[data-theme="light"] .cover-drop .ld-preview { background: #FFFFFF; border-color: rgba(60,59,55,0.18); }
html[data-theme="light"] .bm-review-body { border-bottom-color: rgba(60,59,55,0.12); }
