/* ==========================================================================
   MIRACLE GROUP — Styles
   Hero : couleurs animées (@property) selon la filiale active.
   Page : charte du groupe (blanc, #227189, #EA983E, Avenir + Montelisa).
   ========================================================================== */

@property --bg      { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --primary { syntax: "<color>"; inherits: true; initial-value: #227189; }
@property --accent  { syntax: "<color>"; inherits: true; initial-value: #ea983e; }
@property --text    { syntax: "<color>"; inherits: true; initial-value: #12323d; }
@property --muted   { syntax: "<color>"; inherits: true; initial-value: #5b7882; }
@property --hi      { syntax: "<color>"; inherits: true; initial-value: #227189; }
@property --radius  { syntax: "<length>"; inherits: true; initial-value: 999px; }

@font-face { font-family: "Darklinos"; src: url("../assets/fonts/Darklinos.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Bw Vivant"; src: local("BwVivant-Bold"), local("Bw Vivant Bold"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Luxia Display"; src: local("Luxia Display"), local("LuxiaDisplay"); font-display: swap; }

:root {
  --fd: var(--f-cond); --ft: var(--f-body); --fw: 600; --fst: normal; --ftt: uppercase; --fls: .01em; --fsz: 1;
  --f-body: "Avenir Next", "Avenir", "Figtree", system-ui, sans-serif;
  --f-cond: "Montelisa", "Antonio", "Oswald", sans-serif;
  --g-teal: #227189;
  --g-teal-d: #17566a;
  --g-orange: #ea983e;
  --g-ink: #12323d;
  --g-soft: #f2f7f8;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 84px;
  transition: --bg 1.1s var(--ease), --primary 1.1s var(--ease), --accent 1.1s var(--ease),
              --text 1.1s var(--ease), --muted 1.1s var(--ease), --hi 1.1s var(--ease), --radius .8s var(--ease);
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--hi); outline-offset: 4px; border-radius: 6px; }
kbd { font-family: var(--f-body); font-size: .8em; font-weight: 700; padding: 2px 7px; border-radius: 6px; border: 1px solid currentColor; opacity: .85; }

/* ---------------------------------------------------------------- Header ---- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 5vw;
  transition: background-color .5s, box-shadow .5s, height .5s var(--ease), color .5s;
}
body.scrolled .top {
  --text: #12323d; --muted: #5b7882; --hi: #227189; --bg: #ffffff;
  height: 68px; color: #12323d;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(18, 50, 61, .08);
}
.brand { display: flex; align-items: center; gap: 12px; justify-self: start; }
.brand-mark { width: 44px; display: block; transition: transform .6s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-mark svg { width: 100%; height: auto; display: block; }
.brand-word { display: flex; flex-direction: column; line-height: .92; }
.brand-word b { font-weight: 600; letter-spacing: .2em; font-size: 13px; }
.brand-word i { font-style: normal; font-family: var(--f-cond); font-size: 22px; letter-spacing: .14em; color: var(--g-orange); }

.nav { display: flex; gap: clamp(14px, 2.2vw, 34px); align-items: center; justify-self: end; }
.nav a { position: relative; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 8px 2px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--hi); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }

/* Sélecteur : un seul logo, deux flèches */
.picker {
  display: flex; align-items: center; gap: 4px; padding: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.picker-arrow {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  transition: background-color .3s, transform .3s var(--ease-out);
}
.picker-arrow:hover { background: color-mix(in srgb, var(--text) 10%, transparent); }
.picker-arrow:active { transform: scale(.9); }
.picker-logo { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.picker-emb { width: 34px; display: block; transition: transform .5s var(--ease-out), opacity .3s; }
.picker-emb svg { width: 100%; height: auto; display: block; }
.picker-emb.swap { transform: scale(.4) rotate(-30deg); opacity: 0; }
.picker-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.picker-ring circle { fill: none; stroke: var(--hi); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 151; stroke-dashoffset: calc(151 - 151 * var(--auto, 0)); opacity: .9; }
.picker-name {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, -4px);
  white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  background: var(--text); color: var(--bg); padding: 6px 10px; border-radius: 6px; pointer-events: none;
  opacity: 0; transition: opacity .3s, transform .4s var(--ease-out);
}
.picker:hover .picker-name { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ Hero ---- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; touch-action: pan-y; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.panel {
  position: absolute; z-index: 10; top: 52%; left: 6vw;
  width: min(520px, 38vw);
  transform: translateY(-50%);
}
body[data-layout="right"] .panel { left: auto; right: 6vw; }

.p-illu { width: clamp(100px, 13vh, 150px); aspect-ratio: 1; margin-bottom: 8px; }
.p-illu .illu { width: 100%; height: 100%; overflow: visible; }
.p-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.p-index { color: var(--hi); font-family: var(--f-cond); font-size: 16px; letter-spacing: .08em; }
.p-line { width: 42px; height: 1.5px; background: currentColor; opacity: .6; }
.p-title { margin: 14px 0 10px; font-weight: 400; }
.p-pre { display: flex; align-items: center; gap: 12px; font-family: var(--f-body); font-size: 14px; letter-spacing: .5em; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.p-pre::before { content: ""; width: 16px; height: 12px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.p-name { display: block; overflow: hidden; padding: .16em .14em .3em .02em; margin: -.16em -.14em -.3em -.02em; white-space: nowrap; color: var(--text);
  font-family: var(--fd); font-weight: var(--fw); font-style: var(--fst); text-transform: var(--ftt);
  letter-spacing: var(--fls); font-size: calc(clamp(54px, 8vw, 136px) * var(--fsz)); line-height: .92; }
.p-name .ch { display: inline-block; will-change: transform; }
.p-tagline { font-family: var(--ft); font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; margin: 8px 0 12px; color: var(--hi); }
.p-text { font-family: var(--ft); font-size: 15px; line-height: 1.65; margin: 0 0 18px; color: var(--muted); max-width: 44ch; }
.p-services { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; }
.p-services li { font-family: var(--ft); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 8px 14px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--text) 22%, transparent); }
.p-status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.p-status i { width: 8px; height: 8px; border-radius: 50%; background: #3ccf7a; animation: live 2s infinite; }
.p-status.soon i { background: var(--accent); animation: none; }
.p-status a { color: var(--text); border-bottom: 1px solid color-mix(in srgb, var(--text) 30%, transparent); }
.p-status a:hover { color: var(--hi); border-color: var(--hi); }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(60, 207, 122, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(60, 207, 122, 0); } }
.p-charte { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 22px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--text) 14%, transparent); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.p-charte .lbl { font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--text); }
.p-charte .sw { display: inline-flex; align-items: center; gap: 7px; font-family: ui-monospace, Consolas, monospace; text-transform: uppercase; }
.p-charte .sw i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 25%, transparent); }
.p-charte .ff { font-weight: 700; color: var(--text); }
.p-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-teleport {
  position: relative; display: inline-flex; align-items: center; gap: 14px; font-family: var(--ft);
  padding: 16px 24px 16px 28px; border-radius: var(--radius);
  font-weight: 800; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .4s var(--ease-out), background-color .4s, color .4s;
}
.btn-teleport .arrow { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; transition: transform .5s var(--ease-out); }
.btn-teleport:hover .arrow { transform: translateX(4px) rotate(-45deg); }
body[data-button="solid"] .btn-teleport { background: var(--hi); color: var(--bg); }
body[data-button="solid"] .btn-teleport .arrow { background: var(--bg); color: var(--hi); }
body[data-button="outline"] .btn-teleport { border: 1.5px solid var(--hi); color: var(--hi); }
body[data-button="outline"] .btn-teleport .arrow { background: var(--hi); color: var(--bg); }
body[data-button="outline"] .btn-teleport:hover { background: var(--hi); color: var(--bg); }
body[data-button="glass"] .btn-teleport { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--text) 26%, transparent); }
body[data-button="glass"] .btn-teleport .arrow { background: var(--accent); color: var(--bg); }
.p-hint { font-size: 12px; color: var(--muted); letter-spacing: .06em; }

.panel .rv { opacity: 0; transform: translateY(22px); filter: blur(6px); }
.panel .ch { transform: translateY(115%) rotate(6deg); opacity: 0; }
.panel.in .rv { opacity: 1; transform: none; filter: none; transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s; transition-delay: var(--dl, 0s); }
.panel.in .ch { transform: none; opacity: 1; transition: transform .9s var(--ease-out), opacity .6s; transition-delay: calc(.08s + var(--i) * .035s); }
.panel.out .rv { opacity: 0; transform: translateY(-12px); filter: blur(5px); transition: all .32s var(--ease); }
.panel.out .ch { transform: translateY(-115%) rotate(-4deg); opacity: 0; transition: transform .38s var(--ease), opacity .3s; transition-delay: calc(var(--i) * .015s); }

.counter { position: absolute; z-index: 10; bottom: clamp(22px, 5vh, 44px); left: 6vw; display: flex; align-items: center; gap: 14px; font-family: var(--f-cond); font-size: 15px; letter-spacing: .12em; color: var(--muted); }
body[data-layout="right"] .counter { left: auto; right: 6vw; }
.counter-cur { color: var(--text); font-size: 26px; }
.counter-bar { width: 90px; height: 2px; background: color-mix(in srgb, var(--text) 18%, transparent); position: relative; overflow: hidden; }
.counter-bar i { position: absolute; inset: 0; background: var(--hi); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 1s var(--ease); }

.scroll-cue { position: absolute; z-index: 10; left: 50%; bottom: clamp(18px, 4vh, 36px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 1.5px; height: 34px; background: linear-gradient(var(--hi), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

#fallback-stage { position: absolute; inset: 0; z-index: 1; display: none; place-items: center; pointer-events: none; }
body.no-webgl #fallback-stage { display: grid; }
#fallback-stage .emb { width: min(30vw, 380px); margin-left: 30vw; animation: floaty 5s ease-in-out infinite; transition: margin .8s var(--ease); }
body[data-layout="right"] #fallback-stage .emb { margin-left: -30vw; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }

/* ------------------------------------------------------------------- Page ---- */
.page {
  --bg: #ffffff; --text: #12323d; --muted: #5b7882; --hi: #227189; --accent: #ea983e; --primary: #227189;
  position: relative; z-index: 2; background: #fff; color: var(--g-ink);
}
.wrap { width: min(1240px, 88vw); margin: 0 auto; }
.sec { padding: clamp(80px, 13vh, 150px) 0; position: relative; }
.sec + .sec { border-top: 1px solid #e6eef0; }
.kicker { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; font-weight: 800; color: var(--g-orange); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 12px; height: 9px; background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.big-title { font-family: var(--f-cond); font-weight: 600; text-transform: uppercase; font-size: clamp(54px, 8vw, 120px); line-height: .88; margin: 0 0 18px; color: var(--g-ink); letter-spacing: .01em; }
.sec-title { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; font-weight: 700; margin: 0 0 18px; color: var(--g-teal); }
.lead { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; color: #4a6670; max-width: 60ch; margin: 0 0 28px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 44px; }
.sec-head .lead { margin: 0; max-width: 48ch; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--rd, 0s); }
.reveal.seen { opacity: 1; transform: none; }

/* groupe */
.group-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 6vw; align-items: center; }
.group-emblem { display: block; width: min(260px, 60%); animation: floaty 7s ease-in-out infinite; }
.group-emblem svg, .foot-emb svg { width: 100%; height: auto; display: block; }
.group-word { margin: 22px 0 0; line-height: .84; }
.group-word span { display: block; font-weight: 500; color: var(--g-teal); font-size: clamp(42px, 6vw, 96px); letter-spacing: .03em; }
.group-word b { display: block; font-family: var(--f-cond); font-weight: 400; color: var(--g-orange); font-size: clamp(84px, 12vw, 196px); letter-spacing: .05em; }
.stats { display: flex; gap: clamp(24px, 4vw, 54px); margin: 6px 0 36px; }
.stats strong { display: block; font-family: var(--f-cond); font-weight: 600; font-size: clamp(48px, 5vw, 70px); color: var(--g-orange); line-height: 1; }
.stats span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--g-teal); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 30px; }
.pillars div { padding: 18px 20px; border-radius: 16px; background: var(--g-soft); border-left: 3px solid var(--g-orange); }
.pillars h4 { margin: 0 0 4px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--g-teal); }
.pillars p { margin: 0; font-size: 14px; color: #4e6c75; line-height: 1.5; }
.charte-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-sw, .chip-font { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; background: var(--g-soft); font-size: 13px; color: #284b56; }
.chip-sw { font-family: ui-monospace, Consolas, monospace; }
.chip-sw i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); }
.chip-font b { color: var(--g-teal); }
.chip-cond b { font-family: var(--f-cond); font-weight: 400; color: var(--g-orange); letter-spacing: .1em; font-size: 16px; }

/* filiales */
.filters { display: flex; gap: 6px; padding: 5px; background: var(--g-soft); border-radius: 999px; }
.filter { padding: 10px 18px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #4a6670; transition: background-color .3s, color .3s; }
.filter.active { background: var(--g-teal); color: #fff; }
.fil-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.f-card {
  --cb: #fff; --ct: #000; --ch: #000;
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 330px;
  padding: 26px 24px 22px; border-radius: 24px; background: var(--cb); color: var(--ct); overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out), box-shadow .5s, opacity .5s;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 18px 40px -26px rgba(18, 50, 61, .45);
}
.f-card.hide { display: none; }
.f-card:hover { box-shadow: 0 30px 60px -24px rgba(18, 50, 61, .5); }
.f-card .emb { width: 86px; height: auto; transition: transform .6s var(--ease-out); }
.f-card:hover .emb { transform: scale(1.08) rotate(-4deg); }
.f-top { display: flex; justify-content: space-between; align-items: flex-start; }
.f-badge { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ct) 10%, transparent); white-space: nowrap; }
.f-badge.on::before { content: "● "; color: #3ccf7a; }
.f-pre { font-size: 11px; letter-spacing: .4em; font-weight: 600; opacity: .7; margin-top: auto; }
.f-name { overflow-wrap: anywhere; padding-bottom: .08em; font-family: var(--cfd); font-weight: var(--cfw); font-style: var(--cfst); text-transform: var(--cftt); letter-spacing: var(--cfls); font-size: calc(40px * var(--cfsz)); line-height: 1; margin: 0; }
.f-sector { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ch); margin: 0; }
.f-tag { font-size: 14px; line-height: 1.5; opacity: .8; margin: 0; }
.f-actions { display: flex; gap: 8px; margin-top: 6px; }
.f-btn { flex: 1; padding: 11px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-align: center; border: 1px solid color-mix(in srgb, var(--ct) 25%, transparent); transition: background-color .3s, color .3s; }
.f-btn:hover { background: color-mix(in srgb, var(--ct) 10%, transparent); }
.f-btn.main { background: var(--ch); border-color: var(--ch); color: var(--cb); }
.f-btn.main:hover { filter: brightness(1.1); background: var(--ch); }

/* synergies */
.syn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 10px; }
.syn { padding: 28px; border-radius: 24px; background: var(--g-soft); }
.syn-embs { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.syn-embs .emb { width: 64px; height: auto; }
.syn-plus { width: 26px; height: 26px; border-radius: 50%; background: var(--g-orange); color: #fff; display: grid; place-items: center; font-weight: 800; }
.syn h4 { margin: 0 0 8px; font-size: 19px; color: var(--g-teal); }
.syn p { margin: 0; color: #4e6c75; line-height: 1.6; font-size: 15px; }

/* jeu */
.sec-game { background: linear-gradient(#fff, var(--g-soft)); }
.game {
  position: relative; height: min(78vh, 720px); min-height: 460px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(#eaf4f6, #fdfbf7); box-shadow: 0 30px 80px -40px rgba(18, 50, 61, .5);
  user-select: none; -webkit-user-select: none; touch-action: none;
}
#game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.g-hud { position: absolute; top: 18px; left: 18px; display: flex; gap: 10px; pointer-events: none; opacity: 0; transition: opacity .4s; }
.game.playing .g-hud { opacity: 1; }
.g-stat { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); font-size: 13px; color: #4a6670; font-weight: 600; }
.g-stat b { font-family: var(--f-cond); font-size: 20px; color: var(--g-ink); font-weight: 600; }
.g-tri { width: 14px; height: 11px; background: var(--g-orange); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.g-leaf { width: 14px; height: 14px; background: var(--g-teal); border-radius: 0 70% 0 70%; }
.g-quit { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .85); font-weight: 800; color: var(--g-ink); opacity: 0; pointer-events: none; transition: opacity .4s; }
.game.playing .g-quit { opacity: 1; pointer-events: auto; }
.g-card {
  position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 18px; border-radius: 20px;
  background: var(--cb, #fff); color: var(--ct, #12323d); min-width: min(520px, 90%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .45);
  transition: opacity .35s, transform .5s var(--ease-out);
}
.g-card.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.g-card-emb { width: 64px; flex: none; }
.g-card-emb svg { width: 100%; height: auto; display: block; }
.g-card > div { flex: 1; min-width: 0; }
.g-card-sec { margin: 0; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--ch, #227189); }
.g-card-name { margin: 2px 0; font-family: var(--f-cond); font-weight: 600; text-transform: uppercase; font-size: 28px; line-height: 1; }
.g-card-tag { margin: 0; font-size: 13px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-card-btn { padding: 12px 16px; border-radius: 999px; background: var(--ch, #227189); color: var(--cb, #fff); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.g-card-btn kbd { border-color: currentColor; padding: 0 5px; }
.g-toast { position: absolute; top: 74px; left: 50%; transform: translate(-50%, -10px); padding: 10px 18px; border-radius: 999px; background: var(--g-ink); color: #fff; font-size: 13px; font-weight: 700; opacity: 0; transition: opacity .3s, transform .4s var(--ease-out); pointer-events: none; white-space: nowrap; }
.g-toast.show { opacity: 1; transform: translate(-50%, 0); }
.g-touch { display: none; }
@media (hover: none) {
  .game.playing .g-touch { display: block; }
  .g-joy { position: absolute; left: 22px; bottom: 22px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .55); border: 1.5px solid rgba(18, 50, 61, .2); touch-action: none; }
  .g-joy i { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: var(--g-teal); opacity: .85; }
  .g-btn { position: absolute; right: 22px; bottom: 34px; width: 70px; height: 70px; border-radius: 50%; background: var(--g-orange); color: #fff; font-size: 28px; font-weight: 800; touch-action: none; }
  .game.playing .g-card { bottom: 160px; }
}
.g-start { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(242, 247, 248, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .5s, visibility 0s .5s; }
.game.playing .g-start { opacity: 0; visibility: hidden; }
.g-start-inner { text-align: center; padding: 30px; max-width: 560px; }
.g-start-inner .kicker { justify-content: center; }
.g-start h3 { font-family: var(--f-cond); font-weight: 600; text-transform: uppercase; font-size: clamp(38px, 5vw, 64px); line-height: .9; margin: 0 0 18px; color: var(--g-ink); }
.g-keys { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; color: #4a6670; font-size: 14px; }
.g-keys kbd { margin: 0 1px; }
.g-play { padding: 18px 44px; border-radius: 999px; background: var(--g-teal); color: #fff; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: 14px; box-shadow: 0 16px 40px -14px var(--g-teal); transition: transform .4s var(--ease-out), background .3s; }
.g-play:hover { transform: translateY(-2px) scale(1.03); background: var(--g-teal-d); }
.g-load { margin: 14px 0 0; font-size: 13px; color: #5b7882; min-height: 1.2em; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: start; }
.contact-mail { display: inline-block; font-family: var(--f-cond); font-size: clamp(26px, 2.6vw, 38px); color: var(--g-teal); border-bottom: 2px solid var(--g-orange); padding-bottom: 4px; letter-spacing: .02em; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 30px; border-radius: 26px; background: var(--g-soft); }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; }
.form label span { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #4a6670; }
.form input, .form select, .form textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid #d8e5e8; background: #fff; color: var(--g-ink); outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--g-teal); box-shadow: 0 0 0 4px rgba(34, 113, 137, .12); }
.form .invalid { border-color: #e5484d; }
.btn-main { padding: 17px 26px; border-radius: 999px; background: var(--g-teal); color: #fff; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; transition: background .3s, transform .3s var(--ease-out); }
.btn-main:hover { background: var(--g-teal-d); transform: translateY(-2px); }
.form-note { margin: 0; font-size: 13px; color: #5b7882; text-align: center; }

/* footer */
.foot { background: var(--g-ink); color: #cfe0e4; padding: 60px 0 40px; }
.foot-grid { display: grid; grid-template-columns: auto 1fr; gap: 30px 60px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-emb { width: 70px; display: block; }
.foot-word { margin: 0; line-height: .9; }
.foot-word span { display: block; letter-spacing: .2em; font-weight: 600; color: #fff; }
.foot-word b { display: block; font-family: var(--f-cond); font-weight: 400; color: var(--g-orange); font-size: 34px; letter-spacing: .12em; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.foot-links a { font-size: 13px; font-weight: 600; color: #cfe0e4; transition: color .3s; }
.foot-links a:hover { color: var(--g-orange); }
.foot-links .soon { opacity: .45; }
.foot-copy { grid-column: 1 / -1; margin: 20px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: #8fa9b0; }

/* ---------------------------------------------------------------- Cursor ---- */
.cursor {
  position: fixed; z-index: 100; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; border: 1.5px solid var(--hi); pointer-events: none; display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .3s, border-color .3s, opacity .3s;
}
.cursor-label { position: absolute; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .25s; white-space: nowrap; }
.cursor.is-hover { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--hi); border-color: transparent; }
.cursor.is-hover .cursor-label { opacity: 1; }
.cursor.is-link { width: 36px; height: 36px; margin: -18px 0 0 -18px; background: color-mix(in srgb, var(--hi) 15%, transparent); }
.cursor.is-hidden { opacity: 0; }
@media (hover: none) { .cursor { display: none; } }

/* ---------------------------------------------------------------- Portal ---- */
.portal {
  --px: 50%; --py: 60%;
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: radial-gradient(circle at var(--px) var(--py), var(--accent), var(--primary) 45%, var(--bg) 110%);
  color: var(--text); clip-path: circle(0px at var(--px) var(--py)); visibility: hidden;
  transition: clip-path 1s var(--ease), visibility 0s 1s;
}
.portal.open { clip-path: circle(160vmax at var(--px) var(--py)); visibility: visible; transition: clip-path 1.05s var(--ease); }
.portal-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.portal-rings i { position: absolute; width: 30vmin; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid color-mix(in srgb, #fff 40%, transparent); animation: ringOut 1.6s var(--ease-out) infinite; opacity: 0; }
.portal-rings i:nth-child(2) { animation-delay: .5s; }
.portal-rings i:nth-child(3) { animation-delay: 1s; }
.portal.open .portal-rings i { opacity: 1; }
@keyframes ringOut { from { transform: scale(.3); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.portal-core { text-align: center; position: relative; transition: opacity .5s, transform .8s var(--ease); }
.portal-emblem { width: clamp(150px, 20vmin, 220px); margin: 0 auto 26px; transform: scale(.4) rotate(-20deg); opacity: 0; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .3)); }
.portal-emblem svg { width: 100%; height: auto; display: block; }
.portal.open .portal-emblem { transform: none; opacity: 1; transition: transform 1.1s var(--ease-out) .25s, opacity .6s .25s; }
.portal-label { font-size: 12px; letter-spacing: .4em; text-transform: uppercase; font-weight: 700; margin: 0; opacity: .8; }
.portal-name { font-family: var(--f-cond); text-transform: uppercase; font-size: clamp(48px, 8vw, 120px); line-height: .9; margin: 8px 0 26px; font-weight: 600; letter-spacing: .02em; }
.portal-domain { font-size: 13px; letter-spacing: .12em; margin: -14px 0 24px; opacity: .8; font-family: ui-monospace, Consolas, monospace; }
.portal-bar { width: 200px; height: 2px; margin: 0 auto; background: color-mix(in srgb, var(--text) 25%, transparent); overflow: hidden; }
.portal-bar i { display: block; height: 100%; background: var(--text); transform-origin: left; transform: scaleX(0); }
.portal.open .portal-bar i { transform: scaleX(1); transition: transform 1.3s var(--ease) .3s; }
.portal-arrival { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw; padding: 0 8vw; opacity: 0; pointer-events: none; transition: opacity .8s; }
.portal.arrived .portal-core { opacity: 0; transform: scale(.85); }
.portal.arrived .portal-arrival { opacity: 1; pointer-events: auto; transition-delay: .2s; }
.portal.arrived { background: var(--bg); transition: background .8s; }
.arrival-illu .illu { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; }
.arrival-title { font-family: var(--f-cond); text-transform: uppercase; font-weight: 600; font-size: clamp(56px, 8vw, 130px); line-height: .88; margin: 0 0 20px; }
.arrival-title em { font-style: normal; color: var(--hi); }
.arrival-msg { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 40ch; margin: 0 0 30px; }
.arrival-back { padding: 16px 26px; border-radius: 999px; border: 1.5px solid var(--hi); color: var(--hi); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; transition: background .3s, color .3s; }
.arrival-back:hover { background: var(--hi); color: var(--bg); }

/* ----------------------------------------------------------------- Intro ---- */
.intro { position: fixed; inset: 0; z-index: 80; background: #fff; display: grid; place-items: center; clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease) .1s; }
.intro.done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.intro-center { text-align: center; transition: transform 1.2s var(--ease), opacity .8s; }
.intro.done .intro-center { transform: translateY(-30vh) scale(.8); opacity: 0; }
.intro-emblem { width: clamp(150px, 20vmin, 220px); margin: 0 auto; }
.intro-emblem svg { width: 100%; height: auto; overflow: visible; display: block; }
.intro-emblem path { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: leafIn 1.1s var(--ease-out) forwards; }
.intro-emblem path:nth-child(1) { animation-delay: .15s; }
.intro-emblem path:nth-child(2) { animation-delay: .3s; }
.intro-emblem path:nth-child(3) { animation-delay: .2s; }
.intro-emblem path:nth-child(4) { animation-delay: .35s; }
.intro-emblem path:nth-child(5) { animation: dropIn 1s var(--ease-out) .75s forwards; transform-origin: 50% 50%; }
@keyframes leafIn { from { opacity: 0; transform: translateY(40%) scaleY(.2); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-160%) rotate(180deg); } to { opacity: 1; transform: none; } }
.intro-word { margin-top: 26px; display: flex; flex-direction: column; align-items: center; line-height: .9; }
.intro-miracle { font-weight: 500; color: var(--g-teal); font-size: clamp(30px, 4vw, 52px); letter-spacing: .08em; clip-path: inset(0 100% 0 0); animation: wipe 1s var(--ease) 1s forwards; }
.intro-group { font-family: var(--f-cond); color: var(--g-orange); font-size: clamp(58px, 8vw, 104px); letter-spacing: .1em; clip-path: inset(100% 0 0 0); animation: wipe 1s var(--ease) 1.25s forwards; }
@keyframes wipe { to { clip-path: inset(-30% -12% -30% -12%); } }
.intro-load { width: 160px; height: 2px; background: #e5eef1; margin: 30px auto 0; overflow: hidden; }
.intro-load i { display: block; height: 100%; background: var(--g-teal); transform-origin: left; transform: scaleX(0); transition: transform .4s; }

/* ---------------------------------------------------- Illustration motion ---- */
.illu .fl { animation: floaty 5s ease-in-out infinite; animation-delay: var(--d, 0s); transform-box: fill-box; transform-origin: center; }
.illu .tw { animation: twinkle 2.6s ease-in-out infinite; }
.illu .spin { animation: spin 40s linear infinite; transform-origin: 200px 200px; }
.illu .spin-slow { animation: spin 18s linear infinite; }
.illu .pulse { animation: pulse 2.4s ease-in-out infinite; }
.illu .beat { animation: beat 1.4s ease-in-out infinite; }
.illu .dash { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3.2s var(--ease) infinite; }
.illu .sway { animation: sway 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.illu .grow { animation: grow 3.6s var(--ease-out) infinite; animation-delay: var(--d, 0s); transform-box: fill-box; transform-origin: bottom; }
.illu .ripple { animation: ripple 3s ease-out infinite; animation-delay: var(--d, 0s); }
.illu .wave { animation: wave 4s linear infinite; }
.illu .rise { animation: rise 1s var(--ease-out) both; animation-delay: var(--d, 0s); }
.illu .win { animation: win 3s steps(1) infinite; animation-delay: var(--d, 0s); }
.illu .drive { animation: drive 3s ease-in-out infinite; }
.illu .chev { animation: chev 1.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
.illu .beam { animation: beam 4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.illu .hook { animation: hook 3s ease-in-out infinite; }
.illu .confetti { animation: confetti 3.5s linear infinite; animation-delay: var(--d, 0s); }
@keyframes twinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .5; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.08); } 30% { transform: scale(.98); } 45% { transform: scale(1.05); } }
@keyframes draw { 0% { stroke-dashoffset: 600; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes grow { 0% { transform: scaleY(.1); } 40%, 100% { transform: scaleY(1); } }
@keyframes ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.1); opacity: 0; } }
@keyframes wave { to { transform: translateX(-80px); } }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes win { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }
@keyframes drive { 0%, 100% { transform: translateX(-10px); } 50% { transform: translateX(14px) translateY(-2px); } }
@keyframes chev { 0%, 100% { opacity: .2; transform: translateX(0); } 50% { opacity: 1; transform: translateX(8px); } }
@keyframes beam { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@keyframes hook { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(26px); } }
@keyframes confetti { from { transform: translate(var(--x), -20px) rotate(0); opacity: 1; } to { transform: translate(calc(var(--x) + 30px), 340px) rotate(720deg); opacity: 0; } }


/* =====================================================================
   STUDIO — direction artistique « packshot » (podium Blender)
   ===================================================================== */
.hero { background: var(--bg); }
.panel { top: 50%; left: 6vw; width: min(460px, 31vw); transform: translateY(-46%); }
body[data-layout="right"] .panel { left: 6vw; right: auto; }
.p-kicker { display: flex; align-items: center; gap: 12px; font-family: var(--f-cond); font-size: 15px; letter-spacing: .14em; color: var(--muted); }
.p-kicker .p-index { color: var(--text); font-size: 17px; }
.p-kicker .p-line { width: 46px; height: 1.5px; background: currentColor; opacity: .5; }
.p-title { margin: 22px 0 14px; }
.p-pre { font-size: 12px; letter-spacing: .55em; }
.p-name { color: var(--text); font-size: calc(clamp(52px, 6.8vw, 122px) * var(--fsz)); line-height: .9; }
.p-tagline { color: var(--muted); font-weight: 500; font-size: clamp(16px, 1.25vw, 19px); max-width: 30ch; margin: 6px 0 30px; }
body[data-button="solid"] .btn-teleport { background: var(--text); color: var(--bg); box-shadow: 0 18px 40px -18px var(--text); }
body[data-button="solid"] .btn-teleport .arrow { background: var(--accent); color: var(--text); }
.btn-teleport { border-radius: 999px; padding: 15px 18px 15px 28px; font-size: 12.5px; letter-spacing: .16em; }
.btn-teleport:hover { transform: translateY(-2px); }

.info {
  position: absolute; z-index: 10; top: 50%; right: 6vw; width: min(290px, 21vw);
  transform: translateY(-40%); color: var(--text);
}
.info .rv { opacity: 0; transform: translateY(18px); filter: blur(5px); }
.info.in .rv { opacity: 1; transform: none; filter: none; transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s; transition-delay: var(--dl, 0s); }
.info.out .rv { opacity: 0; transform: translateY(-10px); filter: blur(4px); transition: all .3s var(--ease); }
.i-sector { font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--hi); margin: 0 0 12px; display: flex; gap: 10px; align-items: center; }
.i-sector::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.i-text { font-family: var(--ft); font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0 0 18px; }
.i-services { list-style: none; counter-reset: s; margin: 0 0 18px; padding: 0; border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.i-services li { counter-increment: s; display: flex; gap: 14px; padding: 10px 0; font-family: var(--ft); font-size: 13px; font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.i-services li::before { content: "0" counter(s); font-family: var(--f-cond); color: var(--muted); font-weight: 400; letter-spacing: .08em; }
.info .p-status { margin: 0 0 14px; }
.info .p-charte { border: 0; padding: 0; margin: 0; gap: 8px; }
.info .p-charte .sw i { width: 18px; height: 18px; }
.info .p-charte .ff { font-size: 11px; color: var(--muted); font-weight: 600; margin-left: 4px; }

.counter { display: none; }
body[data-layout="right"] .counter { left: 6vw; right: auto; }

/* cartes filiales : packshots Blender */
.f-card { min-height: 0; padding: 0 0 22px; gap: 10px; background: var(--cb); border: 1px solid rgba(18, 50, 61, .06); }
.f-card > :not(.f-shot):not(.f-badge) { margin-left: 24px; margin-right: 24px; }
.f-shot { position: relative; aspect-ratio: 1 / .9; overflow: hidden; background: radial-gradient(60% 55% at 50% 60%, #fff, transparent 70%), radial-gradient(40% 18% at 50% 88%, color-mix(in srgb, var(--cg) 22%, transparent), transparent 70%); }
.f-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; transition: transform .8s var(--ease-out); }
.f-card:hover .f-shot img { transform: scale(1.06) translateY(-2%); }
.f-badge { position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(8px); }
.f-pre { margin-top: 4px; }

.group-render { display: block; width: min(460px, 100%); height: auto; filter: drop-shadow(0 40px 50px rgba(18, 50, 61, .18)); animation: floaty 8s ease-in-out infinite; margin: -40px auto -20px; }
.group-brand { text-align: center; }
.group-word { margin-top: 0; }
.portal-emblem { width: clamp(220px, 30vmin, 340px); }
.portal-emblem img { width: 100%; height: auto; display: block; }
.portal { background: radial-gradient(circle at var(--px) var(--py), #ffffff, var(--bg) 55%, color-mix(in srgb, var(--accent) 30%, var(--bg)) 120%); }
.portal-rings i { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }

@media (max-width: 1100px) { .info { display: none; } .panel { width: min(460px, 40vw); } }
@media (max-width: 860px) {
  .panel, body[data-layout="right"] .panel { left: 6vw; right: 6vw; width: auto; top: auto; bottom: clamp(26px, 5vh, 50px); transform: none; }
  .p-title { margin: 12px 0 8px; }
  .p-tagline { margin-bottom: 18px; }
}

/* ------------------------------------------------------------ Responsive ---- */
@media (max-height: 900px) { .p-illu { width: 96px; } .p-text { margin-bottom: 12px; } .p-services { margin-bottom: 12px; } .p-charte { margin-bottom: 16px; padding-top: 10px; } .p-status { margin-bottom: 10px; } }
@media (max-height: 780px) { .p-illu { display: none; } }

@media (max-width: 980px) {
  .group-grid, .contact-grid { grid-template-columns: 1fr; }
  .syn-grid { grid-template-columns: 1fr; }
  .nav a:not([href="#jeu"]) { display: none; }
}
@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .top { grid-template-columns: auto 1fr auto; padding: 0 4vw; }
  .picker { justify-self: center; }
  .brand-word { display: none; }
  .nav { display: none; }
  .panel, body[data-layout="right"] .panel { left: 6vw; right: 6vw; width: auto; top: auto; bottom: clamp(26px, 5vh, 50px); transform: none; }
  .p-illu, .p-text, .p-charte, .p-hint { display: none; }
  .p-services { margin-bottom: 14px; }
  body .p-name { font-size: calc(clamp(46px, 15vw, 88px) * var(--fsz)); }
  .counter, .scroll-cue { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .stats { flex-wrap: wrap; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
  .portal-arrival { grid-template-columns: 1fr; padding: 80px 8vw; align-content: center; }
  .arrival-illu .illu { max-width: 220px; }
  #fallback-stage .emb, body[data-layout="right"] #fallback-stage .emb { margin: -40vh 0 0 0; width: 60vw; }
  .game { height: 72vh; border-radius: 20px; }
  .g-card { min-width: 92%; }
  .g-card-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
