/* LANDING-P2: layout from the owner's concept (Ocean_Frontier_Landing_Page_Concept.png); measurements and
   tokens from Ocean_Frontier_Website_Implementation_Handoff_v3.md (blueprint). Landing (/) and FAQ (/faq)
   pages only (body.home). No raster backgrounds here: every image is an <img> from LANDING_ART
   (web/app.py); placeholder art slots are the .lp-ph-* gradients below; CSS art is SVG only. Fonts:
   Cinzel (self-hosted) for display; the body keeps the existing system sans (v3: "Source Serif 4 or
   existing body font"). */
body.home {
  /* Handoff v3 design tokens. */
  --midnight: #06151E;
  --ocean: #0B222D;
  --teal-deep: #153D46;
  --gold: #D6AB64;
  --gold-light: #F2D49A;
  --ivory: #F5EFE3;
  --parchment: #C9AD7C;
  --bronze: #78562D;
  --steel: #9AADB5;
  /* Older names used by style.css components, mapped onto v3. */
  --abyss: var(--midnight);
  --navy-deep: var(--ocean);
  --navy: var(--ocean);
  --surface: var(--ocean);
  --card-bg: var(--ocean);
  --sea: var(--teal-deep);
  --teal: var(--teal-deep);
  --cream: var(--ivory);
  --text: var(--ivory);
  --muted: var(--steel);
  --link: var(--gold-light);
  --focus: var(--gold-light);
  --line: rgba(214, 171, 100, .55);      /* #D6AB64: thin gold borders */
  --line-soft: rgba(154, 173, 181, .24); /* #9AADB5 */
  --shade: 6, 21, 30;                    /* #06151E as an rgb() triple for overlays */
  /* Blueprint: 1440 px content, 24-48 px gutters, 76 px sticky header. */
  --max: 1440px;
  --gutter: clamp(24px, 3vw, 48px);
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
  --header-h: 76px;
  background: var(--ocean);
}

.home .wrap { max-width: calc(var(--max) + 2 * var(--gutter)); padding-inline: var(--gutter); }
.lp-band { padding-block: clamp(28px, 3.2vw, 40px); }

