/* Let's Make Progress — promo site.
   Colors come from the game: deep navy UI, the pink and cyan neon tubes,
   the terminal-green of the text box labels, and warm lamplight. */

:root {
  --bg: #05070f;
  --bg-2: #0a0f1f;
  --panel: #0e1630;
  --panel-line: #22305a;
  --ink: #e8e3d0;
  --ink-dim: #9aa3bd;
  --pink: #ff5fd9;
  --pink-deep: #ff16b0;
  --cyan: #4fe7ff;
  --green: #7dffb0;
  --lamp: #f0b45a;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --gutter: 16px;
  --max: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--serif);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
em { font-style: italic; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--pink); color: var(--bg); padding: 8px 12px; font-family: var(--mono); border-radius: 4px; }
.skip:focus { top: 8px; }

/* Faint CRT scanlines over the whole page. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px);
}

main > section { padding: 72px var(--gutter); max-width: var(--max); margin: 0 auto; }

.section-title {
  font: 600 13px/1.3 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green);
  margin: 0 0 36px;
  display: flex; align-items: center; gap: 12px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, var(--panel-line), transparent); }
.section-title .num { color: var(--ink-dim); }

.kicker { font: 600 12px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--pink); margin: 0 0 14px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 6px;
  font: 600 15px/1.2 var(--mono); letter-spacing: 0.06em; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--pink); color: var(--bg); box-shadow: 0 0 22px rgba(255, 47, 195, 0.55); }
.btn-primary:hover { box-shadow: 0 0 34px rgba(255, 47, 195, 0.85); transform: translateY(-1px); }
.btn-ghost { color: var(--cyan); border: 1px solid rgba(79, 231, 255, 0.5); background: rgba(5, 7, 15, 0.5); }
.btn-ghost:hover { background: rgba(79, 231, 255, 0.1); }
.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 24px var(--gutter) max(40px, env(safe-area-inset-bottom));
  text-align: center;
}
.hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; z-index: -1; height: 62%; pointer-events: none;
  background: linear-gradient(to top, rgba(3,4,12,.96) 0%, rgba(3,4,12,.66) 50%, rgba(3,4,12,0) 100%);
}
.hero-content { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.hero .neon-title { --neon-size: min(14.2vw, 15svh, 128px); }
.tagline { margin: 4px 0 6px; font: italic 400 clamp(19px, 2.4vw, 26px)/1.3 var(--serif); color: var(--ink); text-shadow: 0 2px 12px #000; }
.tagline em { color: var(--pink); font-style: italic; }
.meta-line { margin: 4px 0 0; font: 500 12px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.meta-line span { color: var(--pink); padding: 0 4px; }

@media (max-aspect-ratio: 1/1) {
  .hero { justify-content: flex-start; --art-h: min(68svh, 170vw); }
  .hero-art {
    position: relative; inset: auto; flex: none;
    width: calc(100% + 2 * var(--gutter)); height: var(--art-h);
    margin: -24px calc(-1 * var(--gutter)) 0; object-position: 57% 50%;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  }
  .hero::after { display: none; }
  .hero-content { margin-top: calc(var(--art-h) * -0.22); }
}

/* ---------------------------------------------------------------- opening */
.opening { display: grid; gap: 48px; align-items: center; }
@media (min-width: 860px) { .opening { grid-template-columns: 1fr 1fr; gap: 64px; } }

