/* Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V5
 * Hallmark · genre: atmospheric · macrostructure: Photographic · theme: Carnival / Studio Night
 * enrichment: source-backed imagery · nav: N5 · footer: Ft5
 * audience: players of open-world RPGs · use: discovery, download, and play guidance · tone: nocturnal, restrained, cinematic
 */

:root {
  --color-paper: oklch(12% 0.035 325);
  --color-paper-2: oklch(17% 0.042 322);
  --color-paper-3: oklch(22% 0.05 318);
  --color-ink: oklch(95% 0.012 78);
  --color-ink-soft: oklch(84% 0.018 65);
  --color-muted: oklch(68% 0.028 322);
  --color-accent: oklch(68% 0.2 7);
  --color-accent-2: oklch(78% 0.14 67);
  --color-accent-ink: oklch(98% 0.01 70);
  --color-rule: oklch(55% 0.045 320 / 0.42);
  --color-rule-strong: oklch(70% 0.06 320 / 0.65);
  --color-focus: oklch(85% 0.15 68);
  --color-deep: oklch(8% 0.026 325);
  --color-atmosphere-1: oklch(32% 0.14 338 / 0.3);
  --color-atmosphere-2: oklch(26% 0.11 345 / 0.18);
  --color-nav-surface: oklch(10% 0.03 325 / 0.82);
  --color-shadow: oklch(3% 0.02 325 / 0.34);
  --color-overlay-strong: oklch(8% 0.03 325 / 0.72);
  --color-overlay-soft: oklch(8% 0.03 325 / 0.22);
  --color-overlay-tag: oklch(8% 0.03 325 / 0.54);
  --color-overlay-label: oklch(8% 0.03 325 / 0.72);
  --color-overlay-photo: oklch(8% 0.03 325 / 0.84);
  --color-accent-text: oklch(18% 0.04 325 / 0.78);
  --color-paper-wash: oklch(24% 0.06 325 / 0.35);
  --color-lightbox: oklch(4% 0.025 325 / 0.94);
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
  --page-gutter: clamp(1rem, 4vw, 4.8rem);
  --content-max: 76rem;
  --reading-max: 66ch;
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 6rem;
  --space-3xl: clamp(7rem, 14vw, 13rem);
  --radius: 6px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-offset: 4px 4px 0 var(--color-deep);
  --nav-height: 3.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--color-ink);
  background:
    radial-gradient(circle at 83% 4%, var(--color-atmosphere-1), transparent 25rem),
    radial-gradient(circle at 9% 35%, var(--color-atmosphere-2), transparent 28rem),
    var(--color-paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(var(--color-ink) 0.5px, transparent 0.5px);
  background-size: 5px 5px;
  mix-blend-mode: screen;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

.site-shell { width: min(100%, var(--content-max)); margin-inline: auto; padding-inline: var(--page-gutter); }
.section { padding-block: var(--space-3xl); }
.section--tight { padding-block: var(--space-2xl); }
.section--paper { background: var(--color-paper-2); }
.section--accent { background: var(--color-accent); color: var(--color-accent-ink); }
.section__head { display: grid; gap: 0.6rem; max-width: 42rem; margin-block-end: var(--space-xl); }
.section__eyebrow, .micro-label {
  margin: 0;
  color: var(--color-accent-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.section__head h2, .page-title {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.section__head p { max-width: 60ch; margin: 0; color: var(--color-ink-soft); }
.section--accent .section__eyebrow { color: var(--color-deep); }
.section--accent .section__head h2, .section--accent .section__head p { color: var(--color-deep); }

.nav-pill {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 30;
  display: flex;
  width: min(calc(100% - 2rem), 56rem);
  min-height: var(--nav-height);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.55rem 0.45rem 0.8rem;
  border: 1px solid var(--color-rule);
  border-radius: 999px;
  background: var(--color-nav-surface);
  box-shadow: 0 10px 28px var(--color-shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(14px) saturate(120%);
}
.nav-pill__brand { display: inline-flex; min-width: 0; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-pill__brand img { width: 6.4rem; height: 2.4rem; object-fit: cover; object-position: left center; border-radius: 4px; }
.nav-pill__brand span { color: var(--color-ink); font-family: var(--font-display); font-size: 0.92rem; line-height: 1; white-space: nowrap; }
.nav-pill__links { display: flex; align-items: center; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.nav-pill__links a { color: var(--color-ink-soft); font-size: 0.82rem; text-decoration: none; white-space: nowrap; }
.nav-pill__links a:hover, .nav-pill__links a[aria-current="page"] { color: var(--color-ink); }
.nav-pill__cta { min-height: 2.45rem; padding-inline: 1rem; }
.menu-toggle { display: none; width: 2.7rem; height: 2.7rem; padding: 0; border: 1px solid var(--color-rule); border-radius: 50%; color: var(--color-ink); background: transparent; }

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius);
  color: var(--color-ink);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.button:hover { border-color: var(--color-accent-2); transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button--accent { border-color: var(--color-accent); color: var(--color-accent-ink); background: var(--color-accent); box-shadow: var(--shadow-offset); }
.button--accent:hover { border-color: var(--color-accent-2); color: var(--color-deep); background: var(--color-accent-2); }
.button--gold { border-color: var(--color-accent-2); color: var(--color-deep); background: var(--color-accent-2); }
.button--wide { min-height: 3.5rem; padding-inline: 1.35rem; }
.button--text { padding-inline: 0; border-color: transparent; border-bottom-color: var(--color-accent-2); border-radius: 0; }
.button--text:hover { border-color: var(--color-accent-2); transform: none; }

.hero {
  position: relative;
  min-height: min(52rem, 94svh);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: clip;
  background: var(--color-deep);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--hero-image); background-position: center; background-size: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--color-deep) 0%, var(--color-overlay-strong) 34%, var(--color-overlay-soft) 100%), linear-gradient(0deg, var(--color-deep) 2%, transparent 62%);
}
.hero__content { width: min(100%, var(--content-max)); margin-inline: auto; padding: 9rem var(--page-gutter) 5rem; }
.hero__kicker { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-block-end: 1.1rem; }
.tag { display: inline-flex; min-height: 1.8rem; align-items: center; padding: 0.25rem 0.65rem; border: 1px solid var(--color-rule-strong); border-radius: 999px; color: var(--color-ink-soft); background: var(--color-overlay-tag); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; white-space: nowrap; }
.tag--accent { color: var(--color-accent-2); border-color: var(--color-accent-2); }
.hero h1 { max-width: 13ch; margin: 0; color: var(--color-ink); font-family: var(--font-display); font-size: clamp(3.4rem, 8.4vw, 8.2rem); font-weight: 500; letter-spacing: -0.075em; line-height: 0.97; overflow-wrap: anywhere; }
.hero h1 span { display: block; color: var(--color-accent-2); font-family: var(--font-body); font-size: 0.22em; font-weight: 500; letter-spacing: 0.035em; line-height: 1.2; }
.hero__lede { max-width: 39rem; margin: 1.7rem 0 0; color: var(--color-ink-soft); font-size: clamp(1rem, 1.4vw, 1.25rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__note { margin: 1.2rem 0 0; color: var(--color-muted); font-size: 0.76rem; }
.hero__credit { position: absolute; right: var(--page-gutter); bottom: 1.4rem; margin: 0; color: var(--color-muted); font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.04em; }

.info-strip { position: relative; z-index: 1; margin-top: -2.5rem; }
.info-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--color-rule); background: var(--color-paper-2); box-shadow: var(--shadow-offset); }
.info-item { min-height: 8.6rem; display: grid; align-content: center; gap: 0.35rem; padding: 1.2rem; border-right: 1px solid var(--color-rule); }
.info-item:last-child { border-right: 0; }
.info-item dt { color: var(--color-muted); font-family: var(--font-mono); font-size: 0.67rem; letter-spacing: 0.08em; text-transform: uppercase; }
.info-item dd { margin: 0; color: var(--color-ink); font-family: var(--font-display); font-size: 1.15rem; line-height: 1.35; }

.story { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 7vw, 8rem); align-items: start; }
.story__intro { position: sticky; top: 7rem; }
.story__intro h2 { max-width: 10ch; margin: 0; font-family: var(--font-display); font-size: clamp(2.4rem, 5.3vw, 5.1rem); font-weight: 500; letter-spacing: -0.055em; line-height: 1.02; }
.story__body { max-width: var(--reading-max); color: var(--color-ink-soft); font-size: clamp(1.05rem, 1.4vw, 1.24rem); }
.story__body p { margin: 0 0 1.65em; }
.story__body p:first-child { color: var(--color-ink); font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.4; }

.feature-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
.feature { min-height: 13rem; display: flex; flex-direction: column; justify-content: space-between; padding: 1.35rem; border: 1px solid var(--color-rule); background: var(--color-paper-2); transition: transform 220ms var(--ease-out), background 220ms var(--ease-out); }
.feature:nth-child(1) { grid-column: span 3; min-height: 18rem; background: var(--color-paper-3); }
.feature:nth-child(2), .feature:nth-child(3) { grid-column: span 3; }
.feature:nth-child(4), .feature:nth-child(5) { grid-column: span 2; }
.feature:hover { background: var(--color-paper-3); transform: translateY(-4px); }
.feature__tag { color: var(--color-accent-2); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; }
.feature h3 { margin: 2.2rem 0 0.6rem; color: var(--color-ink); font-family: var(--font-display); font-size: clamp(1.55rem, 2vw, 2.3rem); font-weight: 500; line-height: 1.12; }
.feature p { margin: 0; color: var(--color-muted); font-size: 0.92rem; }

.photo-band { position: relative; min-height: min(46rem, 82svh); display: grid; align-items: end; overflow: clip; background: var(--color-deep); }
.photo-band__image { width: 100%; height: min(46rem, 82svh); object-fit: cover; object-position: center; }
.photo-band__caption { position: absolute; right: var(--page-gutter); bottom: 1.5rem; max-width: 30ch; margin: 0; color: var(--color-ink); font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2.5rem); line-height: 1.1; text-align: right; text-shadow: 0 2px 12px var(--color-deep); }
.photo-band__veil { position: absolute; inset: 0; background: linear-gradient(0deg, var(--color-overlay-photo), transparent 55%); pointer-events: none; }

.gallery-preview { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0.75rem; }
.gallery-preview__item { position: relative; min-width: 0; overflow: clip; background: var(--color-paper-3); }
.gallery-preview__item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.gallery-preview__item:nth-child(2), .gallery-preview__item:nth-child(3) { grid-column: span 5; }
.gallery-preview__item:nth-child(4), .gallery-preview__item:nth-child(5) { grid-column: span 4; }
.gallery-preview__item button { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: transparent; }
.gallery-preview__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 500ms var(--ease-out), filter 500ms var(--ease-out); }
.gallery-preview__item:nth-child(1) img { height: 100%; aspect-ratio: auto; }
.gallery-preview__item:hover img { filter: saturate(1.12); transform: scale(1.035); }
.gallery-preview__label { position: absolute; left: 0.65rem; bottom: 0.6rem; padding: 0.2rem 0.4rem; color: var(--color-ink); background: var(--color-overlay-label); font-family: var(--font-mono); font-size: 0.63rem; letter-spacing: 0.06em; pointer-events: none; }

.download-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.download-band h2 { max-width: 8ch; margin: 0; color: var(--color-deep); font-family: var(--font-display); font-size: clamp(3rem, 7vw, 7rem); font-weight: 500; letter-spacing: -0.08em; line-height: 0.9; }
.download-band p { max-width: 34rem; margin: 0; color: var(--color-accent-text); }
.download-band .button { align-self: end; color: var(--color-deep); border-color: var(--color-deep); }
.download-band .button:hover { color: var(--color-accent-ink); background: var(--color-deep); }

.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.timeline__item { position: relative; min-height: 12rem; padding: 1.4rem 1.25rem 1.5rem; border-top: 1px solid var(--color-rule-strong); }
.timeline__item::before { content: ""; position: absolute; top: -4px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
.timeline__step { color: var(--color-accent-2); font-family: var(--font-mono); font-size: 0.7rem; }
.timeline h3 { margin: 2.3rem 0 0.5rem; font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; line-height: 1.1; }
.timeline p { margin: 0; color: var(--color-muted); font-size: 0.9rem; }

.fit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fit-item { padding: 1.25rem; border: 1px solid var(--color-rule); background: var(--color-paper-2); }
.fit-item h3 { margin: 0 0 0.7rem; font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; }
.fit-item p { margin: 0; color: var(--color-muted); font-size: 0.9rem; }
.fit-item__mark { display: inline-block; width: 0.65rem; height: 0.65rem; margin-right: 0.45rem; background: var(--color-accent); }

.faq-list { max-width: 54rem; }
.faq-item { border-top: 1px solid var(--color-rule); }
.faq-item:last-child { border-bottom: 1px solid var(--color-rule); }
.faq-item summary { display: flex; min-height: 4.5rem; align-items: center; justify-content: space-between; gap: 1rem; color: var(--color-ink); font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.55rem); line-height: 1.3; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; color: var(--color-accent-2); font-family: var(--font-body); font-size: 1.6rem; font-weight: 300; }
.faq-item[open] summary::after { content: "−"; }
.faq-item__answer { max-width: 58ch; padding: 0 2.6rem 1.2rem 0; color: var(--color-muted); font-size: 0.93rem; }

.final-cta { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 2rem; align-items: end; }
.final-cta h2 { max-width: 12ch; margin: 0; color: var(--color-ink); font-family: var(--font-display); font-size: clamp(2.6rem, 5.5vw, 6rem); font-weight: 500; letter-spacing: -0.07em; line-height: 0.96; }
.final-cta__aside { display: grid; justify-items: start; gap: 1rem; }
.final-cta__aside p { margin: 0; color: var(--color-muted); font-size: 0.9rem; }

.footer { padding-block: var(--space-2xl) 2rem; background: var(--color-deep); }
.footer__statement { max-width: 19ch; margin: 0 0 var(--space-xl); color: var(--color-ink); font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 5.5rem); font-weight: 500; letter-spacing: -0.07em; line-height: 0.95; }
.footer__grid { display: grid; grid-template-columns: 1.15fr 0.85fr 1fr; gap: 2rem; padding-block: 1.4rem; border-top: 1px solid var(--color-rule); }
.footer__brand { display: grid; align-content: start; gap: 0.9rem; }
.footer__brand img { width: 9rem; height: 3rem; object-fit: cover; object-position: left center; border-radius: 4px; }
.footer__brand p, .footer__legal { max-width: 34ch; margin: 0; color: var(--color-muted); font-size: 0.78rem; }
.footer__nav h2, .footer__related h2 { margin: 0 0 0.7rem; color: var(--color-accent-2); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0; padding: 0; list-style: none; }
.footer__links a { color: var(--color-ink-soft); font-size: 0.82rem; text-decoration: none; white-space: nowrap; }
.footer__links a:hover { color: var(--color-accent-2); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; color: var(--color-muted); font-family: var(--font-mono); font-size: 0.63rem; }

