/* Iron Grid one-pager. Palette and type follow the theatre HUD (theatre_hud.gd):
   Rajdhani + Share Tech Mono, panel #161915, fg #e4dfd1, brass accent #c9aa62. */
:root {
  --bg: #0e100d;
  --bg-2: #13160f;
  --panel: #161915;
  --line: rgba(220, 216, 203, 0.14);
  --fg: #e4dfd1;
  --muted: #a3a092;
  --accent: #c9aa62;
  --feed: #cfe9d3;
  --rec: #e0503c;
  --blue: #6fb0e6;
  --display: 'Rajdhani', 'Arial Narrow', sans-serif;
  --mono: 'Share Tech Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 500 19px/1.55 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: 0.01em; }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-size: clamp(28px, 3vw, 38px); }
p { margin: 0; }
.kicker {
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: linear-gradient(to bottom, rgba(14, 16, 13, 0.92), rgba(14, 16, 13, 0.6));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font: 700 22px/1 var(--display); letter-spacing: 0.08em; text-decoration: none; color: var(--feed); }
.nav nav { display: flex; gap: clamp(12px, 2.4vw, 28px); font: 400 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--fg); }
.nav .nav-dev { color: var(--accent); }
@media (max-width: 700px) { .nav nav a:not(.nav-dev) { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border: 1px solid rgba(201, 170, 98, 0.55);
  color: var(--fg);
  background: rgba(22, 25, 21, 0.6);
  font: 600 17px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { border-color: var(--accent); background: rgba(201, 170, 98, 0.12); }
.btn.primary { background: var(--accent); color: #17160f; border-color: var(--accent); }
.btn.primary:hover { background: #d8bb76; }
.btn.wide { width: 100%; }

/* hero */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(48px, 8vh, 96px);
  overflow: hidden;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: center 40%; filter: saturate(0.82) contrast(1.05); animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
@media (prefers-reduced-motion: reduce) { .hero-bg img { animation: none; } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 12, 9, 0.88) 0%, rgba(10, 12, 9, 0.55) 45%, rgba(10, 12, 9, 0.1) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(14, 16, 13, 0) 40%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 3px);
}
.hud { position: absolute; inset: 76px var(--gutter) 28px; z-index: 2; pointer-events: none; color: var(--feed); font: 400 13px/1.5 var(--mono); letter-spacing: 0.08em; }
.hud-corner { position: absolute; width: 56px; height: 56px; border: 0 solid rgba(207, 233, 211, 0.7); }
.hud-corner.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.hud-corner.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.hud-corner.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.hud-corner.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.hud-rec { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.hud-rec i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--rec); margin-right: 8px; animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.hud small { display: block; font-size: 11px; opacity: 0.65; }
.hud-link { position: absolute; top: 14px; right: 72px; text-align: right; }
.hud-cross { position: absolute; top: 50%; left: 50%; width: 240px; height: 1px; transform: translate(-50%, -50%);
  background: linear-gradient(90deg, rgba(207, 233, 211, 0.6) 0 40%, transparent 40% 60%, rgba(207, 233, 211, 0.6) 60%); }
@media (max-width: 700px) { .hud-link, .hud-cross { display: none; } }
.hero-copy { position: relative; z-index: 3; max-width: 720px; }
.hero h1 {
  font-size: clamp(64px, 12vw, 148px); letter-spacing: 0.02em; color: var(--feed);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 18px;
}
.lede { font-size: clamp(19px, 1.9vw, 23px); color: #ece7da; max-width: 620px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.status { font: 400 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* stats */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.stats div { padding: 26px var(--gutter); border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font: 700 clamp(28px, 2.7vw, 40px)/1 var(--display); color: var(--fg); white-space: nowrap; }
.stats span { display: block; margin-top: 8px; font: 400 12px/1.35 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div { border-bottom: 1px solid var(--line); }
  .stats div:nth-child(2n) { border-right: 0; }
  .stats div:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* sections */
.section-head { padding: 0 var(--gutter); max-width: 900px; margin-bottom: 36px; }
.section-head p:not(.kicker) { color: var(--muted); margin-top: 12px; }
.footage { padding: clamp(72px, 10vw, 128px) 0 clamp(48px, 7vw, 96px); }
.reel {
  display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 16px;
  padding: 0 var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin;
}
.clip { position: relative; margin: 0; scroll-snap-align: start; }
.clip video {
  display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  background: var(--panel); border: 1px solid var(--line); cursor: pointer;
}
.clip .sound {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px;
  border: 1px solid var(--line); background: rgba(14, 16, 13, 0.7); color: var(--fg);
  font-size: 16px; cursor: pointer; border-radius: 50%;
}
.clip figcaption { padding-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.clip figcaption b { display: block; color: var(--fg); font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 2px; }
@media (max-width: 1100px) { .reel { grid-template-columns: repeat(5, 62vw); } }
@media (min-width: 600px) and (max-width: 1100px) { .reel { grid-template-columns: repeat(5, 34vw); } }

/* features */
.features { padding: 0 var(--gutter) clamp(48px, 8vw, 112px); display: grid; gap: clamp(64px, 9vw, 128px); }
.feature { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.feature.flip { grid-template-columns: 1fr 1.45fr; }
.feature.flip .media { order: 2; }
.media { position: relative; padding-bottom: 7%; }
.media .main { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.media .inset {
  position: absolute; right: -3%; bottom: 0; width: 42%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid rgba(201, 170, 98, 0.6); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.feature.flip .media .inset { right: auto; left: -3%; }
.copy h3 { margin-bottom: 18px; }
.copy p:not(.kicker) { color: #d5d0c2; }
ul { margin: 22px 0 0; padding: 0; list-style: none; }
li { position: relative; padding: 8px 0 8px 26px; border-top: 1px solid var(--line); color: var(--fg); }
li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 10px; height: 2px; background: var(--accent); }
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .media { order: 0; }
  .media .inset { right: 12px; width: 46%; }
  .feature.flip .media .inset { left: 12px; }
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); padding: 0 0 26px; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.card .kicker, .card h3, .card p { padding: 0 24px; }
.card h3 { font-size: 28px; margin-bottom: 12px; }
.card p:not(.kicker) { color: #d5d0c2; font-size: 18px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.zoom { cursor: zoom-in; }

/* radio */
.radio {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: start;
  padding: clamp(72px, 10vw, 128px) var(--gutter);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201, 170, 98, 0.08), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.radio-copy h2 { margin-bottom: 20px; }
.radio-copy p:not(.kicker) { color: #d5d0c2; }
.radio-copy em { color: var(--feed); font-style: normal; }
.radio-copy ul { margin-bottom: 32px; }
.console { background: #11140f; border: 1px solid rgba(201, 170, 98, 0.35); padding: 18px; font-family: var(--mono); box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5); }
.console-bar { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0.12em; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.led { width: 9px; height: 9px; border-radius: 50%; background: #3a3f36; }
.led.on { background: #7be08f; box-shadow: 0 0 10px #7be08f; }
.toggle { margin-left: auto; display: flex; align-items: center; gap: 6px; cursor: pointer; text-transform: uppercase; }
.toggle input { accent-color: var(--accent); }
.lines { list-style: none; margin: 0 0 16px; padding: 0; }
.lines li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 10px 4px; cursor: pointer; }
.lines li::before { display: none; }
.lines li:hover, .lines li.playing { background: rgba(201, 170, 98, 0.08); }
.lines li.playing .play { color: #17160f; background: var(--accent); }
.play { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--accent); font-size: 12px; background: transparent; cursor: pointer; }
.line-text { font: 600 19px/1.25 var(--display); color: var(--fg); }
.line-meta { display: block; font: 400 11px/1.5 var(--mono); letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.line-en { display: block; font: 500 15px/1.3 var(--display); color: var(--muted); }
@media (max-width: 900px) { .radio { grid-template-columns: 1fr; } }

/* closing + footer */
.closing { padding: clamp(80px, 11vw, 140px) var(--gutter); text-align: center; }
.closing h2 { margin-bottom: 16px; }
.closing p { color: var(--muted); margin-bottom: 30px; }
footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 24px var(--gutter); border-top: 1px solid var(--line);
  font: 400 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
footer a { color: var(--accent); text-decoration: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(6, 7, 6, 0.94); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border: 1px solid var(--line); }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; background: var(--panel); color: var(--fg); border: 1px solid var(--line); font-size: 18px; cursor: pointer; }
