/* SebaWorld studio site, version 2.
   Layout idea: thin glass panels floating over a moving space sky; chunky letters, yellow and pink light.
   Dark = night space. Light = the same world in daylight. One loud thing per page (planet / video hero). */
@font-face { font-family: "Bowlby One"; src: url("fonts/bowlby-one.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  --bg: #CFE6FF;
  --bg-grad: linear-gradient(165deg, #A9D8FF 0%, #D9D0FF 38%, #FFCFE3 68%, #FFE3A6 100%);
  --bg-2: #FFF3DC;
  --text: #171A3D;
  --muted: #1B1F47;
  --panel: rgba(255, 255, 255, .58);
  --panel-solid: #FFFFFF;
  --edge: rgba(255, 255, 255, .95);
  --edge-strong: rgba(23, 26, 61, .5);
  --sun: #FFC42E;
  --pop: #D4215E;
  --pop-text: #8E0C37;
  --on-sun: #171A3D;
  --h1-shadow: 3px 3px 0 #FFC42E, 7px 7px 0 #E8347A;
  --h2-shadow: 2px 2px 0 #FFC42E;
  --glow: 0 14px 38px rgba(122, 43, 214, .20), 0 2px 0 rgba(255, 255, 255, .9) inset;
  --card-shadow: 0 10px 30px rgba(92, 60, 190, .16);
  --btn-glow: 0 8px 26px rgba(255, 150, 46, .55);
  --sil: brightness(0) opacity(.72);
  --font-display: "Bowlby One", "Arial Black", Impact, sans-serif;
  --font-body: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --r: 16px;
  --wrap: 1140px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #05060F; --bg-grad: none; --bg-2: #0B0A1F; --text: #F4F2FF; --muted: #AEB3D6; --h2-shadow: none; --card-shadow: none;
    --panel: rgba(255, 255, 255, .055); --panel-solid: #12132B; --edge: rgba(180, 190, 255, .22); --edge-strong: rgba(200, 208, 255, .6);
    --pop: #FF4D8D; --pop-text: #FFB3C9; --h1-shadow: 4px 4px 0 #FF4D8D; --glow: 0 0 34px rgba(255, 77, 141, .22); --btn-glow: 0 0 30px rgba(255, 196, 46, .5);
    --sil: brightness(0) invert(1) opacity(.9); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #05060F; --bg-grad: none; --bg-2: #0B0A1F; --text: #F4F2FF; --muted: #AEB3D6; --h2-shadow: none; --card-shadow: none;
  --panel: rgba(255, 255, 255, .055); --panel-solid: #12132B; --edge: rgba(180, 190, 255, .22); --edge-strong: rgba(200, 208, 255, .6);
  --pop: #FF4D8D; --pop-text: #FFB3C9; --h1-shadow: 4px 4px 0 #FF4D8D; --glow: 0 0 34px rgba(255, 77, 141, .22); --btn-glow: 0 0 30px rgba(255, 196, 46, .5);
  --sil: brightness(0) invert(1) opacity(.9); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); background-image: var(--bg-grad); background-attachment: fixed; color: var(--text); font: 400 1.0625rem/1.6 var(--font-body); overflow-x: hidden; }
img, video, canvas, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: .01em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); text-shadow: var(--h1-shadow); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); text-shadow: var(--h2-shadow); }
h3 { font-size: 1.22rem; }
p { margin: 0; max-width: 65ch; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
#space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main:focus { outline: none; }
#trail { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }
.site-head, main, .site-foot { position: relative; z-index: 1; }
main { overflow-x: clip; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 70; background: var(--sun); color: var(--on-sun); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* page changes */
main { transition: opacity .22s ease, transform .22s ease; }
body.leaving main, main.swap { opacity: 0; transform: translateY(14px) scale(.985); }
@keyframes page-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
main.enter { animation: page-in .45s cubic-bezier(.2, .8, .2, 1) both; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--edge); }
.site-head .wrap { display: flex; align-items: center; gap: 10px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 1.4rem; margin-right: auto; }
.brand .mark { width: 36px; height: 36px; flex: none; }
.brand .word { display: inline-flex; align-items: center; }
.brand .in { width: 1.14em; height: 1.14em; flex: none; margin: 0 -.09em; }
.brand { min-height: 44px; }
#thanks-title:focus { outline: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-right: 6px; }
.nav a { text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid transparent; }
.nav a:hover { border-color: var(--edge-strong); }
.nav a[aria-current="page"] { background: var(--sun); color: var(--on-sun); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; background: var(--panel); color: var(--text); border: 1px solid var(--edge-strong); border-radius: 12px; cursor: pointer; flex: none; }
.icon-btn:hover { box-shadow: var(--glow); }
.icon-btn svg { width: 22px; height: 22px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
.menu-btn { display: none; }
.fx-wrap { position: relative; }
.fx-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 270px; padding: 16px; background: var(--panel-solid); border: 1px solid var(--edge-strong); border-radius: var(--r); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); display: grid; gap: 12px; }
.fx-panel p { font-size: .9rem; color: var(--muted); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; background: none; border: 0; color: var(--text); font-weight: 700; padding: 6px 0; cursor: pointer; text-align: left; }
.switch i { width: 46px; height: 26px; border-radius: 999px; background: var(--edge); border: 1px solid var(--edge-strong); position: relative; flex: none; transition: background .15s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.switch[aria-checked="true"] i { background: var(--sun); }
.switch[aria-checked="true"] i::after { transform: translateX(20px); background: var(--on-sun); }
@media (max-width: 780px) {
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--panel-solid); border-bottom: 1px solid var(--edge-strong); padding: 12px 20px 18px; flex-direction: column; align-items: stretch; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .fx-panel { position: fixed; right: 12px; left: 12px; top: 76px; width: auto; }
}