.page-hero { padding: 12rem 0 5rem; background: linear-gradient(180deg, var(--color-paper-wash), transparent), var(--color-paper); }
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.7fr); gap: 3rem; align-items: end; }
.page-hero .page-title { max-width: 11ch; font-size: clamp(3.3rem, 8vw, 7.2rem); }
.page-hero__copy { max-width: 36rem; color: var(--color-ink-soft); }
.page-hero__copy p { margin: 0 0 1.2rem; }
.page-hero__mark { width: 100%; border: 1px solid var(--color-rule); box-shadow: var(--shadow-offset); }

.gallery-tabs { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.5rem; }
.tab-button { min-height: 2.7rem; padding: 0.5rem 0.85rem; border: 1px solid var(--color-rule); border-radius: 999px; color: var(--color-ink-soft); background: transparent; cursor: pointer; white-space: nowrap; }
.tab-button:hover, .tab-button[aria-selected="true"] { border-color: var(--color-accent-2); color: var(--color-deep); background: var(--color-accent-2); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.gallery-card { min-width: 0; background: var(--color-paper-2); }
.gallery-card[hidden] { display: none; }
.gallery-card button { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: transparent; }
.gallery-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 400ms var(--ease-out), filter 400ms var(--ease-out); }
.gallery-card:hover img { filter: saturate(1.12); transform: scale(1.025); }
.gallery-card figcaption { padding: 0.7rem 0.8rem 0.85rem; color: var(--color-muted); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.03em; }
.gallery-notice { max-width: 54rem; margin: 0 0 1.5rem; padding: 0.95rem 1rem; border-inline-start: 2px solid var(--color-accent-2); color: var(--color-ink-soft); background: var(--color-paper-2); font-size: 0.88rem; }

