/* ==========================================================================
   Reels Basically — styles.css
   Mobile-first. Tokens first, then base, layout, components, sections.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg: #F4F2EC;
  --ink: #111110;
  --accent: #E8481C;          /* large text, decoration, shadows */
  --accent-strong: #C93A12;   /* fills under small white text (WCAG AA) */
  --accent-hover: #B3330F;
  --muted: #5B5953;
  --muted-2: #8E8B82;         /* decorative only: fails AA for small text on --bg */
  --line: #DEDBD2;
  --card: #FFFFFF;
  --dark-muted: #B9B6AD;
  --dark-line: #3A3936;
  --wa: #25D366;
  --header-bg: rgba(244, 242, 236, 0.92);

  --font-display: "Bricolage Grotesque", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1240px;
  --gutter: 20px;
  --header-h: 64px;

  --r-pill: 999px;
  --r-card: 26px;
  --r-frame: 22px;
  --r-panel: 36px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .18s;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 18px;
  border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- 3. Type primitives ---------- */
.display, .section-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: .95;
}
.section-title { font-size: clamp(40px, 6vw, 72px); }
.mono, .eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow { color: var(--muted); margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 560px; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border: 2px solid transparent; border-radius: var(--r-pill);
  font: 600 16px/1.2 var(--font-body); text-align: center; text-decoration: none;
  cursor: pointer; background: transparent;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.btn .i { flex: none; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
}
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.btn-lg { min-height: 64px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-accent { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-outline-light { border-color: var(--bg); color: var(--bg); }
.btn-outline-light:hover, .btn-outline-light[aria-expanded="true"] { background: var(--bg); color: var(--ink); }
.btn-light { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: var(--ink); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.logo-mark { flex: none; }
.logo-word { font: 800 19px/1 var(--font-display); letter-spacing: -0.03em; white-space: nowrap; }
.site-nav { display: none; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-weight: 500; font-size: 15px; text-decoration: none; border-radius: var(--r-pill);
}
.nav-links a:hover { background: rgba(17, 17, 16, .06); }
@media (min-width: 760px) {
  .site-nav { display: block; margin-left: auto; }
  .site-nav + .btn { margin-left: 8px; }
}

/* ---------- 6. Sections ---------- */
.section { padding-block: 72px; }
.section-dark { background: var(--ink); color: var(--bg); }
.section-dark .eyebrow, .section-dark .section-sub { color: var(--dark-muted); }
.center-head { text-align: center; }
.center-head .section-sub { margin-inline: auto; }
.noscript-note { color: inherit; padding: 24px 0; }
@media (min-width: 760px) { .section { padding-block: 104px; } }

/* ---------- 7. Hero ---------- */
.hero { padding: 36px 0 72px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--card); color: var(--muted); font-size: 11px;
}
.eyebrow-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero-title { font-size: clamp(52px, 8vw, 104px); line-height: .92; margin-top: 24px; }
.hero-title span { display: block; }
.accent { color: var(--accent); }
.hero-sub { font-size: 19px; color: var(--muted); margin-top: 24px; max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-ctas .btn { flex: 1 1 auto; }
.trust { margin-top: 20px; font-size: 15px; color: var(--muted); }
.trust span { color: var(--ink); font-weight: 600; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; gap: 4%; padding: 8px 0 12px; }
.phone { width: 44%; max-width: 250px; }
.phone figcaption { margin-top: 16px; text-align: center; color: var(--muted); font-size: 11px; }
.phone .frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden;
  border: 5px solid var(--ink); background: var(--ink);
  container-type: inline-size;
}
.phone-raw .frame { transform: rotate(-4deg); }
.phone-edited .frame { transform: rotate(3deg); box-shadow: 0 28px 60px -18px rgba(232, 72, 28, .6); }
.hero-arrow {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; box-shadow: 0 0 0 5px var(--bg);
}
.frame video { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
  .hero { padding: 64px 0 104px; }
  .hero-grid { grid-template-columns: 1.5fr 1fr; gap: 40px; }
  /* Keep the three-line H1 beside the visual: cap by column width, not just viewport */
  .hero-title { font-size: clamp(52px, 6vw, 104px); }
  .hero-title span { white-space: nowrap; }
  .hero-ctas .btn { flex: 0 0 auto; }
  .hero-arrow { width: 60px; height: 60px; }
}

/* ---------- 8. Placeholders (raw / edited) ---------- */
.ph { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; padding: 7cqi; container-type: inline-size; }
.ph-person { position: absolute; left: 50%; bottom: 0; width: 64%; height: 58%; transform: translateX(-50%); pointer-events: none; }
.ph-person::before, .ph-person::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); }
.ph-person::before { top: 0; width: 46%; aspect-ratio: 1; border-radius: 50%; }
.ph-person::after { bottom: 0; width: 100%; height: 52%; border-radius: 48% 48% 0 0; }

.ph-raw { background: #2B2A28; color: #fff; }
.ph-raw .ph-person::before, .ph-raw .ph-person::after { background: #3A3936; }
.ph-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; font: 500 7cqi/1 var(--font-mono); letter-spacing: .06em; }
.ph-rec { display: inline-flex; align-items: center; gap: 2.5cqi; }
.ph-rec i { width: 4.5cqi; height: 4.5cqi; border-radius: 50%; background: #FF3B30; animation: rec 1.2s steps(1) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.ph-um {
  position: relative; z-index: 1; margin-top: auto;
  font: italic 400 7.5cqi/1.3 var(--font-body); color: rgba(255, 255, 255, .66);
}

.ph-edited { background: var(--tone, var(--accent)); color: var(--ink); }
.ph-edited .ph-person::before, .ph-edited .ph-person::after { background: rgba(0, 0, 0, .18); }
.ph-bar { position: relative; z-index: 1; display: block; height: 1.8cqi; min-height: 3px; border-radius: 9px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.ph-bar i { display: block; height: 100%; background: #fff; border-radius: inherit; }
.ph-caps { position: relative; z-index: 1; margin-top: auto; margin-bottom: 14cqi; display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5cqi; }
.cap {
  font: 800 9cqi/1 var(--font-display); letter-spacing: -0.02em;
  background: #fff; color: var(--ink); padding: 2.4cqi 3.6cqi; border-radius: 2.5cqi;
}
.cap-hi { background: var(--ink); color: #fff; }
.ph-len {
  position: absolute; z-index: 1; top: 12cqi; right: 7cqi;
  font: 500 6cqi/1 var(--font-mono); color: #fff; background: rgba(17, 17, 16, .72);
  padding: 2cqi 3cqi; border-radius: 9px;
}

/* ---------- 9. Showcase ---------- */
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; margin-top: 48px; }
.sc-card { min-width: 0; }
.sc-frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-frame); overflow: hidden;
  background: #222120; container-type: inline-size; -webkit-tap-highlight-color: transparent;
  border: 1px solid var(--dark-line);
}
.sc-frame.has-video { cursor: pointer; }
.sc-layer { position: absolute; inset: 0; transition: opacity .2s ease, visibility 0s linear 0s; }
.sc-layer video { width: 100%; height: 100%; object-fit: cover; background: #222120; }
.sc-frame[data-mode="edited"] .sc-raw,
.sc-frame[data-mode="raw"] .sc-edited { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.sc-sound {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(17, 17, 16, .72); color: #fff;
}
.sc-sound .on { display: none; }
.sc-sound[aria-pressed="true"] .on { display: block; }
.sc-sound[aria-pressed="true"] .off { display: none; }
.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 16px;
  padding: 4px; border-radius: var(--r-pill); background: var(--bg);
}
.seg button {
  min-height: 44px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: transparent; color: var(--ink); font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background-color .2s, color .2s;
}
.seg button small { font: 500 11px/1 var(--font-mono); color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button[aria-pressed="true"] small { color: var(--dark-muted); }
.sc-title { font: 700 20px/1.15 var(--font-display); letter-spacing: -0.02em; margin-top: 18px; }
.sc-desc { color: var(--dark-muted); font-size: 15px; margin-top: 4px; }

/* ---------- 10. What You Get ---------- */
.get-grid {
  display: grid; gap: 2px; margin-top: 48px;
  background: var(--line); border: 2px solid var(--line); border-radius: 24px; overflow: hidden;
}
.get-cell { background: var(--bg); padding: 28px 24px 32px; }
.get-num { color: var(--muted); }
.get-cell h3 { font: 700 24px/1.1 var(--font-display); letter-spacing: -0.02em; margin: 28px 0 8px; color: var(--ink); }
.get-cell p { color: var(--muted); font-size: 16px; }
@media (min-width: 640px) {
  .get-grid { grid-template-columns: 1fr 1fr; }
  .get-cell:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .get-grid { grid-template-columns: repeat(5, 1fr); }
  .get-cell:last-child { grid-column: auto; }
  .get-cell h3 { margin-top: 56px; }
}

/* ---------- 11. Pricing ---------- */
.pricing-title { font-size: clamp(44px, 7vw, 88px); line-height: .92; }
.price-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 56px; align-items: stretch;
}
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-card);
  padding: 32px 26px 26px;
}
.price-n { color: var(--muted); }
.price { font-size: clamp(64px, 7vw, 76px); line-height: .9; margin-top: 18px; }
.per { margin-top: 10px; font-weight: 600; color: var(--muted); }
.blurb { margin: 18px 0 28px; font-size: 16px; }
.price-card .btn { margin-top: auto; }
.price-card.is-popular { background: var(--ink); color: var(--bg); box-shadow: 0 30px 60px -30px rgba(17, 17, 16, .55); }
.price-card.is-popular .price-n, .price-card.is-popular .per { color: var(--dark-muted); }
.badge {
  position: absolute; top: 0; left: 26px; transform: translateY(-50%);
  background: var(--accent-strong); color: #fff; font-size: 11px;
  padding: 8px 14px; border-radius: var(--r-pill);
}
@media (min-width: 600px) and (max-width: 919px) {
  .price-grid { grid-template-columns: 1fr 1fr; }
  .price-card:nth-child(3) { grid-column: 1 / -1; }
}
@media (min-width: 920px) {
  .price-card { padding: 40px 32px 32px; }
  .price-card.is-popular { margin-block: -16px; padding-top: 56px; }
}

/* ---------- 12. How It Works ---------- */
.how { background: var(--accent-strong); color: #fff; padding-block: 80px; }
.how .section-title span { display: block; }
.how .ink { color: var(--ink); }
.steps { display: grid; gap: 36px 28px; margin-top: 56px; }
.steps li { border-top: 2px solid #fff; padding-top: 20px; }
.step-num { font-size: 56px; line-height: 1; color: var(--ink); }
.steps h3 { font: 700 24px/1.15 var(--font-display); letter-spacing: -0.02em; margin: 18px 0 8px; }
.steps p { font-size: 16px; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .how { padding-block: 112px; } .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 13. Why ---------- */
.why-grid { display: grid; gap: 48px; }
.why-title { font-size: clamp(36px, 5vw, 60px); line-height: .98; }
.why-lead { font-size: 20px; color: var(--muted); margin-top: 24px; }
.why-punch { color: var(--accent); font-size: 30px; font-weight: 700; line-height: 1.1; margin-top: 20px; }
.why-list li {
  display: flex; align-items: center; gap: 16px; padding: 20px 0;
  border-bottom: 2px solid var(--line);
  font: 500 22px/1.2 var(--font-display); letter-spacing: -0.02em;
}
.why-list li:first-child { border-top: 2px solid var(--line); }
.why-list svg { flex: none; }
@media (min-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }

/* ---------- 14. More Work rail ---------- */
.more-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.more-tools { display: flex; align-items: center; gap: 10px; }
.swipe-hint { color: var(--muted); padding-bottom: 6px; }
.rail-btn {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  place-items: center; transition: background-color var(--t-fast), color var(--t-fast);
}
.rail-btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail {
  display: flex; gap: 16px; margin-top: 36px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 6px max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))) 10px;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -2px; }
.tile {
  flex: 0 0 220px; scroll-snap-align: start; padding: 0; border: 0; background: none;
  text-align: left; cursor: pointer; color: var(--ink); border-radius: var(--r-frame);
}
.tile-media {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--r-frame);
  overflow: hidden; background: var(--tone, var(--ink)); container-type: inline-size;
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-chip {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(17, 17, 16, .72); padding: 7px 10px; border-radius: var(--r-pill);
}
.tile-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; transition: transform var(--t-fast) var(--ease);
}
.tile:hover .tile-play { transform: translate(-50%, -50%) scale(1.08); }
.tile-name { display: block; font: 700 18px/1.2 var(--font-display); letter-spacing: -0.02em; margin-top: 12px; }
@media (min-width: 760px) {
  .tile { flex-basis: 250px; }
  .rail-btn { display: grid; }
}