@media (max-width: 400px) { .site-head .wrap { gap: 6px; } .brand { font-size: 1.12rem; gap: 7px; } .brand .mark { width: 30px; height: 30px; } .wrap { width: calc(100% - 28px); } }

/* ---------- buttons, badges ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 1.03rem var(--font-body); text-decoration: none; padding: 13px 22px; border-radius: 12px; border: 1px solid var(--edge-strong); background: var(--panel); color: var(--text); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; transition: transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); color: var(--on-sun); border-color: #171A3D; box-shadow: var(--btn-glow); }
.btn-sun:hover { box-shadow: var(--btn-glow), 0 0 0 3px rgba(255, 196, 46, .35); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .875rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--edge-strong); white-space: nowrap; }
.pill-live { border-color: #0B7A66; color: #06392F; background: rgba(255, 255, 255, .72); }
:root[data-theme="dark"] .pill-live { color: #8CFFDD; border-color: #2FE6B0; background: rgba(47, 208, 180, .16); }
.pill-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1FC79F; box-shadow: 0 0 10px #2FE6B0; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.pill-secret { border-style: dashed; color: var(--muted); }
.pill-secret svg { width: 14px; height: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0; }
.badges li { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 700; padding: 4px 10px 4px 8px; border-radius: 8px; background: var(--panel); border: 1px solid var(--edge); line-height: 1.25; text-align: left; }
.badges svg { width: 16px; height: 16px; flex: none; color: var(--pop-text); }

/* ---------- glass ---------- */
.glass { position: relative; background: var(--panel); box-shadow: var(--card-shadow); border: 1px solid var(--edge); border-radius: var(--r); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); overflow: hidden; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s ease-out, border-color .2s, box-shadow .25s; }
.glass::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c, var(--sun)) 30%, transparent), transparent 62%); }
.glass.hot::before { opacity: 1; }
.glass.hot { border-color: color-mix(in srgb, var(--c, var(--sun)) 70%, var(--text) 10%); box-shadow: 0 0 34px color-mix(in srgb, var(--c, var(--sun)) 26%, transparent); }
/* touch screens: a light sweeps across each card once as it scrolls in */
.glass::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 40%, color-mix(in srgb, var(--c, var(--sun)) 26%, transparent) 50%, transparent 60%); transform: translateX(-120%); }
@media (hover: none) { .reveal.go .glass::after, .glass.reveal.go::after { animation: sweep 1.1s ease-out .35s 1 both; } }
@keyframes sweep { to { transform: translateX(120%); } }