.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; background: var(--color-lightbox); }
.lightbox[hidden] { display: none; }
.lightbox__dialog { position: relative; width: min(100%, 76rem); max-height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.7rem; }
.lightbox__image { width: 100%; max-height: calc(100svh - 7rem); object-fit: contain; }
.lightbox__caption { margin: 0; color: var(--color-ink-soft); font-size: 0.85rem; text-align: center; }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; display: grid; width: 2.9rem; height: 2.9rem; place-items: center; border: 1px solid var(--color-rule-strong); border-radius: 50%; color: var(--color-ink); background: var(--color-paper-2); cursor: pointer; }
.lightbox__close { top: -0.8rem; right: -0.8rem; }
.lightbox__prev { top: 50%; left: 0.8rem; transform: translateY(-50%); }
.lightbox__next { top: 50%; right: 0.8rem; transform: translateY(-50%); }

.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.platform-card { display: grid; align-content: space-between; gap: 2rem; min-height: 18rem; padding: 1.5rem; border: 1px solid var(--color-rule); background: var(--color-paper-2); }
.platform-card--primary { background: var(--color-paper-3); box-shadow: var(--shadow-offset); }
.platform-card h2 { margin: 0.8rem 0 0; font-family: var(--font-display); font-size: 2.1rem; font-weight: 500; line-height: 1.05; }
.platform-card p { max-width: 38ch; margin: 0.7rem 0 0; color: var(--color-muted); font-size: 0.9rem; }
.platform-card__tag { display: inline-flex; padding: 0.25rem 0.55rem; color: var(--color-deep); background: var(--color-accent-2); font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.08em; }
.step-timeline { counter-reset: steps; }
.step-timeline .timeline__item { counter-increment: steps; }
.step-timeline .timeline__step::before { content: counter(steps, decimal-leading-zero) " / "; color: var(--color-accent-2); }
.requirements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.requirement { padding: 1.25rem; border: 1px solid var(--color-rule); background: var(--color-paper-2); }
.requirement h2 { margin: 0 0 1rem; font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; }
.requirement dl { display: grid; grid-template-columns: minmax(6rem, 0.55fr) minmax(0, 1.45fr); gap: 0; margin: 0; }
.requirement dt, .requirement dd { padding-block: 0.65rem; border-top: 1px solid var(--color-rule); font-size: 0.82rem; }
.requirement dt { color: var(--color-muted); }
.requirement dd { margin: 0; color: var(--color-ink-soft); }
.patch-note { padding: 1rem; border-inline-start: 2px solid var(--color-accent); color: var(--color-ink-soft); background: var(--color-paper-2); font-size: 0.88rem; }

