@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/roboto-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@property --look-top { syntax: '<color>'; inherits: true; initial-value: #196F54; }
@property --look-bottom { syntax: '<color>'; inherits: true; initial-value: #115A45; }

:root {
  color-scheme: light dark;
  --primary: #6942DC;
  --on-primary: #FFFFFF;
  --primary-container: #EAE2FF;
  --on-primary-container: #2B115E;
  --background: #F4EEFF;
  --surface: #F8F5FF;
  --card: #FFFFFF;
  --card-border: #E4DDE9;
  --text: #241633;
  --muted: #625A6B;
  --outline: #817989;
  --brand-a: #6840E4;
  --brand-b: #EA4D9A;
  --on-brand: #FFFFFF;
  --tag: #FFF8EA;
  --on-tag: #3A1D0A;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 20px;
  --r-panel: 28px;
  --gutter: max(clamp(16px, 5vw, 64px), env(safe-area-inset-left), env(safe-area-inset-right));
  --max: 1120px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #CEBCFF;
    --on-primary: #371475;
    --primary-container: #50309B;
    --on-primary-container: #EAE2FF;
    --background: #17121F;
    --surface: #2B2137;
    --card: #241B2E;
    --card-border: #49404F;
    --text: #F5EFF8;
    --muted: #D0C5D7;
    --outline: #9C91A5;
    --brand-a: #956AF6;
    --brand-b: #EA649A;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; background: var(--background); overflow-x: clip; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--background);
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 12px 16px; background: var(--card); color: var(--text);
  border-radius: var(--r-l); font-weight: 600;
}
.skip:focus { top: 12px; }

.wordmark { letter-spacing: -.012em; line-height: 1.25; white-space: nowrap; text-decoration: none; }
.wm-light { font-weight: 300; }
.wm-bold { font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  font-size: 16px; font-weight: 600; letter-spacing: .1px; line-height: 1.3;
  border: 0; border-radius: var(--r-l); cursor: pointer; text-decoration: none;
  transition: background-color .15s, filter .15s, transform 90ms;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-on-brand { background: #fff; color: #6942DC; }
.btn-on-brand:focus-visible { outline-color: #fff; }

.text-btn { background: none; border: 0; padding: 12px 0; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: inherit; }

.label { font-size: 15px; font-weight: 600; letter-spacing: .1px; color: var(--primary); }

.section { padding: clamp(64px, 9vw, 112px) var(--gutter) 0; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; }
.section-head { display: grid; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 720px; }
.section-title { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
#doors-title:focus { outline: none; }
.section-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 54ch; }

.topbar {
  position: fixed; z-index: 50; inset: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: calc(60px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0;
  color: #fff;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.brand { font-size: 20px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; padding: 8px 0; }
.lang { margin-left: auto; font-weight: 600; font-size: 15px; min-width: 44px; min-height: 44px; display: grid; place-items: center; text-decoration: none; }
.topbar:not(.scrolled) :focus-visible { outline-color: #fff; }
.topbar.scrolled { background: color-mix(in srgb, var(--background) 92%, transparent); backdrop-filter: blur(12px); color: var(--text); box-shadow: 0 1px 0 var(--card-border); }
.topbar.scrolled .brand { opacity: 1; visibility: visible; }
.topbar.scrolled .wm-bold { color: var(--primary); }

.hero {
  position: relative; z-index: 2; min-height: max(100svh, 600px);
  display: flex; flex-direction: column; align-items: center;
  padding: calc(clamp(68px, 10svh, 112px) + env(safe-area-inset-top)) var(--gutter) max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(to bottom right, var(--brand-a), var(--brand-b));
  color: var(--on-brand); text-align: center;
}
.hero-text { display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 2svh, 20px); max-width: 860px; }
.hero h1 { font-size: clamp(36px, min(6vw, 8.6svh), 76px); line-height: 1.06; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.hero-sub { font-size: 24px; font-weight: 400; line-height: 1.3; max-width: 26ch; text-wrap: balance; }

.hero-sealy { position: relative; flex: 1; width: 100%; min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: clamp(16px, 3svh, 32px); }
#sealy-hero { position: relative; flex: 1; width: 100%; min-height: 0; pointer-events: none; will-change: transform; }
.sealy-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease-out; }
.sealy-layer.in { opacity: 1; }
.sealy-layer.off { visibility: hidden; }
.sealy-3d-host { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity .5s; }
.sealy-3d-host.on { visibility: visible; opacity: 1; }

.hero-water { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero > :not(.hero-water) { position: relative; z-index: 1; }
.grass { position: absolute; bottom: -2px; height: clamp(110px, 24svh, 240px); width: auto; fill: #fff; }
.grass-l { left: 0; }
.grass-r { right: 0; }
.blade { transform-box: fill-box; transform-origin: 50% 100%; animation: sway var(--d) ease-in-out var(--o) infinite alternate; }
@keyframes sway { from { transform: skewX(-3.5deg); } to { transform: skewX(3.5deg); } }
.bub {
  position: absolute; width: var(--s); height: var(--s); border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .34); background: radial-gradient(circle at 34% 30%, rgb(255 255 255 / .28), transparent 42%);
  animation: rise var(--d) linear var(--o) infinite;
}
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: .8; }
  50% { transform: translate3d(9px, -32svh, 0); }
  88% { opacity: .6; }
  100% { transform: translate3d(-5px, -64svh, 0); opacity: 0; }
}

.hero-invite { flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; }
.invite { font-size: 20px; font-weight: 700; line-height: 1.25; text-wrap: balance; text-shadow: 0 1px 8px rgb(70 20 130 / .5); }
.sealy-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; animation: still-in .4s 1.8s forwards; }
@keyframes still-in { to { opacity: 1; } }

.hero-wordmark { font-size: clamp(28px, 3vw, 34px); margin-top: clamp(4px, 1.4svh, 12px); }

.scroll-hint { flex: none; width: 44px; height: 44px; display: grid; place-items: center; color: var(--on-brand); margin-top: 2px; animation: drift 2.6s ease-in-out infinite; }
.scroll-hint:focus-visible { outline-color: #fff; }
.scroll-hint svg { width: 24px; height: 24px; }
@keyframes drift { 50% { transform: translateY(4px); } }

@media (max-width: 719px) { .hero-sub { font-size: 19px; font-weight: 700; max-width: 30ch; } }
@media (max-height: 700px) { .hero-sub { display: none; } }

@media (min-width: 1000px) and (min-aspect-ratio: 1/1), (max-height: 500px) and (min-aspect-ratio: 1/1) {
  .hero {
    height: max(100svh, 600px);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto auto;
    column-gap: 40px; text-align: left; justify-items: stretch; align-items: stretch;
    padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  }
  .hero-text { align-items: flex-start; align-self: end; grid-area: 1 / 1; }
  .hero-invite { align-items: flex-start; align-self: start; grid-area: 2 / 1; margin-top: clamp(16px, 2.6svh, 28px); }
  .invite { font-size: 24px; font-weight: 400; }
  .hero-sub { max-width: none; }
  .hero h1 { font-size: clamp(44px, min(4.7vw, 8.4svh), 68px); }
  .hero-sealy { min-height: 0; padding-top: 0; grid-area: 1 / 2 / 3 / 3; }
  #sealy-hero { flex: 0 1 auto; aspect-ratio: 1; width: auto; max-width: 100%; height: min(100%, 62svh); }
  .hero-wordmark, .scroll-hint { grid-column: 1 / -1; justify-self: center; }
}

.tour { position: relative; min-height: 100lvh; }
.tour-pin {
  position: relative; height: 100svh;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 20px;
  padding: calc(72px + env(safe-area-inset-top)) var(--gutter) max(16px, env(safe-area-inset-bottom));
  max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto;
}
.tour-stage { position: relative; min-height: 0; border-radius: var(--r-panel); background: linear-gradient(to bottom right, var(--brand-a), var(--brand-b)); padding: 12px; overflow: hidden; }
#tour-lottie { width: 100%; height: 100%; }
.tour-sheet { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tour-dots { display: flex; gap: 0; margin-inline: -8px; }
.tour-dot { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 2px; border: 0; background: none; cursor: pointer; }
.tour-dot i { display: block; width: 8px; height: 8px; border-radius: 8px; background: var(--outline); transition: width .3s var(--ease-out), background-color .3s; }
.tour-dot.on i { width: 24px; background: var(--primary); }
.tour-steps { display: grid; width: 100%; }
.tour-step { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.tour-step.active { opacity: 1; visibility: visible; }
.tour-step h3 { font-size: clamp(24px, 3vw, 40px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.tour-step p { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); max-width: 44ch; }
.tour-reply { margin-top: auto; }
.tour-skip { color: var(--primary); font-weight: 600; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }

@media (max-height: 640px) {
  .tour-pin { padding-top: 66px; gap: 12px; padding-bottom: 6px; }
  .tour-step p { font-size: 15px; line-height: 1.4; }
  .tour-sheet { gap: 6px; }
}

@media (max-height: 500px) and (min-aspect-ratio: 1/1) {
  .hero { height: 100svh; min-height: 320px; padding-top: 12px; }
  .hero h1 { font-size: 30px; }
  .invite { font-size: 19px; font-weight: 700; }
  .hero-wordmark { font-size: 22px; margin-top: 0; }
  .scroll-hint { height: 32px; margin-top: 0; }
  #sealy-hero { height: 100%; }
}

@media (min-aspect-ratio: 1/1) and (min-width: 720px), (max-height: 500px) and (min-aspect-ratio: 1/1) {
  .tour-pin { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); padding-bottom: 32px; }
  .tour-stage { height: 100%; }
  .tour-reply { margin-top: auto; }
  .tour-step p { margin-bottom: 12px; }
}
@media (max-height: 500px) and (min-aspect-ratio: 1/1) {
  .tour-step h3 { font-size: 20px; }
  .tour-step p { font-size: 14px; }
  .tour-reply { min-height: 44px; padding-block: 8px; }
}

.tour-static { height: auto; padding: clamp(64px, 9vw, 112px) var(--gutter) 0; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; }
.tour-static .tour-pin { position: static; height: auto; display: block; padding: 0; max-width: none; }
.tour-static .label { margin-bottom: 20px; }
.tour-list { display: grid; gap: 16px; }
.tour-card { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-xl); padding: 16px; }
.tour-still { aspect-ratio: 600 / 480; width: 100%; background: linear-gradient(to bottom right, var(--brand-a), var(--brand-b)); border-radius: var(--r-l); }
.tour-card h3 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.tour-card p { color: var(--muted); margin-top: 6px; }
@media (min-width: 720px) {
  .tour-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.doors-panel {
  --look-on: #fff; --look-muted: #fff;
  display: grid; gap: 20px;
  padding: clamp(16px, 3vw, 40px);
  border-radius: var(--r-panel);
  background: linear-gradient(var(--look-top), var(--look-bottom));
  color: var(--look-on);
  transition: --look-top .4s, --look-bottom .4s;
}
.doors-side { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.look-art { width: min(44vw, 180px); aspect-ratio: 1; }
.look-chips { display: flex; gap: 6px; width: calc(100% + clamp(16px, 3vw, 40px) * 2); padding-inline: clamp(16px, 3vw, 40px); overflow-x: auto; scrollbar-width: none; }
.look-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px; border: 0;
  background: var(--card); color: var(--text);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.look-btn svg { width: 16px; height: 16px; fill: currentColor; }
.look-btn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.look-btn:focus-visible { outline-color: var(--look-on); }

.door-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 14px); }
.door-cell { position: relative; }
.door-cell:has(.ready) { z-index: 3; }
.door {
  position: relative; display: block; width: 100%; aspect-ratio: 1;
  padding: 0; border: 0; background: none; cursor: pointer;
  touch-action: manipulation; border-radius: 16%;
  transition: transform .18s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.door:active { transform: scale(.97); }
.door:focus-visible { outline-color: var(--look-on); }
.door-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; font-family: inherit; }
.door-sweep { animation: sweep 4.5s ease-in-out infinite; }
@keyframes sweep { 0% { transform: translateX(0); } 45%, 100% { transform: translateX(180px); } }

.door-opened { position: absolute; inset: 4%; border-radius: 14%; background: var(--frame); overflow: hidden; display: block; }
.door-photo { position: absolute; inset: 7%; border-radius: 9%; overflow: hidden; display: block; }
.door-photo .photo { width: 100%; height: 100%; }
.door-flap { position: absolute; inset: 0; width: 100%; height: 100%; }
.door-num {
  position: absolute; right: 7%; top: 7%; min-width: 30%; aspect-ratio: 1; padding: 0 2px;
  display: grid; place-items: center; font-weight: 700; font-size: clamp(10px, 2.9vw, 14px); line-height: 1;
  background: var(--tag); color: var(--on-tag); border-radius: 50%;
}
.door-check { position: absolute; right: 4%; bottom: 4%; width: 30%; height: 30%; }

.door-foot { display: grid; gap: 6px; margin-top: 16px; }
.door-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; min-height: 44px; }
.door-progress { height: 6px; background: color-mix(in srgb, var(--look-on) 28%, transparent); border-radius: 6px; overflow: hidden; --p: 0; }
.door-progress i { display: block; width: 100%; height: 100%; background: var(--look-on); transform-origin: 0 50%; transform: scaleX(var(--p)); transition: transform .4s var(--ease-out); }
.door-progress-label { font-weight: 600; font-size: 15px; }
.text-btn:focus-visible { outline-color: var(--look-on); }
.doors-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

@media (min-width: 720px) {
  .door-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .doors-panel { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: center; }
  .look-art { width: 100%; }
  .look-chips { flex-wrap: wrap; justify-content: center; width: 100%; padding: 0; overflow: visible; }
}

.popper {
  position: fixed; z-index: 45; left: 50%; bottom: 16px; translate: -50% 0;
  width: min(calc(100vw - 24px), 440px);
  display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 8px;
  padding: 8px 16px 8px 8px; border-radius: var(--r-xl);
  background: var(--card); color: var(--text); border: 1px solid var(--card-border);
  box-shadow: 0 16px 40px rgb(30 10 60 / .22);
  cursor: pointer;
  animation: toast-in .28s var(--ease-out) both;
}
.popper.gone { animation: toast-out .18s ease-in both; pointer-events: none; }
.popper-art { width: 88px; height: 88px; border-radius: var(--r-m); overflow: hidden; background: linear-gradient(to bottom right, var(--brand-a), var(--brand-b)); }
.popper-text { font-size: 15px; font-weight: 500; line-height: 1.35; text-wrap: pretty; }
@keyframes toast-in { from { transform: translateY(16px); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(16px); opacity: 0; } }

.reveal-dialog {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0;
  border: 0; padding: 0; background: var(--card); color: var(--text); overflow: hidden;
}
.reveal-dialog[open] { display: flex; flex-direction: column; animation: reveal-in .24s var(--ease-out); }
.reveal-dialog::backdrop { background: rgb(20 8 40 / .55); }
@keyframes reveal-in { from { opacity: 0; transform: translateY(10px); } }
.reveal-dialog h2 { grid-area: title; font-size: 22px; font-weight: 700; letter-spacing: -.2px; color: var(--on-brand); }
.reveal-stage {
  position: relative; flex: 1; min-height: 0;
  display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: 'title' 'art';
  justify-items: center; align-items: center; gap: 8px;
  padding: max(20px, env(safe-area-inset-top)) 20px 20px;
  background: linear-gradient(to bottom right, var(--brand-a), var(--brand-b));
}
.reveal-lottie { grid-area: art; width: min(100%, 42dvh); aspect-ratio: 1; transition: opacity .3s; }
.reveal-stage.landed .reveal-lottie { opacity: 0; }
.reveal-photo {
  grid-area: art; z-index: 2; width: min(100%, 420px); aspect-ratio: 4 / 3;
  background: #fff; padding: 8px; border-radius: var(--r-l);
  box-shadow: 0 16px 40px rgb(20 0 40 / .28);
  opacity: 0; transform: translateY(12px) scale(.97);
}
.reveal-stage.landed .reveal-photo { opacity: 1; transform: none; transition: transform .45s var(--ease-out), opacity .3s; }
.reveal-photo .photo { width: 100%; height: 100%; border-radius: 10px; }
.reveal-skip { position: absolute; bottom: 12px; left: 50%; translate: -50% 0; white-space: nowrap; font-size: 14px; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: var(--card); color: var(--text); }
.reveal-sheet { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 20px 20px max(20px, env(safe-area-inset-bottom)); }
.reveal-sheet p { color: var(--muted); max-width: 40ch; }
@media (min-width: 720px) {
  .reveal-dialog { width: min(520px, 92vw); height: min(680px, 92dvh); margin: auto; border-radius: var(--r-panel); }
}

.feature-grid { display: grid; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-xl); padding: 24px; display: grid; gap: 8px; align-content: start; }
.card-icon { width: 44px; height: 44px; border-radius: var(--r-m); background: var(--primary-container); color: var(--on-primary-container); display: grid; place-items: center; margin-bottom: 8px; }
.card-icon svg { width: 22px; height: 22px; fill: currentColor; }
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -.2px; line-height: 1.3; }
.card p { color: var(--muted); font-size: 16px; }
@media (min-width: 620px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1040px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 20px 10px 16px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-l); flex: 1 1 200px; max-width: 280px; }
.store svg { width: 26px; height: 26px; fill: var(--muted); flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.25; }
.store small { color: var(--muted); font-size: 13px; font-weight: 500; }
.store b { font-size: 17px; font-weight: 600; }
.creators { margin-top: 24px; font-size: 15px; color: var(--muted); }
.creators a { color: var(--primary); font-weight: 600; }
.ph-tag { display: inline-block; font-size: 13px; font-weight: 500; padding: 0 8px; border-radius: 8px; border: 1px solid var(--outline); color: var(--muted); }

.footer {
  margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--card-border);
  padding: 28px var(--gutter) calc(76px + env(safe-area-inset-bottom)); display: grid; gap: 4px 24px; align-items: center; font-size: 14px; color: var(--muted);
}
.footer .wordmark { font-size: 20px; color: var(--text); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text); font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 720px) { .footer { grid-template-columns: auto 1fr auto; } }

.noscript { background: var(--card); padding: 16px; margin: 16px; border-radius: 16px; }

.legal { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 88px var(--gutter) 40px; }
.legal article { background: var(--card); border-radius: var(--r-xl); padding: 28px; max-width: 680px; width: 100%; border: 1px solid var(--card-border); display: grid; gap: 14px; justify-items: start; }
.legal h1 { font-size: 30px; font-weight: 700; letter-spacing: -.3px; line-height: 1.15; }
.legal h2 { font-size: 17px; font-weight: 700; margin-top: 8px; }
.legal p { color: var(--muted); }
.legal a:not(.brand, .lang) { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes reveal-up { from { opacity: 0; transform: translateY(14px); } }
  }
}
.reveal-js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s var(--ease-out); }
.reveal-js .reveal.in { opacity: 1; transform: none; }