:root[data-theme="light"] .glass { border-top: 3px solid var(--c, var(--sun)); }
:root[data-theme="light"] .glass.feature { border-top-width: 1px; }
:root[data-theme="light"] .badges li { background: rgba(255, 255, 255, .8); border-color: rgba(23, 26, 61, .22); }
:root[data-theme="light"] .places a, :root[data-theme="light"] .places button { border-color: rgba(23, 26, 61, .28); background: rgba(255, 255, 255, .7); }
:root[data-theme="light"] .stats b { text-shadow: 2px 2px 0 #FFC42E; }
:root[data-theme="light"] .pill-secret { border-color: rgba(23, 26, 61, .45); }
:root[data-theme="light"] .site-head, :root[data-theme="light"] .site-foot { background: rgba(255, 255, 255, .55); border-color: rgba(255, 255, 255, .9); }
:root[data-theme="light"] .v-hero h1, :root[data-theme="light"] .lightbox h1 { text-shadow: 4px 4px 0 #FF4D8D; }
:root[data-theme="light"] .ready h2, :root[data-theme="light"] .mode h3 { text-shadow: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(20px, 4vw, 44px) 0 clamp(18px, 3vw, 30px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(16px, 3vw, 40px); align-items: center; }
.lead { font-size: 1.2rem; margin: 22px 0 28px; color: var(--muted); max-width: 46ch; }
.globe-box { position: relative; aspect-ratio: 1; width: 100%; max-width: 580px; margin-inline: auto; touch-action: pan-y; cursor: grab; }
.globe-box.dragging { cursor: grabbing; }
.globe-box canvas { width: 100%; height: 100%; }
.globe-box canvas.on-pin { cursor: pointer; }
.beacon { position: absolute; left: 0; top: 0; transform: translate(-50%, -150%); font: 700 .8rem var(--font-body); text-decoration: none; white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: rgba(6, 8, 24, .82); border: 1px solid var(--c); color: #fff; box-shadow: 0 0 14px color-mix(in srgb, var(--c) 55%, transparent); transition: opacity .2s; pointer-events: none; opacity: 0; }
a.beacon { pointer-events: auto; cursor: pointer; padding-right: 8px; }
a.beacon::after { content: " \203A"; }
.globe-hint { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 2px; max-width: none; }
.places { margin: 14px auto 0; display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; list-style: none; padding: 0; max-width: 540px; }
.places a, .places button { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 700; font-size: .84rem; padding: 4px 11px 4px 8px; border-radius: 999px; border: 1px solid var(--edge); background: var(--panel); color: var(--text); cursor: pointer; }
.places a { border-color: var(--edge-strong); }
.places a:hover, .places button:hover, .places :focus-visible { border-color: var(--c); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 50%, transparent); }
.places i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 4px var(--c); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .globe-box { max-width: 400px; } }

/* ---------- sections ---------- */
.section { padding: clamp(26px, 4.5vw, 56px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; margin-bottom: 24px; }
.section-head p { color: var(--muted); margin-top: 8px; }
.text-link { display: inline-block; padding: 3px 0; font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--pop); }
.page-head { padding: clamp(26px, 5vw, 52px) 0 4px; }
.page-head .lead { margin-bottom: 0; max-width: 56ch; }

/* main card (Dune Dash) */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; border-color: var(--edge-strong); box-shadow: var(--glow); }
.feature-art { display: block; background: #1b1530; }
.feature-art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.feature-body { padding: clamp(18px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; justify-content: center; position: relative; }
.feature-body p { color: var(--muted); }
.feature-logo { width: min(230px, 70%); margin: -20px 0 -24px -14px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .5)); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* promise strip + numbers */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.promise li { padding: 18px; display: flex; gap: 14px; align-items: center; }
.promise svg { width: 44px; height: 44px; flex: none; color: var(--sun); filter: drop-shadow(0 0 10px rgba(255, 196, 46, .55)); }
:root[data-theme="light"] .promise svg { color: var(--pop); filter: none; }
.promise strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; line-height: 1.15; }
.promise span { color: var(--muted); font-size: .93rem; }
.stats { display: flex; flex-wrap: wrap; gap: 12px 44px; margin-top: 26px; list-style: none; padding: 0; }
.stats li { display: flex; align-items: baseline; gap: 10px; color: var(--muted); }
.stats b { font: 400 2rem/1 var(--font-display); color: var(--text); text-shadow: 2px 2px 0 var(--pop); font-variant-numeric: tabular-nums; min-width: 1.1ch; }
@media (max-width: 1000px) { .promise { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .promise { grid-template-columns: 1fr; } }

/* secret cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; list-style: none; padding: 0; margin: 0; }
.cards > li { display: flex; }
.secret { width: 100%; padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sil { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 14px; border: 1px dashed var(--edge-strong); background: color-mix(in srgb, var(--c) 14%, transparent); margin-bottom: 4px; position: relative; overflow: hidden; }
.sil svg { width: 62%; filter: var(--sil) blur(1.6px) drop-shadow(0 0 7px var(--c)); }
.sil::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(transparent, color-mix(in srgb, var(--c) 55%, transparent), transparent); animation: scan 3.6s linear infinite; }
@keyframes scan { to { top: 110%; } }
.secret h3 { font-size: 1.25rem; }
.secret .tease { color: var(--text); font-size: 1.02rem; font-style: italic; }
.secret .badges { margin-top: auto; padding-top: 6px; }
.group-title { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 16px; }
.group-title h3 { font-size: 1.35rem; }
.group-title span { color: var(--muted); font-size: .95rem; }

@media (max-width: 560px) {
  .secret { display: grid; grid-template-columns: 58px 1fr; gap: 6px 14px; align-items: center; padding: 16px; }
  .sil { width: 58px; height: 58px; grid-row: span 2; margin: 0; }
  .secret .pill { justify-self: start; }
  .secret .tease, .secret .badges { grid-column: 1 / -1; }
}

@media (min-width: 1080px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }

/* at a glance table */
.table-scroll { overflow-x: auto; border-radius: var(--r); }
.glance { width: 100%; min-width: 700px; border-collapse: collapse; }
.glance th, .glance td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--edge); font-size: .95rem; }
.glance thead th { font-weight: 700; color: var(--muted); font-size: .86rem; vertical-align: bottom; }
.glance tbody th { text-align: left; font-weight: 700; white-space: nowrap; }
.glance tr:last-child th, .glance tr:last-child td { border-bottom: 0; }
.glance .yes { color: var(--text); font-weight: 800; }
.glance .no { color: var(--muted); }