.guide-layout { display: grid; grid-template-columns: minmax(12rem, 0.3fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.guide-index { position: sticky; top: 7rem; }
.guide-index h2 { margin: 0 0 0.8rem; color: var(--color-accent-2); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.12em; }
.guide-index ul { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.guide-index a { color: var(--color-muted); font-size: 0.83rem; text-decoration: none; }
.guide-index a:hover { color: var(--color-ink); }
.guide-content { min-width: 0; }
.guide-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: var(--space-xl); }
.guide-card { padding: 1.25rem; border: 1px solid var(--color-rule); background: var(--color-paper-2); }
.guide-card h2 { margin: 0.7rem 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.15; }
.guide-card p { margin: 0 0 0.8rem; color: var(--color-muted); font-size: 0.86rem; }
.guide-card__number { color: var(--color-accent-2); font-family: var(--font-mono); font-size: 0.68rem; }
.guide-article { max-width: var(--reading-max); }
.guide-article > section { scroll-margin-top: 7rem; padding-block: 2rem; border-top: 1px solid var(--color-rule); }
.guide-article h2 { margin: 0 0 0.9rem; font-family: var(--font-display); font-size: clamp(2rem, 3vw, 3.2rem); font-weight: 500; line-height: 1.1; }
.guide-article h3 { margin: 1.5rem 0 0.55rem; color: var(--color-accent-2); font-size: 1rem; }
.guide-article p, .guide-article li { color: var(--color-ink-soft); font-size: 0.96rem; }
.guide-article ul, .guide-article ol { padding-inline-start: 1.25rem; }
.guide-article li + li { margin-top: 0.4rem; }
.guide-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.82rem; }
.guide-table th, .guide-table td { padding: 0.7rem; border: 1px solid var(--color-rule); text-align: left; vertical-align: top; }
.guide-table th { color: var(--color-accent-2); font-weight: 500; }
.article-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
.article-index__item { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; padding: 0.75rem 0.85rem; border: 1px solid var(--color-rule); color: var(--color-ink-soft); text-decoration: none; }
.article-index__item span:first-child { color: var(--color-accent-2); font-family: var(--font-mono); font-size: 0.68rem; }
.article-index__item strong { color: var(--color-ink); font-size: 0.83rem; font-weight: 500; line-height: 1.35; }
.article-index__item span:last-child { color: var(--color-accent-2); }
.article-index__item:hover { border-color: var(--color-accent-2); background: var(--color-paper-3); }

.article { background: var(--color-paper); }
.article__hero { padding: 12rem 0 4rem; background: linear-gradient(90deg, var(--color-paper-2), transparent); }
.article__hero .page-title { max-width: 18ch; }
.article__meta { display: flex; flex-wrap: wrap; gap: 0.7rem 1.2rem; margin-top: 1.25rem; color: var(--color-muted); font-family: var(--font-mono); font-size: 0.67rem; }
.article__body { max-width: var(--reading-max); padding-block: 3rem var(--space-3xl); }
.article__body > p:first-child { color: var(--color-ink); font-family: var(--font-display); font-size: 1.4rem; line-height: 1.45; }
.article__body h2 { margin: 2.7rem 0 0.8rem; font-family: var(--font-display); font-size: 2rem; font-weight: 500; line-height: 1.1; }
.article__body p, .article__body li { color: var(--color-ink-soft); }
.article__body a { color: var(--color-accent-2); }
.article__body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.85rem; }
.article__body th, .article__body td { padding: 0.7rem; border: 1px solid var(--color-rule); text-align: left; vertical-align: top; }
.article__body th { color: var(--color-accent-2); font-weight: 500; }
.article__body .checklist { padding: 1rem 1.2rem; border-inline-start: 2px solid var(--color-accent); background: var(--color-paper-2); }
.article__body .checklist li + li { margin-top: 0.45rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 52rem) {
  .nav-pill { width: min(calc(100% - 1.25rem), 42rem); }
  .nav-pill__links { position: absolute; top: calc(100% + 0.55rem); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem; border: 1px solid var(--color-rule); border-radius: 1rem; background: var(--color-paper-2); box-shadow: var(--shadow-offset); }
  .nav-pill__links.is-open { display: flex; }
  .nav-pill__links a { padding: 0.75rem 0.8rem; }
  .nav-pill__cta { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .hero__content { padding-top: 8rem; }
  .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-item:nth-child(3) { border-right: 0; }
  .info-item:nth-child(n + 4) { border-top: 1px solid var(--color-rule); }
  .story { grid-template-columns: 1fr; gap: 2rem; }
  .story__intro { position: static; }
  .story__intro h2 { max-width: none; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:nth-child(n) { grid-column: span 1; min-height: 14rem; }
  .feature:first-child { grid-column: span 2; }
  .download-band, .final-cta { grid-template-columns: 1fr; align-items: start; }
  .download-band h2, .final-cta h2 { max-width: 13ch; }
  .download-band .button { justify-self: start; }
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__mark { max-width: 30rem; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-index { position: static; }
}

@media (max-width: 40rem) {
  .section { padding-block: 5rem; }
  .hero { min-height: 43rem; }
  .hero::before { background-position: 24% center; }
  .hero::after { background: linear-gradient(0deg, var(--color-deep) 4%, var(--color-overlay-strong) 58%, var(--color-overlay-soft) 100%); }
  .hero__content { padding-bottom: 3.5rem; }
  .hero h1 { max-width: 8ch; font-size: clamp(3rem, 16vw, 5.5rem); }
  .hero__actions { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  .hero__actions .button { width: 100%; }
  .hero__credit { right: var(--page-gutter); bottom: 0.7rem; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-item { min-height: 6.4rem; padding: 0.85rem; }
  .info-item:nth-child(3) { border-right: 1px solid var(--color-rule); }
  .info-item:nth-child(2n) { border-right: 0; }
  .info-item:nth-child(n + 3) { border-top: 1px solid var(--color-rule); }
  .feature-grid, .gallery-grid, .download-grid, .requirements, .fit-grid, .guide-card-grid { grid-template-columns: 1fr; }
  .feature:nth-child(n), .feature:first-child { grid-column: span 1; min-height: 12rem; }
  .article-index { grid-template-columns: 1fr; }
  .gallery-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-preview__item:nth-child(n) { grid-column: span 1; grid-row: auto; }
  .gallery-preview__item:first-child { grid-column: span 2; }
  .gallery-preview__item:nth-child(1) img { height: auto; aspect-ratio: 16 / 10; }
  .timeline { grid-template-columns: 1fr; }
  .timeline__item { min-height: 9.5rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { display: grid; }
  .page-hero { padding-top: 9rem; }
  .page-hero .page-title { font-size: clamp(3rem, 14vw, 5rem); }
  .lightbox__prev { left: 0.3rem; }
  .lightbox__next { right: 0.3rem; }
  .lightbox__close { top: 0.2rem; right: 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
