/* Ampline, artled Poster example (DESIGN.md): Art Deco travel lithograph, midnight and gold.
   Dark by default; the app also ships [data-theme="light"] (cream poster paper), both measured.
   Versioned ?v=2. Fonts: Josefin Sans (display), Public Sans (body), IBM Plex Mono (data). */
@font-face { font-family: "Josefin Sans"; src: url("../../../_shared/fonts/josefin-sans-var.woff2?v=1") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../../../_shared/fonts/public-sans-var.woff2?v=1") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../../../_shared/fonts/plex-mono-400.woff2?v=1") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../../../_shared/fonts/plex-mono-500.woff2?v=1") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #13161C;        /* midnight: cream text 15.02:1 */
  --surface: #1B1F27;   /* 13.69:1 text */
  --raised: #232935;    /* 12.09:1 text */
  --text: #F4E9D0;      /* cream */
  --muted: #B9B2A2;     /* 8.59:1 bg, 7.83:1 surface, 6.91:1 raised */
  --gold: #E8B84A;      /* primary action + live number: 9.82:1 bg, 8.95:1 surface */
  --on-gold: #13161C;   /* 9.82:1 on gold */
  --red: #F07055;       /* one accent: 6.17:1 bg, 5.62:1 surface */
  --line: rgba(232, 184, 74, .25);
  --line-2: rgba(232, 184, 74, .45);
  --glass: rgba(19, 22, 28, .82);
  --ink-line: rgba(244, 233, 208, .12);
  --down: #F07055;      /* data direction colours (U11): rises green, falls red */
  --up: #6FBB8F;        /* 7.92:1 bg */
  --focus: #E8B84A;
  --link: #E8B84A;
  --shadow: rgba(4, 6, 10, .55);
  --radius: 6px;        /* PO4: one radius family */
  --display: "Josefin Sans", system-ui, sans-serif;
  --sans: "Public Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F4E9D0;        /* cream paper: ink text 15.02:1 */
  --surface: #FBF5E8;   /* 16.67:1 text */
  --raised: #EFE3C6;    /* 14.21:1 text */
  --text: #13161C;
  --muted: #4E4A42;     /* 7.31:1 bg, 8.11:1 surface, 6.92:1 raised */
  --gold: #8A5F0A;      /* 4.68:1 bg, 5.19:1 surface */
  --on-gold: #FBF5E8;
  --red: #B3361F;       /* 5.03:1 bg, 5.58:1 surface */
  --line: rgba(19, 22, 28, .2);
  --line-2: rgba(19, 22, 28, .4);
  --glass: rgba(246, 239, 226, .86);
  --ink-line: rgba(19, 22, 28, .14);
  --down: #B3361F;
  --up: #1F6B48;
  --focus: #8A5F0A;
  --link: #8A5F0A;
  --shadow: rgba(19, 22, 28, .18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); text-wrap: balance; }
h3 { font-size: 1.2rem; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a[href], button, summary, label[for], input, select { cursor: pointer; }
button:disabled, button[aria-disabled="true"] { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 90; background: var(--gold); color: var(--on-gold); padding: 0 18px; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--radius); font: 600 .95rem var(--sans); text-decoration: none; }
.skip:focus { top: 12px; }
.mist { color: var(--muted); } .small { font-size: .9rem; }
.gold { color: var(--gold); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.wrap-wide { max-width: 1360px; margin: 0 auto; padding: 0 28px; }
.ph { font-size: 1.1em; vertical-align: -0.15em; }

/* Deco stepped divider (three stacked lines, STYLE.md Structure). */
.deco-rule { display: grid; gap: 3px; padding: 0; border: 0; margin: 0; }
.deco-rule::before, .deco-rule::after, .deco-rule i { display: block; height: 1px; background: var(--line); }
.deco-rule::before { width: 100%; }
.deco-rule i { width: 66%; }
.deco-rule::after { width: 33%; }

/* Logo mark: gold ray fan over a stepped skyline, cropped to its box. */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.3rem var(--display); letter-spacing: .02em; min-height: 44px; flex: none; }
.logo svg { flex: none; }
.logo .ray { stroke: var(--gold); stroke-width: 1.6; }
.logo .sky { fill: var(--text); opacity: .55; }