/* Section titles: gold serif, a thin gold rule either side (the concept's look). */
.lp-title {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: .06em; text-align: center;
  color: var(--gold-light);
}
.lp-title::before, .lp-title::after { content: ""; flex: 0 1 140px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.lp-title::after { transform: scaleX(-1); }
.lp-title-left { justify-content: flex-start; text-align: left; }
.lp-title-left::before, .lp-title-left::after { display: none; }
/* Fix 2 (visual R3, R5): the landing's section titles stay on one line from 600 px; the rules shrink
   first (24 px minimum). "Chart Your Course" sits in the 38% column, so from 1024 px it is smaller. */
@media (min-width: 600px) {
  .lp-adventure .lp-title, .lp-world .lp-title, .lp-voyage .lp-title, .lp-adventurer .lp-title { white-space: nowrap; }
  .lp-title::before, .lp-title::after { min-width: 24px; }
}
@media (min-width: 1024px) {
  .lp-world .lp-title-left { font-size: clamp(24px, 2.3vw, 36px); }
}
.lp-icon { flex: none; color: var(--gold); }

/* Header: 76 px sticky navy bar at every width (style.css .topbar is position: sticky; top: 0).
   Anchor offset (fix 2, Codex 3 / Grok 1): 84 px = 76 px header + 8 px, scoped to the landing and the
   FAQ page (body.home) and repeated at <= 760 px, where style.css drops other pages to 12 px. Stacked
   "OCEAN / FRONTIER" wordmark with the compass and a thin divider; nav centred; gold CTA right. */
.home .topbar {
  position: sticky; top: 0; height: var(--header-h); min-height: var(--header-h); flex-wrap: nowrap; gap: 0 20px;
  padding: 0 var(--edge); background: rgba(var(--shade), .97); border-bottom: 1px solid var(--line);
}
html:has(body.home) { scroll-padding-top: 84px; }
.home .topbar .brand { flex: none; gap: 12px; padding-right: 24px; border-right: 1px solid rgba(214, 171, 100, .35); color: var(--gold-light); font-size: 1.2rem; line-height: 1.02; letter-spacing: .08em; }
.home .topbar .brand:hover { color: var(--ivory); }
.home .topbar .brand img { width: 44px; height: 44px; }
.home .topbar .brand span { display: block; width: min-content; }  /* one word per line: OCEAN / FRONTIER */
.home .topbar > nav:not(.admin-nav) { flex: 1; justify-content: center; flex-wrap: nowrap; gap: 0 clamp(16px, 2.4vw, 40px); }
.home .topbar > nav:not(.admin-nav) > a:first-child { margin-left: auto; }
.home .topbar .nav-cta { margin-left: auto; }
.landing-mobile-nav { display: none; }

/* Buttons: ONE primary style (hero, final CTA, header) and one secondary, v3 gold and navy.
   Blueprint: buttons 48 px minimum; the hero pair 52 px; the final CTA 60 px. */
.home .btn { font-family: var(--display); font-weight: 700; letter-spacing: .03em; }
.home .btn.primary {
  color: var(--midnight); border: 1px solid var(--gold-light);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 58%, color-mix(in srgb, var(--gold) 70%, var(--bronze)) 100%);
  box-shadow: 0 0 0 1px var(--bronze), inset 0 1px 0 rgba(245, 239, 227, .55), 0 6px 18px rgba(var(--shade), .45);
}
.home .btn.primary:hover { color: var(--midnight); background: linear-gradient(180deg, var(--ivory) 0%, var(--gold-light) 50%, var(--gold) 100%); }
.home .btn.ghost { color: var(--gold-light); border: 1.5px solid var(--gold); background: rgba(var(--shade), .55); }
.home .btn.ghost:hover { color: var(--ivory); background: rgba(214, 171, 100, .16); }
.home .btn.primary::after { content: "\203A" / ""; margin-left: 10px; font-size: 1.25em; line-height: 1; }
.home .topbar .btn.primary::after, .landing-mobile-nav .btn.primary::after { content: none; }

/* Art slots: every slot is position:relative with the image (or placeholder gradient) filling it. */
.lp-art-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-hero-art picture, .lp-map-sheet picture, .lp-cta-art picture, .lp-card-art picture { display: block; width: 100%; height: 100%; }
.lp-ph { width: 100%; height: 100%; }
/* PLACEHOLDER gradients (LANDING_ART kind "gradient"), stand-ins until the LANDING-ART art lands. */
.lp-ph-deep {
  background: radial-gradient(ellipse 60% 70% at 70% 0%, rgba(154, 173, 181, .45), transparent 70%),
    linear-gradient(180deg, var(--teal-deep) 0%, var(--ocean) 55%, var(--midnight) 100%);
}
.lp-ph-dusk {
  background: radial-gradient(ellipse 45% 55% at 78% 62%, rgba(242, 212, 154, .6), transparent 70%),
    linear-gradient(180deg, var(--teal-deep) 0%, var(--bronze) 50%, var(--gold) 70%, var(--ocean) 71%, var(--midnight) 100%);
}
.lp-ph-sunset {
  background: radial-gradient(ellipse 22% 40% at 50% 64%, rgba(242, 212, 154, .85), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 66%, rgba(214, 171, 100, .5), transparent 75%),
    linear-gradient(180deg, var(--midnight) 0%, var(--teal-deep) 30%, var(--bronze) 56%, var(--gold) 66%, var(--teal-deep) 67%, var(--ocean) 100%);
}
.lp-art-label {
  position: absolute; z-index: 2; right: 10px; bottom: 8px; max-width: calc(100% - 20px);
  margin: 0; padding: 3px 8px; border-radius: 4px;
  color: var(--ivory); background: rgba(var(--shade), .82); font-size: .72rem; font-style: italic;
}