@media (hover: hover) {
  .btn-primary:hover { filter: brightness(1.08); }
  .btn-on-brand:hover { background: #F4EEFF; }
  .lang:hover, .tour-skip:hover { text-decoration: underline; text-underline-offset: 3px; }
  .door:hover { transform: translateY(-2px); }
}

.surface {
  position: fixed; z-index: 44; right: var(--gutter); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 10px;
  border-radius: 999px; background: var(--card); color: var(--text); border: 1px solid var(--card-border);
  box-shadow: 0 6px 20px rgb(30 10 60 / .12); font-size: 14px; font-weight: 600; text-decoration: none;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.surface svg { width: 18px; height: 18px; color: var(--primary); }
@media (max-width: 380px) {
  html[lang="en"] .surface { width: 44px; padding: 0; justify-content: center; }
  html[lang="en"] .surface span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
html.past-hero:not(.diving) .surface { opacity: 1; visibility: visible; }
html:has(#popper:not([hidden]):not(.gone)) .surface { opacity: 0; visibility: hidden; }
.surface-veil { position: fixed; inset: 0 0 auto; height: 100lvh; z-index: 70; pointer-events: none; background: linear-gradient(to bottom right, var(--brand-a), var(--brand-b)); }

html.diving { overscroll-behavior: none; }
html.diving .hero { z-index: 60; }
html.diving .hero-sealy { z-index: 5; }
#sealy-hero::before { content: ''; position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(closest-side, rgb(70 30 150 / .3), transparent); opacity: 0; transition: opacity .25s; }
#sealy-hero.in-flight::before { opacity: 1; }
.stage-ring, .stage-flash, .stage-bubble { position: absolute; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); }
.stage-ring { border: 3px solid rgb(255 255 255 / .85); }
.stage-flash { background: radial-gradient(closest-side, rgb(255 255 255 / .7), transparent 60%); }
.stage-bubble { border: 1px solid rgb(255 255 255 / .75); background: radial-gradient(circle at 34% 30%, rgb(255 255 255 / .5), transparent 45%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
  .sealy-still { opacity: 1; }
}
