/* =========================================================
   Episode 9 — Asset Drop
   Palette: deep navy/near-black, muted amber/brass, bone-white,
   restrained bloodline red. Analog-clock / broadcast-booth mood.
   ========================================================= */

:root {
  --ink: #05070b;            /* near-black */
  --ink-2: #0a0e16;          /* deep navy black */
  --navy: #101728;           /* deep navy */
  --navy-2: #182238;         /* navy elevated */
  --bone: #f3ead7;           /* bone white */
  --bone-2: #e7dcc4;
  --bone-dim: #b6ad97;
  --brass: #c79a4a;          /* muted amber/brass */
  --brass-2: #8a6a2b;
  --brass-deep: #4a3614;
  --blood: #b8331f;          /* bloodline red, restrained */
  --hair: rgba(243, 234, 215, 0.08); /* hairline divider */
  --hair-strong: rgba(243, 234, 215, 0.16);

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1200px;
  --gut: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(199, 154, 74, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(16, 23, 40, 0.9), transparent 70%),
    linear-gradient(180deg, #07090f 0%, #05070b 40%, #05070b 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* film grain */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 110% 80% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* =================== NAV =================== */
.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gut);
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(5,7,11,0.7), transparent);
  backdrop-filter: blur(6px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--bone);
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  color: var(--bone);
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-line-1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--bone);
}

.brand-line-2 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--bone-dim);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--brass);
  border-bottom-color: var(--brass);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* =================== HERO =================== */
.hero {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 10vw, 120px) var(--gut) clamp(60px, 8vw, 100px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-clock { display: none; }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 28px;
}

.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blood);
  box-shadow: 0 0 0 3px rgba(184, 51, 31, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(184, 51, 31, 0.18); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(184, 51, 31, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin: 0 0 28px;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--brass);
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 540px;
  margin: 0 0 40px;
}

.hero-jump {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
}

.jump-pill {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border: 1px solid var(--hair-strong);
  border-radius: 4px;
  background: rgba(16, 23, 40, 0.35);
  color: var(--bone);
  text-decoration: none;
  transition: all 0.25s ease;
}

.jump-pill:hover {
  border-color: var(--brass);
  background: rgba(199, 154, 74, 0.06);
  transform: translateX(2px);
}

.jump-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brass);
  letter-spacing: 0.15em;
}

.jump-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}

.jump-arrow {
  color: var(--brass);
  font-size: 18px;
  transition: transform 0.25s ease;
}

.jump-pill:hover .jump-arrow { transform: translateX(4px); }

/* Hero clock */
.hero-clock {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clock-svg {
  width: min(420px, 100%);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6)) drop-shadow(0 0 30px rgba(199, 154, 74, 0.08));
}

.hero-watch {
  perspective: 900px;
}

.hero-watch::before {
  content: '';
  position: absolute;
  width: min(470px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 42%, rgba(199, 154, 74, 0.18), transparent 48%),
    radial-gradient(circle at 70% 70%, rgba(184, 51, 31, 0.08), transparent 46%);
  filter: blur(22px);
  opacity: 0.7;
  transform: translateY(12px);
}

.watch-svg {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  height: auto;
  transform: rotateX(5deg) rotateY(-7deg);
  filter:
    drop-shadow(0 36px 70px rgba(0,0,0,0.68))
    drop-shadow(-18px 12px 36px rgba(199, 154, 74, 0.09));
}

.watch-crown {
  filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.35));
}

.subdials,
.watch-indices {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.42));
}

.watch-hands .hand-sec,
.watch-hands .hand-min,
.watch-hands .hand-hour {
  transform-origin: 260px 210px;
}

.hand-sec {
  transform-origin: 200px 200px;
  animation: sweep 60s linear infinite;
}

.hand-min {
  transform-origin: 200px 200px;
  animation: sweep 3600s linear infinite;
}

.hand-hour {
  transform-origin: 200px 200px;
  animation: sweep 43200s linear infinite;
  transform: rotate(40deg);
}

.watch-hands .hand-sec,
.watch-hands .hand-min,
.watch-hands .hand-hour {
  transform-origin: 260px 210px;
}

.watch-hands .hand-hour {
  transform: rotate(0deg);
}

@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =================== SECTIONS =================== */
.section {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 120px) var(--gut);
  border-top: 1px solid var(--hair);
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-num::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--brass);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin: 0 0 24px;
}

.section-lede {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--bone-dim);
  margin: 0;
}

/* =================== GAME CLOCK SECTION =================== */
.clock-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

@media (max-width: 900px) {
  .clock-grid { grid-template-columns: 1fr; }
}

/* Johnson box */
.johnson-box {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  background:
    linear-gradient(180deg, rgba(16, 23, 40, 0.6) 0%, rgba(10, 14, 22, 0.85) 100%);
  border: 1px solid var(--brass-deep);
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 rgba(199, 154, 74, 0.08),
    0 30px 60px -20px rgba(0,0,0,0.6);
}

/* corner cuts that suggest a tearsheet/document border */
.jb-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--brass);
}
.jb-corner-tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.jb-corner-tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.jb-corner-bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.jb-corner-br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.jb-header { margin-bottom: 28px; }

.jb-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
}

.jb-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  color: var(--bone);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.jb-sub {
  color: var(--bone-dim);
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  max-width: 540px;
}