.terminal {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 6px;
  padding: 0 22px 18px; font: 400 15px/1.75 var(--mono); color: var(--ink);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 0 40px rgba(0,0,0,.35);
}
.terminal-bar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 -22px 14px; padding: 8px 14px; border-bottom: 1px solid var(--panel-line);
  font: 600 11px/1.4 var(--mono); letter-spacing: 0.14em; color: var(--green);
}
.terminal-bar span:last-child { color: var(--ink-dim); }
.typed { margin: 0 0 12px; }
.typed.pending { visibility: hidden; }
.typed.typing::after { content: "▌"; color: var(--green); animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

.premise p { margin: 0 0 16px; color: var(--ink-dim); }
.premise .lede { font-size: clamp(21px, 2.4vw, 25px); line-height: 1.45; color: var(--ink); }
.premise strong { color: var(--ink); font-weight: 500; }
.mug { font: 600 0.78em/1 var(--mono); letter-spacing: 0.08em; color: var(--lamp); white-space: nowrap; }
.premise p:last-child { color: var(--ink); font-style: italic; }

/* ---------------------------------------------------------------- features */
.feature { display: grid; gap: 28px; align-items: center; margin-bottom: 80px; }
.feature:last-child { margin-bottom: 0; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .feature.flip > :first-child { order: 2; }
}
.feature h3 { font: 500 clamp(26px, 3.2vw, 34px)/1.15 var(--serif); margin: 0 0 14px; letter-spacing: -0.01em; }
.feature p { margin: 0 0 14px; color: var(--ink-dim); }
.feature p:last-of-type { margin-bottom: 0; }

.shot { margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--panel-line); box-shadow: 0 24px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(255,95,217,.06); background: var(--bg-2); }
.shot img { width: 100%; }

.verbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px !important; }
.verbs span {
  font: 500 13px/1 var(--mono); color: var(--green); padding: 8px 12px;
  border: 1px solid rgba(125,255,176,.35); border-radius: 4px; background: rgba(125,255,176,.05);
}
.verbs span::before { content: "▸ "; opacity: .6; }

.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: min(280px, 72vw); padding: 10px; border-radius: 38px;
  background: linear-gradient(145deg, #1b2240, #070a16);
  border: 1px solid #2c3a6a;
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 50px rgba(79,231,255,.12);
}
.phone img { border-radius: 30px; width: 100%; }

.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.facts li { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 6px; padding: 12px 10px; font: 400 12px/1.4 var(--mono); color: var(--ink-dim); text-align: center; }
.facts strong { display: block; font: 600 18px/1.3 var(--mono); color: var(--lamp); margin-bottom: 2px; }