/* Hero: full-bleed art 620-740 px tall, subject right, copy in the left 42%, dark left gradient.
   H1 clamp(40px, 4.2vw, 72px); lede 18-22 px; buttons 52 px. */
.lp-hero {
  position: relative; display: grid; align-items: center; min-height: clamp(640px, 46vw, 720px); overflow: hidden;
  padding: 48px 0 56px; border-bottom: 1px solid var(--line); background: var(--ocean);
}
.lp-hero-art { position: absolute; inset: 0; margin: 0; }
.lp-hero-art .lp-art-img { object-position: 70% 45%; }
.lp-hero-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--shade), .95), rgba(var(--shade), .8) 34%, rgba(var(--shade), .1) 62%),
    linear-gradient(0deg, rgba(var(--shade), .6), transparent 22%);
}
.lp-hero-art .lp-art-label { right: var(--edge); bottom: 12px; }
.lp-hero.has-art .lp-hero-inner { position: relative; z-index: 1; }
.lp-hero-inner { position: relative; width: 100%; }
/* Fix 2 (visual R4): the copy column is never under 500 px (42% from 1190 px up), so at 1024 the two
   hero buttons fit side by side; they keep one row from 600 px. */
.lp-hero-copy { width: max(42%, 500px); }
.lp-headline { margin: 0; font-size: clamp(40px, 4.2vw, 72px); line-height: 1.1; letter-spacing: .01em; color: var(--gold-light); text-shadow: 0 2px 12px rgba(var(--shade), .7); }
.lp-headline span { display: block; white-space: nowrap; }
.lp-headline::after {  /* fix 2 (visual R6): the concept's ~280 px rule-star-rule */
  content: ""; display: block; width: 280px; max-width: 90%; height: 32px; margin-top: 14px;
  background: url("img/compass-divider.svg") left center / contain no-repeat;
}
.lp-lede { margin: 14px 0 0; max-width: 40ch; font-size: clamp(18px, 1.4vw, 22px); line-height: 1.5; color: var(--ivory); }
.lp-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.lp-actions .btn { min-height: 48px; padding: 10px 26px; font-size: 1.05rem; white-space: nowrap; }
@media (min-width: 600px) { .lp-actions { flex-wrap: nowrap; } }
.lp-chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; padding: 6px 16px;
  border: 1px solid var(--gold); border-radius: 99px; background: rgba(var(--shade), .6);
  color: var(--ivory); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.lp-chip .lp-icon { width: 18px; height: 18px; }

/* Status strip: three short icon items. */
.lp-status { background: var(--midnight); border-bottom: 1px solid var(--line); }
.lp-status-list { list-style: none; margin: 0 auto; padding-block: 10px; display: flex; justify-content: center; flex-wrap: wrap; }
.lp-status-list li { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 clamp(18px, 4vw, 56px); color: var(--ivory); font-size: .95rem; }
.lp-status-list li + li { border-left: 1px solid var(--line); }

/* Choose Your Adventure: 4 x 2 cards, title over the image, thin gold borders.
   Card ratio, a deliberate choice: on desktop the card is a 16:7 band (2.29:1), the concept's own
   proportion (about 2.3:1), so the six cards stay in the concept's height; the art itself is 16:9
   (v3 manifest, 1200x675) and object-fit: cover crops it to the band. Below 1024 px the cards are 16:9. */
