    :root {
      color-scheme: dark;
      --ground: #0a0a0b;
      --surface: #111113;
      --paper: #e6e6e6;
      --muted: #b4b5ba;
      --quiet: #85858d;
      --line: #2c2c31;
      --yellow: #facc15;
      --gutter: clamp(1.5rem, 4.2vw, 5rem);
      --space: clamp(5rem, 7.5vw, 8rem);
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: var(--ground);
      color: var(--paper);
      font-synthesis: none;
    }
    * { box-sizing: border-box; scrollbar-color: #51515a var(--ground); scrollbar-width: thin; caret-color: var(--yellow); }
    ::selection { color: var(--ground); background: var(--yellow); }
    html { scroll-behavior: smooth; }
    body { margin: 0; font-size: 1rem; line-height: 1.65; }
    a { color: inherit; text-underline-offset: .25em; }
    a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 6px; }
    img { display: block; max-width: 100%; height: auto; }
    h1, h2, h3, p, figure { margin: 0; }
    h1, h2, h3 { text-wrap: balance; }
    h1 { font-size: clamp(3.15rem, 1.4rem + 3.2vw, 5.25rem); font-weight: 850; line-height: 1.05; letter-spacing: -.04em; }
    h2 { font-size: clamp(2.2rem, 1.25rem + 2.2vw, 3.65rem); font-weight: 800; line-height: 1.14; letter-spacing: -.035em; }
    h3 { font-size: 1.35rem; font-weight: 720; line-height: 1.25; letter-spacing: -.02em; }
    p { color: var(--muted); }
    .wrap { width: min(100% - var(--gutter) * 2, 1280px); margin-inline: auto; }
    .skip { position: absolute; inset: 1rem auto auto 1rem; z-index: 20; padding: .75rem 1rem; background: var(--yellow); color: var(--ground); transform: translateY(-180%); }
    .skip:focus { transform: none; }
    .masthead { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 104px; }
    .brand { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-size: 1.5rem; font-weight: 850; letter-spacing: -.025em; }
    .brand img { width: 64px; height: 64px; }
    .nav { display: flex; align-items: center; gap: 2rem; font-weight: 600; font-size: .95rem; }
    .nav-link { text-decoration: none; color: var(--muted); padding-block: .75rem; }
    .nav-link:hover { color: var(--paper); }
    .button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 56px; padding: .85rem 1.6rem; border: 1px solid var(--yellow); border-radius: 9px; background: var(--yellow); color: #111; font-weight: 750; line-height: 1.2; text-decoration: none; transition: background-color 150ms ease; }
    .button:hover { background: #fde047; }
    .button.compact { min-height: 44px; padding: .7rem 1.1rem; font-size: .9rem; }
    .button svg { width: 18px; height: 18px; }
    .hero { position: relative; isolation: isolate; padding-block: 5rem 7rem; overflow: clip; }
    .terrain::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background-image: url("assets/terrain.png"); background-image: image-set(url("assets/terrain-1280.webp") type("image/webp") 1x, url("assets/terrain.webp") type("image/webp") 1.7x, url("assets/terrain.png") type("image/png") 1.7x); background-repeat: no-repeat; background-size: cover; background-position: center bottom; opacity: .72; }
    .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 2rem; min-height: 480px; }
    .hero-copy { position: relative; z-index: 1; }
    .hero-copy p { max-width: 38ch; margin-top: 1.7rem; font-size: clamp(1.12rem, .9rem + .4vw, 1.3rem); line-height: 1.65; }
    .hero-art { width: 115%; margin-inline-start: -5%; animation: arrive 650ms cubic-bezier(.16, 1, .3, 1) both; }
    @keyframes arrive {
      from { opacity: .88; transform: translateY(12px); filter: brightness(.85); }
      to { opacity: 1; transform: none; filter: brightness(1); }
    }
    .hero-art img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
    .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.8rem; margin-top: 2rem; }
    .text-link { padding-block: .75rem; font-weight: 650; }
    .compat { margin-top: 1.4rem !important; font-size: .87rem !important; color: var(--muted); }
    .story { padding-block: 3.4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
    .story-item { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 1.1rem; padding-inline-end: 2.3rem; }
    .story-item + .story-item { border-inline-start: 1px solid var(--line); padding-inline-start: 2.5rem; }
    .index { color: var(--yellow); font-size: 1.35rem; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.25; }
    .story h2 { margin-bottom: .65rem; font-size: 1.35rem; line-height: 1.25; letter-spacing: -.02em; }
    .story p { max-width: 28ch; font-size: .98rem; line-height: 1.65; }
    .section { padding-block: var(--space); }
    .field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 5vw, 6rem); align-items: center; }
    .features { list-style: none; display: grid; gap: 2rem; margin: 2.6rem 0 0; padding: 0; }
    .features li { position: relative; padding-inline-start: 2.2rem; }
    .features li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7rem; width: 20px; height: 3px; border-radius: 2px; background: var(--yellow); }
    .features h3 { font-size: 1.22rem; margin-bottom: .55rem; }
    .features p { max-width: 41ch; font-size: 1rem; }
    .field-art { margin-inline-end: -5%; }
    .field-art img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
    .inspect { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .inspect-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(3rem, 7vw, 8rem); }
    .app-shot { width: min(100%, 290px); margin-inline: auto; }
    .app-shot a { display: block; border: 1px solid #3b3b40; border-radius: 22px; overflow: hidden; }
    .app-shot img { width: 100%; aspect-ratio: 9 / 16; }
    figcaption { margin-top: 1rem; color: var(--quiet); font-size: .78rem; text-align: center; }
    .inspect h2 { max-width: 16ch; }
    .advanced { border-bottom: 1px solid var(--line); }
    .advanced-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); align-items: center; }
    .advanced-list { margin: 2.5rem 0 0; }
    .advanced-list > div { display: grid; gap: .45rem; padding-block: 1.2rem; border-top: 1px solid var(--line); }
    .advanced-list dt { font-size: 1.12rem; font-weight: 700; line-height: 1.5; }
    .advanced-list dd { margin: 0; max-width: 70ch; color: var(--muted); }
    .tactics-art img { width: 100%; aspect-ratio: 1122 / 1402; object-fit: contain; }
    .exports { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; border-top: 1px solid var(--line); }
    .exports h2 { margin-bottom: 1rem; }
    .formats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.7rem; margin: 0; padding: 1rem 0 1rem 3rem; border-inline-start: 1px solid var(--line); }
    .formats li { position: relative; padding-bottom: 1.15rem; font-weight: 650; line-height: 1.3; }
    .formats li::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 28px; height: 3px; border-radius: 2px; background: var(--yellow); }
    .format-trigger { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: help; }
    .format-trigger svg { width: 14px; height: 14px; color: var(--muted); }
    .format-trigger:hover, .format-trigger[aria-expanded="true"] { color: var(--yellow); }
    .format-help { position: fixed; inset: auto; margin: 0; width: min(320px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 1.2rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--paper); z-index: 10; font-weight: 400; line-height: 1.6; }
    .format-help strong { font-weight: 700; }
    .format-help p { margin-top: .5rem; font-size: .94rem; }
    .screenshots { border-top: 1px solid var(--line); }
    .screenshots > p { margin-top: 1rem; }
    .screen-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 2rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
    .screen-link { display: block; text-decoration: none; }
    .screen-link img { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: var(--ground); transition: border-color 150ms ease; }
    .screen-link:hover img { border-color: var(--yellow); }
    .screen-link h3 { margin-top: 1rem; font-size: 1.08rem; }
    .screen-link p { margin-top: .35rem; font-size: .9rem; line-height: 1.5; }
    .lightbox { inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(1rem, 2vw, 2rem); border: 0; background: #0a0a0bf5; color: var(--paper); }
    .lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1rem; }
    .lightbox:modal { overscroll-behavior: contain; }
    .lightbox::backdrop { background: #0a0a0b; overflow: hidden; overscroll-behavior: contain; }
    .lightbox-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-variant-numeric: tabular-nums; }
    .gallery-control { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 50%; color: var(--paper); background: var(--surface); cursor: pointer; }
    .gallery-control:hover { border-color: var(--yellow); color: var(--yellow); }
    .gallery-control svg { width: 22px; height: 22px; }
    .lightbox-stage { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 1.5rem; min-height: 0; }
    .lightbox figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; min-height: 0; }
    .lightbox-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
    .lightbox figcaption { margin-top: 1rem; color: var(--paper); }
    .lightbox h3 { font-size: 1.1rem; }
    .lightbox figcaption p { margin-top: .4rem; font-size: .9rem; }
    .download { position: relative; isolation: isolate; padding-block: 6rem 7rem; border-top: 1px solid var(--line); text-align: center; }
    .download h2 { max-width: 23ch; margin-inline: auto; }
    .download .button { margin-top: 2.2rem; }
    .download p { margin-top: 1.2rem; font-size: .88rem; }
    .footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding-block: 2rem 2.5rem; color: var(--muted); font-size: .85rem; }
    .footer-links { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; }
    .footer-links a { padding-block: .25rem; }
    .footer-links [aria-current="page"] { color: var(--paper); }
    .legal { max-width: 780px; padding-block: clamp(3rem, 6vw, 6rem); }
    .legal h1 { font-size: clamp(2.5rem, 2rem + 2vw, 4rem); }
    .legal h2 { margin-top: 2.8rem; font-size: 1.55rem; line-height: 1.35; letter-spacing: -.02em; }
    .legal p, .legal ul, .legal ol { margin-top: 1.2rem; }
    .legal ul, .legal ol { padding-inline-start: 1.4rem; color: var(--muted); }
    .legal li + li { margin-top: .7rem; }
    .legal a, .legal strong { color: var(--paper); }
    .legal-date { color: var(--quiet); font-size: .9rem; }
    @media (max-width: 1000px) {
      .hero { padding-block: 3.5rem 5rem; }
      .hero-grid { gap: 1.5rem; }
      .hero-art { width: 120%; margin-inline-start: -10%; }
      .story-grid { gap: 1.5rem; }
      .story-item { gap: .7rem; padding-inline-end: .5rem; }
      .story-item + .story-item { padding-inline-start: 1.5rem; }
      .exports { grid-template-columns: 1fr; gap: 2.5rem; }
      .formats { padding-inline-start: 0; border: 0; max-width: 620px; }
    }
    @media (max-width: 760px) {
      .masthead { min-height: 84px; }
      .brand { font-size: 1.15rem; gap: .1rem; }
      .brand img { width: 48px; height: 48px; }
      .nav-link { display: none; }
      .hero { padding-block: 3rem 4.5rem; }
      .hero-grid, .field-grid, .inspect-grid, .advanced-grid { grid-template-columns: minmax(0, 1fr); }
      .hero-grid { gap: 2.5rem; }
      .hero-copy p { max-width: 34ch; }
      .hero-art { width: 108%; margin-inline-start: -4%; }
      .actions { gap: 1.4rem; }
      .story { padding-block: 2.5rem; }
      .story-grid { grid-template-columns: 1fr; gap: 2rem; }
      .story-item { padding: 0; gap: 1.2rem; }
      .story-item + .story-item { border: 0; padding: 0; }
      .story p { max-width: 40ch; }
      .field-art { margin-inline: -3%; }
      .features { gap: 1.8rem; }
      .inspect-grid { gap: 3rem; }
      .inspect-copy { grid-row: 1; }
      .app-shot { width: min(80%, 290px); }
      .tactics-art { width: min(85%, 420px); margin-inline: auto; }
      .screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
      .lightbox-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 1rem; }
      .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
      .lightbox-stage > button { justify-self: center; }
      .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 2.5rem; }
      .download { padding-block: 5rem 6rem; }
      .footer { flex-direction: column; gap: 1.3rem; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .button { transition: none; }
      .hero-art { animation: none; }
      .screen-link img { transition: none; }
    }
