/* Dust Veil site. Material 3 dark scheme generated around the key art's amber (seed #E4A548). */

@font-face {
  font-family: "Mulish";
  src: url("../fonts/mulish-latin-ext.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Mulish";
  src: url("../fonts/mulish-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  /* M3 colour roles */
  --md-primary: #ffb95c;
  --md-on-primary: #462a00;
  --md-primary-container: #653e00;
  --md-on-primary-container: #ffddb7;
  --md-secondary: #ddc2a1;
  --md-secondary-container: #56442a;
  --md-on-secondary-container: #fbdebc;
  --md-tertiary: #b8cea0;
  --md-tertiary-container: #3b4d2c;
  --md-on-tertiary-container: #d4eabb;
  --md-error: #ffb4ab;
  --md-surface: #16130f;
  --md-surface-dim: #16130f;
  --md-surface-container-lowest: #110e0a;
  --md-surface-container-low: #1f1b16;
  --md-surface-container: #231f1a;
  --md-surface-container-high: #2e2924;
  --md-surface-container-highest: #39342e;
  --md-on-surface: #ebe1d9;
  --md-on-surface-variant: #d4c4b5;
  --md-outline: #9d8e81;
  --md-outline-variant: #50453a;
  --success: #b8cea0;

  /* M3 shape scale */
  --shape-xs: 4px;
  --shape-sm: 8px;
  --shape-md: 12px;
  --shape-lg: 16px;
  --shape-xl: 28px;
  --shape-full: 999px;

  --font: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 112px);
  --top-bar-h: 64px;
  --ease: cubic-bezier(0.2, 0, 0, 1); /* M3 standard easing */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-bar-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--md-surface);
  color: var(--md-on-surface);
  font: 400 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--md-primary); text-underline-offset: 3px; }