/* ---------- 15. Modal player ---------- */
.player {
  padding: 0; border: 0; background: transparent; color: #fff;
  width: min(92vw, calc((100dvh - 120px) * 9 / 16), 460px); max-width: none; max-height: none; overflow: visible;
}
.player::backdrop { background: rgba(17, 17, 16, .88); }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.player-title { font: 700 18px/1.2 var(--font-display); letter-spacing: -0.02em; }
.player-close {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff;
  background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center;
}
.player-frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-frame); overflow: hidden; background: #000; container-type: inline-size; }
.player-frame video { width: 100%; height: 100%; object-fit: contain; }

/* ---------- 16. Order / Contact panel ---------- */
.order { padding: 12px; }
.order-panel { background: var(--ink); color: var(--bg); border-radius: var(--r-panel); padding: 56px 20px; }
.order-grid { max-width: calc(var(--maxw) - 2 * var(--gutter)); margin-inline: auto; display: grid; gap: 48px; }
.order-sub { color: var(--dark-muted); font-size: 19px; margin-top: 20px; }
.order-copy hr { border: 0; border-top: 1px solid var(--dark-line); margin: 36px 0 24px; }
.order-q { font-weight: 600; font-size: 18px; margin-bottom: 16px; }
.contact-options { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s var(--ease), opacity .3s var(--ease); }
.has-js .contact-options:not(.is-open) { grid-template-rows: 0fr; opacity: 0; }
.contact-clip { overflow: hidden; min-height: 0; }
.contact-inner { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 16px; }
.step-label { color: var(--dark-muted); margin-bottom: 14px; }
.picker { display: grid; gap: 12px; margin-bottom: 32px; }
.pick-row {
  position: relative; display: flex; align-items: center; gap: 16px;
  min-height: 72px; padding: 14px 22px; border: 2px solid var(--dark-line); border-radius: 22px;
  cursor: pointer; transition: background-color .2s, border-color .2s;
}
.pick-row:hover { border-color: var(--dark-muted); }
.pick-row input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pick-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; }
.pick-name { font: 700 22px/1.1 var(--font-display); letter-spacing: -0.02em; }
.pick-per { margin-left: auto; color: var(--dark-muted); text-transform: none; letter-spacing: .02em; }
.pick-row.is-checked { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.pick-row.is-checked .pick-per { color: #fff; }
.pick-row.is-checked .pick-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.pick-row:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.order-note { margin-top: 14px; color: var(--dark-muted); font-size: 14px; text-align: center; }
.order-flow .btn-accent { white-space: normal; }
@media (min-width: 900px) {
  .order-panel { padding: 88px 56px; }
  .order-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
}

/* ---------- 17. Footer ---------- */
.site-footer { padding: 56px 0 calc(112px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 40px; }
.footer-tag { font: 500 18px/1.3 var(--font-display); margin-top: 14px; }
.footer-copy { color: var(--muted); font-size: 14px; margin-top: 10px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-h { color: var(--muted); margin-bottom: 8px; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.site-footer a:hover { text-decoration: underline; }
@media (min-width: 760px) {
  .site-footer { padding-bottom: 56px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
}

/* ---------- 18. Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 20px;
  background: var(--accent-strong); color: #fff; border-radius: var(--r-pill);
  font-weight: 600; font-size: 17px; text-decoration: none;
  box-shadow: 0 14px 34px -10px rgba(17, 17, 16, .45);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.sticky-cta.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }
@media (min-width: 760px) { .sticky-cta { display: none; } }

/* ---------- 19. Legal + 404 pages ---------- */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: calc(680px + 2 * var(--gutter)); }
.legal h1 { font: 800 clamp(40px, 6vw, 64px)/.95 var(--font-display); letter-spacing: -0.03em; }
.legal .updated { color: var(--muted); margin-top: 14px; }
.legal h2 { font: 700 24px/1.2 var(--font-display); letter-spacing: -0.02em; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 18px; line-height: 1.6; }
.legal p + p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.legal mark { background: rgba(232, 72, 28, .16); color: var(--ink); padding: 0 4px; border-radius: 4px; }
.notice {
  margin-top: 28px; padding: 18px 20px; border: 2px dashed var(--accent-strong); border-radius: 18px;
  font-size: 16px; background: var(--card);
}
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .big { font: 800 clamp(120px, 26vw, 240px)/.85 var(--font-display); letter-spacing: -0.05em; color: var(--accent); }
.notfound h1 { font: 800 clamp(32px, 5vw, 52px)/1 var(--font-display); letter-spacing: -0.03em; margin-top: 20px; }
.notfound p { color: var(--muted); font-size: 18px; margin: 16px auto 32px; max-width: 40ch; }
.subpage .site-footer { padding-bottom: 56px; }

/* ---------- 20. Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
  .btn:hover, .tile:hover .tile-play { transform: none; }
}
