/* ReelFoundry — steel + molten heat.
   Palette: steel-950 #0B1015 · steel-900 #131B23 · steel-700 #2A3540
            steel-300 #8FA3B8 · white #EDF2F7
            heat: #FFB03A (amber core) → #FF6B2C (ember) → #C22E1F (deep) */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0B1015;
  --panel: #131B23;
  --lines: #2A3540;
  --muted: #8FA3B8;
  --white: #EDF2F7;
  --amber: #FFB03A;
  --ember: #FF6B2C;
  --heat: linear-gradient(100deg, #FFB03A 0%, #FF6B2C 55%, #C22E1F 110%);
  --display: "Unbounded", sans-serif;
  --body: "Instrument Sans", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --pad: clamp(20px, 5vw, 72px);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint mill-scale texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(143,163,184,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

section, header, footer, nav { position: relative; z-index: 1; }

h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-family: var(--display); font-weight: 500; }

/* ---------- nav ---------- */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--pad);
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lines);
}
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: .08em; color: var(--white); text-decoration: none;
}
.wordmark span {
  background: var(--heat);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.nav-cta {
  font-family: var(--mono); font-size: 13px; text-decoration: none;
  color: var(--bg); background: var(--amber);
  padding: 9px 18px; border-radius: 3px;
  transition: background .2s;
}
.nav-cta:hover { background: var(--ember); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(48px, 8vh, 110px) var(--pad) clamp(56px, 9vh, 120px);
  max-width: 1320px; margin: 0 auto;
}

.promptline {
  font-family: var(--mono); font-size: 14px;
  color: var(--amber);
  border: 1px solid var(--lines);
  background: var(--panel);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 28px;
  min-height: 44px;
  display: flex; align-items: baseline; gap: 10px;
  white-space: nowrap; overflow: hidden;
}
.promptline-label { color: var(--muted); flex-shrink: 0; }
.promptline-label::after { content: " ›"; }
.promptline-text { color: var(--white); overflow: hidden; text-overflow: ellipsis; }
.caret {
  display: inline-block; width: 8px; height: 17px;
  background: var(--amber); flex-shrink: 0;
  animation: blink 1.05s steps(1) infinite;
  align-self: center;
}
@keyframes blink { 50% { opacity: 0; } }

.hero h1 {
  font-size: clamp(30px, 3.7vw, 52px);
  line-height: 1.12;
  margin-bottom: 22px;
}
.lede {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 54ch;
  margin-bottom: 30px;
}

/* stations ticker */
.stations {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px 6px;
  margin-bottom: 34px;
  font-family: var(--mono); font-size: 12.5px;
}
.stations li {
  color: var(--muted);
  border: 1px solid var(--lines);
  border-radius: 3px;
  padding: 5px 10px;
  position: relative;
  transition: color .3s, border-color .3s, background .3s;
}
.stations li:not(:last-child)::after {
  content: "→"; position: absolute; right: -12px; top: 50%;
  transform: translateY(-50%); color: var(--lines); font-size: 11px;
}
.stations li { margin-right: 10px; }
.stations li.done {
  color: var(--amber); border-color: color-mix(in srgb, var(--amber) 55%, transparent);
  background: color-mix(in srgb, var(--amber) 8%, transparent);
}
.stations li.done::before { content: "✓ "; }

/* email capture */
.capture {
  display: flex; gap: 10px; flex-wrap: wrap;
  max-width: 480px;
}
.capture input {
  flex: 1 1 220px;
  font-family: var(--mono); font-size: 14px;
  color: var(--white);
  background: var(--panel);
  border: 1px solid var(--lines);
  border-radius: 3px;
  padding: 13px 16px;
  outline: none;
  transition: border-color .2s;
}
.capture input:focus { border-color: var(--amber); }
.capture input::placeholder { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.capture button {
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  color: var(--bg);
  background: var(--heat);
  border: none; border-radius: 3px;
  padding: 13px 22px;
  cursor: pointer;
  transition: filter .2s, transform .15s;
}
.capture button:hover { filter: brightness(1.12); }
.capture button:active { transform: scale(.98); }
.capture-note {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); margin-top: 12px;
}
.capture-note.is-success { color: var(--amber); }

/* hero phone */
.hero-phone { justify-self: center; }
.phone {
  position: relative;
  width: clamp(210px, 21vw, 280px);
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  border: 1px solid var(--lines);
  background: #000;
  overflow: hidden;
  box-shadow:
    0 0 0 6px #05080B,
    0 30px 80px -20px rgba(0,0,0,.8),
    0 0 90px -30px color-mix(in srgb, var(--ember) 45%, transparent);
}
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* receipt captions — the signature device */
.receipt {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 14px;
  max-width: 280px;
}
.receipt-prompt {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.5;
  color: var(--white);
}
.receipt-prompt::before { content: "topic › "; color: var(--amber); }
.receipt-meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}

/* ---------- section heads ---------- */
.section-head {
  max-width: 640px;
  padding: 0 var(--pad);
  margin: 0 auto clamp(36px, 5vh, 56px);
  text-align: center;
}
.section-head h2 { font-size: clamp(24px, 3vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--muted); }