/* Header (site): glass only after scroll (P7). */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background-color 220ms var(--ease), border-color 220ms var(--ease); border-bottom: 1px solid transparent; }
.nav.solid, .nav.open { background: var(--glass); backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15); border-bottom-color: var(--line); }
.nav .wrap-wide { display: flex; align-items: center; min-height: 84px; gap: 24px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius); text-decoration: none; font: 500 1rem var(--sans); transition: background-color 160ms var(--ease); }
.nav-links a:hover { background: rgba(244, 233, 208, .08); }
[data-theme="light"] .nav-links a:hover { background: rgba(19, 22, 28, .06); }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-right .menu-btn, .only-menu { display: none; }

/* Buttons: rectangles with 6px corners (PO4), never pills. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent; font: 600 1rem var(--sans); text-decoration: none; color: var(--text); background: transparent; transition: transform 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease), filter 160ms var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { filter: brightness(1.06); }
[data-theme="light"] .btn-gold:hover { filter: brightness(1.1); }
.btn-ghost { border-color: var(--line-2); background: rgba(244, 233, 208, .05); }
.btn-ghost:hover { background: rgba(244, 233, 208, .12); }
[data-theme="light"] .btn-ghost { background: rgba(19, 22, 28, .04); }
[data-theme="light"] .btn-ghost:hover { background: rgba(19, 22, 28, .09); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.link { color: var(--link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent); }
.link:hover { text-decoration-color: var(--link); }
.theme-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font: 500 .875rem var(--sans); }
.theme-btn:hover { border-color: var(--line-2); }
.theme-btn .ph { font-size: 1.1rem; }

/* States shared with app.css. */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--up); flex: none; }
.dot.off { background: var(--muted); }
.dot.err { background: var(--down); }
.state { padding: 22px 14px; display: grid; gap: 12px; justify-items: center; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.state .ph { font-size: 1.7rem; color: var(--down); }
.state .msg { max-width: 46ch; }
.state .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.skel { position: relative; overflow: hidden; background: rgba(244, 233, 208, .09); border-radius: var(--radius); }
[data-theme="light"] .skel { background: rgba(19, 22, 28, .08); }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(244, 233, 208, .16), transparent); }
[data-theme="light"] .skel::after { background: linear-gradient(90deg, transparent, rgba(19, 22, 28, .1), transparent); }

/* Live flash (PO3, motion.md): gold or direction colour for 600ms. */
.flash { transition: color 600ms var(--ease); }
.flash-up { animation: flashup 600ms var(--ease); }
.flash-down { animation: flashdown 600ms var(--ease); }
@keyframes flashup { 0%, 60% { color: var(--up); } 100% { color: inherit; } }
@keyframes flashdown { 0%, 60% { color: var(--down); } 100% { color: inherit; } }

/* Hero: the poster, headline in the calm sky left of the rays (PO1) */
.hero { position: relative; min-height: 100svh; display: grid; align-content: center; overflow: hidden; isolation: isolate; padding: 120px 24px 96px; }
.hero .art { position: absolute; inset: 0 0 auto; height: max(100%, 43vw); z-index: -2; -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent); mask-image: linear-gradient(180deg, #000 74%, transparent); }
@media (min-aspect-ratio: 16/11) { .hero .art { height: 43vw; } }
.hero .art img { width: 100%; height: 100%; object-fit: cover; object-position: 90% 24%; will-change: transform; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 17%; z-index: -1; background: linear-gradient(180deg, rgba(19, 22, 28, .62), rgba(19, 22, 28, 0)); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 42% 60% at 38% 40%, rgba(19, 22, 28, .74) 0%, rgba(19, 22, 28, .42) 68%, rgba(19, 22, 28, 0) 100%),
              linear-gradient(180deg, rgba(19, 22, 28, .45) 0%, rgba(19, 22, 28, .45) 56%, rgba(19, 22, 28, .88) 90%, var(--bg) 100%); }