/* ---------------------------------------------------------------- the list */
.the-list .section-title { margin-bottom: 28px; }
.list-card {
  max-width: 520px; margin: 0 auto; background: var(--panel);
  border: 1px solid var(--panel-line); border-radius: 8px; padding: 18px 20px 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  font-family: var(--mono);
}
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 600 12px/1.4 var(--mono); letter-spacing: 0.14em; color: var(--green); }
.list-pct { color: var(--ink-dim); letter-spacing: 0.06em; font-weight: 500; }
.list-pct #pct { color: var(--pink); }
.list-bar { height: 6px; background: #070b18; border-radius: 3px; margin: 12px 0 16px; overflow: hidden; border: 1px solid var(--panel-line); }
.list-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--pink)); box-shadow: 0 0 12px var(--pink); transition: width .5s ease; }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo-item {
  width: 100%; min-height: 48px; display: flex; align-items: center; gap: 14px; text-align: left;
  font: 400 15px/1.35 var(--mono); color: var(--ink);
  background: rgba(5,7,15,.45); border: 1px solid var(--panel-line); border-radius: 5px;
  padding: 10px 14px; cursor: pointer; transition: border-color .15s, background .15s;
}
.todo-item:hover { border-color: #3a4c86; }
.todo-item::before {
  content: ""; flex: none; width: 18px; height: 18px; border: 1.5px solid var(--ink-dim); border-radius: 3px;
  display: grid; place-items: center; font-size: 13px; line-height: 1; color: var(--bg);
}
.todo-item.done { color: var(--ink-dim); text-decoration: line-through; text-decoration-color: var(--pink); }
.todo-item.done::before { content: "✓"; background: var(--green); border-color: var(--green); font-weight: 700; }
.todo-item.locked { font-style: italic; color: var(--ink-dim); }
.shake { animation: shake .35s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .shake { animation: none; } }
.list-msg { margin: 16px 0 0; min-height: 2.8em; font: 400 14px/1.4 var(--mono); color: var(--lamp); }
.list-msg em { color: var(--ink); }

/* ---------------------------------------------------------------- cast */
.cast-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .cast-grid { grid-template-columns: 1fr 1fr; } }
.person { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.person-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.person-img img { width: 100%; height: 100%; object-fit: cover; }
.person-img.dalton { background: radial-gradient(ellipse at 50% 30%, #2b3766 0%, #0b1022 70%); }
.person-img.dalton img { object-fit: cover; object-position: 50% 18%; }
.person-copy { padding: 20px 20px 22px; }
.role { margin: 0 0 6px; font: 600 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.person h3 { margin: 0 0 10px; font: 500 24px/1.2 var(--serif); }
.person p { margin: 0 0 14px; color: var(--ink-dim); font-size: 16px; }
.person blockquote { margin: 0; padding-left: 14px; border-left: 2px solid var(--pink); font-style: italic; color: var(--ink); font-size: 16px; }

/* ---------------------------------------------------------------- gallery */
.gallery { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
.gallery .section-title, .gallery-hint { max-width: var(--max); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.gallery .section-title { margin-bottom: 8px; }
.gallery-hint { font: 400 13px/1.4 var(--mono); color: var(--ink-dim); margin-top: 0; margin-bottom: 22px; }
.shots {
  list-style: none; margin: 0; padding: 4px var(--gutter) 18px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--panel-line) transparent;
}
.shots li { scroll-snap-align: center; }
@media (min-width: 860px) {
  .hint-touch { display: none; }
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; max-width: var(--max); margin: 0 auto; }
}
.thumb { display: block; width: 100%; padding: 0; border: 1px solid var(--panel-line); border-radius: 6px; overflow: hidden; background: var(--bg-2); cursor: zoom-in; transition: transform .2s ease, border-color .2s; }
.thumb:hover { transform: translateY(-2px); border-color: var(--pink); }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; color: var(--ink); }
.lightbox::backdrop { background: rgba(3,4,12,.92); }
.lightbox img { width: 100%; border-radius: 6px; border: 1px solid var(--panel-line); }
.lightbox p { font: 400 13px/1.5 var(--mono); color: var(--ink-dim); margin: 10px 2px 0; }
.lb-close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--panel-line); background: rgba(5,7,15,.8); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }

/* ---------------------------------------------------------------- final CTA */
.final {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  max-width: none !important; padding: 110px var(--gutter) !important;
  border-top: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line);
}
.final-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: .32; filter: saturate(1.2); }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(5,7,15,.55) 0%, rgba(5,7,15,.95) 75%); }
.final-content { max-width: 600px; margin: 0 auto; }
.final h2 { margin: 0 0 16px; font: 500 clamp(34px, 6vw, 56px)/1.05 var(--serif); letter-spacing: -0.015em; text-shadow: 0 0 30px rgba(255,22,176,.35); }
.final p { color: var(--ink-dim); margin: 0 0 28px; }
.final .small { margin: 22px 0 0; font: 400 14px/1.4 var(--mono); }
.final .small a { color: var(--ink-dim); }
.final .small a:hover { color: var(--cyan); }

/* ---------------------------------------------------------------- footer */
.footer { padding: 40px var(--gutter) max(40px, env(safe-area-inset-bottom)); max-width: var(--max); margin: 0 auto; font: 400 12px/1.6 var(--mono); color: var(--ink-dim); text-align: center; }
.footer p { margin: 0 0 8px; }
.footer .note { color: var(--ink); max-width: 620px; margin: 0 auto 14px; }
.footer a { color: var(--ink-dim); }

@media (max-width: 420px) {
  body { font-size: 16px; }
  main > section { padding-top: 56px; padding-bottom: 56px; }
  .btn { width: 100%; }
  .facts strong { font-size: 16px; }
  .terminal { font-size: 14px; padding: 0 16px 14px; }
  .terminal-bar { margin: 0 -16px 12px; }
}
