/* Pasrel+ — lagoon theme shared with the Domino lang game: sand, teal lagoon, cream cards,
   kreol orange / French blue, and the five domain colours of the Miroir. */
:root {
  --sky: #eef6ef;
  --cream: #fbf6ea;
  --card: #fffdf7;
  --white: #ffffff;
  --sand: #f3dcae;
  --sand-deep: #e4c48b;
  --lagoon: #1e9aa0;
  --lagoon-deep: #0f6c72;
  --lagoon-ink: #0b4a4f;
  --sage: #7fae9a;
  --ink: #1f2a2b;
  --muted: #56645f;
  --line: rgba(31, 42, 43, .12);
  --kreol: #c2410c;
  --kreol-soft: #fde7d8;
  --fr: #1d4ed8;
  --fr-soft: #e0e8fd;
  --gold: #f2c14e;
  --gold-2: #e0a526;
  --plum: #2a2342;
  --plum-2: #8a2d5c;
  --ok: #15803d;
  /* domains, tuned for light backgrounds */
  --d-sons: #0d9488;
  --d-det: #db2777;
  --d-verbe: #7c3aed;
  --d-lex: #4d7c0f;
  --d-phrase: #ea580c;

  --display: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --r: 20px;
  --r-sm: 12px;
  --shadow: 0 1px 0 rgba(31, 42, 43, .06), 0 10px 30px -12px rgba(15, 76, 80, .28);
  --shadow-lg: 0 2px 0 rgba(31, 42, 43, .06), 0 30px 60px -24px rgba(15, 76, 80, .45);
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 17px/1.6 var(--body); overflow-x: hidden; overflow-wrap: break-word;
}
/* An image that is still loading (or fails) must never widen its column: some phone browsers
   render the alt text on one line, which used to stretch whole sections and zoom the page out. */