.lp-adventure { background: var(--ocean); }
.lp-cards { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lp-card {
  position: relative; overflow: hidden; aspect-ratio: 16 / 7;
  border: 1px solid var(--line); border-radius: 10px; background: var(--ocean);
}
.lp-card-art { position: absolute; inset: 0; }
.lp-card-art .lp-art-label { top: 8px; bottom: auto; font-size: .66rem; opacity: .85; }
.lp-card-body {
  position: absolute; inset: auto 0 0 0; padding: 36px 16px 12px;
  background: linear-gradient(0deg, rgba(var(--shade), .94) 0%, rgba(var(--shade), .78) 55%, transparent 100%);
}
.lp-card-body h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0; font-size: 1.5rem; color: var(--gold-light); text-shadow: 0 2px 8px rgba(var(--shade), .85); }
.lp-card-body p { margin: 4px 0 0; color: var(--ivory); font-size: .88rem; line-height: 1.4; }
.lp-card-more { display: inline-block; margin-top: 8px; color: var(--gold-light); font-size: .78rem; }

/* Status tags (shared vocabulary; text always present, colour is never the only cue). Fix 2 (Codex 4 /
   Grok 3): v3 tokens only. Available: ivory on teal; In testing: solid steel with midnight text. */
.home .tag { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: .7rem; text-shadow: none; letter-spacing: .03em; }
.home .tag.built { color: var(--ivory); background: rgba(21, 61, 70, .85); border-color: rgba(154, 173, 181, .6); }
.home .tag.testing { color: var(--midnight); background: var(--steel); border-color: var(--ivory); }
.home .tag.progress { color: var(--gold-light); background: rgba(120, 86, 45, .45); border-color: var(--line); }
.home .tag.planned { color: var(--ivory); background: rgba(var(--shade), .7); border-color: rgba(154, 173, 181, .5); }

/* Chart Your Course: copy left (38%), parchment-framed map right (62%, about 2.7:1), compass top-right.
   The frame is CSS only (torn-edge clip-path, parchment gradients, burnt-edge shading); the image inside
   is the validated Godot chart, not retouched. */