.hero-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: grid; justify-items: start; gap: 22px; }
.hero h1 { font-size: clamp(2.9rem, 6.8vw, 6.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: .98; text-wrap: balance; max-width: 12ch; color: #F4E9D0; }
.hero .sub { font-size: clamp(1.1rem, 1.7vw, 1.4rem); max-width: 38ch; color: #F4E9D0; text-wrap: balance; }
.hero-note { color: #F4E9D0; font-size: .86rem; max-width: 58ch; opacity: .92; }
.hero .hero-note a, .artband .link, .final .link { color: #E8B84A; }
.hero .hero-note a:hover, .artband .link:hover, .final .link:hover { color: #F6D788; }

/* Glass bar with the live number (PO3: the live number is gold). */
.livebar { display: flex; align-items: stretch; gap: 0; padding: 6px; border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15); border: 1px solid var(--line); max-width: 100%; flex-wrap: wrap; }
.livebar .seg { display: grid; gap: 2px; padding: 8px 18px; text-align: left; border-right: 1px solid var(--line); min-width: 0; align-content: center; }
.livebar .seg:last-of-type { border-right: 0; }
.livebar .k { font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #B9B2A2; white-space: nowrap; display: inline-flex; align-items: center; }
.livebar .v { font: 500 1.05rem var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: #F4E9D0; }
.livebar .v.live { color: #E8B84A; font-weight: 500; }
.livebar .btn { margin: 2px 2px 2px 10px; }
.livebar .state-inline { padding: 10px 18px; color: #B9B2A2; font-size: .9rem; align-content: center; display: flex; align-items: center; gap: 10px; }
@media (max-width: 840px) {
  .livebar { border-radius: var(--radius); }
  .livebar .seg { padding: 8px 12px; }
  .livebar .hide-md { display: none; }
}
@media (max-width: 560px) {
  .livebar .seg { border-right: 0; flex: 1 1 50%; padding: 10px 12px; }
  .livebar .hide-sm { display: none; }
  .livebar .btn { width: 100%; margin: 4px 2px 2px; }
  .livebar .state-inline { flex: 1 1 100%; }
}

/* Sections */
section { position: relative; padding: 112px 0; }
.head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 780px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.head p { color: var(--muted); font-size: 1.12rem; max-width: 56ch; }
.kicker { font: 500 .74rem var(--mono); color: var(--gold); letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.kicker .ph { font-size: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.glass { background: var(--glass); backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15); border: 1px solid var(--line); border-radius: var(--radius); color: #F4E9D0; }
.actions, .actions-left { display: flex; flex-wrap: wrap; gap: 12px; }
.actions { justify-content: center; }

/* Ghost buttons on art carry their own dark ground (PA6 reading, Poster kept). */
.artband .btn-ghost, .hero .btn-ghost { background: rgba(19, 22, 28, .72); border-color: rgba(232, 184, 74, .45); color: #F4E9D0; }
.artband .btn-ghost:hover, .hero .btn-ghost:hover { background: rgba(19, 22, 28, .86); }

/* Live forecast instrument */
.inst { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.board { padding: 24px; display: grid; gap: 18px; align-content: start; }
.board-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.board-top .title { font: 500 1.05rem var(--sans); display: flex; align-items: center; gap: 10px; }
.board-top .title .dot { margin: 0; }
.skel-rows { display: grid; gap: 12px; }
.skel-rows .skel { height: 56px; }
.chart-axis { display: flex; justify-content: space-between; font: 500 .78rem var(--mono); color: var(--muted); }
.chart-read { max-width: 58ch; }
.credit-line { border-top: 1px solid var(--ink-line); padding-top: 14px; }
.credit-line a { color: var(--link); }
.inst-side { display: grid; gap: 20px; align-content: start; }
.panel { padding: 22px; display: grid; gap: 14px; }
.panel h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.panel h3 .ph { font-size: 1.3rem; color: var(--gold); }
.panel p { color: var(--muted); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font: 500 .95rem var(--mono); margin: 0; }
.kv dt { color: var(--muted); font-family: var(--sans); }
.kv dd { margin: 0; text-align: right; }

/* Site chart (48h forecast) sits on the surface; colours from app.css chart rules. */
#chart, .app-chart { width: 100%; height: auto; display: block; }

/* Ideas: asymmetric Deco cards (RHYTHM 3, P10) */
.concepts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.concept { padding: 28px; display: grid; gap: 14px; align-content: start; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.concept::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--line-2); }
.concept .ico { font-size: 40px; color: var(--gold); line-height: 1; }
.concept h3 { font-size: 1.15rem; }
.concept p { color: var(--muted); }
.concept.w7 { grid-column: span 7; } .concept.w5 { grid-column: span 5; }
.concept.w7:first-child { background: linear-gradient(150deg, rgba(232, 184, 74, .07), var(--surface) 46%); }

/* Art band: estate art, glass frame with the live app */
.artband { position: relative; isolation: isolate; overflow: hidden; padding: 128px 0; }
.artband .art { position: absolute; inset: 0; z-index: -2; }
.artband .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.artband::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(19, 22, 28, .94) 0%, rgba(19, 22, 28, .66) 52%, rgba(19, 22, 28, .30) 100%),
              linear-gradient(180deg, var(--bg) 0%, rgba(19, 22, 28, .28) 16%, rgba(19, 22, 28, .28) 84%, var(--bg) 100%); }
.artband .head { color: #F4E9D0; }
.artband .head p { color: #B9B2A2; }
.bandrow { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: stretch; margin-bottom: 26px; }
.frame-glass { padding: 0; display: grid; overflow: hidden; }
.frame-chrome { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: .8rem; color: #B9B2A2; flex-wrap: wrap; background: rgba(19, 22, 28, .5); }
.frame-chrome .url { font-family: var(--mono); background: rgba(19, 22, 28, .7); padding: 4px 10px; border-radius: var(--radius); }
.frame-chrome .btn { margin-left: auto; background: rgba(19, 22, 28, .72); }
.sample-tag { display: inline-flex; align-items: center; gap: 6px; font: 500 .7rem var(--mono); color: #F4E9D0; border: 1px dashed rgba(232, 184, 74, .5); padding: 3px 10px; border-radius: var(--radius); }
.frame-glass iframe { width: 100%; height: 520px; border: 0; display: block; background: #13161C; }
.glass-list { padding: 8px 20px; }
.glass-list ul { list-style: none; margin: 0; padding: 0; display: grid; }
.glass-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 15px 4px; border-bottom: 1px solid var(--line); align-items: start; }
.glass-list li:last-child { border-bottom: 0; }
.glass-list .ph { font-size: 1.35rem; color: #E8B84A; }
.glass-list b { display: block; font: 600 .98rem var(--sans); color: #F4E9D0; }
.glass-list span { color: #B9B2A2; font-size: .92rem; }

/* Specs table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.specs { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.specs th, .specs td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--ink-line); vertical-align: top; }
.specs thead th { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--raised); }
.specs tbody th { font-weight: 600; font-family: var(--sans); white-space: nowrap; }
.specs tr:last-child td { border-bottom: 0; }
.specs td .mono { font-size: .85rem; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--ink-line); }
.faq summary { list-style: none; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 600 1.05rem var(--sans); padding: 14px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ph { transition: transform 200ms var(--ease); color: var(--gold); flex: none; }
.faq details[open] summary .ph { transform: rotate(45deg); }
.faq .a { padding: 0 0 24px; color: var(--muted); max-width: 70ch; }

/* Final band */
.final { min-height: 72svh; display: grid; align-items: center; padding: 120px 24px; }
.final::after { background: linear-gradient(90deg, rgba(19, 22, 28, .94) 0%, rgba(19, 22, 28, .66) 52%, rgba(19, 22, 28, .30) 100%),
                           linear-gradient(180deg, var(--bg) 0%, rgba(19, 22, 28, .28) 18%, rgba(19, 22, 28, .28) 82%, var(--bg) 100%); }
.final .inner { display: grid; gap: 20px; justify-items: start; max-width: 680px; }
.final h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); color: #F4E9D0; }
.final p { color: #F4E9D0; font-size: 1.18rem; max-width: 44ch; text-wrap: balance; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot > .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot h4 { margin: 0 0 12px; font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot ul a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot ul a:hover { color: var(--link); }
.foot .small { color: var(--muted); margin-top: 12px; max-width: 46ch; }
.foot a { color: var(--link); }

/* Motion: each has a purpose in DESIGN.md. Reduced motion removes all. */
/* PO6, one sunrise: the poster itself settles 2 degrees on load. The art img is oversized
   (height 100% of a full-height box) so a 2-degree rotation cannot expose container edges. */
@keyframes sunrise { from { transform: rotate(2deg); } to { transform: rotate(0deg); } }
@media (prefers-reduced-motion: no-preference) {
  .hero .art img { transform-origin: 62% 60%; animation: sunrise 900ms var(--ease) 1 both; }
  @supports (animation-timeline: view()) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  }
  .skel::after { animation: sweep 1.3s var(--ease) infinite; }
  @keyframes sweep { to { transform: translateX(100%); } }
}

/* Responsive */
@media (max-width: 1100px) {
  .inst { grid-template-columns: 1fr; }
  .concept.w7, .concept.w5 { grid-column: 1 / -1; }
  .bandrow { grid-template-columns: 1fr; }
  section { padding: 96px 0; }
  .artband { padding: 104px 0; }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; padding: 10px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); box-shadow: 0 18px 50px var(--shadow); }
  .nav.open .nav-links { display: flex; }
  .only-menu { display: list-item; }
  .nav-right .menu-btn { display: inline-flex; }
}
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font: 500 .875rem var(--sans); }
.menu-btn:hover { border-color: var(--line-2); }
@media (max-width: 700px) {
  .wrap, .wrap-wide { padding: 0 16px; }
  section { padding: 72px 0; }
  .artband { padding: 88px 0; }
  .hero { padding: 108px 16px 84px; align-content: start; }
  .hero h1 { font-size: clamp(2.5rem, 10.5vw, 3.3rem); max-width: 14ch; }
  .nav-right .btn { display: none; }
  .frame-glass iframe { height: 620px; }
  .final { min-height: 64svh; padding: 96px 16px; }
  .final h2 { font-size: clamp(2rem, 8.5vw, 2.8rem); }
  .foot > .wrap { grid-template-columns: 1fr 1fr; }
  .foot > .wrap > div:first-child { grid-column: 1 / -1; }
}
/* PA2: portrait screens get the 9:16 art, text in the dark sky above the sunrise. */
@media (max-width: 700px), (orientation: portrait) and (max-width: 1100px) {
  .hero .art { inset: 0 0 auto; height: 100%; -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent); mask-image: linear-gradient(180deg, #000 76%, transparent); }
  .hero .art img { object-position: 50% 12%; height: 112%; }
  .hero::before { display: none; }
  .hero::after { background: linear-gradient(180deg, rgba(19, 22, 28, .78) 0%, rgba(19, 22, 28, .62) 42%, rgba(19, 22, 28, .66) 78%, rgba(19, 22, 28, 1) 97%, var(--bg) 100%); }
  .hero .livebar, .hero .hero-note { position: relative; }
  .hero .livebar { background: rgba(19, 22, 28, .86); }
}
@media (max-width: 480px) {
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-btn { width: 44px; justify-content: center; padding: 0; }
  .hide-xs { display: none; }
  .theme-btn span { display: none; }
  .foot > .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
