/* Zexus Games — site styles.
   One family (Bricolage Grotesque), one night-blue field, two food colours (saffron, salmon).
   Colours live in the tokens below; light/dark swap only the "paper" tokens. */

:root {
  --night: #13203A;
  --night-2: #1B2B4B;
  --night-3: #24375C;
  --night-ink: #0B1426;
  --rice: #FFF6EA;
  --rice-2: #D9DEEA;
  --saffron: #FFC23D;
  --saffron-2: #F4AE1B;
  --salmon: #FF6B45;
  --salmon-2: #F25A33;

  --paper: #FBF6EE;
  --paper-2: #F2E9DA;
  --paper-3: #E9DDC9;
  --ink: #13203A;
  --ink-2: #44506B;
  --link: #B8381A;
  --field-saffron: #FFC23D;
  --field-salmon: #FF6B45;
  --btn2-bg: #13203A;
  --btn2-fg: #FFF6EA;
  --home-card: #13203A;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --fs-hero: clamp(2.75rem, 6.2vw, 6rem);
  --fs-h2: clamp(2.1rem, 4.4vw, 4.1rem);
  --fs-h3: clamp(1.3rem, 1.7vw, 1.6rem);
  --fs-lead: clamp(1.125rem, 1.35vw, 1.35rem);
  --sec: clamp(88px, 11vw, 168px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #0D1628;
  --paper-2: #14203A;
  --paper-3: #1D2C4A;
  --ink: #FFF6EA;
  --ink-2: #BCC5D6;
  --link: #FFB38F;
  --field-saffron: #E9AA25;
  --field-salmon: #E5552F;
  --btn2-bg: #FFC23D;
  --btn2-fg: #13203A;
  --home-card: #24375C;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D1628;
    --paper-2: #14203A;
    --paper-3: #1D2C4A;
    --ink: #FFF6EA;
    --ink-2: #BCC5D6;
    --link: #FFB38F;
    --field-saffron: #E9AA25;
    --field-salmon: #E5552F;
    --btn2-bg: #FFC23D;
    --btn2-fg: #13203A;
    --home-card: #24375C;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg, picture { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-wrap: balance; }
h3 { letter-spacing: -0.015em; line-height: 1.12; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
button { font: inherit; color: inherit; }
::selection { background: var(--saffron); color: var(--night); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
.s-saffron :focus-visible, .s-salmon :focus-visible { outline-color: var(--night); }
html { scrollbar-color: var(--paper-3) var(--paper); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--saffron); color: var(--night); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main > section, main > div { overflow-x: clip; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- section fields ---------- */
.s-night { background: var(--night); color: var(--rice); }
.s-paper { background: var(--paper); color: var(--ink); }
.s-paper2 { background: var(--paper-2); color: var(--ink); }
.s-saffron { background: var(--field-saffron); color: var(--night); }
.s-salmon { background: var(--field-salmon); color: var(--night); }
.sec { padding-block: var(--sec); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border-radius: 999px; border: 0;
  font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.005em; line-height: 1;
  text-decoration: none; cursor: pointer;
  background: var(--saffron); color: var(--night);
  transition: transform 160ms var(--ease-out), box-shadow 220ms var(--ease-out), background-color 160ms ease;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform 220ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(11, 20, 38, 0.55); }
  .btn:hover svg { transform: translateX(3px); }
  .btn:active { transform: scale(0.97); }
}
.btn-quiet { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-night { background: var(--btn2-bg); color: var(--btn2-fg); }
.s-saffron .btn-night, .s-salmon .btn-night, .contact .btn-night { background: var(--night); color: var(--rice); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: var(--night); color: var(--rice); transition: box-shadow 240ms ease; }
.bar.is-scrolled { box-shadow: 0 12px 30px -18px rgba(3, 7, 16, 0.9); }
.bar-in { display: flex; align-items: center; gap: 8px; min-height: 72px; transition: min-height 260ms var(--ease-out); }
.bar.is-scrolled .bar-in { min-height: 60px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; border-radius: 10px; color: var(--rice); padding: 6px 0; }
.brand .logo { height: 34px; width: auto; transition: height 260ms var(--ease-out); overflow: visible; }
.bar.is-scrolled .brand .logo { height: 30px; }
.logo .logo-games { opacity: 0.74; }
.logo .logo-mark { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@media (hover: hover) and (pointer: fine) { .brand:hover .logo-mark { transform: rotate(-8deg) scale(1.08); } }
.nav { position: relative; display: flex; gap: 2px; white-space: nowrap; }
.nav a, .bar .lang {
  position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--rice-2);
  transition: color 160ms ease, background-color 160ms ease;
}
.nav a[hidden] { display: none; }
.nav a:hover, .bar .lang:hover { color: var(--rice); }
.bar .lang:hover { background: var(--night-2); }
.nav a[aria-current], .nav a.is-active { color: var(--rice); }
.nav a[aria-current]::after, .nav a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 3px; background: var(--saffron); }
.nav-pill { position: absolute; z-index: 0; top: 0; left: 0; height: 44px; width: 0; border-radius: 999px; background: var(--night-2); opacity: 0; pointer-events: none;
  transition: transform 300ms var(--ease-out), width 300ms var(--ease-out), opacity 160ms ease; }
.bar .lang { font-weight: 700; letter-spacing: 0.02em; }
.theme-btn, .menu-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 0; flex: none;
  background: var(--night-2); color: var(--rice); cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.theme-btn:hover, .menu-btn:hover { background: var(--night-3); }
.theme-btn:active, .menu-btn:active { transform: scale(0.94); }
.theme-btn svg, .menu-btn svg { width: 20px; height: 20px; }
.theme-btn svg { transition: transform 420ms var(--ease-out); }
.theme-btn:active svg { transform: rotate(40deg); }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
.menu-btn { display: none; }
.menu-btn path { transition: transform 260ms var(--ease-out); transform-box: fill-box; transform-origin: center; }
.bar.is-open .menu-btn .m1 { transform: translateY(4px) rotate(45deg); }
.bar.is-open .menu-btn .m2 { transform: translateY(-4px) rotate(-45deg); }
/* scroll progress: a saffron hairline that fills as you read (scroll-driven, no JS) */
.bar-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--saffron); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .bar-progress { animation: progress linear both; animation-timeline: scroll(root block); }
  }
}
@keyframes progress { to { transform: scaleX(1); } }

/* small screens: the nav becomes a drop-down sheet (without JS it stays an inline, scrollable row) */
@media (max-width: 899px) {
  .bar-in { gap: 6px; }
  .brand .logo { height: 28px; }
  .bar.is-scrolled .brand .logo { height: 26px; }
  .js .menu-btn { display: grid; }
  html:not(.js) .bar-in { flex-wrap: wrap; }
  html:not(.js) .nav { order: 9; width: 100%; overflow-x: auto; padding-bottom: 8px; }
  .js .nav {
    position: fixed; left: 0; right: 0; top: var(--bar-h, 72px); z-index: 49; display: grid; gap: 0; align-content: start;
    max-height: calc(100svh - var(--bar-h, 72px)); overflow-y: auto; overscroll-behavior: contain;
    padding: 8px var(--gutter) 28px; background: var(--night); box-shadow: 0 30px 40px -20px rgba(3, 7, 16, 0.85);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path 380ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 380ms;
  }
  .js .bar.is-open .nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 420ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s; }
  .js .nav a { min-height: 60px; padding: 0 4px; border-radius: 0; font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 800; letter-spacing: -0.025em; color: var(--rice);
    opacity: 0; transform: translateY(-10px); transition: opacity 240ms ease, transform 360ms var(--ease-out); }
  .js .nav a + a { box-shadow: inset 0 2px 0 var(--night-2); }
  .js .bar.is-open .nav a { opacity: 1; transform: none; }
  .js .bar.is-open .nav a:nth-of-type(2) { transition-delay: 40ms; } .js .bar.is-open .nav a:nth-of-type(3) { transition-delay: 80ms; }
  .js .bar.is-open .nav a:nth-of-type(4) { transition-delay: 120ms; } .js .bar.is-open .nav a:nth-of-type(5) { transition-delay: 160ms; }
  .js .bar.is-open .nav a:nth-of-type(6) { transition-delay: 200ms; }
  .js .nav a[aria-current]::after, .js .nav a.is-active::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 10px; height: 10px; border-radius: 50%; translate: 0 -50%; }
  .nav-pill { display: none; }
  .bar .lang { padding: 0 12px; }
}
@media (max-width: 360px) { .brand .logo { height: 24px; } .bar .lang { padding: 0 8px; } }

