  :root {
    --bg: #fbf8f0;
    --bg-2: #f5efe2;
    --card: #fffdf8;
    --ink: #14110f;
    --ink-2: #4f473e;
    --muted: #7b7165;
    --line: rgba(20, 17, 15, .12);
    --line-2: rgba(20, 17, 15, .07);
    --gold: #8a5f07;
    --red: #bd2f28;
    --green: #2f7d5c;
    --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
    --label: "Special Elite", "Courier New", monospace;
    --ui: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
    --radius: 20px;
    --shadow: 0 1px 2px rgba(20, 17, 15, .04), 0 22px 48px -30px rgba(20, 17, 15, .28);
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body {
    margin: 0;
    color: var(--ink);
    font-family: var(--ui);
    font-size: 16px;
    line-height: 1.65;
    background-color: var(--bg);
    background-image:
      radial-gradient(900px 520px at 88% -6%, rgba(255, 198, 60, .16), transparent 62%),
      radial-gradient(760px 500px at 4% 8%, rgba(224, 52, 42, .06), transparent 60%),
      radial-gradient(900px 620px at 70% 100%, rgba(31, 169, 199, .07), transparent 64%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
  img, svg { max-width: 100%; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

  .skip {
    position: absolute; left: 16px; top: -60px; z-index: 20;
    padding: 10px 16px; border-radius: 999px;
    background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none;
  }
  .skip:focus { top: 14px; }

  .wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }

  /* ---------------------------------------------------------------- header */

  .site-head {
    position: sticky; top: 0; z-index: 10;
    background: rgba(251, 248, 240, .86);
    backdrop-filter: saturate(1.2) blur(14px);
    border-bottom: 1px solid var(--line-2);
  }
  .site-head__in {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    min-height: 68px;
  }
  .wordmark {
    display: inline-flex; align-items: baseline; gap: 7px;
    font-family: var(--display); font-size: 17px; letter-spacing: -.02em;
    text-decoration: none; white-space: nowrap;
  }
  .wordmark em { font-style: normal; color: var(--red); }
  .nav { display: flex; align-items: center; gap: 26px; }
  .nav a {
    font-family: var(--label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
    text-decoration: none; color: var(--ink-2);
    padding: 6px 0; border-bottom: 1px solid transparent;
  }
  .nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 48px; padding: 0 24px; border-radius: 999px;
    border: 1px solid var(--ink);
    font-family: var(--ui); font-weight: 700; font-size: 15px; letter-spacing: .01em;
    text-decoration: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  }
  .btn--ink { background: var(--ink); color: #fffdf8; box-shadow: 0 12px 24px -16px rgba(20, 17, 15, .7); }
  .btn--ink:hover { transform: translateY(-1px); background: #241f1b; box-shadow: 0 18px 30px -18px rgba(20, 17, 15, .8); }
  .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  .btn--ghost:hover { border-color: var(--ink); background: rgba(255, 253, 248, .7); }
  .btn--sm { min-height: 40px; padding: 0 18px; font-size: 13.5px; }
  .btn__arrow { font-size: 1.05em; line-height: 1; }
  .site-head .btn { white-space: nowrap; }
  @media (max-width: 420px) { .head-play__more { display: none; } }

  /* ------------------------------------------------------------------ hero */

  .hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); }
  .hero__grid {
    display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: clamp(32px, 5vw, 72px); align-items: center;
  }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--label); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
    color: var(--gold);
  }
  .eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
  .hero h1 {
    margin-top: 18px;
    font-family: var(--display);
    font-size: clamp(40px, 6.2vw, 74px);
    line-height: .98;
    letter-spacing: -.035em;
    text-wrap: balance;
  }
  .hero h1 span { display: block; color: var(--muted); font-size: .52em; letter-spacing: -.02em; margin-top: 14px; }
  .lede {
    margin-top: 22px; max-width: 34em;
    font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.6; color: var(--ink-2);
  }
  .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
  .hero__meta {
    display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px;
    font-family: var(--label); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  }
  .hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
  .hero__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

  .shift-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 18px;
    box-shadow: var(--shadow);
  }
  .shift-card::before {
    content: ""; position: absolute; inset: 9px; border: 1px solid var(--line-2); border-radius: 19px; pointer-events: none;
  }
  .shift-card__top {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 4px 6px 12px;
    font-family: var(--label); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  }
  .shift-card__day { color: var(--ink); }
  .shift-card__art {
    display: grid; place-items: center;
    min-height: 250px; padding: 8px;
    background:
      radial-gradient(rgba(20, 17, 15, .05) 1px, transparent 1.2px) 0 0 / 7px 7px,
      #f8f2e4;
    border-radius: 16px;
  }
  .shift-card__art svg { width: min(230px, 78%); height: auto; display: block; }
  .shift-card__foot {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px;
    padding: 14px 6px 4px;
  }
  .bg-num { font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: -.03em; }
  .bg-unit { font-family: var(--label); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .status-pill {
    justify-self: end;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px; border-radius: 999px;
    border: 1px solid rgba(47, 125, 92, .35);
    background: rgba(47, 125, 92, .08);
    color: var(--green);
    font-family: var(--label); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  }
  .status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .glucose-track {
    grid-column: 1 / -1;
    position: relative; height: 8px; border-radius: 999px; overflow: hidden;
    background: linear-gradient(90deg,
      #c93a32 0%, #c93a32 4.2%, #e08a3c 4.2%, #e08a3c 8.3%,
      #4f9a6f 8.3%, #4f9a6f 38.9%, #e08a3c 38.9%, #e08a3c 72.2%,
      #c93a32 72.2%, #c93a32 100%);
    opacity: .9;
  }
  .glucose-track i {
    position: absolute; top: -3px; left: 21.7%;
    width: 2px; height: 14px; background: var(--ink); border-radius: 2px;
    box-shadow: 0 0 0 2px rgba(255, 253, 248, .8);
  }
  .glucose-scale {
    grid-column: 1 / -1;
    display: flex; justify-content: space-between;
    margin-top: 2px;
    font-family: var(--label); font-size: 9px; letter-spacing: .1em; color: var(--muted);
  }

  /* ----------------------------------------------------------- fact strip */

  .facts { margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact { padding: 24px 22px; border-left: 1px solid var(--line-2); }
  .fact:first-child { border-left: 0; padding-left: 0; }
  .fact__n { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; line-height: 1; }
  .fact__l { margin-top: 7px; font-family: var(--label); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

  /* -------------------------------------------------------------- section */

  .section { padding: clamp(64px, 8vw, 108px) 0 0; }
  .section__head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px 56px; align-items: end; }
  .section__kicker {
    font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  }
  .section__kicker b { font-weight: normal; color: rgba(20, 17, 15, .35); margin-right: 10px; }
  .section h2 {
    margin-top: 12px;
    font-family: var(--display);
    font-size: clamp(30px, 4.1vw, 48px);
    line-height: 1.04;
    letter-spacing: -.03em;
    text-wrap: balance;
  }
  .section__intro { color: var(--ink-2); font-size: 17px; line-height: 1.65; max-width: 36em; }
  .section__head > .section__intro { padding-bottom: 6px; }

  .panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 26px; margin-top: 34px; }
  .about__text { padding: clamp(24px, 3vw, 38px); }
  .about__text p + p { margin-top: 16px; }
  .about__text p { color: var(--ink-2); }
  .about__text strong { color: var(--ink); }
  .quote {
    display: flex; flex-direction: column; justify-content: space-between;
    padding: clamp(24px, 3vw, 38px);
    background: linear-gradient(160deg, #fff8e6, #fdf5e4 60%, #f9efdb);
  }
  .quote p {
    font-family: var(--label); font-size: clamp(17px, 1.9vw, 21px); line-height: 1.6; color: var(--ink);
  }
  .quote footer { margin-top: 28px; font-family: var(--label); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
  .quote__art { margin-top: 26px; background: rgba(255, 253, 248, .65); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; }
  .quote__art svg { display: block; width: 100%; height: auto; }

  /* ------------------------------------------------------------- day steps */

  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
  .step { padding: 26px 24px 28px; display: flex; flex-direction: column; }
  .step__n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--line); color: var(--gold);
    font-family: var(--label); font-size: 13px;
  }
  .step h3 { margin-top: 18px; font-family: var(--display); font-size: 21px; letter-spacing: -.02em; line-height: 1.12; }
  .step p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.62; }
  .step__art { margin-top: auto; padding-top: 22px; }
  .step__art svg { display: block; width: 100%; max-width: 168px; height: auto; }
  .step__art svg text { display: none; }
  .step__tag {
    margin-top: 18px; align-self: flex-start;
    padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line);
    font-family: var(--label); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  }

  /* --------------------------------------------------------------- systems */

  .systems { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; margin-top: 34px; }
  .glucose-panel { padding: clamp(24px, 3vw, 34px); }
  .glucose-panel h3, .panel h3 { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }
  .glucose-panel p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; }
  .zone-bar {
    margin-top: 24px; height: 46px; border-radius: 12px; overflow: hidden;
    display: grid; grid-template-columns: 4.2% 4.2% 30.6% 33.3% 27.7%;
    border: 1px solid var(--line);
  }
  .zone-bar span { display: block; }
  .zone-bar .z1 { background: #f6d4cf; }
  .zone-bar .z2 { background: #fbe4c8; }
  .zone-bar .z3 { background: #d8ecdf; }
  .zone-bar .z4 { background: #fbe4c8; }
  .zone-bar .z5 { background: #f6d4cf; }
  .zone-labels { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--label); font-size: 9.5px; letter-spacing: .1em; color: var(--muted); }
  .zone-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
  .zone-note { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); }
  .zone-note b { display: block; font-size: 13px; }
  .zone-note span { font-family: var(--label); font-size: 10.5px; letter-spacing: .06em; color: var(--muted); }

  .resources { display: grid; gap: 0; padding: 8px 22px 12px; }
  .res-row {
    display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px;
    padding: 15px 0; border-top: 1px solid var(--line-2);
  }
  .res-row:first-child { border-top: 0; }
  .res-row__icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg); padding: 4px; }
  .res-row__icon svg { width: 100%; height: auto; display: block; }
  .res-row b { display: block; font-size: 14px; }
  .res-row small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
  .res-row__key { font-family: var(--label); font-size: 10px; letter-spacing: .12em; color: var(--muted); }

  .depts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
  .dept { padding: 22px; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; }
  .dept__face { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); }
  .dept__face svg { width: 100%; height: 100%; display: block; }
  .dept h4 { font-size: 14px; letter-spacing: .01em; }
  .dept p { margin-top: 5px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }

  /* ------------------------------------------------------------ emergencies */

  .crises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
  .crisis { overflow: hidden; display: flex; flex-direction: column; }
  .crisis__art { background: #efe6d4; border-bottom: 1px solid var(--line); padding: 14px; }
  .crisis__art svg { display: block; width: 100%; height: auto; border-radius: 10px; }
  .crisis__body { padding: 24px 26px 28px; }
  .crisis__tag {
    display: inline-block; padding: 4px 9px; border-radius: 999px;
    background: rgba(189, 47, 40, .08); border: 1px solid rgba(189, 47, 40, .25);
    color: var(--red); font-family: var(--label); font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  }
  .crisis h3 { margin-top: 13px; font-family: var(--display); font-size: 21px; letter-spacing: -.02em; }
  .crisis p { margin-top: 9px; color: var(--ink-2); font-size: 14.5px; }
  .crisis ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
  .crisis li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
  .crisis li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
  .warning-strip {
    margin-top: 18px; padding: 22px 26px;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
  }
  .warning-strip__badge {
    padding: 7px 11px; border-radius: 8px;
    background: var(--ink); color: var(--bg);
    font-family: var(--label); font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  }
  .warning-strip p { font-size: 14px; color: var(--ink-2); }
  .warning-strip p b { color: var(--ink); }
  .warning-strip__note { font-family: var(--label); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

  /* --------------------------------------------------------------- upgrades */

  .upgrades { margin-top: 34px; overflow: hidden; }
  .upgrades__head, .upgrade-row {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
    gap: 18px; align-items: baseline; padding: 15px 26px;
  }
  .upgrades__head {
    border-bottom: 1px solid var(--line);
    font-family: var(--label); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  }
  .upgrade-row { border-bottom: 1px solid var(--line-2); }
  .upgrade-row:last-child { border-bottom: 0; }
  .upgrade-row__name { font-weight: 700; font-size: 14.5px; }
  .upgrade-row__name span { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
  .upgrade-row__effect { color: var(--ink-2); font-size: 13.5px; }
  .upgrade-row__cost { font-family: var(--display); font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }

  /* ---------------------------------------------------------------- scoring */

  .score { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 18px; margin-top: 34px; }
  .score__main { padding: clamp(24px, 3vw, 34px); }
  .score__main p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; }
  .formula {
    margin-top: 20px; padding: 16px 18px; border-radius: 12px;
    background: var(--bg-2); border: 1px solid var(--line-2);
    font-family: var(--label); font-size: 12px; line-height: 1.7; color: var(--ink-2);
    overflow-wrap: anywhere;
  }
  .grades { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
  .grade { padding: 12px 10px; border-radius: 12px; border: 1px solid var(--line-2); text-align: center; background: var(--bg); }
  .grade b { display: block; font-family: var(--display); font-size: 22px; line-height: 1; }
  .grade span { display: block; margin-top: 5px; font-family: var(--label); font-size: 9px; letter-spacing: .08em; color: var(--muted); }

  .endings { padding: 8px 26px 14px; }
  .ending { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
  .ending:first-child { border-top: 0; }
  .ending b { flex: 0 0 auto; font-size: 13px; }
  .ending span { color: var(--muted); font-size: 12.5px; }
  .ending--good b { color: var(--green); }
  .ending--bad b { color: var(--red); }

  /* ------------------------------------------------------------------ tech */

  .tech { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 34px; }
  .code-card { padding: 26px; background: #1b1714; border-color: #1b1714; box-shadow: 0 30px 60px -40px rgba(20, 17, 15, .65); }
  .code-card__bar { display: flex; gap: 6px; margin-bottom: 18px; }
  .code-card__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(251, 248, 240, .28); }
  .code-card pre { margin: 0; overflow-x: auto; }
  .code-card code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 13px; line-height: 1.75; color: #ece3d2; white-space: pre;
  }
  .code-card .c { color: #9d9485; }
  .code-card .k { color: #ffcf6b; }
  .code-card .s { color: #9fd3b6; }
  .tech__list { padding: 26px 28px; display: grid; gap: 0; }
  .tech__item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-top: 1px solid var(--line-2); }
  .tech__item:first-child { border-top: 0; padding-top: 0; }
  .tech__item b { font-size: 13.5px; }
  .tech__item p { margin-top: 2px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
  .tech__item span { color: var(--gold); font-family: var(--label); font-size: 12px; }
  .run {
    margin-top: 18px; padding: 14px 16px; border-radius: 12px;
    background: var(--bg-2); border: 1px solid var(--line-2);
    font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; color: var(--ink-2);
    overflow-wrap: anywhere;
  }
  .run b { color: var(--ink); font-weight: 700; }

  /* -------------------------------------------------------------------- cta */

  .cta { margin-top: clamp(64px, 8vw, 104px); }
  .cta__inner {
    position: relative; overflow: hidden;
    border-radius: 28px;
    padding: clamp(36px, 6vw, 68px);
    background: linear-gradient(150deg, #fffdf7 0%, #fdf6e3 55%, #f8edd7 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: center;
  }
  .cta__inner::after {
    content: ""; position: absolute; right: -120px; top: -120px;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 198, 60, .35), transparent 65%);
    pointer-events: none;
  }
  .cta h2 {
    font-family: var(--display); font-size: clamp(32px, 4.6vw, 54px);
    line-height: 1.02; letter-spacing: -.035em;
  }
  .cta p { margin-top: 12px; color: var(--ink-2); max-width: 34em; }
  .cta__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

  /* ----------------------------------------------------------------- footer */

  .site-foot { margin-top: 64px; padding: 28px 0 48px; border-top: 1px solid var(--line); }
  .site-foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
  .site-foot p { font-family: var(--label); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .site-foot nav { display: flex; gap: 18px; }
  .site-foot nav a { font-family: var(--label); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
  .site-foot nav a:hover { color: var(--ink); }

  /* ---------------------------------------------------------------- mobile */

  @media (max-width: 980px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); }
    .shift-card { max-width: 520px; }
    .section__head { grid-template-columns: minmax(0, 1fr); }
    .about, .systems, .score, .tech { grid-template-columns: minmax(0, 1fr); }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .crises { grid-template-columns: minmax(0, 1fr); }
    .cta__inner { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 720px) {
    .wrap { width: calc(100% - 36px); }
    .nav { display: none; }
    .site-head__in { min-height: 60px; }
    .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fact { padding: 18px 16px; }
    .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
    .fact:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
    .depts { grid-template-columns: minmax(0, 1fr); }
    .zone-notes { grid-template-columns: minmax(0, 1fr); }
    .upgrades__head { display: none; }
    .upgrade-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 14px 18px; }
    .upgrade-row__effect { grid-column: 1 / -1; font-size: 12.5px; }
    .grades { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
    .grade { padding: 10px 4px; }
    .grade b { font-size: 18px; }
    .warning-strip { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .warning-strip__note { display: none; }
    .cta__inner { padding: 30px 22px; }
    .hero { padding-top: 36px; }
    .shift-card__art { min-height: 200px; }
    .bg-num { font-size: 26px; }
  }
  @media (max-width: 420px) {
    .hero h1 { font-size: clamp(34px, 10.5vw, 44px); }
    .hero__actions .btn, .cta__actions .btn { width: 100%; }
    .hero__actions { flex-direction: column; }
    .shift-card { padding: 12px; }
    .shift-card__foot { grid-template-columns: minmax(0, 1fr); }
    .status-pill { justify-self: start; }
    .crisis__body, .about__text, .quote, .score__main { padding: 20px; }
    .ending { flex-direction: column; gap: 2px; }
  }

  /* --------------------------------------------------------------- chapters */

  .chapters {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 26px;
  }
  .chapters a {
    display: inline-flex; align-items: baseline; gap: 7px;
    padding: 7px 13px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(255, 253, 248, .6);
    font-family: var(--label); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-2); text-decoration: none;
  }
  .chapters a b { font-weight: 400; color: var(--gold); }
  .chapters a:hover { border-color: var(--ink); color: var(--ink); background: var(--card); }

  /* -------------------------------------------------------------- seed demo */

  .seed-demo {
    margin-top: 18px; padding: 20px 24px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px;
  }
  .seed-demo__k {
    font-family: var(--label); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  }
  .seed-demo p { margin-top: 4px; font-size: 13.5px; color: var(--ink-2); }
  .seed-demo__links { display: flex; flex-wrap: wrap; gap: 8px; }

  /* -------------------------------------------------------------- card demo */

  .demo {
    margin-top: 18px; padding: clamp(22px, 3vw, 32px);
    display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(20px, 3vw, 36px); align-items: start;
  }
  .demo__copy h3 { margin-top: 10px; font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; }
  .demo__copy p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; }
  .demo__hint { font-family: var(--label); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .demo__card {
    background: var(--bg-2); border: 1px solid var(--line);
    border-radius: 16px; padding: 20px 20px 18px;
  }
  .demo__top {
    display: flex; justify-content: space-between; gap: 12px;
    font-family: var(--label); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  }
  .demo__card h4 { margin-top: 12px; font-family: var(--display); font-size: 18px; letter-spacing: -.01em; }
  .demo__narration { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
  .demo__opts { display: grid; gap: 8px; margin-top: 16px; }
  .demo__opt {
    display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
    padding: 11px 13px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--card);
    font-family: var(--ui); font-size: 13px; font-weight: 600; color: var(--ink);
    text-align: left; cursor: pointer;
  }
  .demo__opt em { font-style: normal; font-weight: 400; font-family: var(--label); font-size: 9.5px; letter-spacing: .08em; color: var(--muted); }
  .demo__opt:hover { border-color: var(--ink); }
  .demo__opt[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: #fff9ec; }
  .demo__result {
    margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2);
    font-size: 12.5px; line-height: 1.5; color: var(--ink);
  }

  /* -------------------------------------------------------------- calculator */

  .calculator { margin-top: 18px; padding: clamp(24px, 3vw, 34px); }
  .calculator__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: flex-start; }
  .calculator__head h3 { margin-top: 10px; font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; }
  .calculator__head p { margin-top: 8px; max-width: 36em; font-size: 14px; color: var(--ink-2); }
  .calculator__out {
    min-width: 132px; text-align: right; padding: 4px 0 4px 22px;
    border-left: 1px solid var(--line);
  }
  .calculator__out span { display: block; font-family: var(--label); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
  .calculator__out strong { display: block; margin-top: 4px; font-family: var(--display); font-size: 42px; line-height: 1; letter-spacing: -.03em; }
  .calculator__out em { display: block; margin-top: 6px; font-style: normal; font-family: var(--label); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
  .calculator__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; margin-top: 26px; }
  .calc-field { display: grid; gap: 7px; }
  .calc-field__k {
    display: flex; justify-content: space-between; gap: 10px;
    font-family: var(--label); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  }
  .calc-field output { color: var(--ink); }
  .calc-field input[type="range"] { width: 100%; accent-color: var(--gold); }
  .calc-check {
    grid-column: 1 / -1; display: flex; align-items: center; gap: 9px;
    font-size: 13px; color: var(--ink-2);
  }
  .calc-check input { accent-color: var(--gold); width: 16px; height: 16px; }
  .calculator__note {
    margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2);
    font-family: var(--label); font-size: 9.5px; letter-spacing: .06em; line-height: 1.6; color: var(--muted);
  }
  .tech__item a code { color: var(--ink); border-bottom: 1px solid var(--gold); text-decoration: none; }
  .tech__item a { text-decoration: none; }

  @media (max-width: 980px) {
    .demo { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 720px) {
    .calculator__grid { grid-template-columns: minmax(0, 1fr); }
    .calculator__out { text-align: left; padding: 0; border-left: 0; }
    .calculator__out strong { font-size: 34px; }
    .seed-demo { padding: 16px 18px; }
    .seed-demo__links { width: 100%; }
    .seed-demo__links .btn { width: 100%; }
  }

  /* ------------------------------------------------------------ game shots */

  .shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
  .shot { margin: 0; }
  .shot__frame {
    border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    background: var(--card); box-shadow: var(--shadow);
  }
  .shot__bar {
    display: flex; gap: 5px; padding: 9px 12px;
    background: var(--bg-2); border-bottom: 1px solid var(--line-2);
  }
  .shot__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(20, 17, 15, .18); }
  .shot img { display: block; width: 100%; height: auto; }
  .shot figcaption {
    margin-top: 10px;
    font-family: var(--label); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  }

  @media (max-width: 980px) {
    .shots { grid-template-columns: minmax(0, 1fr); }
  }