img { max-width: 100%; display: block; height: auto; overflow-wrap: anywhere; font-size: .8rem; color: var(--muted); }
.split-art img, .journal img, .band img, .island-bg img, .tide img, .arrival img { background: var(--sand); }
/* grid and flex children may shrink below their content's width, so nothing can push past the screen */
.split > *, .facts > *, .steps > *, .trio > *, .games-grid > *, .spaces > *, .offline > *, .trust > *,
.people > *, .roster > *, .timeline > *, .pledge-grid > *, .counters > *, .proof > *, .lane-stops > *,
.bonus-grid > *, .watch > *, .mirror-pairs > *, .play-tabs > *, .foot-in > *, .board > *, .person > * { min-width: 0; }
a { color: var(--fr); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
em { font-style: italic; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.center { text-align: center; }

/* ---------- buttons, chips, kickers ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 15px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-kr { background: var(--kreol); color: #fff; box-shadow: 0 6px 0 #8a2e08, 0 14px 24px -10px rgba(194, 65, 12, .6); }
.btn-kr:hover { box-shadow: 0 8px 0 #8a2e08, 0 18px 28px -10px rgba(194, 65, 12, .6); }
.btn-kr:active { transform: translateY(3px); box-shadow: 0 2px 0 #8a2e08; }
.btn-ghost { background: rgba(255, 253, 247, .82); color: var(--ink); border-color: var(--ink); backdrop-filter: blur(6px); }
.btn-light { background: var(--card); color: var(--ink); border-color: var(--card); }
.btn-sm { padding: 10px 16px; font-size: .92rem; box-shadow: 0 4px 0 #8a2e08; }

.kicker {
  font: 700 .82rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--plum-2); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.kicker-light { color: var(--gold); }
.kicker-gold { color: var(--gold); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font: 700 .82rem/1.2 var(--body); letter-spacing: .04em; color: var(--lagoon-ink);
  background: rgba(255, 253, 247, .85); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(6px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--kreol); box-shadow: 0 0 0 4px rgba(194, 65, 12, .18); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.chips li { font: 700 .86rem/1 var(--body); padding: 9px 14px; border-radius: 999px; background: var(--plum); color: #fff; }
.chips li:nth-child(2) { background: var(--plum-2); }
.chips li:nth-child(3) { background: var(--fr); }
.chips li:nth-child(4) { background: var(--gold); color: var(--ink); }
.fine { font-size: .86rem; color: var(--muted); line-height: 1.5; margin-top: 18px; }
.fine-light { color: rgba(255, 255, 255, .7); }
.pill { display: inline-block; font: 700 .78rem/1 var(--body); padding: 6px 10px; border-radius: 999px; background: var(--fr-soft); color: var(--fr); vertical-align: middle; }
.pill-ok { background: #dcfce7; color: var(--ok); }

/* ---------- scroll voyage ---------- */
/* sits on the nav's bottom edge; the boat rides just under it so it never covers the menu */
.voyage { position: fixed; top: var(--nav-h); left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.voyage-track { position: absolute; inset: 0; background: linear-gradient(90deg, var(--kreol), var(--gold) 50%, var(--fr)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.voyage-boat { position: absolute; top: 5px; left: calc(var(--p, 0) * (100% - 30px)); width: 30px; transition: opacity .3s; opacity: 0; filter: drop-shadow(0 2px 2px rgba(31, 42, 43, .25)); }
.voyage-boat.on { opacity: 1; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.solid { background: rgba(251, 246, 234, .9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav-in { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; color: var(--ink); }
.brand-word { font: 800 1.6rem/1 var(--display); letter-spacing: -.03em; }
.brand-plus {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 3px; border-radius: 9px;
  background: var(--gold); color: var(--ink); font: 800 1.3rem/1 var(--display); transform: rotate(-8deg);
  box-shadow: 0 3px 0 var(--gold-2);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .93rem; padding: 8px 12px; border-radius: 999px; transition: background .2s; }
.nav-links a:hover, .nav-links a.on { background: rgba(31, 42, 43, .08); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(720px, 100svh); overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* soft morning haze behind the headline so the copy stays readable over sky and water */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 62% 70% at 78% 30%, rgba(246, 250, 240, .9) 0%, rgba(246, 250, 240, .72) 42%, rgba(246, 250, 240, 0) 75%);
}
.hero-anim { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-copy, .hero-sand { position: relative; z-index: 1; }
.route { width: 100%; height: 100%; display: block; }
.route-line { fill: none; stroke: #fffdf7; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 18; opacity: .95; }
.route-stops circle { fill: #f2c14e; stroke: #fffdf7; stroke-width: 4; }
.route-stops circle:first-child { fill: var(--kreol); }
.route-stops circle:last-child { fill: var(--fr); }
.route-pin rect { fill: var(--plum); }
.route-pin-fr rect { fill: var(--fr); }
.route-pin text { fill: #fff; font: 800 22px var(--display); text-anchor: middle; }
.route-boat { filter: drop-shadow(0 6px 4px rgba(11, 74, 79, .35)); }

.hero-copy {
  align-self: start; justify-self: end; width: min(600px, 48vw);
  margin: calc(var(--nav-h) + 6vh) max(var(--gutter), 5vw) 0 0;
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; color: var(--lagoon-ink); }
.hero h1 .kr { color: var(--kreol); }
.hero h1 .fr { color: var(--fr); }
.hero .lede { font-size: 1.15rem; margin: 20px 0 26px; color: #23403f; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-sand { position: relative; padding: 28px var(--gutter) 3.5vh; }
.hero-sand-label {
  width: max-content; max-width: 100%; margin: 0 auto 14px; padding: 9px 18px; border-radius: 999px;
  background: var(--lagoon-ink); color: #fff; font-size: .95rem;
}
.hero-sand-label b { color: var(--gold); }
.domino-row { display: flex; justify-content: center; gap: 14px; }

.domino {
  flex: 0 0 auto; width: 150px; background: var(--card); border-radius: 14px; padding: 10px 12px 12px;
  border: 1px solid #eadfc7; box-shadow: 0 5px 0 #e2d4b4, 0 16px 22px -14px rgba(77, 58, 22, .45);
  display: grid; gap: 1px; text-align: left; animation: bob 5s ease-in-out infinite;
}
.domino:nth-child(2) { animation-delay: -1s; }
.domino:nth-child(3) { animation-delay: -2.2s; }
.domino:nth-child(4) { animation-delay: -3s; }
.domino:nth-child(5) { animation-delay: -4s; }
.domino hr { border: 0; border-top: 2px dashed #e4d7bb; width: 100%; margin: 6px 0; }
.domino .lab { font: 700 .62rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.domino .lab.kr { color: var(--kreol); }
.domino .lab.fr { color: var(--fr); }
.domino .txt { font: 700 1.02rem/1.2 var(--display); color: var(--ink); }
.domino.is-target { outline: 3px solid var(--gold); outline-offset: 3px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-7px) rotate(.6deg); } }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.sec-cream { background: var(--cream); }
.sec-white { background: var(--white); }
.sec-sand { background: linear-gradient(180deg, #f7e6c2 0, var(--sand) 100%); padding-top: clamp(110px, 13vw, 170px); }
.sec-lagoon { background: radial-gradient(ellipse at 20% 0%, #26aeb2 0, var(--lagoon) 35%, var(--lagoon-deep) 100%); color: #f2fbfa; }
.sec-plum { background: var(--plum); color: #f5f1ff; }
.head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.head-sub { font-size: 1.12rem; color: var(--muted); margin-top: 18px; }
.sec-lagoon .head-sub { color: #cdeeed; }
.h-small { font-size: 1rem; margin: 26px 0 12px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-rev { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.split-copy h2 { margin-bottom: 22px; }
.split-art { margin: 0; }
.split-art img { border-radius: var(--r); box-shadow: var(--shadow-lg); }
.split-art figcaption { font-size: .9rem; color: var(--muted); margin-top: 12px; padding-left: 4px; }
.art-square img { aspect-ratio: 1; object-fit: cover; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; }
.fact b { display: block; font: 800 2rem/1 var(--display); color: var(--lagoon-deep); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.fact span { font-size: .88rem; color: var(--muted); line-height: 1.35; display: block; }
.facts-sm .fact b { font-size: 1.6rem; }

/* ---------- mirror ---------- */
.mirror { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 28px; padding: clamp(18px, 3vw, 32px); backdrop-filter: blur(4px); }
.mirror-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.mirror-tabs button {
  font: 700 .95rem/1 var(--body); color: #e6f6f5; background: rgba(0, 0, 0, .18);
  border: 2px solid transparent; padding: 11px 16px 11px 12px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: background .2s;
}
.mirror-tabs button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--dc); box-shadow: 0 0 0 3px rgba(255, 255, 255, .7); }
.mirror-tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); }
.mirror-stage { --dc: var(--d-sons); }
.mirror-pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pair { background: var(--card); color: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 6px 0 rgba(0, 0, 0, .14); animation: flipin .5s cubic-bezier(.2, .8, .2, 1) both; }
.pair:nth-child(2) { animation-delay: .08s; }
.pair:nth-child(3) { animation-delay: .16s; }
.pair-row { padding: 14px 18px; display: grid; gap: 4px; }
.pair-row + .pair-row { border-top: 2px dashed #e7dcc4; }
.pair-row small { font: 700 .66rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.pair-kr small { color: var(--kreol); }
.pair-fr small { color: var(--fr); }
.pair-row span { font: 700 1.35rem/1.25 var(--display); }
.pair mark { background: color-mix(in srgb, var(--dc) 18%, transparent); color: var(--dc); border-bottom: 3px solid var(--dc); border-radius: 4px; padding: 0 3px; }
.mirror-note { margin: 22px 0 0; padding: 16px 20px; border-radius: 16px; background: rgba(0, 0, 0, .2); font-size: 1.04rem; color: #f2fbfa; border-left: 5px solid var(--dc); }
.mirror .fine { color: #bfe6e4; }
@keyframes flipin { from { opacity: 0; transform: translateY(14px) rotateX(-18deg); } to { opacity: 1; transform: none; } }

/* ---------- steps / trio ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 30px; border-top: 3px dashed var(--sand-deep); z-index: 0; }
.steps li { position: relative; z-index: 1; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.buoy { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sc); color: #fff; font: 800 1.2rem/1 var(--display); border: 4px solid var(--card); box-shadow: 0 0 0 2px var(--sc); margin: -2px 0 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.trio-item { padding: 22px 24px; background: var(--white); }
.trio-item + .trio-item { border-left: 1px solid var(--line); }
.trio-item h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--lagoon-deep); }
.trio-item p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- play ---------- */
.shore { position: absolute; inset: 0 0 auto 0; height: clamp(60px, 9vw, 120px); background: url("../assets/paintings/web/p10-separateur-seamless.webp") repeat-x center 58% / max(100%, 1600px) auto; }
.play { max-width: 1100px; margin: 0 auto; }
.play-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.play-tabs button {
  display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  background: rgba(255, 253, 247, .65); border: 2px solid transparent; border-radius: 18px; padding: 14px 18px;
  font: inherit; color: var(--ink); transition: background .2s, border-color .2s, transform .2s;
}
.play-tabs button:hover { transform: translateY(-2px); }
.play-tabs button[aria-selected="true"] { background: var(--card); border-color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.play-tabs b { display: block; font: 800 1.15rem/1.2 var(--display); }
.play-tabs small { color: var(--muted); font-size: .88rem; }
.play-ico { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--kreol); color: #fff; font-size: 1rem; letter-spacing: -2px; }
.play-tabs button:last-child .play-ico { background: var(--fr); }
.device { background: var(--ink); border-radius: 26px; padding: 10px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, .3); }
.device-bar { display: flex; align-items: center; gap: 7px; padding: 4px 8px 10px; color: #cfd8d6; font-size: .86rem; }
.device-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #e26d5a; }
.device-bar > span:nth-child(2) { background: #f2c14e; }
.device-bar > span:nth-child(3) { background: #5fc27e; }
.device-bar p { margin: 0 0 0 10px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-bar a { color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.device-screen { position: relative; border-radius: 18px; overflow: hidden; background: #123a35; height: clamp(560px, 78vh, 820px); }
.device-screen iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.device-screen iframe[hidden] { display: none; }
.device-start {
  position: absolute; inset: 0; border: 0; cursor: pointer; color: #fff; font: 800 1.4rem/1 var(--display);
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: linear-gradient(180deg, rgba(11, 74, 79, .25), rgba(11, 74, 79, .75)), url("../assets/paintings/web/p02-pont-domino-sm.webp") center / cover;
}
.play-btn { width: 88px; height: 88px; border-radius: 50%; background: var(--kreol); box-shadow: 0 6px 0 #8a2e08, 0 0 0 10px rgba(255, 255, 255, .25); position: relative; transition: transform .2s; }
.play-btn::after { content: ""; position: absolute; left: 35px; top: 26px; border-left: 28px solid #fff; border-top: 18px solid transparent; border-bottom: 18px solid transparent; }
.device-start:hover .play-btn, .film-play:hover .play-btn { transform: scale(1.06); }
.device-start[hidden] { display: none; }

/* ---------- films ---------- */
.sec-film { background: linear-gradient(180deg, #fbefe2 0%, var(--cream) 100%); padding-top: clamp(70px, 9vw, 120px); }
.head-center { margin-inline: auto; text-align: center; }
.head-center .kicker { justify-content: center; }
.film { margin: 0 auto; max-width: 1100px; }
.film-frame { position: relative; border-radius: 26px; overflow: hidden; background: #fbeee0; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); aspect-ratio: 16 / 9; }
.film-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.film-play {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: rgba(42, 35, 66, .08);
  /* bottom-centred so the button never sits on the title of the poster frame */
  display: grid; grid-auto-flow: column; place-content: end center; align-items: center; gap: 14px;
  padding-bottom: 4.5%; transition: background .25s;
}
.film-play:hover { background: rgba(42, 35, 66, .16); }
.film-play[hidden] { display: none; }
.film-len { font: 700 .86rem/1 var(--body); color: #fff; background: rgba(42, 35, 66, .78); padding: 8px 14px; border-radius: 999px; }
.film figcaption { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 14px; }
.watch { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; max-width: 1100px; margin: 0 auto clamp(48px, 6vw, 72px); }
.film-sm { max-width: none; }
.film-sm .film-frame { border-radius: 22px; background: #dff1ee; }
.film .play-btn { width: 72px; height: 72px; box-shadow: 0 5px 0 #8a2e08, 0 0 0 8px rgba(255, 255, 255, .3); }
.film .play-btn::after { left: 28px; top: 21px; border-left-width: 23px; border-top-width: 15px; border-bottom-width: 15px; }
.film .film-play { padding-bottom: 2.5%; }
.watch-copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 14px 0 10px; }
.watch-copy p { color: var(--muted); margin-bottom: 18px; }
.step-chip { display: inline-block; font: 700 .8rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: var(--kreol); color: #fff; }
.step-chip-fr { background: var(--fr); }

/* ---------- ludothèque ---------- */
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.game-card {
  position: relative; background: var(--card); border-radius: var(--r); padding: 22px 20px 20px; border: 1px solid var(--line);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.game-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--gc); }
.game-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.game-card h3 { font-size: 1.15rem; }
.game-card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.game-card .tag { font: 700 .76rem/1 var(--body); color: var(--gc); background: color-mix(in srgb, var(--gc) 10%, transparent); padding: 7px 10px; border-radius: 999px; align-self: flex-start; }
.game-card .badge { font: 700 .7rem/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: #fff; background: var(--ok); padding: 6px 9px; border-radius: 999px; align-self: flex-start; }
.game-card.is-live { background: linear-gradient(160deg, #fff7ef, var(--card)); border-color: #f5c9ad; }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: "✦"; position: absolute; left: 0; top: -1px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: .8rem; }

/* ---------- band ---------- */
.band { position: relative; min-height: clamp(460px, 62vw, 760px); display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.band picture, .band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.band-card { margin: 0 0 clamp(24px, 4vw, 48px) max(var(--gutter), 5vw); max-width: 420px; background: rgba(42, 35, 66, .88); color: #fff; border-radius: var(--r); padding: 24px 26px; backdrop-filter: blur(6px); }
.band-call { font: 800 2rem/1.1 var(--display); margin: 0 0 10px; color: var(--gold); }
.band-call span { color: #fff; }
.band-card p:last-child { margin: 0; color: #e6e1f5; }

/* ---------- board (12 cases) ---------- */
.board { display: grid; gap: 18px; position: relative; }
.lane { background: color-mix(in srgb, var(--lc) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--lc) 22%, transparent); border-radius: 26px; padding: 22px clamp(16px, 3vw, 30px) 26px; }
.lane-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 20px; font-weight: 700; color: var(--muted); }
.lane-tag { background: var(--lc); color: #fff; font: 800 .82rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 10px 18px; border-radius: 999px; }
.lane-stops { list-style: none; counter-reset: stop calc(var(--start, 1) - 1); padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; position: relative; }
.lane-stops::before { content: ""; position: absolute; left: 20px; right: 20px; top: 22px; border-top: 3px dashed color-mix(in srgb, var(--lc) 45%, transparent); }
.lane-stops li { position: relative; padding-top: 58px; }
.lane-stops li::before {
  content: attr(data-n); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lc); color: #fff; font: 800 1.15rem/1 var(--display);
  border: 4px solid var(--card); box-shadow: 0 0 0 2px var(--lc);
}
.lane-stops b { display: block; font: 700 1.05rem/1.25 var(--display); margin-bottom: 4px; }
.lane-stops span { display: block; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.opt { display: inline-block; margin-top: 8px; font: 700 .68rem/1 var(--body); font-style: normal; letter-spacing: .1em; text-transform: uppercase; background: var(--gold); color: var(--ink); padding: 6px 9px; border-radius: 999px; }
.board-end { justify-self: end; display: grid; justify-items: center; text-align: center; width: 150px; height: 150px; border-radius: 50%; background: var(--plum); color: #fff; place-content: center; outline: 2px dashed rgba(255, 255, 255, .5); outline-offset: -10px; margin-top: -8px; }
.board-end span { font: 700 .72rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #cfc6ea; }
.board-end b { font: 800 1.5rem/1.1 var(--display); margin: 6px 0 2px; }
.board-end small { font-size: .78rem; color: #cfc6ea; }
.bonus { margin-top: 36px; border: 2px dashed var(--sand-deep); border-radius: 26px; padding: clamp(18px, 3vw, 30px); }
.bonus h3 { font: 700 .86rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--plum-2); margin-bottom: 18px; }
.bonus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bonus-card { background: var(--card); border-radius: 16px; border: 1px solid var(--line); border-left: 5px solid var(--plum-2); padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.bonus-card:nth-child(even) { border-left-color: var(--gold-2); }
.bonus-card i { grid-column: 2; grid-row: 1; font: 800 .78rem/1 var(--body); font-style: normal; background: var(--plum-2); color: #fff; padding: 6px 9px; border-radius: 999px; align-self: start; }
.bonus-card b { grid-column: 1; grid-row: 1; font-family: var(--display); }
.bonus-card span { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; }

/* ---------- classe ---------- */
.spaces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: clamp(40px, 6vw, 70px) 0 22px; }
.space { background: var(--cream); border-radius: var(--r); padding: 22px; border-top: 6px solid var(--sc); }
.space h3 { margin-bottom: 8px; }
.space p { margin: 0; color: var(--muted); font-size: .95rem; }
.offline { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: stretch; }
.offline-col { background: var(--cream); border-radius: var(--r); padding: 22px 24px; }
.offline-col h3 { font-size: 1rem; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.offline-col ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; display: grid; gap: 4px; }
.qr-card { width: 240px; background: var(--card); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 16px; transform: rotate(2deg); }
.qr-top { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.brand-mini { font: 800 1.05rem/1 var(--display); color: var(--ink); }
.brand-mini b { color: var(--gold-2); }
.qr { display: grid; grid-template-columns: repeat(21, 1fr); aspect-ratio: 1; background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--line); }
.qr i { background: var(--ink); }
.qr-codes { display: flex; justify-content: space-between; font-size: .82rem; margin: 10px 0 8px; color: var(--muted); }
.qr-codes b { color: var(--ink); font-family: var(--display); }
.qr-card p { margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.4; }

/* ---------- sciences journal ---------- */
.journal { position: relative; margin: 0; container-type: inline-size; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); }
.jl {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 15.4%; height: 4.9%; display: grid; place-content: center; text-align: center; line-height: 1.05;
}
.jl b { font: 700 max(9px, 1.95cqw)/1.05 var(--display); color: var(--fr); }
.jl i { font: italic 700 max(8px, 1.75cqw)/1.05 var(--body); color: var(--kreol); }
.skills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { font: 700 .86rem/1 var(--body); padding: 9px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.skills li::before { content: "✓ "; color: var(--ok); }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust article { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r); padding: 24px 22px; }
.ti { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--gold); color: var(--plum); font: 800 1.3rem/1 var(--display); margin-bottom: 16px; }
.trust h3 { margin-bottom: 8px; color: #fff; }
.trust p { margin: 0; color: #d9d3ee; font-size: .95rem; }

/* ---------- islands ---------- */
.sec-island { min-height: 760px; display: grid; align-items: center; isolation: isolate; overflow: hidden; }
.island-bg, .island-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.island-card { max-width: 620px; background: rgba(255, 253, 247, .94); border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lg); backdrop-filter: blur(6px); }
.island-card h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 24px; }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.counters div { background: var(--sky); border-radius: 14px; padding: 14px 10px; text-align: center; }
.counters b { display: block; font: 800 2.2rem/1 var(--display); color: var(--lagoon-deep); }
.counters span { font-size: .8rem; color: var(--muted); line-height: 1.25; display: block; margin-top: 6px; }
.rod { font-size: .9rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; margin: 0; }

/* ---------- team ---------- */
.proof { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px 28px; align-items: start; background: var(--lagoon-ink); color: #fff; border-radius: 26px; padding: 28px clamp(20px, 3vw, 36px); margin-bottom: 26px; }
.proof div { border-left: 2px solid rgba(255, 255, 255, .14); padding-left: 16px; }
.proof div b { display: block; font: 800 clamp(1.7rem, 2.8vw, 2.4rem)/1.05 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; margin-bottom: 6px; }
.proof div span { display: block; font-size: .88rem; line-height: 1.35; color: #bfe6e4; }
.proof p { grid-column: 1 / -1; margin: 0; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, .18); color: #d7efee; font-size: .95rem; }
.people { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.person { background: var(--card); border-radius: var(--r); padding: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; gap: 16px; align-content: start; }
.person h3 { font-size: 1.1rem; }
.person .role { font-size: .84rem; font-weight: 700; color: var(--plum-2); margin: 4px 0 10px; }
.person p:last-child { margin: 0; color: var(--muted); font-size: .93rem; }
.avatar { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--kreol); color: #fff; font: 800 1.1rem/1 var(--display); transform: rotate(-4deg); }
.av-sci { background: var(--fr); transform: rotate(3deg); }
.roster { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.roster > div { background: var(--white); border-radius: var(--r); padding: 22px 24px; border: 1px solid var(--line); }
.roster h3 { margin-bottom: 12px; font-size: 1.05rem; }
.roster ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--muted); font-size: .95rem; }
.roster b { color: var(--ink); }

/* ---------- calendar ---------- */
.tide { margin: 0 0 8px; }
.tide img { width: 100%; height: clamp(160px, 24vw, 340px); object-fit: cover; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; position: relative; }
.timeline li { position: relative; background: var(--cream); border-radius: 16px; padding: 30px 14px 16px; }
.timeline li::before { content: ""; position: absolute; top: -12px; left: 14px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(180deg, #e0412f 0 52%, #fff 52%); border: 3px solid var(--white); box-shadow: 0 0 0 2px #e0412f; }
.timeline time sup { text-transform: lowercase; }
.timeline time { display: block; font: 700 .76rem/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--plum-2); margin-bottom: 6px; }
.timeline b { display: block; font: 800 1.08rem/1.2 var(--display); margin-bottom: 6px; }
.timeline span { font-size: .88rem; color: var(--muted); line-height: 1.4; display: block; }
.timeline li.hl { background: var(--ink); color: #fff; }
.timeline li.hl time { color: var(--gold); }
.timeline li.hl span { color: #cfd8d6; }

/* ---------- engagements ---------- */
.pledge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pledge-grid div { background: var(--white); border-radius: 16px; padding: 18px 20px; border: 1px solid var(--line); }
.pledge-grid b { display: block; font-family: var(--display); margin-bottom: 4px; }
.pledge-grid span { font-size: .92rem; color: var(--muted); }

/* ---------- arrival ---------- */
.arrival { position: relative; min-height: max(620px, 90svh); display: grid; place-items: start center; text-align: center; isolation: isolate; overflow: hidden; padding: clamp(80px, 12vh, 140px) var(--gutter) 0; }
.arrival picture, .arrival img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.arrival-copy { max-width: 720px; }
.arrival h2 { font-size: clamp(2.6rem, 6vw, 5rem); color: #fff; text-shadow: 0 3px 0 rgba(42, 35, 66, .3), 0 4px 24px rgba(42, 35, 66, .35); }
.arrival h2 span { color: var(--plum); display: block; text-shadow: none; }
.arrival p { color: var(--plum); font-weight: 700; font-size: 1.15rem; margin: 18px 0 26px; }
.arrival .hero-ctas { justify-content: center; }
.eyebrow-dark { background: rgba(42, 35, 66, .55); color: #fff; }

/* ---------- footer ---------- */
.foot { background: var(--plum); color: #d9d3ee; padding: 56px 0 calc(40px + env(safe-area-inset-bottom, 0px)); font-size: .92rem; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr; gap: 32px; }
.foot a { color: #fff; }
.brand-foot { color: #fff; margin-bottom: 12px; }
.foot-legal p { color: #b6aed2; font-size: .84rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 8px 9px; font-size: .88rem; }
  .games-grid, .spaces, .trust { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: 1fr 1fr; }
  .person-lead { grid-column: 1 / -1; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .offline { grid-template-columns: 1fr 1fr; }
  .qr-card { grid-column: 1 / -1; justify-self: center; }
  .proof { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-cta { display: none; }
  .nav-toggle {
    display: grid; gap: 6px; margin-left: auto; width: 46px; height: 46px; place-content: center;
    border-radius: 14px; border: 0; background: var(--card); box-shadow: var(--shadow); cursor: pointer;
  }
  .nav-toggle span { width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .25s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 12px; right: 12px; flex-direction: column; gap: 2px;
    background: var(--card); border-radius: 20px; padding: 10px; box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 13px 14px; font-size: 1rem; }
  .nav { background: rgba(251, 246, 234, .9); backdrop-filter: blur(12px); }

  .split, .split-rev { grid-template-columns: minmax(0, 1fr); }
  .split-rev .split-art, .split-rev .journal { order: 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .trio { grid-template-columns: 1fr; }
  .trio-item + .trio-item { border-left: 0; border-top: 1px solid var(--line); }
  .pledge-grid { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .bonus-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .watch { grid-template-columns: 1fr; }
  .film-frame { border-radius: 16px; }
  .play-btn { width: 64px; height: 64px; }
  .play-btn::after { left: 25px; top: 19px; border-left-width: 20px; border-top-width: 13px; border-bottom-width: 13px; }
  /* small corner button on phones so the poster's title stays readable */
  .film .film-play { place-content: end end; padding: 0 10px 10px 0; gap: 8px; background: transparent; }
  .film .play-btn { width: 46px; height: 46px; box-shadow: 0 3px 0 #8a2e08, 0 0 0 5px rgba(255, 255, 255, .35); }
  .film .play-btn::after { left: 18px; top: 13px; border-left-width: 15px; border-top-width: 10px; border-bottom-width: 10px; }
  .film-len { font-size: .74rem; padding: 6px 10px; order: -1; }
  /* Phone hero: copy on a calm background, then the whole painting as one uncropped scene
     (route and boat share its exact frame), then the domino cards on the painting's sand. */
  .hero { min-height: auto; grid-template-rows: auto auto auto; background: #f3f8ef; }
  .hero::before { display: none; }
  .hero-copy { grid-row: 1; justify-self: stretch; width: auto; margin: calc(var(--nav-h) + 22px) var(--gutter) 6px; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .hero .lede { font-size: 1.02rem; margin: 14px 0 20px; }
  .chips { gap: 6px; }
  .chips li { font-size: .78rem; padding: 8px 11px; }
  .hero-bg, .hero-anim { grid-row: 2; grid-column: 1; position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1768 / 1000; }
  .hero-bg { z-index: 0; background: linear-gradient(180deg, transparent 60%, #fdd993 60%); }
  .hero-bg img { z-index: 0; object-position: center; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 86%, transparent 100%); }
  .hero-anim { z-index: 1; }
  .route-line { stroke-width: 11; stroke-dasharray: 3 30; }
  .route-stops circle, .grow { transform-box: fill-box; }
  .route-stops circle { transform-origin: center; transform: scale(2.1); stroke-width: 3; }
  .grow { transform-origin: 50% 100%; transform: scale(2.2); }
  .hero-sand { grid-row: 3; padding: 2px 0 26px; background: #fdd993; }
  .voyage-boat { display: none; }
  .mirror-pairs { gap: 10px; }
  .pair { display: grid; grid-template-columns: 1fr 1fr; }
  .pair-row { padding: 12px 14px; }
  .pair-row + .pair-row { border-top: 0; border-left: 2px dashed #e7dcc4; }
  .pair-row span { font-size: 1.12rem; }
  .hero-sand-label { font-size: .86rem; margin-inline: var(--gutter); width: auto; text-align: center; }
  .domino-row { justify-content: flex-start; overflow-x: auto; padding: 4px var(--gutter) 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .domino-row::-webkit-scrollbar { display: none; }
  .domino { width: 138px; scroll-snap-align: center; }

  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .fact { padding: 12px; }
  .fact b { font-size: 1.45rem; }
  .fact span { font-size: .78rem; }
  .steps, .games-grid, .spaces, .trust, .people, .roster, .pledge-grid, .offline { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 22px; padding-left: 8px; }
  .play-tabs { grid-template-columns: 1fr; }
  .play-tabs small { display: none; }
  .device { padding: 6px; border-radius: 20px; }
  .device-bar > span { display: none; }
  .device-bar p { margin-left: 4px; }
  .device-screen { height: 78svh; border-radius: 14px; }
  .counters { grid-template-columns: 1fr 1fr; }
  .sec-island { min-height: 0; padding-top: 52vw; }
  .island-bg img { height: 70vw; object-position: center top; }
  .proof { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .proof div:first-child { grid-column: 1 / -1; }
  .proof div b { font-size: 1.6rem; }
  .board-end { justify-self: center; }
  .lane-stops { grid-template-columns: 1fr; }
  .lane-stops::before { left: 21px; right: auto; top: 20px; bottom: 20px; border-top: 0; border-left: 3px dashed color-mix(in srgb, var(--lc) 45%, transparent); }
  .lane-stops li { padding: 0 0 0 62px; min-height: 46px; }
  .band { min-height: 0; padding-top: 58vw; align-items: stretch; }
  .band img { height: 64vw; }
  .band-card { margin: 0; max-width: none; border-radius: 0; }
  .qr-card { transform: none; }
  .arrival { min-height: 560px; }
}

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