.lp-world { background: linear-gradient(180deg, var(--midnight), var(--ocean)); border-top: 1px solid var(--line-soft); }
.lp-world-grid { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); align-items: center; gap: clamp(22px, 3vw, 44px); }
.lp-world-copy > p { margin: 14px 0 0; max-width: 44ch; line-height: 1.6; }
.lp-homeport { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.lp-homeport .lp-icon { width: 32px; height: 32px; margin-top: 2px; }
.lp-homeport h3 { margin: 0; font-size: 1.25rem; }
.lp-homeport p { margin: 4px 0 0; max-width: 40ch; color: var(--steel); font-size: .92rem; line-height: 1.5; }
.lp-world-link { margin: 16px 0 0; }
.lp-map { position: relative; margin: 0; filter: drop-shadow(0 10px 20px rgba(var(--shade), .65)); }
.lp-map-sheet {
  position: relative; aspect-ratio: 2.7 / 1; padding: clamp(10px, 1.3vw, 18px);
  background:
    radial-gradient(ellipse 75% 85% at 50% 50%, transparent 60%, rgba(120, 86, 45, .55) 100%),
    radial-gradient(circle at 18% 22%, rgba(245, 239, 227, .35), transparent 40%),
    radial-gradient(circle at 80% 78%, rgba(120, 86, 45, .25), transparent 45%),
    linear-gradient(135deg, var(--parchment), color-mix(in srgb, var(--parchment) 80%, var(--ivory)) 50%, var(--parchment));
  clip-path: polygon(0% 3%, 4% 0%, 11% 1.4%, 19% 0%, 28% 1.2%, 37% .2%, 46% 1.6%, 55% 0%, 64% 1.3%, 73% .3%,
    82% 1.7%, 91% 0%, 97% 1.2%, 100% 4%, 99.3% 18%, 100% 33%, 99.1% 49%, 100% 64%, 99.4% 80%, 100% 96%,
    96% 100%, 88% 98.6%, 79% 100%, 70% 98.8%, 61% 100%, 52% 98.5%, 43% 100%, 34% 98.7%, 25% 100%, 16% 98.6%,
    7% 100%, 1% 97%, .6% 82%, 0% 66%, .8% 50%, 0% 34%, .7% 18%);
}
.lp-map-sheet::after {  /* aged inner edge where the chart meets the parchment */
  content: ""; position: absolute; inset: clamp(10px, 1.3vw, 18px); pointer-events: none;
  box-shadow: inset 0 0 14px 4px rgba(120, 86, 45, .55), inset 0 0 0 1px rgba(120, 86, 45, .7);
}
.lp-map-sheet .lp-art-img { object-position: 50% 62%; }
.lp-map-compass { position: absolute; z-index: 2; top: 10px; right: 14px; width: clamp(40px, 4vw, 60px); height: auto; filter: drop-shadow(0 2px 4px rgba(var(--shade), .6)); }
.lp-map .lp-art-label { right: 26px; bottom: 22px; }

/* Your First Voyage: one row of three numbered steps with arrows, aligned at the top. Fix 2 (visual R8):
   each arrow is centred in the column gap (--step-gap); (R5) the step titles keep one line from 1024 px. */
.lp-voyage { background: var(--ocean); border-top: 1px solid var(--line-soft); }
.lp-steps {
  --step-gap: clamp(40px, 4vw, 72px);
  list-style: none; counter-reset: step; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--step-gap); align-items: start;
}
.lp-steps li {
  counter-increment: step; position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: start;
}
.lp-steps li::before {
  content: counter(step); grid-row: 1 / span 2; align-self: start; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1.5px solid var(--gold); border-radius: 50%; color: var(--gold-light); font-family: var(--display); font-size: 1.3rem; font-weight: 700;
}
.lp-steps li:not(:last-child)::after {
  content: "\203A" / ""; position: absolute; right: calc(var(--step-gap) / -2); top: 24px; transform: translate(50%, -50%);
  color: var(--gold); font-size: 2rem; line-height: 1;
}
.lp-steps strong { padding-top: 4px; color: var(--gold-light); font-family: var(--display); font-size: clamp(15px, 1.55vw, 1.15rem); }
@media (min-width: 1024px) { .lp-steps strong { white-space: nowrap; } }
.lp-steps span { color: var(--ivory); font-size: .92rem; line-height: 1.4; }

/* Development Updates: one teal band; the roadmap opens from "View Roadmap". */
.lp-dev { background: linear-gradient(90deg, var(--ocean), var(--teal-deep) 50%, var(--ocean)); border-block: 1px solid var(--line); }
.lp-dev-bar { display: flex; align-items: center; gap: 12px 28px; padding-block: 12px; }
.lp-dev-title { display: flex; align-items: center; gap: 10px; margin: 0; flex: none; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; }
.lp-dev-bar > p { flex: 1 1 320px; margin: 0; padding-left: 28px; border-left: 1px solid var(--line); color: var(--ivory); font-size: .9rem; line-height: 1.45; }
.lp-dev-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.lp-roadmap { position: relative; }
.lp-roadmap summary { list-style: none; cursor: pointer; }
.lp-roadmap summary::-webkit-details-marker { display: none; }
.lp-roadmap[open] summary { background: rgba(214, 171, 100, .16); }
.lp-roadmap-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 5; width: min(640px, 92vw); max-height: 70vh; overflow: auto;
  padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--ocean);
  box-shadow: 0 14px 34px rgba(var(--shade), .7);
}
.lp-roadmap .roadmap li { grid-template-columns: 150px 1fr; padding: 8px 12px; background: var(--midnight); }
.lp-roadmap .roadmap li span:last-child { font-size: .88rem; }
.lp-roadmap-note { margin: 10px 2px 0; color: var(--steel); font-size: .82rem; }