/* ---------- kaiten (the rotating belt, drawn in CSS around real dish art) ---------- */
.kaiten {
  --K: var(--kk, min(92vw, 560px));
  --plate: calc(var(--K) * 0.17);
  --R: calc(var(--K) * 0.5 - var(--plate) * 0.5 - var(--K) * 0.035);
  --belt-w: calc(var(--plate) + var(--K) * 0.05);
  --T: 64s;
  position: relative; width: var(--K); aspect-ratio: 1; flex: none;
}
.kaiten .glow {
  position: absolute; inset: -18%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 194, 61, 0.22), rgba(255, 194, 61, 0.07) 55%, transparent 72%);
}
.kaiten .floor { /* soft contact shadow under the whole counter */
  position: absolute; inset: 4% 4% -3% 4%; border-radius: 50%;
  box-shadow: 0 calc(var(--K) * 0.05) calc(var(--K) * 0.08) rgba(4, 9, 20, 0.55);
}
.kaiten .rail {
  position: absolute; border-radius: 50%;
  inset: calc(50% - var(--R) - var(--belt-w) / 2 - 9px);
  background: linear-gradient(160deg, #C9D2E0, #7D8AA3 45%, #4E5B76);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), 0 1px 0 rgba(0, 0, 0, 0.4);
}
.kaiten .spin { position: absolute; inset: 0; animation: k-spin var(--T) linear infinite; }
.kaiten .belt {
  position: absolute; border-radius: 50%;
  inset: calc(50% - var(--R) - var(--belt-w) / 2);
  background: repeating-conic-gradient(from 0deg, #2A3450 0deg 1.1deg, #1A2238 1.1deg 5deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - var(--belt-w) - 1px), #000 calc(100% - var(--belt-w)));
          mask: radial-gradient(closest-side, transparent calc(100% - var(--belt-w) - 1px), #000 calc(100% - var(--belt-w)));
}
.kaiten .hub {
  position: absolute; border-radius: 50%;
  inset: calc(50% - var(--R) + var(--belt-w) / 2 + 9px);
  background: radial-gradient(circle at 50% 38%, #34507F, #1E3054 62%, #172645);
  box-shadow: 0 0 0 9px #7D8AA3, 0 0 0 11px #4E5B76, inset 0 -18px 40px rgba(5, 10, 22, 0.45);
  display: grid; place-items: center; overflow: hidden;
}
.kaiten .hub img { width: 82%; transform: translateY(8%); filter: drop-shadow(0 10px 14px rgba(5, 10, 22, 0.45)); }
.kaiten .slot { position: absolute; left: 50%; top: 50%; width: var(--plate); height: var(--plate); margin: calc(var(--plate) / -2) 0 0 calc(var(--plate) / -2); transform: rotate(var(--a)) translateY(calc(var(--R) * -1)); }
.kaiten .up { width: 100%; height: 100%; transform: rotate(calc(var(--a) * -1)); }
.kaiten .dish { position: relative; width: 100%; height: 100%; animation: k-spin var(--T) linear infinite reverse; }
.kaiten .dish img { position: absolute; inset: 0; width: 100%; height: 100%; }
.kaiten .dish .food { inset: 4%; width: 92%; height: 92%; transition: opacity 180ms ease, transform 320ms var(--ease-out); }
.kaiten .dish .food.out { opacity: 0; transform: scale(0.82); }
@keyframes k-spin { to { transform: rotate(360deg); } }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: clip; }
.hero-home .wrap { display: grid; gap: clamp(28px, 4vw, 56px); padding-block: clamp(40px, 7vw, 96px) clamp(56px, 7vw, 104px); align-items: center; }
.hero-home h1 { font-size: clamp(2.75rem, 5.6vw, 5.6rem); }
.hero-home .lead { margin-top: 26px; max-width: 34ch; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: inherit; }
.s-night .lead, .s-night .soft { color: var(--rice-2); }
.hero-home .actions { margin-top: 34px; }
.hero-home .kaiten { justify-self: center; }
@media (min-width: 980px) {
  .hero-home .wrap { grid-template-columns: minmax(0, 1fr) auto; min-height: calc(100svh - 72px - 62px); max-height: 980px; }
  .hero-home .kaiten { --K: min(40vw, 640px); margin-right: calc(var(--gutter) * -0.5); }
}
.tour { margin-top: clamp(36px, 5vw, 56px); }
.tour-label { font-weight: 700; font-size: 1rem; color: var(--rice); }
.tour-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tour-btns button {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--night-2); color: var(--rice-2); font-weight: 600; font-size: 0.95rem;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.tour-btns button:hover { background: var(--night-3); color: var(--rice); }
.tour-btns button:active { transform: scale(0.96); }
.tour-btns button[aria-pressed="true"] { background: var(--rice); color: var(--night); }
.tour-all { margin-top: 4px; font-weight: 600; }
.tour-all a { color: var(--saffron); }
.feat p a { color: var(--link); font-weight: 600; }
.tour-now { margin-top: 12px; color: var(--rice-2); font-size: 0.95rem; min-height: 1.6em; }

/* ---------- game showcase (home) ---------- */
.show { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (min-width: 900px) { .show { grid-template-columns: 1.05fr 0.95fr; } }
.show-logo { width: min(100%, 440px); margin-left: -2%; }
.show-logo img { width: 100%; }
.show h2 { font-size: var(--fs-h2); margin-top: 28px; max-width: 12em; }
.show p.lead { margin-top: 22px; max-width: 40ch; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px clamp(20px, 4vw, 48px); margin: 36px 0 0; padding: 0; list-style: none; }
.facts li { display: grid; }
.facts b { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { font-weight: 600; color: var(--ink-2); margin-top: 6px; }
.show .actions { margin-top: 40px; }
.show .chips { margin-top: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--paper-3); font-weight: 600; font-size: 0.95rem; }
.chips li.is-soon { background: var(--salmon); color: var(--night); }

/* phones: real footage + real store screenshots, stacked with depth */
.stage { position: relative; display: grid; place-items: center; min-height: clamp(460px, 62vw, 700px); }
.phone {
  position: relative; z-index: 2; width: clamp(230px, 24vw, 320px); aspect-ratio: 9 / 19.2;
  border-radius: clamp(30px, 3.4vw, 46px); padding: clamp(8px, 0.8vw, 11px); background: #0A0F1C;
  box-shadow: 0 0 0 2px #2C3756, 0 40px 70px -30px rgba(5, 10, 22, 0.75), 0 18px 30px -18px rgba(5, 10, 22, 0.6);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: clamp(22px, 2.6vw, 36px); background: var(--night); }
.stage .shot {
  position: absolute; z-index: 1; width: clamp(170px, 17vw, 230px); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 50px -28px rgba(5, 10, 22, 0.6);
}
.stage .shot img { width: 100%; height: auto; }
.stage .shot.l { transform: translateX(-62%) rotate(-8deg); }
.stage .shot.r { transform: translateX(62%) rotate(8deg); }
@media (max-width: 520px) { .stage .shot.l { transform: translateX(-46%) rotate(-8deg); } .stage .shot.r { transform: translateX(46%) rotate(8deg); } }

/* ---------- studio principles ---------- */
.ways-head { display: grid; gap: 18px; max-width: 760px; }
.ways-head h2 { font-size: var(--fs-h2); }
.ways { list-style: none; margin: clamp(48px, 7vw, 96px) 0 0; padding: 0; display: grid; gap: clamp(40px, 6vw, 72px); }
.way { display: grid; grid-template-columns: clamp(104px, 17vw, 236px) minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); align-items: center; }
@media (min-width: 900px) { .way:nth-child(2) { margin-left: 16%; } .way:nth-child(3) { margin-left: 32%; } }
.way img { width: 100%; filter: drop-shadow(0 18px 18px rgba(19, 32, 58, 0.22)); }
.way h3 { font-size: clamp(1.7rem, 3.6vw, 3.4rem); letter-spacing: -0.03em; }
.way p { margin-top: 12px; font-size: var(--fs-lead); max-width: 36ch; }

/* ---------- studio band + counter of guests ---------- */
.studio { position: relative; overflow: clip; }
.studio .wrap { display: grid; gap: 28px; padding-bottom: clamp(150px, 18vw, 230px); }
.studio h2 { font-size: var(--fs-h2); max-width: 11em; }
.studio .lead { max-width: 44ch; }
.mail-big { font-weight: 800; font-size: clamp(1.5rem, 4.6vw, 3.8rem); letter-spacing: -0.035em; line-height: 1; color: var(--saffron); text-decoration: none; overflow-wrap: anywhere; justify-self: start; border-radius: 8px; }
.mail-big span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size 320ms var(--ease-out); padding-bottom: 4px; }
.mail-big:hover span, .mail-big:focus-visible span { background-size: 100% 3px; }
.placeholder-note { font-size: 0.95rem; color: var(--rice-2); }
.counter { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(120px, 15vw, 190px); }
.counter .guests { position: absolute; left: 50%; bottom: clamp(26px, 3vw, 40px); display: flex; transform: translateX(-50%); gap: clamp(4px, 1.4vw, 22px); }
.counter .guests img { width: clamp(84px, 11vw, 150px); flex: none; }
.counter .guests img:nth-child(odd) { transform: translateY(6px); }
.counter::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(30px, 3.4vw, 44px); background: #C98A4B; box-shadow: inset 0 6px 0 #E2A464, inset 0 -6px 0 #A86B33; }
@media (prefers-reduced-motion: no-preference) {
  .counter .guests img { animation: bob 3.2s var(--ease-io) infinite alternate; }
  .counter .guests img:nth-child(2n) { animation-delay: -1.1s; }
  .counter .guests img:nth-child(3n) { animation-delay: -2s; }
}
@keyframes bob { from { translate: 0 0; } to { translate: 0 -6px; } }

/* ---------- footer ---------- */
.foot { background: var(--paper-2); color: var(--ink); padding-top: clamp(64px, 8vw, 112px); overflow: clip; }
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h2 { font-size: 1rem; letter-spacing: 0; font-weight: 700; color: var(--ink-2); }
.foot ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; }
.foot ul a { display: inline-flex; min-height: 36px; align-items: center; font-weight: 600; text-decoration: none; }
.foot ul a:hover { text-decoration: underline; }
.foot-about { max-width: 36ch; font-size: 1.125rem; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 28px 32px; font-size: 0.95rem; color: var(--ink-2); }

/* ---------- game page hero ---------- */
.hero-game .wrap { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; padding-block: clamp(32px, 5vw, 72px) clamp(64px, 8vw, 112px); }
.hero-game .logo { width: min(100%, 520px); margin-left: -2%; }
.hero-game h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); margin-top: 18px; max-width: 14em; }
.hero-game .lead { margin-top: 20px; max-width: 42ch; }
.hero-game .stores { margin-top: 32px; }
.hero-game .note { margin-top: 16px; font-size: 0.95rem; color: var(--rice-2); max-width: 46ch; }
.hero-game .kaiten-wrap { --kk: min(94vw, 600px); }
.hero-game .kaiten .hub { background: radial-gradient(circle at 50% 38%, #34507F, #1E3054 62%, #172645); }
.hero-game .phone { position: absolute; left: 50%; top: 50%; width: calc(var(--kk) * 0.4); transform: translate(-50%, -50%); z-index: 3; }
@media (min-width: 980px) {
  .hero-game .wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-game .kaiten-wrap { --kk: min(44vw, 640px); }
}
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 16px;
  border-radius: 14px; background: #000; color: #fff; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
}
.store-btn svg { width: 26px; height: 26px; }
.store-btn span { display: grid; line-height: 1.05; }
.store-btn small { font-size: 0.72rem; font-weight: 600; color: var(--saffron); }
.store-btn b { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.stores .btn-play { min-height: 56px; padding: 0 22px 0 18px; }
.stores .btn-play svg { width: 18px; height: 18px; }

/* ---------- how to play ---------- */
.how { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 900px) { .how { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }
.how h2 { font-size: var(--fs-h2); }
.how-art { width: clamp(160px, 22vw, 300px); margin-top: clamp(24px, 4vw, 48px); filter: drop-shadow(0 18px 18px rgba(19, 32, 58, 0.25)); }
@media (max-width: 899px) { .how-art { display: none; } }
.how .soft { margin-top: 18px; font-size: var(--fs-lead); max-width: 26ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(22px, 3vw, 34px); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: clamp(56px, 6vw, 76px) 1fr; gap: clamp(16px, 2vw, 28px); align-items: center; font-size: clamp(1.25rem, 2.1vw, 1.85rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%;
  background: var(--rice); color: var(--night); font-size: 0.95em; font-weight: 800;
  box-shadow: inset 0 0 0 6px var(--night), inset 0 0 0 8px var(--rice);
}

/* ---------- screenshots ---------- */
.shots-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.shots-head h2 { font-size: var(--fs-h2); }
.shots-head .lead { margin-top: 16px; max-width: 40ch; }
.ctrl { display: flex; gap: 10px; }
.ctrl button {
  width: 52px; height: 52px; border-radius: 999px; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--night-2); color: var(--rice); transition: background-color 160ms ease, transform 160ms var(--ease-out), opacity 160ms ease;
}
.ctrl button:hover { background: var(--night-3); }
.ctrl button:active { transform: scale(0.94); }
.ctrl button:disabled { opacity: 0.35; cursor: default; }
.ctrl svg { width: 22px; height: 22px; }
.track {
  display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; list-style: none;
  margin: clamp(32px, 4vw, 52px) 0 0; padding: 6px var(--gutter) 28px; scrollbar-width: none; overscroll-behavior-x: contain;
  scroll-padding-inline: var(--gutter);
}
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline-offset: -3px; }
.track li { flex: none; width: clamp(220px, 23vw, 320px); scroll-snap-align: start; }
.track img { width: 100%; border-radius: clamp(18px, 2vw, 26px); box-shadow: 0 26px 40px -26px rgba(0, 0, 0, 0.7); }
.track { padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }

/* ---------- features ---------- */
.feat-head h2 { font-size: var(--fs-h2); }
.feats { list-style: none; margin: clamp(44px, 6vw, 80px) 0 0; padding: 0; display: grid; gap: clamp(36px, 4vw, 56px) clamp(32px, 5vw, 80px); }
@media (min-width: 760px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .feats { grid-template-columns: 1fr 1fr 1fr; } }
.feat { display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: start; }
.feat img { width: 84px; height: 84px; filter: drop-shadow(0 10px 10px rgba(19, 32, 58, 0.2)); }
.feat h3 { font-size: var(--fs-h3); margin-top: 6px; }
.feat p { margin-top: 8px; color: var(--ink-2); }

/* ---------- coming soon ---------- */
.soon { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .soon { grid-template-columns: auto 1fr auto; gap: 44px; } }
.soon .icon { width: clamp(108px, 12vw, 156px); height: auto; border-radius: 26%; box-shadow: 0 24px 40px -22px rgba(19, 32, 58, 0.7); }
.soon h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); }
.soon p { margin-top: 12px; font-size: var(--fs-lead); max-width: 40ch; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 0.75fr 1.25fr; gap: 64px; } .faq-grid > div:first-child { position: sticky; top: 112px; align-self: start; } }
.faq-grid h2 { font-size: var(--fs-h2); }
.faq-grid .aside { margin-top: 20px; font-size: 1.125rem; max-width: 30ch; }
.faq details { background: var(--paper-2); border-radius: 22px; margin-bottom: 10px; transition: background-color 160ms ease; }
.faq details[open] { background: var(--paper-3); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; min-height: 64px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; border-radius: 22px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--saffron) center / 14px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313203A' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform 260ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; max-width: 64ch; }
.faq details > div p + p { margin-top: 10px; }
.faq a, .doc a, .prose a { color: var(--link); font-weight: 600; }