.jb-form { margin-bottom: 32px; }

.field {
  display: block;
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 10px;
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--bone);
  background: rgba(5, 7, 11, 0.7);
  border: 1px solid var(--hair-strong);
  border-radius: 2px;
  outline: none;
  transition: all 0.2s ease;
  color-scheme: dark;
}

.field-input:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 1px var(--brass), 0 0 18px rgba(199, 154, 74, 0.15);
}

.field-help {
  display: block;
  font-size: 12px;
  color: var(--bone-dim);
  margin-top: 8px;
  font-style: italic;
}

.quick-set {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.quick-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-right: 6px;
}

.quick-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--hair-strong);
  border-radius: 2px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-btn:hover {
  border-color: var(--brass);
  color: var(--brass);
}

/* Readout */
.readout {
  border-top: 1px solid var(--hair);
  padding-top: 28px;
  margin-top: 8px;
}

.readout-state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 22px;
}

.state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bone-dim);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.readout.state-waiting .state-dot { background: var(--bone-dim); }
.readout.state-before .state-dot { background: var(--brass); box-shadow: 0 0 0 3px rgba(199,154,74,0.18); }
.readout.state-inside .state-dot { background: var(--blood); box-shadow: 0 0 0 3px rgba(184,51,31,0.22); animation: pulse 2s ease-in-out infinite; }
.readout.state-past .state-dot { background: var(--bone-dim); }

.readout-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-bottom: 28px;
}

@media (max-width: 560px) {
  .readout-grid { grid-template-columns: 1fr; }
}

.readout-block {
  position: relative;
}

.readout-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(72px, 12vw, 130px);
  line-height: 0.9;
  color: var(--bone);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.readout.state-inside .readout-num { color: var(--brass); }
.readout.state-past .readout-num { color: var(--bone-dim); }

.readout-unit {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 6px;
}

.readout-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: var(--bone-dim);
  margin-top: 8px;
  max-width: 280px;
  line-height: 1.4;
}

.readout-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid var(--hair);
  padding-left: clamp(20px, 3vw, 32px);
}

@media (max-width: 560px) {
  .readout-meta { border-left: 0; padding-left: 0; padding-top: 20px; border-top: 1px solid var(--hair); }
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.meta-key {
  color: var(--bone-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

.meta-val {
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}

/* progress */
.progress-wrap { margin-top: 8px; }

.progress-track {
  position: relative;
  height: 4px;
  background: rgba(243, 234, 215, 0.08);
  border-radius: 2px;
  margin: 32px 0 8px;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--brass-2), var(--brass));
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(199, 154, 74, 0.4);
}

.progress-tick {
  position: absolute;
  top: -4px;
  transform: translateX(-50%);
  width: 1px;
  height: 12px;
  background: var(--hair-strong);
}

.progress-tick span {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--bone-dim);
  white-space: nowrap;
}

/* rail */
.rail {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 900px) {
  .rail { position: static; }
}

.rail-card {
  padding: 28px;
  border: 1px solid var(--hair);
  border-left: 2px solid var(--blood);
  background: rgba(16, 23, 40, 0.3);
  border-radius: 2px;
}

.rail-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blood);
  margin-bottom: 14px;
}

.rail-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: var(--bone);
  margin: 0;
  font-weight: 400;
}

.rail-quote strong {
  font-style: normal;
  font-weight: 600;
  color: var(--brass);
}

.rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rail-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--bone-dim);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hair);
}

.rail-list li:last-child { border-bottom: 0; }

.rail-list strong {
  color: var(--bone);
  font-weight: 600;
}

.rail-bullet {
  color: var(--brass);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

/* =================== GUNNER =================== */
.section-gunner { padding-top: clamp(80px, 10vw, 140px); }

.gunner-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

@media (max-width: 900px) {
  .gunner-grid { grid-template-columns: 1fr; }
}

.gunner-fold {
  position: relative;
  padding: clamp(32px, 4vw, 56px);
  background:
    linear-gradient(180deg, rgba(199, 154, 74, 0.04) 0%, rgba(16, 23, 40, 0.5) 100%);
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--hair);
}

.gunner-lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--bone);
  margin: 0;
  letter-spacing: -0.005em;
}

.gunner-drop {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 7vw, 96px);
  line-height: 0.85;
  color: var(--brass);
  float: left;
  padding-right: 14px;
  padding-top: 8px;
  letter-spacing: -0.04em;
}

.gunner-tag {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--hair-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.gunner-aux {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aux-card {
  padding: 24px;
  border: 1px solid var(--hair);
  background: rgba(5, 7, 11, 0.5);
  border-radius: 2px;
}

.aux-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
}

.aux-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aux-list li {
  padding-left: 18px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bone);
}

.aux-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--brass);
}

/* broadcast strip */
.strip {
  margin-top: clamp(60px, 8vw, 100px);
  overflow: hidden;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 16px 0;
  background: rgba(5, 7, 11, 0.4);
}

.strip-track {
  display: flex;
  gap: 24px;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
  animation: marquee 60s linear infinite;
  width: max-content;
}

.strip-sep {
  color: var(--blood);
  font-size: 8px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =================== FOOTER =================== */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--hair);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px var(--gut);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* =================== motion respect =================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