/* ---------- production floor ---------- */
.floor { padding: clamp(56px, 9vh, 110px) 0; border-top: 1px solid var(--lines); }
.floor-track {
  display: flex; gap: clamp(20px, 2.5vw, 36px);
  overflow-x: auto;
  padding: 8px var(--pad) 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--lines) transparent;
}
.floor-item { scroll-snap-align: center; flex-shrink: 0; width: clamp(180px, 17vw, 230px); }
.floor-item .receipt { max-width: 100%; }
.phone-sm { width: clamp(180px, 17vw, 230px); border-radius: 22px; }

/* ---------- the line ---------- */
.line { padding: clamp(56px, 9vh, 110px) 0; border-top: 1px solid var(--lines); }
.line-diagram {
  display: grid;
  grid-template-columns: repeat(8, minmax(210px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding: 0 var(--pad) 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--lines) transparent;
}
.station {
  background: var(--panel);
  border: 1px solid var(--lines);
  border-radius: 6px;
  padding: 22px 18px 20px;
  position: relative;
  opacity: .35;
  transform: translateY(10px);
  transition: opacity .5s, transform .5s, border-color .5s;
}
.station.lit { opacity: 1; transform: none; }
.station.lit.is-gate { border-color: color-mix(in srgb, var(--amber) 45%, var(--lines)); }
.station-n {
  font-family: var(--mono); font-size: 12px;
  color: var(--amber);
  display: block; margin-bottom: 12px;
}
.station-n::before { content: "station "; color: var(--muted); }
.station h3 { font-size: 15px; margin-bottom: 8px; }
.station p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.stamp {
  position: absolute; top: 16px; right: 14px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--amber);
  border: 1px solid color-mix(in srgb, var(--amber) 60%, transparent);
  border-radius: 2px;
  padding: 3px 7px;
  transform: rotate(4deg);
}
.station.is-next { border-style: dashed; background: transparent; }
.station.is-next h3, .station.is-next .station-n { color: var(--muted); }
.stamp-next { color: var(--muted); border-color: var(--lines); border-style: dashed; }

/* ---------- formats ---------- */
.formats { padding: clamp(56px, 9vh, 110px) 0; border-top: 1px solid var(--lines); }
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  padding: 0 var(--pad);
  max-width: 1320px; margin: 0 auto;
}
.format {
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  border: 1px solid var(--lines);
  /* posters carry burned-in captions — heavy scrim keeps them as texture, not competing text */
  background-image: linear-gradient(to top, rgba(11,16,21,.97) 26%, rgba(11,16,21,.62) 100%), var(--img);
  background-size: cover; background-position: center 20%;
  display: flex; align-items: flex-end;
  padding: 20px;
  transition: transform .3s, border-color .3s;
}
.format:hover { transform: translateY(-4px); border-color: var(--amber); }
.format h3 { font-size: 16px; margin-bottom: 6px; }
.format p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- spec plate ---------- */
.plate {
  margin: clamp(56px, 9vh, 110px) var(--pad);
  display: flex; justify-content: center;
}
.plate dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  border: 1px solid var(--lines);
  border-radius: 6px;
  background: var(--panel);
  overflow: hidden;
  width: min(880px, 100%);
}
.plate div {
  padding: 26px 24px;
  border-right: 1px solid var(--lines);
  text-align: center;
}
.plate div:last-child { border-right: none; }
.plate dt {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 8px;
}
.plate dd { font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; color: var(--amber); }

/* ---------- roadmap loop ---------- */
.loop { padding: clamp(56px, 9vh, 110px) 0; border-top: 1px solid var(--lines); }
.loop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: 0 var(--pad);
  max-width: 1320px; margin: 0 auto;
}
.loop-item {
  background: var(--panel);
  border: 1px solid var(--lines);
  border-radius: 6px;
  padding: 24px 20px;
}
.loop-item h3 { font-size: 16px; margin: 12px 0 8px; }
.loop-item p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.loop-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  border-radius: 2px; padding: 3px 8px;
}
.loop-item.is-live { border-color: color-mix(in srgb, var(--amber) 45%, var(--lines)); }
.loop-item.is-live .loop-tag { color: var(--bg); background: var(--amber); }
.loop-item.is-installing .loop-tag { color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 60%, transparent); }
.loop-item.is-next { border-style: dashed; }
.loop-item.is-next .loop-tag { color: var(--muted); border: 1px dashed var(--lines); }

/* ---------- cta ---------- */
.cta {
  padding: clamp(72px, 12vh, 140px) var(--pad);
  border-top: 1px solid var(--lines);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 110%, color-mix(in srgb, var(--ember) 14%, transparent), transparent 70%);
}
.cta h2 { font-size: clamp(28px, 3.6vw, 46px); margin-bottom: 14px; }
.cta p { color: var(--muted); max-width: 46ch; margin: 0 auto 30px; }
.capture-lg { margin: 0 auto; justify-content: center; }

/* ---------- footer ---------- */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 26px var(--pad);
  border-top: 1px solid var(--lines);
  font-family: var(--mono); font-size: 12px;
  color: var(--muted);
}
.wordmark-sm { font-size: 12px; }
.footer-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--amber); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-copy { min-width: 0; }
  .hero h1 { overflow-wrap: break-word; }
  .hero-phone { order: -1; }
  .hero-phone .receipt { display: none; }
  .stations li:not(:last-child)::after { display: none; }
  .stations li { margin-right: 0; }
  .line-diagram { grid-template-columns: repeat(8, min(78vw, 320px)); }
  .floor-item { width: min(62vw, 230px); }
}

/* visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