/* ---------- Dune Dash page ---------- */
.crumb { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 4px 0; }
.crumb:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumb svg { width: 18px; height: 18px; }
.v-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--edge); color: #fff; background: #120E24; }
.v-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.v-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 6, 15, .92) 0%, rgba(5, 6, 15, .72) 46%, rgba(5, 6, 15, .25) 100%); }
.v-hero .wrap { position: relative; z-index: 2; padding: clamp(22px, 4vw, 40px) 0 clamp(44px, 8vw, 110px); }
@media (max-width: 700px) { .v-hero::after { background: linear-gradient(180deg, rgba(5, 6, 15, .78), rgba(5, 6, 15, .88)); } }
.v-hero h1 { margin-top: 18px; text-shadow: 4px 4px 0 #FF4D8D; }
.v-hero .lead { color: #D8DBF2; margin: 16px 0 20px; }
.v-hero .badges { margin-bottom: 24px; max-width: 620px; }
:root .v-hero .badges li, :root[data-theme="light"] .v-hero .badges li { background: rgba(10, 10, 30, .55); border-color: rgba(255, 255, 255, .34); color: #fff; }
:root .v-hero .badges svg { color: #FFC42E; }
.v-hero .pill { border-color: rgba(255, 255, 255, .5); color: #fff; }
.v-hero .pill-live { border-color: #2FE6B0; color: #8CFFDD; background: rgba(47, 208, 180, .16); }
.v-hero .btn:not(.btn-sun) { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .55); }
.v-hero :focus-visible { outline-color: #fff; }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.tile { padding: 18px 20px; display: grid; grid-template-columns: 46px 1fr; gap: 4px 14px; align-items: center; width: 100%; }
.tile svg { width: 42px; height: 42px; grid-row: span 2; color: var(--sun); }
:root[data-theme="light"] .tile svg { color: var(--pop); }
.tile strong { font-family: var(--font-display); font-weight: 400; font-size: 1.08rem; line-height: 1.15; align-self: end; }
.tile span { color: var(--muted); font-size: .93rem; align-self: start; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.mode { border-radius: var(--r); overflow: hidden; border: 1px solid var(--edge-strong); display: flex; flex-direction: column; }
.mode video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.mode-body { padding: 18px 20px 22px; flex: 1; }
.mode-body h3 { font-size: 1.5rem; margin-bottom: 8px; }
.mode-kids { background: #FFF3C9; color: #171A3D; }
.mode-pro { background: #1F1A33; color: #F6EFE6; }
.mode-pro h3 { color: #FF7A45; }
.trailer { border-radius: var(--r); overflow: hidden; border: 1px solid var(--edge-strong); background: #000; max-width: 920px; box-shadow: var(--glow); }
.trailer video { width: 100%; aspect-ratio: 16 / 9; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--edge-strong); transition: transform .15s, box-shadow .2s; }
.gallery a:hover { transform: translateY(-3px); box-shadow: var(--glow); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(22px, 5vw, 60px); align-items: start; }
.two-col > div > h2 { margin-bottom: 14px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 12px 18px; vertical-align: top; border-bottom: 1px solid var(--edge); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 34%; font-weight: 700; }
.facts td { color: var(--muted); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 96vw); width: 96vw; color: #fff; }
.lightbox :focus-visible { outline-color: #fff; }
.lightbox::backdrop { background: rgba(4, 5, 18, .9); }
.lightbox img { width: 100%; border: 1px solid rgba(255, 255, 255, .4); border-radius: 12px; background: #000; }
.lb-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.lb-bar p { flex: 1; font-size: .95rem; max-width: none; min-width: 180px; }
.lightbox .btn:not(.btn-sun) { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); }

/* ---------- about, contact ---------- */
.prose { display: grid; gap: 16px; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; list-style: none; padding: 0; margin: 0; }
.values li { padding: 22px; }
.values h3 { margin-bottom: 8px; }
.values p { color: var(--muted); font-size: .985rem; }
.find { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(22px, 5vw, 52px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { padding: clamp(18px, 3vw, 30px); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: var(--panel-solid); border: 1px solid var(--edge-strong); border-radius: 10px; padding: 11px 14px; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field .err { color: var(--pop-text); font-weight: 700; font-size: .92rem; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--pop-text); border-width: 2px; }
.ready { padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; border-color: var(--sun); }
.ready pre { font: inherit; font-size: .95rem; white-space: pre-wrap; word-break: break-word; background: var(--panel-solid); border: 1px solid var(--edge-strong); border-radius: 10px; padding: 12px 14px; margin: 0; max-height: 240px; overflow: auto; }
.addr { font-weight: 700; overflow-wrap: anywhere; }
.side-card { padding: 20px; display: grid; gap: 10px; }
.small { font-size: .95rem; color: var(--muted); }

.note { padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; max-width: 760px; margin-bottom: 26px; }
.note p { max-width: 62ch; }
.note-lead { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.2; }
.note-sign { font-weight: 800; margin-top: 4px; }
.names { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.names li { font-weight: 700; padding: 8px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--edge-strong); box-shadow: var(--card-shadow); }
#thanks { scroll-margin-top: 84px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--edge); background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 34px 0 40px; margin-top: 20px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px 56px; justify-content: space-between; }
.foot-grid ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.foot-grid h3 { font-family: var(--font-body); font-weight: 800; font-size: 1rem; }
.foot-grid a { text-underline-offset: 3px; }
.foot-grid ul a { display: inline-block; padding: 4px 0; }
.fine { margin-top: 28px; font-size: .875rem; color: var(--muted); max-width: none; }

/* ---------- scroll animation ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(34px) scale(.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.reveal.go { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 80ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal.go, main.enter, .sil::after, .pill-live::before, .reveal.go .glass::after, .glass.reveal.go::after { animation: none; }
  main, .glass, .btn, .gallery a { transition: none; }
  .glass { transform: none !important; }
  body.leaving main, main.swap { opacity: 1; transform: none; }
}

/* touch screens: finger-sized targets (kept last so nothing above overrides it) */
@media (pointer: coarse) {
  .places a, .places button { min-height: 44px; padding: 8px 14px 8px 11px; }
  .foot-grid ul a { padding: 11px 0; }
  .text-link { padding: 10px 0; }
}