/* Ready to Set Sail: full-width sunset art, gold rule + compass-star divider, the primary button. */
.lp-cta { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 270px; border-top: 1px solid var(--line); text-align: center; }
.lp-cta-art { position: absolute; inset: 0; }
.lp-cta-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--shade), .55), rgba(var(--shade), .15) 45%, rgba(var(--shade), .5)); }
.lp-cta-inner { position: relative; z-index: 1; padding-block: 40px; }
.lp-cta .lp-title { display: block; font-size: clamp(2rem, 4.4vw, 3.2rem); text-shadow: 0 2px 14px rgba(var(--shade), .75); }
.lp-cta .lp-title::before { display: none; }
.lp-cta .lp-title::after {
  display: block; width: 280px; max-width: 80%; height: 32px; margin: 10px auto 0; transform: none;
  background: url("img/compass-divider.svg") center / contain no-repeat;
}
.lp-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }
.lp-cta-actions .lp-cta-btn { margin-top: 0; }
.home .lp-cta .lp-cta-btn { min-height: 60px; padding: 12px 48px; font-size: 1.3rem; }

/* FAQ page (/faq). */
.lp-faq { background: var(--ocean); }
.lp-faq .lp-title { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.lp-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; align-items: start; margin-top: 22px; }
.lp-faq details { background: var(--midnight); border: 1px solid var(--line-soft); border-radius: 8px; }
.lp-faq details[open] { border-color: var(--line); }
.lp-faq summary {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
  cursor: pointer; list-style: none; color: var(--ivory); font-weight: 600; font-size: .95rem;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::before { content: "+" / ""; flex: none; width: 18px; color: var(--gold-light); font-weight: 700; font-size: 1.15rem; text-align: center; }
.lp-faq details[open] summary::before { content: "\2212" / ""; }
.lp-faq details p { margin: 0; padding: 0 16px 14px 42px; line-height: 1.6; font-size: .93rem; }
.lp-faq details p .tag { margin-left: 2px; vertical-align: baseline; }
.lp-faq details a { display: inline-block; min-height: 24px; }
.lp-faq-back { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 28px 0 0; }

/* Footer: ONE row: wordmark left; FAQ, Privacy, [Legal], Support right; the admin "." last, small. */
.home .footer { display: block; padding: 14px var(--edge); }
.landing-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 24px; }
.lp-footer-brand { margin: 0; font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; }
.landing-footer nav { display: flex; flex-wrap: wrap; margin-left: auto; }
.landing-footer nav a { padding: 0 18px; color: var(--ivory); text-decoration: none; }
/* Fix 2 (visual R9): short separators, 1em tall and centred, not the full 44 px link height. */
.landing-footer nav a + a { background: linear-gradient(var(--gold), var(--gold)) left center / 1px 1em no-repeat; }
.landing-footer nav a:hover { color: var(--gold-light); text-decoration: underline; }
.landing-footer .admin-dot { justify-content: center; min-width: 24px; padding: 0 4px; color: var(--steel); opacity: .4; text-decoration: none; border-radius: 3px; font-size: .9rem; }
.landing-footer .admin-dot:hover, .landing-footer .admin-dot:focus-visible { color: var(--ivory); opacity: 1; }
.landing-footer .admin-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 1023px) {
  .home .topbar { justify-content: space-between; }
  .home .topbar > nav:not(.admin-nav) { display: none; }
  .landing-mobile-nav { display: flex; align-items: center; gap: 8px; }
  .landing-mobile-nav details { position: relative; }
  .landing-mobile-nav summary {
    display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px;
    border: 1px solid var(--line); border-radius: 8px; color: var(--ivory); cursor: pointer; list-style: none;
  }
  .landing-mobile-nav summary::-webkit-details-marker { display: none; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { position: absolute; left: 0; content: ""; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .landing-mobile-nav nav {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; display: flex; flex-direction: column;
    align-items: stretch; min-width: 180px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--ocean);
  }
  .landing-mobile-nav nav a { display: flex; align-items: center; min-height: 44px; color: var(--ivory); text-decoration: none; }

  .lp-hero-copy { width: auto; max-width: 560px; }
  .lp-hero-art::after { background: linear-gradient(90deg, rgba(var(--shade), .95), rgba(var(--shade), .8) 55%, rgba(var(--shade), .35)); }
  .lp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-card { aspect-ratio: 16 / 9; }
  .lp-world-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-dev-bar { flex-wrap: wrap; }
  .lp-dev-bar > p { flex-basis: 100%; order: 1; padding-left: 0; border-left: 0; }
  .lp-dev-title { flex: 1; }
  /* Fix 2 (Codex 2): below 1024 px the actions start the bar's last row at the left edge, so a panel
     hung from the button would run off the viewport. The open roadmap is in flow instead: it takes the
     full row (Report a Bug, when switched on, wraps under it), inside the section, both switch states. */
  .lp-dev-actions { order: 2; width: 100%; }
  .lp-roadmap { position: static; }
  .lp-roadmap[open] { flex: 1 1 100%; min-width: 0; }
  .lp-roadmap-panel { position: static; width: auto; max-height: none; margin-top: 10px; box-shadow: none; }
}

@media (max-width: 899px) {
  /* Fix 2 (visual R7): the stacked steps are a centred column under the centred heading. */
  .lp-steps { grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 560px; margin-inline: auto; }
  .lp-steps li:not(:last-child)::after { content: none; }
}

@media (max-width: 760px) {
  html:has(body.home) { scroll-padding-top: 84px; }  /* the header stays sticky here (style.css: 12px) */
  .lp-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-status-list { flex-direction: column; align-items: flex-start; }
  .lp-status-list li { padding: 0; }
  .lp-status-list li + li { border-left: 0; }
  .lp-dev-actions { flex-direction: column; align-items: stretch; }
  .lp-roadmap .roadmap li { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  /* Still sticky and 76 px; the wordmark (14 px, stacked), CTA and menu share one row. */
  .home .topbar { gap: 0 8px; }
  .home .topbar .brand { gap: 6px; padding-right: 0; border-right: 0; font-size: .875rem; letter-spacing: .04em; }
  .home .topbar .brand img { width: 30px; height: 30px; }
  .home .landing-mobile-nav .btn { padding-inline: 12px; font-size: .82rem; white-space: nowrap; }
  .landing-mobile-nav summary { white-space: nowrap; }
  /* Stacked: the headline sits above the picture (OF-WEB-LANDING-04). */
  .lp-hero { display: flex; flex-direction: column; min-height: 0; padding: 0 0 28px; }
  .lp-hero-inner { order: -1; }
  .lp-hero-art { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .lp-hero-art::after { background: linear-gradient(0deg, var(--ocean), transparent 35%); }
  .lp-hero-art .lp-art-label { right: 8px; bottom: 6px; }
  .lp-hero-copy { max-width: none; }
  .lp-headline span { white-space: normal; }
  .lp-actions > a { flex: 1 1 100%; }
  .lp-cards { grid-template-columns: minmax(0, 1fr); }
  .lp-title::before, .lp-title::after { flex-basis: 28px; }
  .lp-map-sheet { aspect-ratio: 16 / 10; }
  .landing-footer nav { margin-left: 0; }
  .landing-footer nav a:first-child { padding-left: 0; }
}

@media (max-width: 479px) {
  /* Fix 2 (visual R2): the header button reads "Play"; " Preview" is visually hidden, so the accessible
     name stays "Play Preview". */
  .lp-play-more {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home * { transition: none !important; }
}

@media (forced-colors: active) {
  .lp-card, .lp-faq details { border-color: CanvasText; }
  .lp-map-sheet { clip-path: none; border: 2px solid CanvasText; }
  .menu-icon, .menu-icon::before, .menu-icon::after { background: CanvasText; }
  .lp-ph { forced-color-adjust: none; }
}