/* ---------- documents (privacy, terms, support) ---------- */
.doc-hero { position: relative; overflow: clip; }
.doc-hero .hero-art { position: absolute; right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); bottom: 0; width: clamp(180px, 20vw, 280px); }
@media (max-width: 899px) { .doc-hero .hero-art { display: none; } }
.doc-hero .wrap { padding-block: clamp(48px, 7vw, 104px) clamp(36px, 5vw, 64px); }

.doc-hero h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.doc-hero .meta { margin-top: 18px; font-weight: 600; color: var(--rice-2); }
.doc-hero .lead { margin-top: 16px; max-width: 56ch; color: var(--rice-2); }
.doc-layout { display: grid; gap: 40px; padding-block: clamp(40px, 6vw, 88px) var(--sec); }
.doc-layout > * { min-width: 0; }
@media (min-width: 1000px) { .doc-layout { grid-template-columns: 270px minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); } }
.toc { align-self: start; }
@media (min-width: 1000px) { .toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; } }
.toc h2 { font-size: 1rem; letter-spacing: 0; color: var(--ink-2); }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 12px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 0.95rem; line-height: 1.3; color: var(--ink-2); transition: background-color 160ms ease, color 160ms ease; }
.toc a:hover { background: var(--paper-2); color: var(--ink); }
.toc a.on { background: var(--paper-3); color: var(--ink); }
@media (max-width: 999px) {
  .toc { background: var(--paper-2); border-radius: 22px; padding: 18px 12px 12px; }
  .toc h2 { padding-inline: 12px; }
}
.prose { max-width: 70ch; font-size: 1.0625rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); letter-spacing: -0.025em; line-height: 1.08; margin-top: 2.2em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--salmon-2); }
.prose code { font-size: 0.95rem; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }
.prose .h-anchor { margin-left: 0.3em; color: var(--ink-2); opacity: 0; text-decoration: none; font-weight: 600; transition: opacity 160ms ease; }
.prose h2:hover .h-anchor, .prose .h-anchor:focus-visible { opacity: 1; }
.callout { background: var(--paper-2); border-radius: 22px; padding: 22px 26px; }
.callout ul { margin: 0; }
.callout.future { background: color-mix(in srgb, var(--saffron) 22%, var(--paper)); }
.tag-future { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; background: var(--saffron); color: var(--night); font-size: 0.82rem; font-weight: 700; vertical-align: 2px; }
.table-wrap { overflow-x: auto; border-radius: 18px; background: var(--paper-2); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 14px 18px; }
.table-wrap th { background: var(--paper-3); font-weight: 700; }
.table-wrap tr + tr td { border-top: 1px solid var(--paper-3); }