a:hover { color: var(--md-on-primary-container); }
:focus-visible { outline: 3px solid var(--md-primary); outline-offset: 2px; border-radius: var(--shape-xs); }
h1, h2, h3, h4 { margin: 0 0 0.4em; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { --container: 800px; }
.muted { color: var(--md-on-surface-variant); }

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--md-primary); color: var(--md-on-primary); border-radius: var(--shape-full);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- M3 type scale ---------- */
.display { font-size: clamp(2.8rem, 8vw, 4.5rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.headline { font-size: clamp(1.75rem, 3.6vw, 2.25rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.title-lg { font-size: 1.375rem; line-height: 1.3; font-weight: 700; }
.body-lg { font-size: 1.125rem; line-height: 1.6; color: var(--md-on-surface-variant); }
.body-md { font-size: 0.95rem; }
.section-lead { max-width: 44em; margin-bottom: 32px; }

/* ---------- Icons: Material Symbols Rounded (filled) SVGs used as masks ---------- */
.icon {
  display: inline-block; width: 24px; height: 24px; flex: none;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon--groups { --icon: url("../icons/groups.svg"); }
.icon--visibility_off { --icon: url("../icons/visibility_off.svg"); }
.icon--dark_mode { --icon: url("../icons/dark_mode.svg"); }
.icon--shield_person { --icon: url("../icons/shield_person.svg"); }
.icon--my_location { --icon: url("../icons/my_location.svg"); }
.icon--flight { --icon: url("../icons/flight.svg"); }
.icon--local_shipping { --icon: url("../icons/local_shipping.svg"); }
.icon--graphic_eq { --icon: url("../icons/graphic_eq.svg"); }
.icon--landscape { --icon: url("../icons/landscape.svg"); }
.icon--mail { --icon: url("../icons/mail.svg"); }
.icon--menu { --icon: url("../icons/menu.svg"); }
.icon--close { --icon: url("../icons/close.svg"); }
.icon--language { --icon: url("../icons/language.svg"); }
.icon--smartphone { --icon: url("../icons/smartphone.svg"); }
.icon--tablet_mac { --icon: url("../icons/tablet_mac.svg"); }
.icon--computer { --icon: url("../icons/computer.svg"); }
.icon--sports_esports { --icon: url("../icons/sports_esports.svg"); }
.icon--arrow_forward { --icon: url("../icons/arrow_forward.svg"); }

/* ---------- Buttons (M3: filled, tonal, text) with state layers ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 24px; border: 0; border-radius: var(--shape-full);
  font: 600 0.875rem/1 var(--font); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: box-shadow 0.2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; margin-left: -6px; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0; transition: opacity 0.15s; }
.btn:hover::after { opacity: 0.08; }
.btn:active::after { opacity: 0.12; }
.btn--filled { background: var(--md-primary); color: var(--md-on-primary); height: 48px; padding: 0 28px; font-size: 0.95rem; }
.btn--filled:hover { color: var(--md-on-primary); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.btn--tonal { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
.btn--tonal:hover { color: var(--md-on-secondary-container); }
.btn--text { background: none; color: var(--md-primary); padding: 0 12px; }
.btn--text .icon { margin-left: 0; }
.btn--text:hover { color: var(--md-primary); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: var(--shape-full);
  background: none; color: var(--md-on-surface); cursor: pointer;
}
.icon-btn:hover { background: rgba(235, 225, 217, 0.08); }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 1px solid var(--md-outline-variant); border-radius: var(--shape-sm);
  font-size: 0.85rem; font-weight: 600; color: var(--md-on-surface-variant);
}
.chip .icon { width: 18px; height: 18px; color: var(--md-primary); }
.chip--status { margin: 0; background: rgba(22, 19, 15, 0.6); backdrop-filter: blur(8px); }
.chip--real, .chip--air, .chip--history { height: 24px; padding: 0 8px; border: 0; font-size: 0.75rem; vertical-align: 1px; }
.chip--real { background: var(--md-tertiary-container); color: var(--md-on-tertiary-container); }
.chip--air { background: var(--md-primary-container); color: var(--md-on-primary-container); }
.chip--history { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
.chip--soon { height: 24px; padding: 0 8px; border: 0; font-size: 0.75rem; background: var(--md-surface-container-highest); color: var(--md-on-surface); letter-spacing: 0.04em; }
/* Teasers: like the game, only a dark, blurred, colourless glimpse of the unfinished map. */
.mission--soon { background: var(--md-surface-container-low); }
.mission--soon .mission__thumb { filter: blur(6px) grayscale(1) brightness(0.45); transform: scale(1.08); }
.mission--soon .mission__title { color: var(--md-on-surface-variant); }

/* ---------- Top app bar ---------- */
.top-bar { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--top-bar-h); transition: background-color 0.25s var(--ease); }
.top-bar.is-solid, body:not(.page-home) .top-bar { background: var(--md-surface-container); }
.top-bar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--md-on-surface); text-decoration: none; }
.brand:hover { color: var(--md-on-surface); }
.brand__mark { width: 32px; height: 32px; border-radius: var(--shape-sm); }
.brand__name { font-weight: 800; font-size: 1.125rem; }

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  display: block; padding: 8px 14px; border-radius: var(--shape-full);
  color: var(--md-on-surface-variant); font-weight: 600; font-size: 0.9rem; text-decoration: none;
}
.site-nav__list a:hover { background: rgba(235, 225, 217, 0.08); color: var(--md-on-surface); }
.site-nav__list a[aria-current="page"] { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
.site-nav__actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
  .site-nav {
    position: fixed; inset: var(--top-bar-h) 0 auto; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px var(--gutter) 24px; background: var(--md-surface-container);
    border-radius: 0 0 var(--shape-xl) var(--shape-xl);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav__list { flex-direction: column; }
  .site-nav__list a { padding: 14px 16px; font-size: 1rem; }
  .site-nav__actions { justify-content: space-between; }
  .top-bar:has(.site-nav.is-open) { background: var(--md-surface-container); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92svh, 900px); display: flex; align-items: flex-end;
  padding: calc(var(--top-bar-h) + 40px) 0 clamp(48px, 9vh, 96px);
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__media img { object-fit: cover; object-position: 50% 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(22, 19, 15, 0.7) 0%, rgba(22, 19, 15, 0) 22%),
    linear-gradient(90deg, rgba(22, 19, 15, 0.92) 0%, rgba(22, 19, 15, 0.55) 42%, rgba(22, 19, 15, 0) 70%),
    linear-gradient(0deg, var(--md-surface) 0%, rgba(22, 19, 15, 0) 35%);
}
.hero__content { display: grid; justify-items: start; gap: 0; }
.hero__content > * { max-width: 600px; }
.hero__title { font-size: clamp(3rem, 9vw, 5.5rem); line-height: 1; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 8px; }
.hero__tagline { font-size: 1.125rem; font-weight: 600; color: var(--md-primary); margin-bottom: 20px; }
.hero__lead { font-size: clamp(1.05rem, 1.7vw, 1.2rem); line-height: 1.6; color: var(--md-on-surface); margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-bottom: 28px; }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.store img { width: auto; height: 44px; }
.store--soon img { opacity: 0.55; filter: grayscale(0.3); }
.stores-wrap { display: grid; gap: 6px; }
.stores__note { margin: 0; font-size: 0.78rem; font-weight: 600; color: var(--md-on-surface-variant); }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }

/* Devices: laptop behind, tablet and phone in front. Sizes are % of the stage, so it scales on any screen. */
.devices { background: var(--md-surface-container-lowest); }
.devices__intro { max-width: 44em; margin-bottom: clamp(32px, 5vw, 56px); }
.device-stage { position: relative; aspect-ratio: 16 / 8.6; max-width: 1080px; margin: 0 auto; }
.device { position: absolute; margin: 0; }
.device__screen { overflow: hidden; background: #000; }
.device__screen img { width: 100%; height: 100%; object-fit: cover; }

.device--laptop { left: 15%; top: 0; width: 70%; }
.device--laptop .device__screen {
  aspect-ratio: 16 / 9; border: clamp(6px, 1.1vw, 12px) solid #0b0a09; border-bottom-width: clamp(10px, 1.6vw, 18px);
  border-radius: clamp(8px, 1.3vw, 16px) clamp(8px, 1.3vw, 16px) 0 0; box-shadow: 0 0 0 1px #3a342d;
}
.device__base {
  height: clamp(8px, 1.4vw, 16px); margin: 0 -9%;
  background: linear-gradient(180deg, #4a443d 0%, #2a2621 60%, #1a1714 100%);
  border-radius: 2px 2px clamp(6px, 1vw, 12px) clamp(6px, 1vw, 12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}
.device--tablet { left: 2%; bottom: 0; width: 36%; }
.device--tablet .device__screen {
  aspect-ratio: 4 / 3; border: clamp(7px, 1.2vw, 14px) solid #0b0a09; border-radius: clamp(12px, 2vw, 24px);
  box-shadow: 0 0 0 1px #3a342d, 0 24px 50px rgba(0, 0, 0, 0.65);
}
.device--phone { right: 2%; bottom: 4%; width: 36%; }
.device--phone .device__screen {
  position: relative; aspect-ratio: 19.5 / 9; border: clamp(5px, 0.9vw, 10px) solid #0b0a09; border-radius: clamp(14px, 2.4vw, 30px);
  box-shadow: 0 0 0 1px #3a342d, 0 24px 50px rgba(0, 0, 0, 0.65);
}
.device--phone .device__screen::before { /* camera pill, landscape */
  content: ""; position: absolute; left: 1.6%; top: 50%; width: 2.2%; height: 22%; transform: translateY(-50%);
  background: #0b0a09; border-radius: var(--shape-full); z-index: 1;
}
.device-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; list-style: none; margin: 32px 0 0; padding: 0; color: var(--md-on-surface-variant); font-size: 0.9rem; }
.device-legend li { display: inline-flex; align-items: center; gap: 8px; }
.device-legend .icon { width: 20px; height: 20px; color: var(--md-primary); }

/* Story + features */
.story__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.story__text { position: sticky; top: calc(var(--top-bar-h) + 32px); }
.feature-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feature { display: flex; gap: 16px; padding: 16px; border-radius: var(--shape-lg); transition: background-color 0.2s var(--ease); }
.feature:hover { background: var(--md-surface-container-low); }
.feature__icon {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--shape-md);
  background: var(--md-primary-container); color: var(--md-on-primary-container);
}
.feature__title { font-size: 1rem; margin-bottom: 4px; }
.feature__body { margin: 0; font-size: 0.95rem; color: var(--md-on-surface-variant); }

/* Missions: M3 list */
.missions { background: var(--md-surface-container-low); }
.mission-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.mission { display: flex; flex-direction: column; overflow: hidden; isolation: isolate; background: var(--md-surface-container); border-radius: var(--shape-lg); }
.mission__thumb { width: 100%; aspect-ratio: 640 / 352; object-fit: cover; background: var(--md-surface-container-high); }
.mission__text { padding: 16px 20px 20px; }
.mission__label { margin: 0 0 2px; font-size: 0.8rem; font-weight: 600; color: var(--md-outline); }
.mission__title { font-size: 1.2rem; margin-bottom: 6px; }
.mission__short { margin: 0; color: var(--md-on-surface-variant); }

/* Gallery: horizontal scroll-snap carousel */
.gallery__head { margin-bottom: 24px; }
.gallery__track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0;
  padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2)) 12px; scrollbar-width: thin;
  scrollbar-color: var(--md-outline-variant) transparent;
}
.gallery__item { flex: 0 0 min(82vw, 760px); scroll-snap-align: center; }
.gallery__item figure { margin: 0; }
.gallery__item img { width: 100%; aspect-ratio: 1600 / 738; object-fit: cover; border-radius: var(--shape-xl); background: var(--md-surface-container); }
.gallery__item figcaption { padding: 12px 8px 0; color: var(--md-on-surface-variant); font-size: 0.9rem; }