.contact {
  display: grid; gap: 20px; margin-top: 36px; padding: clamp(24px, 3vw, 36px); border-radius: 28px;
  background: var(--saffron); color: var(--night);
}
@media (min-width: 760px) { .contact { grid-template-columns: 1fr auto; align-items: center; } }
.contact h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.contact p { margin-top: 8px; font-size: 1.1rem; max-width: 46ch; }
.contact .btn { overflow-wrap: anywhere; }
.links-3 { display: grid; gap: 12px; margin-top: 56px; }
@media (min-width: 760px) { .links-3 { grid-template-columns: repeat(3, 1fr); } }
.links-3 a { display: grid; gap: 6px; padding: 22px 24px; border-radius: 22px; background: var(--paper-2); text-decoration: none; color: var(--ink); transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.links-3 a:hover { background: var(--paper-3); }
.links-3 a:active { transform: scale(0.98); }
.links-3 b { font-size: 1.25rem; letter-spacing: -0.015em; }
.links-3 span { color: var(--ink-2); }

/* ---------- 404 ---------- */
.lost { min-height: calc(100svh - 72px); display: grid; align-items: center; }
.lost .wrap { display: grid; gap: 40px; align-items: center; padding-block: 56px; }
@media (min-width: 900px) { .lost .wrap { grid-template-columns: 1fr auto; } }
.lost h1 { font-size: var(--fs-hero); max-width: 8em; }
.lost .lead { margin-top: 20px; color: var(--rice-2); max-width: 40ch; }
.lost .en { margin-top: 10px; color: var(--rice-2); max-width: 46ch; }
.lost .actions { margin-top: 32px; }
.lost .kaiten { --K: min(80vw, 440px); justify-self: center; }

/* ---------- shared bits for the cuisine + press pages ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 0.95rem; color: var(--rice-2); }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: 0.5; }
.crumbs a { text-decoration: none; border-radius: 6px; }
.crumbs a:hover { color: var(--rice); text-decoration: underline; }
.crumbs [aria-current] { color: var(--rice); }
.s-night .facts span { color: var(--rice-2); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.jump a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  background: var(--night-2); color: var(--rice-2); font-weight: 600; font-size: 0.95rem;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.jump a:hover { background: var(--night-3); color: var(--rice); }
.jump a:active { transform: scale(0.96); }
.jump b { font-variant-numeric: tabular-nums; color: var(--saffron); font-weight: 700; }
.flag { display: block; flex: none; width: 48px; height: 32px; border-radius: 5px; box-shadow: 0 6px 12px -8px rgba(5, 10, 22, 0.6); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 28px; }
.sec-head h2 { font-size: var(--fs-h2); }
.sec-head p { font-size: var(--fs-lead); color: var(--ink-2); max-width: 44ch; }
.s-saffron .sec-head p, .s-salmon .sec-head p { color: var(--night); }
.s-night .sec-head p { color: var(--rice-2); }

/* ---------- cuisines: hub ---------- */
.cz-hero .wrap { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 104px); }
.cz-hero h1 { font-size: clamp(2.6rem, 5.4vw, 5.2rem); margin-top: 22px; max-width: 11em; }
.cz-hero .lead { margin-top: 22px; max-width: 42ch; }
.cz-hero .facts { margin-top: 30px; }
.cz-hero .actions { margin-top: 32px; }
.cz-hero .jump { margin-top: 30px; }
.cz-hero .kaiten { justify-self: center; --K: min(86vw, 520px); }
.cz-hero .kaiten .hub img { width: 78%; transform: none; }
@media (min-width: 980px) {
  .cz-hero .wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .cz-hero .kaiten { --K: min(40vw, 580px); }
}
.region { scroll-margin-top: 80px; }
.cz-grid { list-style: none; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.cz-card {
  position: relative; display: grid; gap: 14px; align-content: start; height: 100%; padding: 20px 20px 18px; border-radius: 24px; text-decoration: none; color: var(--ink);
  background: var(--paper-2); transition: background-color 160ms ease, transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.s-paper2 .cz-card { background: var(--paper); }
.s-saffron .cz-card { background: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .cz-card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -22px rgba(19, 32, 58, 0.55); }
  .cz-card:hover .go { transform: translateX(3px); }
}
.cz-card:active { transform: scale(0.98); }
.cz-top { display: flex; align-items: center; gap: 14px; }
.cz-top h3 { font-size: 1.45rem; letter-spacing: -0.025em; }
.cz-top small { display: block; margin-top: 3px; font-weight: 600; color: var(--ink-2); font-size: 0.92rem; }
.cz-top .go { margin-left: auto; width: 22px; height: 22px; flex: none; color: var(--ink-2); transition: transform 220ms var(--ease-out); }
.cz-dishes { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.cz-dishes img { width: 42px; height: 42px; }
.cz-dishes .more { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper-3); font-weight: 700; font-size: 0.85rem; color: var(--ink-2); }
.s-paper2 .cz-dishes .more, .s-saffron .cz-dishes .more { background: var(--paper-2); }
.cz-names { font-size: 0.95rem; color: var(--ink-2); line-height: 1.4; }
/* the home market gets a wide feature card */
.cz-card.is-home { grid-template-columns: 1fr; padding: clamp(22px, 3vw, 34px); background: var(--home-card); color: var(--rice); }
.cz-card.is-home .cz-top small, .cz-card.is-home .cz-names, .cz-card.is-home .go { color: var(--rice-2); }
.cz-card.is-home h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.cz-card.is-home .flag { width: 72px; height: 48px; }
.cz-card.is-home .cz-dishes { gap: 6px; }
.cz-card.is-home .cz-dishes img { width: clamp(52px, 5.4vw, 72px); height: clamp(52px, 5.4vw, 72px); }
.cz-card.is-home .tag { justify-self: start; padding: 5px 12px; border-radius: 999px; background: var(--saffron); color: var(--night); font-weight: 700; font-size: 0.85rem; }
.cz-grid > li.wide { grid-column: 1 / -1; }
.cz-grid.is-home { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
@media (min-width: 900px) {
  .cz-card.is-home { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; column-gap: clamp(32px, 4vw, 64px); }
  .cz-card.is-home > :not(.cz-dishes) { grid-column: 1; }
  .cz-card.is-home .cz-dishes { grid-column: 2; grid-row: 1 / span 3; }
}

/* ---------- cuisines: country page ---------- */
.cz-country .flag-big { width: clamp(84px, 9vw, 120px); height: auto; aspect-ratio: 3 / 2; border-radius: 8px; box-shadow: 0 14px 26px -16px rgba(0, 0, 0, 0.7); margin-top: 26px; }
.cz-country h1 { margin-top: 18px; }
.cz-country .chips { margin-top: 24px; }
.cz-country .chips li { background: var(--night-2); color: var(--rice); }
.cz-country .kaiten .hub img { width: 86%; filter: drop-shadow(0 8px 12px rgba(5, 10, 22, 0.4)); }
.intro { display: grid; gap: clamp(24px, 4vw, 64px); }
@media (min-width: 900px) { .intro { grid-template-columns: 0.8fr 1.2fr; } }
.intro h2 { font-size: var(--fs-h2); }
.intro .prose { font-size: var(--fs-lead); max-width: 52ch; }
.dish-list { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; gap: clamp(28px, 3vw, 40px) clamp(28px, 4vw, 56px); }
@media (min-width: 720px) { .dish-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1120px) { .dish-list { grid-template-columns: 1fr 1fr 1fr; } }
.dish { display: grid; grid-template-columns: clamp(72px, 9vw, 112px) minmax(0, 1fr); gap: 18px; align-items: start; }
.dish .plate { position: relative; aspect-ratio: 1; }
.dish .plate img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dish .plate .food { inset: 4%; width: 92%; height: 92%; }
.dish h3 { font-size: var(--fs-h3); margin-top: 8px; }
.dish h3 small { display: block; margin-top: 4px; font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.dish p { margin-top: 8px; color: var(--ink-2); }
.dish .num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--salmon-2); font-size: 0.9rem; }
.postcard-wrap { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .postcard-wrap { grid-template-columns: 0.75fr 1.25fr; } }
.postcard-wrap > div > h2 { font-size: var(--fs-h2); }
.postcard-wrap > div > p { margin-top: 16px; font-size: var(--fs-lead); max-width: 30ch; }
.postcard {
  position: relative; display: grid; gap: 22px; padding: clamp(22px, 3.4vw, 40px); border-radius: 10px; background: #FFFBF3; color: #3A2618;
  box-shadow: 0 30px 50px -30px rgba(19, 32, 58, 0.7), 0 2px 0 rgba(0, 0, 0, 0.05); rotate: -1.2deg;
  background-image: repeating-linear-gradient(135deg, #E4572E 0 14px, transparent 14px 28px, #2B59C3 28px 42px, transparent 42px 56px);
  background-size: 100% 8px; background-repeat: no-repeat; background-position: 0 0;
}
@media (min-width: 640px) { .postcard { grid-template-columns: minmax(0, 1fr) clamp(110px, 14vw, 160px); } .postcard .back { border-right: 2px dashed rgba(58, 38, 24, 0.22); padding-right: clamp(18px, 3vw, 32px); } }
.postcard .hi { font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.1; margin-top: 6px; }
.postcard .q { margin-top: 18px; font-weight: 700; color: #B8381A; }
.postcard .fact { margin-top: 6px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; }
.postcard .stamp { display: grid; gap: 12px; justify-items: center; align-content: start; }
.postcard .stamp img { width: 100%; max-width: 150px; rotate: 6deg; }
.postcard .flag { width: 60px; height: 40px; }
.near { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.near a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 18px; border-radius: 18px; background: var(--paper-2); text-decoration: none; font-weight: 700; font-size: 1.1rem; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.near a:hover { background: var(--paper-3); }
.near a:active { transform: scale(0.98); }
.near .flag { width: 42px; height: 28px; }
.near small { display: block; font-weight: 600; font-size: 0.85rem; color: var(--ink-2); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(36px, 5vw, 56px); }

/* ---------- press kit ---------- */
.pk-hero .wrap { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(36px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.pk-hero h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); margin-top: 22px; }
.pk-hero .lead { margin-top: 22px; max-width: 46ch; }
.pk-hero .actions { margin-top: 32px; }
.pk-hero .meta { margin-top: 14px; font-size: 0.95rem; color: var(--rice-2); }
.pk-hero .jump { margin-top: 34px; }
.pk-art { position: relative; justify-self: center; width: min(100%, 560px); }
.pk-art .logo { width: 100%; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.35)); }
@media (min-width: 980px) { .pk-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); } }
.sheet { display: grid; gap: clamp(28px, 4vw, 72px); }
@media (min-width: 900px) { .sheet { grid-template-columns: 0.7fr 1.3fr; } .sheet > div:first-child { position: sticky; top: 112px; align-self: start; } }
.sheet h2 { font-size: var(--fs-h2); }
.sheet .aside { margin-top: 18px; font-size: 1.1rem; color: var(--ink-2); max-width: 32ch; }
.sheet .aside + .actions { margin-top: 24px; }
.factlist { margin: 0; display: grid; }
.factlist > div { display: grid; gap: 4px 24px; padding: 16px 0; border-top: 2px solid var(--paper-3); }
.factlist > div:last-child { border-bottom: 2px solid var(--paper-3); }
@media (min-width: 560px) { .factlist > div { grid-template-columns: 11rem minmax(0, 1fr); align-items: baseline; } }
.factlist dt { font-weight: 600; color: var(--ink-2); }
.factlist dd { margin: 0; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.factlist dd a { color: var(--link); }
.factlist dd small { display: block; margin-top: 4px; font-weight: 500; font-size: 0.95rem; color: var(--ink-2); letter-spacing: 0; }
.desc { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 900px) { .desc { grid-template-columns: 0.9fr 1.1fr; } }
.desc .short { font-size: clamp(1.7rem, 3.2vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin-top: 18px; max-width: 18ch; }
.desc .label { font-weight: 700; font-size: 1rem; }
.desc .prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.pk-videos { display: grid; gap: clamp(32px, 4vw, 56px); margin-top: clamp(36px, 5vw, 64px); }
@media (min-width: 760px) { .pk-videos { grid-template-columns: 1fr 1fr; } }
.pk-video { display: grid; justify-items: center; gap: 22px; }
.pk-video .phone { width: min(78vw, 300px); }
.pk-video figcaption { text-align: center; }
.pk-video figcaption b { display: block; font-size: 1.35rem; letter-spacing: -0.02em; }
.pk-video figcaption span { color: var(--rice-2); }
.pk-video figcaption .dl { justify-content: center; margin-top: 14px; }
.s-night .dl a { background: var(--night-2); color: var(--rice); }
.s-night .dl a:hover { background: var(--saffron); color: var(--night); }
.pk-note { margin-top: clamp(32px, 4vw, 48px); padding: 18px 22px; border-radius: 18px; background: var(--night-2); color: var(--rice-2); max-width: 70ch; }
.pk-note b { color: var(--rice); }
.pk-shots { list-style: none; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; display: grid; gap: clamp(10px, 1.6vw, 20px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .pk-shots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pk-shots a { display: block; border-radius: clamp(14px, 1.6vw, 22px); overflow: hidden; box-shadow: 0 22px 36px -26px rgba(19, 32, 58, 0.7); transition: transform 220ms var(--ease-out); }
.pk-shots a:hover { transform: translateY(-3px); }
.pk-shots img { width: 100%; }
.tiles { list-style: none; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.tile { display: grid; grid-template-rows: auto 1fr; border-radius: 24px; overflow: hidden; background: var(--paper-2); }
.s-paper2 .tile { background: var(--paper); }
.tile .pv { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 22px; }
.tile .pv.light { background: #FBF6EE; }
.tile .pv.dark { background: #13203A; }
.tile .pv.check { background: repeating-conic-gradient(#E9DDC9 0 25%, #FBF6EE 0 50%) 0 0 / 22px 22px; }
.tile .pv > * { max-width: 100%; }
.tile .pv img.mark { width: 34%; height: auto; }
.tile .pv img.icon { width: 40%; height: auto; border-radius: 22%; box-shadow: 0 16px 26px -16px rgba(0, 0, 0, 0.6); }
.tile .pv img.wide { width: 100%; height: auto; border-radius: 10px; }
.tile .meta { padding: 16px 20px 18px; display: grid; gap: 8px; align-content: start; }
.tile .meta b { font-size: 1.1rem; letter-spacing: -0.01em; }
.tile .meta span { color: var(--ink-2); font-size: 0.95rem; }
.dl { display: flex; flex-wrap: wrap; gap: 8px; }
.dl a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--paper-3); font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: background-color 160ms ease; }
.s-paper2 .dl a { background: var(--paper-2); }
.dl a:hover { background: var(--saffron); color: var(--night); }
.dl svg { width: 16px; height: 16px; }
.swatches { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .swatches { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.swatch { border-radius: 22px; overflow: hidden; background: var(--paper-2); }
.swatch .chip { height: 110px; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.28); border-radius: 22px 22px 0 0; }
.swatch .meta { padding: 14px 16px 16px; display: grid; gap: 2px; }
.swatch b { font-size: 1.05rem; }
.swatch code { font-size: 0.95rem; font-weight: 600; color: var(--ink-2); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.swatch button { justify-self: start; margin-top: 8px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--paper-3); font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: background-color 160ms ease; }
.swatch button:hover { background: var(--saffron); color: var(--night); }
.sw-group { margin-top: clamp(40px, 5vw, 64px); }
.sw-group h3 { font-size: var(--fs-h3); }
.about-list { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; gap: 18px; counter-reset: a; }
@media (min-width: 900px) { .about-list { grid-template-columns: 1fr 1fr; gap: 22px 56px; } }
.about-list li { font-size: clamp(1.2rem, 1.9vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; padding-top: 18px; border-top: 3px solid var(--night); }

/* =====================================================================
   v3: logo lockup in the footer, 3D hero, marquee, counters, devlog, motion layer
   ===================================================================== */
.foot-word { display: block; margin-top: clamp(56px, 8vw, 104px); color: var(--ink); line-height: 0; }
.foot-word .logo { width: 100%; height: auto; }
.foot-word .logo-mark { transform-box: fill-box; transform-origin: 50% 50%; }

/* hero stage: the 2D belt is the poster; the 3D canvas fades in on top when it is ready */
.hero-stage { position: relative; justify-self: center; display: grid; place-items: center; }
.hero-stage > .kaiten { transition: opacity 600ms ease, transform 900ms var(--ease-out), filter 600ms ease; }
.hero3d { position: absolute; inset: -12% -9% -8%; pointer-events: none; opacity: 0; transition: opacity 900ms ease; }
.hero3d canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-stage.is-3d .hero3d { opacity: 1; }
.hero-stage.is-3d > .kaiten { opacity: 0; transform: scale(0.94); filter: blur(6px); }
.hero-stage.is-3d > .kaiten .spin, .hero-stage.is-3d > .kaiten .dish { animation-play-state: paused; }
.hero-stage.is-paused .kaiten .spin, .hero-stage.is-paused .kaiten .dish { animation-play-state: paused; }
.stage-tools { position: absolute; right: 0; bottom: -6px; z-index: 3; display: flex; gap: 8px; }
.stage-tools button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px; border: 0; border-radius: 999px; background: var(--night-2); color: var(--rice); font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.stage-tools button:hover { background: var(--night-3); }
.stage-tools button:active { transform: scale(0.96); }
.stage-tools svg { width: 16px; height: 16px; }
.stage-tools .play { display: none; }
.hero-stage.is-paused .stage-tools .play { display: block; }
.hero-stage.is-paused .stage-tools .pause { display: none; }
.stage-badge { position: absolute; left: 0; top: 2%; z-index: 3; display: none; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--night-2); color: var(--rice-2); font-weight: 700; font-size: 0.85rem; }
.stage-badge i { width: 8px; height: 8px; border-radius: 50%; background: #4FD18B; box-shadow: 0 0 0 4px rgba(79, 209, 139, 0.18); }
.hero-stage.is-3d .stage-badge { display: inline-flex; }
@media (prefers-reduced-motion: no-preference) { .stage-badge i { animation: pulse 2.4s ease-in-out infinite; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(79, 209, 139, 0); } }
.tour-btns button[data-country="mix"] { display: none; }
.tour.has-3d .tour-btns button[data-country="mix"] { display: inline-flex; align-items: center; gap: 6px; }
.tour-btns button { position: relative; overflow: hidden; }

/* dish marquee: a second, endless belt between sections */
.marquee { --gap: clamp(18px, 3vw, 40px); position: relative; overflow: clip; padding-block: clamp(18px, 2.6vw, 28px); background: var(--field-saffron); color: var(--night); }
.marquee-track { display: flex; width: max-content; gap: var(--gap); }
.marquee ul { display: flex; align-items: center; gap: var(--gap); margin: 0; padding: 0; list-style: none; flex: none; }
.marquee li { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: clamp(1.2rem, 2.2vw, 1.9rem); letter-spacing: -0.025em; white-space: nowrap; }
.marquee img { width: clamp(52px, 6vw, 76px); height: auto; filter: drop-shadow(0 8px 8px rgba(19, 32, 58, 0.2)); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 60s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } }

/* numbers band */
.numbers { display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.numbers li { display: grid; gap: 10px; align-content: start; }
.numbers b { font-size: clamp(3.2rem, 7vw, 6.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.9; font-variant-numeric: tabular-nums; color: var(--saffron); }
.numbers b .inf { display: inline-block; transform-origin: 50% 55%; }
.numbers > li > span { font-weight: 700; font-size: clamp(1.1rem, 1.5vw, 1.35rem); letter-spacing: -0.01em; max-width: 16ch; }
.numbers small { color: var(--rice-2); font-size: 1rem; max-width: 26ch; }
.numbers-head { display: grid; gap: 16px; margin-bottom: clamp(44px, 6vw, 80px); }
.numbers-head h2 { font-size: var(--fs-h2); max-width: 14em; }
.numbers-head p { color: var(--rice-2); font-size: var(--fs-lead); max-width: 52ch; }
@media (prefers-reduced-motion: no-preference) { .numbers .inf { animation: inf 6s var(--ease-io) infinite; } }
@keyframes inf { 0%, 80%, 100% { transform: none; } 88% { transform: rotate(180deg) scale(1.06); } }

/* devlog */
.posts { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 860px) { .posts { grid-template-columns: 1fr 1fr; } }
.post-card { position: relative; display: grid; grid-template-rows: auto 1fr; height: 100%; border-radius: 26px; overflow: hidden; background: var(--paper-2); text-decoration: none; color: var(--ink); transition: transform 260ms var(--ease-out), background-color 200ms ease; }
.s-paper2 .post-card { background: var(--paper); }
.post-card .art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 8; background: var(--night); overflow: hidden; }
.post-card .art.saffron { background: var(--field-saffron); }
.post-card .art img { width: 24%; filter: drop-shadow(0 16px 18px rgba(5, 10, 22, 0.35)); transition: transform 520ms var(--ease-out); }
.post-card .art img:nth-child(2) { margin-top: -6%; }
.post-card .art .row { display: flex; gap: 4%; justify-content: center; width: 100%; }
.post-card .body { display: grid; gap: 12px; align-content: start; padding: clamp(20px, 2.6vw, 30px); }
.post-card time { font-weight: 700; color: var(--ink-2); font-size: 0.95rem; }
.post-card h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.025em; line-height: 1.08; }
.post-card p { color: var(--ink-2); font-size: 1.05rem; }
.post-card .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--link); margin-top: 4px; }
.post-card .more svg { width: 18px; height: 18px; transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .post-card:hover { transform: translateY(-4px); background: var(--paper-3); }
  .post-card:hover .art img { transform: translateY(-6px) rotate(-4deg); }
  .post-card:hover .art img:nth-child(2) { transform: translateY(-10px) rotate(5deg); }
  .post-card:hover .more svg { transform: translateX(4px); }
}
.post-card:active { transform: scale(0.985); }
.article-hero .wrap { padding-block: clamp(40px, 6vw, 96px) clamp(40px, 5vw, 72px); display: grid; gap: 22px; }
.article-hero h1 { font-size: clamp(2.5rem, 5.6vw, 5rem); max-width: 14em; }
.article-hero .meta { font-weight: 600; color: var(--rice-2); }
.article-hero .lead { max-width: 52ch; color: var(--rice-2); }
.article { padding-block: clamp(48px, 6vw, 96px) var(--sec); }
.article .prose { margin-inline: auto; font-size: 1.125rem; line-height: 1.65; }
.article .prose figure { margin: 2em 0; }
.article .prose figure.dishes { display: flex; flex-wrap: wrap; gap: 6px; padding: 20px; border-radius: 22px; background: var(--paper-2); }
.article .prose figure.dishes img { width: 64px; height: 64px; }
.article .prose figcaption { width: 100%; margin-top: 8px; font-size: 0.95rem; color: var(--ink-2); }
.article .back { margin-top: 3em; }

/* home FAQ re-uses .faq; small spacing for the studio band */
.home-faq { margin-top: 0; }

/* magnetic buttons (pointer only): JS sets --mx/--my */
@media (hover: hover) and (pointer: fine) {
  [data-magnetic] { translate: var(--mx, 0) var(--my, 0); transition: translate 380ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease; }
}

/* ---------- motion layer v3: scroll-driven reveals where supported, IntersectionObserver elsewhere ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js.sdt [data-reveal] { opacity: 1; transform: none; transition: none; animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 62%; }
    .js.sdt [data-reveal][style*="--d:1"] { animation-range: entry 6% entry 68%; }
    .js.sdt [data-reveal][style*="--d:2"] { animation-range: entry 12% entry 74%; }
    .js.sdt [data-reveal][style*="--d:3"] { animation-range: entry 18% entry 80%; }
    .js.sdt [data-reveal][style*="--d:4"], .js.sdt [data-reveal][style*="--d:5"] { animation-range: entry 24% entry 86%; }
    .stage .shot.l { animation: drift-l linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .stage .shot.r { animation: drift-r linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .way img { animation: way-float linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .numbers li { animation: reveal linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(36px) scale(0.985); } }
@keyframes drift-l { from { translate: 0 40px; rotate: -3deg; } to { translate: 0 -30px; rotate: 2deg; } }
@keyframes drift-r { from { translate: 0 60px; rotate: 3deg; } to { translate: 0 -20px; rotate: -2deg; } }
@keyframes way-float { from { translate: 0 40px; rotate: -6deg; } to { translate: 0 -30px; rotate: 6deg; } }

/* cross-document View Transitions (Chrome, Edge, Safari 18.2+); other browsers just navigate */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out 220ms cubic-bezier(0.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-in 420ms cubic-bezier(0.23, 1, 0.32, 1) both; }
  .bar { view-transition-name: bar; }
  ::view-transition-group(bar) { animation-duration: 0s; }
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- motion: entrance reveals (content stays visible without JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.hero-in > * { animation: rise 900ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }
.kaiten.hero-in { animation: k-in 1200ms var(--ease-out) both 120ms; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes k-in { from { opacity: 0; transform: scale(0.92) rotate(-12deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .kaiten .spin, .kaiten .dish { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* v3 hero: on phones the belt sits between the actions and the country picker */
@media (max-width: 979px) {
  .hero-home .wrap { row-gap: 0; }
  .hero-home .wrap > .hero-in { display: contents; }
  .hero-home .hero-stage { order: 3; margin-top: clamp(36px, 8vw, 56px); }
  .hero-home .tour { order: 4; }
  .hero-home .kaiten { --K: min(88vw, 520px); }
  .stage-tools { bottom: -18px; }
}
.mascot { position: relative; aspect-ratio: 1; }
.mascot > img { width: 100%; transition: opacity 500ms ease, transform 700ms var(--ease-out); }
.mascot3d { position: absolute; inset: -18% -22% -6%; opacity: 0; transition: opacity 700ms ease; pointer-events: none; }
.mascot3d canvas { display: block; width: 100% !important; height: 100% !important; }
.mascot.is-3d .mascot3d { opacity: 1; }
.mascot.is-3d > img { opacity: 0; transform: scale(0.9); }
.how-art.mascot { filter: none; }
@media (max-width: 420px) { .contact .btn, .contact-card .btn { font-size: 0.92rem; padding-inline: 16px; gap: 8px; } .contact .btn svg { width: 18px; height: 18px; } }
.post-card .art img { width: 26%; }
@media (max-width: 979px) { .hero3d { inset: -12% -6% -8%; } }
:root[data-theme="dark"] .post-card .art:not(.saffron) { background: var(--night-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .post-card .art:not(.saffron) { background: var(--night-3); } }
/* mobile menu backdrop (tap to close) */
@media (max-width: 899px) {
  .js .bar::before { content: ""; position: fixed; left: 0; right: 0; bottom: 0; top: var(--bar-h, 72px); background: rgba(5, 10, 22, 0.6); opacity: 0; pointer-events: none; transition: opacity 300ms ease; z-index: 48; }
  .js .bar.is-open::before { opacity: 1; pointer-events: auto; }
}
.stage-tools[hidden] { display: none; }

/* =====================================================================================================
   v4 (2026-10-19): self-hosted type, command palette, cursor light, studio console, bento, mini belt,
   roadmap, changelog, contact form, launch band, sound toggle, trailer, studio page.
   ===================================================================================================== */

/* ---------- type: Bricolage Grotesque served from this site (OFL, assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap;
  src: url("/assets/fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap;
  src: url("/assets/fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root { --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace; --line: rgba(255, 246, 234, 0.1); --line-ink: color-mix(in srgb, var(--ink) 12%, transparent); }

kbd { font-family: var(--mono); font-size: 0.78em; font-weight: 600; padding: 2px 6px; border-radius: 6px; background: var(--paper-3); color: var(--ink); box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--ink) 25%, transparent); }
.s-night kbd, .bar kbd, .tile kbd { background: var(--night-3); color: var(--rice); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5); }

/* ---------- header: palette button ---------- */
.cmd-btn {
  height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border-radius: 999px; border: 0; flex: none;
  background: var(--night-2); color: var(--rice); cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.cmd-btn:hover { background: var(--night-3); }
.cmd-btn:active { transform: scale(0.94); }
.cmd-btn svg { width: 19px; height: 19px; }
.cmd-kbd { display: none; gap: 3px; }
.cmd-kbd kbd { font-size: 0.72rem; padding: 1px 5px; }
@media (min-width: 1240px) { .cmd-btn { padding: 0 10px 0 14px; } .cmd-kbd { display: inline-flex; } }
@media (max-width: 1239px) { .cmd-btn { padding: 0; width: 44px; } }
@media (max-width: 380px) { .theme-btn, .menu-btn, .cmd-btn { width: 40px; height: 40px; min-width: 40px; } }

/* ---------- command palette (no open/close animation: it is used often) ---------- */
.cmdk { position: fixed; inset: 0; z-index: 200; display: grid; justify-items: center; align-items: start; padding: min(14vh, 120px) 16px 16px; background: rgba(5, 10, 22, 0.62); }
.cmdk[hidden] { display: none; }
.cmdk-box { width: min(640px, 100%); max-height: min(70vh, 560px); display: grid; grid-template-rows: auto 1fr auto; border-radius: 20px; overflow: hidden;
  background: var(--night); color: var(--rice); box-shadow: 0 0 0 1px var(--night-3), 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.cmdk-in svg { width: 20px; height: 20px; flex: none; color: var(--rice-2); }
.cmdk-in input { flex: 1; min-width: 0; height: 60px; border: 0; background: transparent; color: var(--rice); font: inherit; font-size: 1.125rem; outline: none; }
.cmdk-in input::placeholder { color: color-mix(in srgb, var(--rice-2) 70%, transparent); }
.cmdk-list { overflow-y: auto; overscroll-behavior: contain; padding: 8px; margin: 0; list-style: none; }
.cmdk-g { padding: 12px 12px 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rice-2); }
.cmdk-o { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 12px; cursor: pointer; color: var(--rice-2); }
.cmdk-o .u { margin-left: auto; font-family: var(--mono); font-size: 0.78rem; color: color-mix(in srgb, var(--rice-2) 60%, transparent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; }
.cmdk-o .ic { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--night-2); color: var(--saffron); font-size: 0.8rem; font-weight: 800; }
.cmdk-o[aria-selected="true"] { background: var(--night-2); color: var(--rice); }
.cmdk-o[aria-selected="true"] .ic { background: var(--saffron); color: var(--night); }
.cmdk-o mark { background: none; color: var(--saffron); }
.cmdk-empty { padding: 28px 16px; text-align: center; color: var(--rice-2); }
.cmdk-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--rice-2); }
@media (max-width: 560px) { .cmdk { padding-top: 12px; } .cmdk-o .u { display: none; } .cmdk-foot { display: none; } }

/* ---------- cursor light + dot grid (fine pointers only; JS sets --sx/--sy/--so) ---------- */
[data-spot] { position: relative; isolation: isolate; }
.hero[data-spot]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 246, 234, 0.11) 1px, transparent 1.4px); background-size: 26px 26px;
  -webkit-mask: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%); mask: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}
[data-spot]::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; opacity: var(--so, 0); transition: opacity 400ms ease;
  background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 194, 61, 0.13), transparent 60%);
}
.tile[data-spot]::after, .principles [data-spot]::after { background: radial-gradient(320px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 194, 61, 0.16), transparent 65%); }
/* cheap "bloom" behind the 3D belt (a gradient, no post-processing pass) */
.hero-stage::before { content: ""; position: absolute; inset: 2% 0 8%; z-index: -1; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity 900ms ease;
  background: radial-gradient(closest-side, rgba(255, 194, 61, 0.26), rgba(255, 107, 69, 0.1) 55%, transparent 78%); }
.hero-stage.is-3d::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .hero-stage.is-3d::before { animation: bloom 6s var(--ease-io) infinite alternate; } }
@keyframes bloom { to { transform: scale(1.06); opacity: 0.75; } }

/* ---------- studio console (live status band at the foot of the home hero) ---------- */
.console { position: relative; border-top: 1px solid var(--line); background: rgba(11, 20, 38, 0.55); }
.console-in { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; padding-block: 14px; font-family: var(--mono); font-size: 0.82rem; color: var(--rice-2); font-variant-numeric: tabular-nums; }
.console-in > * { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.console-in b { color: var(--rice); font-weight: 700; }
.console-in a { color: var(--rice-2); text-decoration: none; border-radius: 6px; }
.console-in a:hover { color: var(--rice); }
.console-in time { color: var(--rice); }
.console .c-live i, .console .c-demo i { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px rgba(255, 194, 61, 0.16); }
.console .c-demo { margin-left: auto; color: var(--saffron); font-weight: 700; }
.console .c-demo i { background: #4FD18B; box-shadow: 0 0 0 4px rgba(79, 209, 139, 0.18); }
.console .c-demo svg { width: 15px; height: 15px; }
@media (prefers-reduced-motion: no-preference) { .console .c-demo i { animation: pulse 2.4s ease-in-out infinite; } }
@media (max-width: 760px) { .console-in { gap: 2px 18px; font-size: 0.78rem; } .console .c-demo { margin-left: 0; } .console-in > span:nth-of-type(n+2) { display: none; } }

/* ---------- tech bento ---------- */
.bento { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile { grid-column: span 6; position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 34px); border-radius: 26px; overflow: hidden;
  background: var(--night); color: var(--rice); box-shadow: inset 0 0 0 1px var(--night-3); }
.tile h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -0.03em; margin-top: auto; }
.tile p { color: var(--rice-2); max-width: 46ch; }
.tile-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--saffron); font-weight: 700; text-decoration: none; min-height: 44px; align-self: start; }
.tile-link svg { width: 18px; height: 18px; transition: transform 220ms var(--ease-out); }
.tile-link:hover svg { transform: translateX(3px); }
@media (min-width: 760px) { .tile { grid-column: span 3; } .t-wide, .t-site { grid-column: span 6; } }
@media (min-width: 1100px) { .t-wide { grid-column: span 4; } .t-dish { grid-column: span 2; } .t-num, .t-music, .t-lang { grid-column: span 2; } .t-site { grid-column: span 6; } }
.code { display: grid; gap: 4px; margin-bottom: clamp(18px, 3vw, 40px); padding: 16px 18px; border-radius: 14px; background: var(--night-ink); font-family: var(--mono); font-size: 0.86rem; color: var(--rice-2); box-shadow: inset 0 0 0 1px var(--line); overflow-wrap: anywhere; }
.code i { font-style: normal; color: var(--saffron); }
.code .ok { color: #7EE0A8; }
.dish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; max-width: 220px; }
.dish-grid img { width: 100%; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35)); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) { .t-dish:hover .dish-grid img { animation: dish-hop 600ms var(--ease-out) both; } .t-dish:hover .dish-grid img:nth-child(odd) { animation-delay: 60ms; } }
@keyframes dish-hop { 40% { transform: translateY(-8px) rotate(-6deg); } }
.t-num .big { display: flex; align-items: baseline; gap: 6px; font-size: clamp(4rem, 8vw, 6.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; color: var(--saffron); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.t-num .plus { font-size: 0.42em; color: var(--salmon); letter-spacing: 0; }
.eq { display: flex; gap: 14px; height: 96px; align-items: end; margin-bottom: 14px; }
.eq span { position: relative; display: flex; align-items: end; gap: 4px; height: 100%; padding-bottom: 22px; }
.eq i { width: 9px; border-radius: 3px; background: var(--saffron); height: calc(18% + var(--i) * 22%); opacity: calc(0.45 + var(--i) * 0.27); }
.eq span:nth-child(2) i { background: #FF9A5C; } .eq span:nth-child(3) i { background: var(--salmon); }
.eq em { position: absolute; left: 0; bottom: 0; font-style: normal; font-family: var(--mono); font-size: 0.72rem; color: var(--rice-2); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .eq i { animation: eq calc(1.3s - var(--i) * 0.35s) var(--ease-io) infinite alternate; transform-origin: bottom; }
  .eq i:nth-child(2) { animation-delay: -0.3s; } .eq i:nth-child(3) { animation-delay: -0.55s; } .eq i:nth-child(4) { animation-delay: -0.8s; }
}
@keyframes eq { from { transform: scaleY(0.35); } to { transform: scaleY(1.6); } }
.langs { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 0 0 14px; padding: 0; font-family: var(--mono); font-size: 0.74rem; }
.langs li { padding: 3px 7px; border-radius: 6px; background: var(--night-2); color: var(--rice-2); }
.langs li:nth-child(-n+2) { background: var(--saffron); color: var(--night); font-weight: 700; }
.t-site { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 32px; background: var(--night-2); }
.t-site h3 { margin-top: 0; }
.t-site p { max-width: 60ch; }
.kbd-hint { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
@media (hover: none) { .kbd-hint { display: none; } }

/* ---------- mini belt game ---------- */
.mini-in { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 980px) { .mini-in { grid-template-columns: 0.8fr 1.2fr; } }
.mini-copy h2 { font-size: var(--fs-h2); }
.mini-copy .lead { margin-top: 18px; max-width: 34ch; }
.s-paper2 .mini-copy .lead { color: var(--ink-2); }
.mini-game { position: relative; border-radius: 28px; padding: clamp(18px, 2.4vw, 28px); background: var(--night); color: var(--rice); box-shadow: inset 0 0 0 1px var(--night-3), 0 40px 70px -40px rgba(5, 10, 22, 0.8); overflow: hidden; }
.m-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.m-order { display: flex; align-items: center; gap: 14px; }
.m-bubble { position: relative; width: 74px; height: 74px; border-radius: 22px; background: var(--rice); display: grid; place-items: center; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.6); flex: none; }
.m-bubble::after { content: ""; position: absolute; left: 18px; bottom: -6px; width: 14px; height: 14px; background: var(--rice); transform: rotate(45deg); border-radius: 3px; }
.m-bubble img { width: 82%; position: relative; z-index: 1; }
.m-order small, .m-score small { display: block; font-family: var(--mono); font-size: 0.74rem; color: var(--rice-2); text-transform: uppercase; letter-spacing: 0.06em; }
.m-order b { font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
.m-score { display: flex; gap: 22px; text-align: right; }
.m-score b { font-family: var(--mono); font-size: 1.3rem; color: var(--saffron); font-variant-numeric: tabular-nums; }
.m-belt { position: relative; height: clamp(118px, 15vw, 150px); margin: 22px calc(clamp(18px, 2.4vw, 28px) * -1) 0; overflow: hidden;
  background: repeating-linear-gradient(90deg, #2A3450 0 3px, #1A2238 3px 18px); box-shadow: inset 0 6px 0 #7D8AA3, inset 0 -6px 0 #4E5B76; }
.m-track { position: absolute; inset: 0; }
html:not(.js) .m-track { display: flex; gap: 8px; padding: 10px; overflow-x: auto; position: static; }
.m-plate { position: absolute; top: 50%; left: 0; width: clamp(92px, 11vw, 116px); aspect-ratio: 1; margin-top: calc(clamp(92px, 11vw, 116px) / -2); padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%;
  transition: scale 160ms var(--ease-out), opacity 200ms ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html:not(.js) .m-plate { position: relative; top: auto; margin: 0; flex: none; }
.m-plate img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.m-plate .food { inset: 6%; width: 88%; height: 88%; }
@media (hover: hover) { .m-plate:hover { scale: 1.06; } }
.m-plate:active { scale: 0.94; }
.m-plate:focus-visible { outline-offset: -2px; }
.m-plate.is-good { scale: 1.15; opacity: 0; transition: scale 260ms var(--ease-out), opacity 260ms ease 80ms; }
.m-plate.is-bad { animation: m-shake 320ms var(--ease-out); }
@keyframes m-shake { 25% { translate: -6px 0; } 50% { translate: 6px 0; } 75% { translate: -3px 0; } }
.m-msg { margin-top: 16px; min-height: 1.6em; color: var(--rice-2); font-weight: 600; }
.m-msg.good { color: #7EE0A8; } .m-msg.bad { color: #FFB38F; }
.m-done { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 20px; padding: 24px; text-align: center; background: rgba(19, 32, 58, 0.95); }
.m-done[hidden] { display: none; }
.m-done p { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; max-width: 22ch; }
.m-done .actions { justify-content: center; }

/* ---------- roadmap timeline ---------- */
.timeline { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.timeline li { position: relative; padding: 22px 24px 24px; border-radius: 22px; background: var(--paper-3); }
.s-paper2 .timeline li { background: var(--paper); }
.timeline h3 { font-size: var(--fs-h3); margin-top: 14px; }
.timeline h3 a { color: var(--link); text-decoration: none; }
.timeline p { margin-top: 8px; color: var(--ink-2); }
.rm-state { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.rm-state::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; }
.rm-done .rm-state { color: #1E7A50; } .rm-done .rm-state::before { background: currentColor; }
.rm-now .rm-state { color: var(--link); } .rm-now .rm-state::before { background: var(--salmon); border-color: var(--salmon); box-shadow: 0 0 0 4px rgba(255, 107, 69, 0.25); }
.rm-now { box-shadow: inset 0 0 0 2px var(--salmon); }
.rm-next { box-shadow: inset 0 0 0 2px var(--saffron-2); }
:root[data-theme="dark"] .rm-done .rm-state { color: #7EE0A8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rm-done .rm-state { color: #7EE0A8; } }
@media (prefers-reduced-motion: no-preference) { .rm-now .rm-state::before { animation: pulse 2.4s ease-in-out infinite; } }

/* ---------- changelog ---------- */
.cl { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; border-top: 1px solid var(--line-ink); }
.cl li { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line-ink); }
.cl time { font-family: var(--mono); font-size: 0.86rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cl-kind { font-family: var(--mono); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 6px; background: var(--paper-3); }
.cl-kind.k-game { background: var(--saffron); color: var(--night); } .cl-kind.k-devlog { background: var(--salmon); color: var(--night); }
.cl a { font-weight: 600; text-decoration: none; }
.cl a:hover { text-decoration: underline; }
@media (max-width: 560px) { .cl li { grid-template-columns: auto 1fr; justify-items: start; } .cl a { grid-column: 1 / -1; } }

/* ---------- contact form ---------- */
.contact-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-grid h2 { font-size: var(--fs-h2); }
.contact-grid .lead { margin-top: 18px; max-width: 36ch; }
.contact-grid .mail-big { display: inline-block; margin-top: 28px; font-size: clamp(1.4rem, 3.4vw, 2.6rem); }
.cform { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); border-radius: 26px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-3); }
.cform label:not(.topic) > span, .cform legend { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.95rem; padding: 0; }
.cform fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cform input[type="text"], .cform textarea { width: 100%; border: 0; border-radius: 14px; padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--rice); background: var(--night); box-shadow: inset 0 0 0 1.5px var(--night-3); transition: box-shadow 160ms ease; }
.cform textarea { resize: vertical; min-height: 140px; }
.cform input:focus-visible, .cform textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--saffron); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { position: relative; }
.topic input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.topic span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--night); color: var(--rice-2); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--night-3); transition: background-color 160ms ease, color 160ms ease; }
.topic input:checked + span { background: var(--rice); color: var(--night); box-shadow: none; }
.topic input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.cform .btn { justify-self: start; }
.fnote { font-size: 0.88rem; color: var(--rice-2); }
.fnote a { color: var(--saffron); overflow-wrap: anywhere; }

/* ---------- launch band (footer, every page) + sound toggle ---------- */
.cta-band { display: grid; gap: 24px; align-items: center; margin-bottom: clamp(48px, 6vw, 80px); padding: clamp(24px, 4vw, 48px); border-radius: 30px; overflow: hidden; background: var(--home-card); color: var(--rice); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }
.foot .cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--rice); letter-spacing: -0.03em; font-weight: 800; max-width: 18em; }
.cta-band p { margin-top: 10px; color: var(--rice-2); max-width: 54ch; }
.foot { padding-top: clamp(40px, 5vw, 72px); }
@media (min-width: 1000px) { .foot-grid.has-social { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.sound-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: var(--paper-3); color: var(--ink); cursor: pointer; font-size: 0.92rem; font-weight: 600; transition: transform 160ms var(--ease-out); }
.sound-btn svg { width: 20px; height: 20px; }
.sound-btn .x { display: block; } .sound-btn .w1, .sound-btn .w2 { display: none; }
.sound-btn[aria-pressed="true"] .x { display: none; } .sound-btn[aria-pressed="true"] .w1, .sound-btn[aria-pressed="true"] .w2 { display: block; }
.sound-btn:active { transform: scale(0.97); }
html:not(.js) .sound-btn { display: none; }
.foot-legal { align-items: center; }

/* ---------- game page: demo first, trailer ---------- */
.hero-play { margin-top: 30px; }
.btn-lg { min-height: 62px; padding: 0 30px 0 24px; font-size: 1.15rem; }
.btn-lg svg { width: 20px; height: 20px; }
.hero-game .hero-play + .stores { margin-top: 14px; }
.hero-game .stores .store-btn { min-height: 50px; }
.trailer-in { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .trailer-in { grid-template-columns: 1fr auto; } }
.trailer h2 { font-size: var(--fs-h2); }
.trailer .lead { margin-top: 18px; max-width: 38ch; }
.trailer-dl { margin-top: 18px; font-weight: 700; }
.trailer-dl a { color: var(--saffron); }
.phone-trailer { justify-self: center; width: clamp(240px, 26vw, 340px); }

/* ---------- studio page ---------- */
.studio-hero .wrap { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; padding-block: clamp(32px, 5vw, 64px) clamp(64px, 8vw, 112px); }
@media (min-width: 980px) { .studio-hero .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); } }
.studio-hero h1 { font-size: clamp(2.5rem, 5.4vw, 5rem); margin-top: 22px; max-width: 12em; }
.studio-hero .lead { margin-top: 22px; max-width: 44ch; }
.studio-hero .lead strong { color: var(--saffron); }
.studio-hero .lead.soft { margin-top: 14px; font-size: 1.05rem; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--night-2); color: var(--rice-2); font-weight: 600; text-decoration: none; transition: background-color 160ms ease, color 160ms ease; }
.jump a:hover { background: var(--night-3); color: var(--rice); }
.studio-mark { display: grid; justify-items: center; gap: 28px; }
.mark-xl { width: clamp(160px, 22vw, 300px); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45)); }
@media (prefers-reduced-motion: no-preference) { .mark-xl { animation: mark-float 7s var(--ease-io) infinite alternate; } }
@keyframes mark-float { from { transform: translateY(-6px) rotate(-3deg); } to { transform: translateY(8px) rotate(3deg); } }
.studio-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; list-style: none; margin: 0; padding: 0; width: min(100%, 360px); border-radius: 20px; overflow: hidden; background: var(--night-3); }
.studio-facts li { display: grid; gap: 2px; padding: 16px 18px; background: var(--night-2); }
.studio-facts b { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; color: var(--saffron); line-height: 1; font-variant-numeric: tabular-nums; }
.studio-facts span { font-family: var(--mono); font-size: 0.78rem; color: var(--rice-2); }
.principles { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .principles { grid-template-columns: repeat(4, 1fr); } }
.principles li { padding: clamp(22px, 2.6vw, 30px); border-radius: 24px; background: var(--night); color: var(--rice); overflow: hidden; }
.principles .pn { font-family: var(--mono); font-size: 0.85rem; color: var(--saffron); font-weight: 700; }
.principles h3 { font-size: var(--fs-h3); margin-top: 28px; }
.principles p { margin-top: 10px; color: var(--rice-2); }
.toolbox { display: grid; gap: 14px; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .toolbox { grid-template-columns: repeat(3, 1fr); } }
.tool-col { padding: clamp(22px, 2.6vw, 30px); border-radius: 24px; background: var(--paper); }
.tool-col h3 { font-family: var(--mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.tool-col dl { margin: 16px 0 0; display: grid; }
.tool-col dl > div { padding: 12px 0; border-top: 1px solid var(--line-ink); }
.tool-col dt { font-weight: 700; font-size: 1.1rem; }
.tool-col dd { margin: 2px 0 0; color: var(--ink-2); }

/* ---------- 404 extras ---------- */
.lost-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.lost-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--night-2); color: var(--rice-2); font-weight: 600; text-decoration: none; }
.lost-links a:hover { background: var(--night-3); color: var(--rice); }
.lost .hint { margin-top: 18px; color: var(--rice-2); font-size: 0.95rem; }
@media (hover: none) { .lost .hint { display: none; } }