/* News */
.news-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.news-item { padding: 24px; border: 1px solid var(--md-outline-variant); border-radius: var(--shape-lg); }
.news-item__date { display: block; font-size: 0.8rem; font-weight: 600; color: var(--md-primary); margin-bottom: 8px; }
.news-item__title { font-size: 1.1rem; }
.news-item__body { margin: 0; color: var(--md-on-surface-variant); white-space: pre-line; }

/* Beta */
.beta__card {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(24px, 5vw, 56px); border-radius: var(--shape-xl); background: var(--md-surface-container-high);
}
.beta__emblem { width: clamp(110px, 16vw, 160px); height: auto; border-radius: 50%; }
.beta__body .body-lg { max-width: 38em; }

/* ---------- Forms (M3 outlined text fields) ---------- */
.form { display: grid; gap: 20px; margin-top: 8px; }
.form--inline { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; max-width: 580px; }
.form--inline .form__consent, .form--inline .form__status { grid-column: 1 / -1; }
.form--inline .btn--filled { height: 56px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 0.85rem; font-weight: 600; color: var(--md-on-surface-variant); }
.field__hint { margin: 0; color: var(--md-outline); font-size: 0.85rem; }
.field__error { margin: 0; color: var(--md-error); font-size: 0.85rem; }
.field__error:empty { display: none; }
.input {
  width: 100%; min-height: 56px; padding: 14px 16px; font: inherit; color: var(--md-on-surface);
  background: transparent; border: 1px solid var(--md-outline); border-radius: var(--shape-xs);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--md-outline); }
.input:hover { border-color: var(--md-on-surface); }
.input:focus { outline: none; border-color: var(--md-primary); box-shadow: inset 0 0 0 1px var(--md-primary); }
.input[aria-invalid="true"] { border-color: var(--md-error); box-shadow: inset 0 0 0 1px var(--md-error); }
textarea.input { resize: vertical; min-height: 150px; }
select.input {
  appearance: none; padding-right: 44px;
  background: url("../icons/arrow_downward.svg") no-repeat right 14px center / 20px;
}
.form__consent { margin: 0; color: var(--md-outline); font-size: 0.85rem; }
.form__status { margin: 0; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-success { color: var(--success); }
.form__status.is-error { color: var(--md-error); }

/* ---------- Inner pages ---------- */
.page-header { padding: calc(var(--top-bar-h) + clamp(40px, 7vw, 72px)) 0 24px; }
.page-header__title { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.01em; }
.page-header__lead { color: var(--md-on-surface-variant); font-size: 1.125rem; max-width: 38em; }
.page-header__meta { color: var(--md-outline); font-size: 0.9rem; margin: 0; }
.section-gap { margin-top: 48px; }
.page-center { min-height: 70vh; padding-bottom: var(--section-y); }
.page-404 .page-center { padding-top: calc(var(--top-bar-h) + 80px); }
.error-code { font-size: 4rem; font-weight: 900; color: var(--md-primary); margin: 0; line-height: 1; }

.legal { padding-bottom: var(--section-y); }
.legal__intro { padding: 20px 24px; border-radius: var(--shape-lg); background: var(--md-surface-container); font-size: 1.05rem; }
.legal__intro p:last-child { margin: 0; }
.legal__toc { margin: 32px 0 8px; }
.legal__toc-title { font-size: 0.9rem; color: var(--md-outline); font-weight: 600; }
.legal__toc ol { columns: 2; column-gap: 32px; padding-left: 1.3em; margin: 0; color: var(--md-outline); }
.legal__toc li { break-inside: avoid; padding: 3px 0; }
.legal__toc a { color: var(--md-on-surface-variant); text-decoration: none; }
.legal__toc a:hover { color: var(--md-primary); text-decoration: underline; }
.legal__section { margin-top: 40px; }
.legal__section h2 { font-size: 1.3rem; }
.legal__section p, .legal__section li { color: var(--md-on-surface-variant); line-height: 1.65; }
.legal__section strong, .legal__section em { color: var(--md-on-surface); }
.legal__section ul { padding-left: 1.3em; }
.legal__section li { margin-bottom: 0.4em; }

.faq { margin-bottom: 16px; }
.faq__item { border-radius: var(--shape-md); background: var(--md-surface-container-low); margin-bottom: 8px; }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative; font-weight: 700;
  border-radius: var(--shape-md);
}
.faq__item summary:hover { background: rgba(235, 225, 217, 0.05); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  background: var(--md-on-surface-variant); -webkit-mask: url("../icons/arrow_downward.svg") center / contain no-repeat;
  mask: url("../icons/arrow_downward.svg") center / contain no-repeat; transition: transform 0.2s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__item p { color: var(--md-on-surface-variant); padding: 0 20px 18px; margin: 0; }
.contact { padding-bottom: var(--section-y); }
.contact__direct { margin-top: 24px; color: var(--md-outline); }

.credits__section { padding-bottom: 16px; }
.credits__section:last-child { padding-bottom: var(--section-y); }
.table-wrap { overflow-x: auto; border-radius: var(--shape-lg); border: 1px solid var(--md-outline-variant); }
.credits-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.credits-table th, .credits-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--md-outline-variant); vertical-align: top; }
.credits-table th { color: var(--md-on-surface-variant); font-weight: 700; background: var(--md-surface-container); }
.credits-table tr:last-child td { border-bottom: 0; }
.credits-table td { color: var(--md-on-surface-variant); }
.credits-table td:first-child { color: var(--md-on-surface); }
.credits-other { color: var(--md-on-surface-variant); padding-left: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--md-surface-container-lowest); padding: 56px 0 32px; font-size: 0.92rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer__tagline { color: var(--md-on-surface-variant); margin: 14px 0 4px; }
.site-footer__note { color: var(--md-outline); font-size: 0.85rem; }
.site-footer__heading { font-size: 0.85rem; font-weight: 700; color: var(--md-outline); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--md-on-surface-variant); text-decoration: none; }
.site-footer ul a:hover { color: var(--md-primary); text-decoration: underline; }
.site-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--md-outline-variant); color: var(--md-outline); font-size: 0.82rem; }
.site-footer__bottom p { margin: 0 0 8px; }
.site-footer__version { margin-left: 8px; }
.site-footer__trademarks { max-width: 70em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__text { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  /* Phone: art on top as its own block, text below on a calm background so it stays readable. */
  .hero { display: block; min-height: 0; padding: var(--top-bar-h) 0 40px; }
  .hero__media { position: relative; display: block; height: auto; aspect-ratio: 4 / 3; margin-bottom: -48px; }
  .hero__media img { position: absolute; object-position: 58% 30%; }
  .hero::before { /* covers only the picture: dark under the top bar, fades into the page at the bottom */
    inset: var(--top-bar-h) 0 auto; aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, rgba(22, 19, 15, 0.5) 0%, rgba(22, 19, 15, 0) 20%, rgba(22, 19, 15, 0) 60%, var(--md-surface) 100%);
  }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn--filled { width: 100%; }
  .stores { justify-content: flex-start; }
  .feature-list { grid-template-columns: 1fr; }
  .feature { padding: 12px 0; }
  .feature:hover { background: none; }
  .device-stage { aspect-ratio: 16 / 11; }
  .device--laptop { left: 6%; width: 88%; }
  .device--tablet { width: 46%; left: 0; }
  .device--phone { width: 50%; right: 0; bottom: 6%; }
  .beta__card { grid-template-columns: 1fr; }
  .form--inline, .form__row { grid-template-columns: 1fr; }
  .form--inline .btn--filled { width: 100%; }
  .legal__toc ol { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Video (click-to-load YouTube, see assets/js/video.js) ---------- */
.icon--play_arrow { --icon: url("../icons/play_arrow.svg"); }
.btn--lg { height: 48px; padding: 0 24px; font-size: 0.95rem; }
.trailer { background: var(--md-surface-container-lowest); padding-bottom: clamp(32px, 5vw, 56px); }
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--shape-xl); background: #000; }
.video__poster, .video__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster { display: block; }
.video__poster[hidden] { display: none; }
.video__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease), filter 0.4s var(--ease); }
.video__poster:hover img, .video__poster:focus-visible img { transform: scale(1.02); filter: brightness(1.08); }
.video__button {
  /* Below centre: the demo poster has its title in the middle. */
  position: absolute; left: 50%; top: 80%; display: grid; place-items: center; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: var(--shape-full); background: var(--md-primary); color: var(--md-on-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); transition: transform 0.2s var(--ease);
}
.video__button .icon { width: 44px; height: 44px; margin-left: 4px; }
.video__poster:hover .video__button { transform: scale(1.06); }
.video__note { margin: 12px 4px 0; color: var(--md-outline); font-size: 0.85rem; }
.video-dialog {
  width: min(100vw - 32px, 1100px); max-width: none; padding: 0; border: 0; border-radius: var(--shape-xl);
  background: #000; color: var(--md-on-surface); overflow: visible;
}
.video-dialog::backdrop { background: rgba(10, 8, 6, 0.85); backdrop-filter: blur(4px); }
.video-dialog__close { position: absolute; top: -56px; right: 0; color: #fff; background: rgba(255, 255, 255, 0.08); }
.video-dialog__close:hover { background: rgba(255, 255, 255, 0.16); }
.video--dialog { border-radius: var(--shape-xl); }
@media (max-width: 640px) {
  .hero__actions .btn--lg { width: 100%; }
  .video__button { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .video__button .icon { width: 34px; height: 34px; }
}