/* ---------- logo intro (home, once per session, CSS only; html.logo-intro is set in <head>) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .logo-intro .bar .logo-mark path { animation: z-in 620ms var(--ease-out) both; transform-box: fill-box; transform-origin: 50% 50%; }
  .logo-intro .bar .logo-mark path:nth-child(1) { animation-delay: 160ms; }
  .logo-intro .bar .logo-mark path:nth-child(2) { animation-delay: 60ms; transform-origin: 100% 50%; }
  .logo-intro .bar .logo-mark path:nth-child(3) { animation-delay: 260ms; transform-origin: 0 50%; }
  .logo-intro .bar .logo-word { animation: word-in 700ms var(--ease-out) both 300ms; }
}
@keyframes z-in { from { opacity: 0; transform: scaleX(0.2); } }
@keyframes word-in { from { opacity: 0; transform: translateX(-10px); } }
/* v4: keep the logo full size between 900 and 1100 px now that the header has one more button */
@media (min-width: 900px) { .brand { flex-shrink: 0; } }
@media (min-width: 900px) and (max-width: 1100px) { .nav a { padding: 0 9px; font-size: 0.95rem; } .nav a[aria-current]::after, .nav a.is-active::after { left: 9px; right: 9px; } .brand .logo { height: 28px; } .bar .lang { padding: 0 10px; } }
@media (min-width: 900px) and (max-width: 1000px) { .nav a { padding: 0 7px; font-size: 0.92rem; } .nav a[aria-current]::after, .nav a.is-active::after { left: 7px; right: 7px; } .brand .logo { height: 25px; } .bar-in { gap: 4px; } }
