/* ==========================================================================
   Appica — homepage
   The page changes its whole art direction per app ("world") as you scroll.
   body[data-world] is set by home.js from whichever section is mid-screen.
   ========================================================================== */

body { transition: color 0.9s var(--ease); }

body[data-world="base"]      { --bg: #09090b; --fg: #f1ede4; --fg-dim: rgba(241,237,228,.6);  --rule: rgba(241,237,228,.12); }
body[data-world="reelsaver"] { --bg: #f2468f; --fg: #ffffff; --fg-dim: rgba(255,255,255,.82); --rule: rgba(255,255,255,.28); }
body[data-world="legends"]   { --bg: #050505; --fg: #f3dfae; --fg-dim: rgba(243,223,174,.62); --rule: rgba(240,185,58,.2); }
body[data-world="whoami"]    { --bg: #f2d384; --fg: #2b2520; --fg-dim: rgba(43,37,32,.74);   --rule: rgba(43,37,32,.18); }
body[data-world="gambits"]   { --bg: #1d1b4f; --fg: #ffffff; --fg-dim: rgba(220,225,255,.74); --rule: rgba(255,255,255,.16); }
body[data-world="dice"]      { --bg: #0c3427; --fg: #f6f1e3; --fg-dim: rgba(246,241,227,.68); --rule: rgba(246,241,227,.16); }

/* ----- Preloader ---------------------------------------------------------- */

.preloader {
  position: fixed; inset: 0; z-index: 600;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px var(--pad);
  animation: pre-out 1s var(--ease-io) 3s forwards; /* fallback if JS never runs */
}
.preloader.is-done { animation: pre-out 1s var(--ease-io) forwards; }
@keyframes pre-out { to { transform: translateY(-100%); visibility: hidden; } }
.seen .preloader { display: none; }
.seen .curtain--idle { animation: curtain-out 1s var(--ease-io) 0.05s forwards; transform: translateY(0); }
.curtain--idle { animation: none; transform: translateY(101%); }
.curtain--idle .curtain__mark { opacity: 0; animation: none; }
.seen .curtain--idle .curtain__mark { opacity: 1; animation: fade-out 0.4s ease 0.1s forwards; }

.preloader__top, .preloader__bottom { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-dim); }
.preloader__word { display: flex; justify-content: center; overflow: hidden; font-size: clamp(80px, 22vw, 360px); font-weight: 700; letter-spacing: -0.07em; line-height: 0.9; }
.preloader__word span { display: inline-block; transform: translateY(105%); animation: pre-letter 1.1s var(--ease) forwards; }
.preloader__word span:nth-child(1) { animation-delay: .05s; } .preloader__word span:nth-child(2) { animation-delay: .1s; }
.preloader__word span:nth-child(3) { animation-delay: .15s; } .preloader__word span:nth-child(4) { animation-delay: .2s; }
.preloader__word span:nth-child(5) { animation-delay: .25s; } .preloader__word span:nth-child(6) { animation-delay: .3s; }
.preloader.is-done .preloader__word span { animation: pre-letter-out 0.7s var(--ease-io) forwards; }
@keyframes pre-letter { to { transform: none; } }
@keyframes pre-letter-out { from { transform: none; } to { transform: translateY(-105%); } }
.preloader__count { font-variant-numeric: tabular-nums; color: var(--paper); }
.preloader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.preloader__bar i { display: block; height: 100%; width: 100%; background: var(--iri); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* ----- Backdrop ----------------------------------------------------------- */

.backdrop { position: fixed; inset: 0; z-index: -1; background: var(--bg); transition: background-color 1s var(--ease); }
.bd { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s; overflow: hidden; }
body[data-world="reelsaver"] .bd--reelsaver,
body[data-world="legends"] .bd--legends,
body[data-world="whoami"] .bd--whoami,
body[data-world="gambits"] .bd--gambits,
body[data-world="dice"] .bd--dice { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease), visibility 0s; }

.bd--reelsaver {
  background:
    repeating-radial-gradient(circle at 0% 100%, rgba(255,255,255,.07) 0 60px, rgba(255,255,255,0) 60px 120px),
    linear-gradient(135deg, #ff7a86 0%, #ff4596 45%, #b85bf2 100%);
}
.bd--reelsaver i {
  position: absolute; width: 70vmax; height: 70vmax; right: -20vmax; top: -25vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,227,255,.42), rgba(139,227,255,.16) 34%, transparent 66%);
  animation: drift 16s ease-in-out infinite alternate; will-change: transform;
}
.bd--legends {
  background:
    radial-gradient(ellipse 60% 50% at 72% 45%, rgba(240,185,58,.16), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(240,185,58,.07), transparent 70%),
    #050505;
}
.bd--legends i {
  position: absolute; inset: -10%;
  background-image:
    linear-gradient(rgba(240,185,58,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,185,58,.05) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at 70% 50%, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 10%, transparent 65%);
}
.bd--whoami {
  background:
    radial-gradient(rgba(176,120,40,.22) 1.7px, transparent 2.2px) 0 0 / 26px 26px,
    #f2d384;
}
.bd--whoami i {
  position: absolute; width: 60vmax; height: 60vmax; left: -15vmax; bottom: -30vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(239,143,116,.42), rgba(239,143,116,.15) 36%, transparent 68%);
}
.bd--gambits { background: #1d1b4f; }
.bd--gambits::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px);
}
.bd--gambits i {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #6fe3ff 50%, transparent 51%),
    radial-gradient(3px 3px at 78% 12%, #6fe3ff 50%, transparent 51%),
    radial-gradient(2px 2px at 62% 32%, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 30% 40%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 90% 48%, #6fe3ff 50%, transparent 51%),
    radial-gradient(2px 2px at 45% 8%, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 6% 55%, #6fe3ff 50%, transparent 51%);
  animation: twinkle 2.4s steps(2) infinite;
}
.bd--gambits b {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 46%;
  overflow: hidden;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent);
}
.bd--gambits b::before {
  content: ""; position: absolute; left: 0; right: 0; top: -80px; bottom: 0;
  background: conic-gradient(#2c2a6b 25%, #151338 0 50%, #2c2a6b 0 75%, #151338 0) 0 0 / 80px 80px;
  animation: floor 3s linear infinite; will-change: transform;
}
@keyframes floor { to { transform: translateY(80px); } }
@keyframes twinkle { 50% { opacity: .35; } }
.bd--dice {
  background:
    radial-gradient(ellipse 80% 70% at 60% 40%, #1c6a4c 0%, #0f4232 45%, #072118 100%);
}
.bd--dice i {
  position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0.1  0 0 0 0 0.05  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}
@keyframes drift { to { transform: translate(-12vmax, 18vmax) scale(1.15); } }

main { position: relative; z-index: 1; }

/* ----- Hero --------------------------------------------------------------- */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--pad) clamp(32px, 5vw, 64px);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; pointer-events: none; }
.hero__inner a { pointer-events: auto; }
.hero__eyebrow { margin: 0 0 22px; }
.hero__title { margin: 0; font-size: clamp(58px, 11.6vw, 212px); max-width: 9.6ch; }
.hero__title em { padding-right: 0.06em; }
.hero__foot { margin-top: clamp(28px, 4vw, 56px); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero__lede { margin: 0; max-width: 44ch; font-size: clamp(16px, 1.35vw, 20px); color: var(--fg-dim); }
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.hero__scroll-ring { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; }
.hero__scroll-ring svg { width: 20px; height: 20px; animation: bob 2s var(--ease-io) infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

.hero__forming {
  position: absolute; top: 112px; right: var(--pad);
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.hero__forming-name { min-width: 15ch; transition: color .6s; }
.hero__forming-dots { display: flex; gap: 6px; }
.hero__forming-dots i { width: 18px; height: 2px; background: var(--line-strong); transition: background .5s; }
.hero__forming-dots i.is-on { background: var(--paper); }

@media (max-width: 860px) {
  .hero { justify-content: flex-end; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__forming { position: relative; top: auto; right: auto; order: -1; width: 100%; max-width: var(--max); margin: 0 auto 20px; }
  .hero__forming-name { min-width: 0; }
}
@media (max-width: 480px) {
  .hero__forming-dots { margin-left: auto; }
  .hero__forming-dots i { width: 12px; }
}
@media (max-width: 860px) and (max-height: 760px) {
  .hero__scroll { display: none; }
  .hero__foot { margin-top: 22px; }
}

/* ----- Section head ------------------------------------------------------- */

.section-head { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; align-items: end; }
.section-head .label { grid-column: 1 / -1; }
.section-head__title { margin: 0; font-size: clamp(48px, 7.4vw, 128px); }
.section-head__lede { margin: 0 0 10px; max-width: 42ch; color: var(--fg-dim); font-size: 18px; justify-self: end; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } .section-head__lede { justify-self: start; } }

/* ----- Collection (index of apps) ---------------------------------------- */

.collection { padding: clamp(100px, 14vw, 200px) var(--pad) clamp(80px, 10vw, 160px); position: relative; }
.collection__list { list-style: none; margin: clamp(48px, 6vw, 90px) auto 0; padding: 0; max-width: var(--max); border-top: 1px solid var(--rule); }
.collection__list li { border-bottom: 1px solid var(--rule); }
.collection__list a {
  display: grid; grid-template-columns: 70px 1fr auto 56px; align-items: center; gap: 20px;
  padding: clamp(16px, 2vw, 26px) 0;
  position: relative;
}
.c-num { font-family: var(--mono); font-size: 13px; color: var(--fg-dim); }
.c-name {
  font-size: clamp(38px, 7vw, 116px); font-weight: 600; letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(90deg, var(--c, #fff) 50%, var(--fg) 50%);
  background-size: 200.5% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position .8s var(--ease), transform .8s var(--ease);
}
.c-name em { padding-right: .04em; }
.c-cat { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-dim); text-align: right; transition: color .4s; }
.c-arrow { font-size: 30px; justify-self: end; transition: transform .7s var(--ease); }
.collection__list a:hover .c-name, .collection__list a:focus-visible .c-name { background-position: 0 0; transform: translateX(18px); }
.collection__list a:hover .c-arrow { transform: rotate(-45deg); }
.collection__list a:hover .c-cat { color: var(--fg); }

.collection__float {
  position: fixed; top: 0; left: 0; z-index: 5; pointer-events: none;
  width: 200px; height: 200px; margin: -100px 0 0 -100px;
  opacity: 0; transform: scale(.4);
  transition: opacity .4s var(--ease), transform .6s var(--ease);
}
.collection__float.is-on { opacity: 1; transform: scale(1); }
.collection__float img { width: 100%; height: 100%; border-radius: 46px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.7); transform: rotate(var(--rot, 0deg)); transition: transform .3s; }
@media (max-width: 860px) {
  .collection__list a { grid-template-columns: 40px 1fr 30px; }
  .c-cat { grid-column: 2; grid-row: 2; text-align: left; font-size: 11px; }
  .c-arrow { grid-row: 1; grid-column: 3; font-size: 22px; }
  .collection__float { display: none; }
}

/* ----- World layout (shared) --------------------------------------------- */

.world { position: relative; min-height: 100vh; padding: clamp(110px, 12vw, 170px) var(--pad); display: flex; flex-direction: column; justify-content: center; }
.world__inner {
  max-width: var(--max); width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 110px); align-items: center;
}
.world--legends .world__copy, .world--gambits .world__copy { order: 2; }
.world__meta { display: flex; gap: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 28px; }
.world__meta span:first-child { color: var(--fg); }
.world__icon { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 26px; box-shadow: 0 22px 44px -18px rgba(0,0,0,.55); }
.world__icon--pixel { image-rendering: pixelated; }
.world__title { margin: 0 0 22px; font-size: clamp(56px, 8.2vw, 136px); line-height: .92; letter-spacing: -0.05em; }
.world__tag { margin: 0 0 20px; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.18; letter-spacing: -0.02em; max-width: 22ch; }
.world__desc { margin: 0 0 34px; color: var(--fg-dim); max-width: 52ch; font-size: 17px; }
.world__features { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; max-width: 600px; }
.world__features li { padding: 14px 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 2px; }
.world__features b { font-weight: 600; font-size: 16px; }
.world__features span { color: var(--fg-dim); font-size: 14px; }
.world__ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.world__link { font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--rule); padding-bottom: 3px; transition: border-color .4s; }
.world__link:hover { border-color: currentColor; }
.world__stage { position: relative; display: grid; place-items: center; min-height: 560px; }

@media (max-width: 960px) {
  .world__inner { grid-template-columns: 1fr; }
  .world--legends .world__copy, .world--gambits .world__copy { order: 0; }
  .world__stage { min-height: 0; margin-top: 20px; }
}
@media (max-width: 520px) { .world__features { grid-template-columns: 1fr; } }

/* ===== World 01 — ReelSaver ============================================== */

.world--reelsaver .world__title {
  font-weight: 900; letter-spacing: -0.065em;
  text-shadow: -0.035em -0.03em 0 #8be3ff, 0.035em 0.03em 0 #ff2f6d;
}
.world--reelsaver .world__tag { font-weight: 700; letter-spacing: -0.035em; }
.rs-tag-em { background: #fff; color: #f2468f; padding: 0 .18em; border-radius: .16em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.world--reelsaver .appstore { background: #fff; color: #111; box-shadow: none; }

.phone {
  position: relative; width: min(340px, 80vw); aspect-ratio: 9 / 19.2;
  padding: 11px; border-radius: 56px;
  background: linear-gradient(145deg, #2b2b31, #0b0b0d 40%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.16), inset 0 0 0 6px #050506, 0 70px 120px -40px rgba(40,0,30,.65), 0 30px 60px -30px rgba(0,0,0,.6);
}
.phone__screen { position: relative; height: 100%; border-radius: 46px; overflow: hidden; }
.phone__status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 0; font-size: 14px; font-weight: 600; height: 46px; }
.phone__island { width: 96px; height: 28px; border-radius: 20px; background: #000; }
.phone__sig { display: flex; gap: 2px; align-items: flex-end; }
.phone__sig i { width: 3px; background: currentColor; border-radius: 1px; }
.phone__sig i:nth-child(1) { height: 5px; } .phone__sig i:nth-child(2) { height: 8px; } .phone__sig i:nth-child(3) { height: 11px; }

.rs { background: #111015; color: #fff; display: flex; flex-direction: column; }
.rs__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 10px; }
.rs__head h3 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.04em; }
.rs__pro { font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 4px 8px; border-radius: 6px; background: linear-gradient(135deg, #ff6a8a, #b85bf2); }
.rs__search { margin: 0 16px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: #1f1e26; color: #8d8a99; }
.rs__search svg { width: 16px; height: 16px; flex: none; }
.rs__search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font-size: 14px; }
.rs__search input::placeholder { color: #8d8a99; }
.rs__search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.rs__chips { display: flex; gap: 6px; padding: 10px 16px 0; overflow-x: auto; scrollbar-width: none; }
.rs__chips::-webkit-scrollbar { display: none; }
.rs__chips button { flex: none; font-size: 12px; padding: 5px 11px; border-radius: 999px; background: #24232c; color: #d8d5e2; transition: background .3s, color .3s; }
.rs__chips button:hover, .rs__chips button.is-on { background: #ff4f9a; color: #fff; }
.rs__result { margin: 10px 16px 8px; font-size: 12px; color: #8d8a99; min-height: 16px; }
.rs__grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 16px; overflow: hidden; align-content: start; }
.rs-tile {
  position: relative; aspect-ratio: 9 / 13; border-radius: 14px; overflow: hidden;
  background: var(--g);
  transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .4s;
}
.rs-tile::before { content: ""; position: absolute; inset: 0; background: var(--shape); opacity: .9; }
.rs-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent 55%); }
.rs-tile__dur { position: absolute; top: 7px; right: 7px; z-index: 2; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.rs-tile__topic { position: absolute; top: 7px; left: 7px; z-index: 2; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.rs-tile__cap { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; margin: 0; font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.rs-tile__hit {
  position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 3; margin: 0;
  padding: 7px 8px; border-radius: 9px; background: rgba(17,16,21,.92); font-size: 10.5px; line-height: 1.3;
  transform: translateY(120%); transition: transform .5s var(--ease);
}
.rs-tile__hit small { display: block; color: #ff7fb5; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; }
.rs-tile__hit mark { background: #ff4f9a; color: #fff; border-radius: 3px; padding: 0 2px; }
.rs-tile.is-hit { box-shadow: 0 0 0 2px #ff4f9a; }
.rs-tile.is-hit .rs-tile__hit { transform: none; }
.rs-tile.is-dim { opacity: .14; transform: scale(.95); }

.float-badge {
  position: absolute; left: var(--x); top: var(--y); z-index: 3;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; font-weight: 600; letter-spacing: -.01em;
  background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), 0 18px 40px -18px rgba(80,0,50,.6);
  rotate: var(--r);
  animation: floaty 6s ease-in-out infinite alternate;
}
.float-badge:nth-of-type(2) { animation-delay: -2s; } .float-badge:nth-of-type(3) { animation-delay: -4s; } .float-badge:nth-of-type(4) { animation-delay: -1s; }
@keyframes floaty { to { translate: 0 -14px; } }
@media (max-width: 960px) {
  .world--reelsaver .world__stage { width: min(580px, 100%); margin-inline: auto; }
  .float-badge { left: clamp(0px, var(--x), calc(100% - 150px)); }
}
@media (max-width: 600px) { .float-badge { display: none; } }

/* ===== World 02 — Legends ================================================ */

.world--legends .world__title {
  font-family: "Bodoni Moda", var(--serif); font-weight: 500; letter-spacing: -0.02em; text-transform: uppercase;
  font-size: clamp(56px, 8vw, 132px);
  color: #f6c95c; text-shadow: 0 0 24px rgba(240,185,58,.55), 0 0 60px rgba(240,185,58,.25);
}
.world--legends .world__title .split-line { padding: .12em .2em; margin: -.12em -.2em; }
.world--reelsaver .world__title .split-line { padding: .06em .08em .1em; margin: -.06em -.08em -.1em; }
.world--legends .world__tag { font-family: "Bodoni Moda", var(--serif); font-size: clamp(22px, 2.2vw, 32px); }
.world--legends .world__tag em { font-family: inherit; }
.world--legends .world__icon { box-shadow: 0 0 0 1px rgba(240,185,58,.3), 0 0 50px -10px rgba(240,185,58,.5); }
.world--legends .world__features b { font-family: "Bodoni Moda", var(--serif); font-weight: 600; font-size: 18px; color: #f6c95c; }

.lg {
  position: relative; width: min(470px, 100%);
  padding: 22px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(30,24,10,.7), rgba(8,7,4,.85));
  box-shadow: inset 0 0 0 1px rgba(240,185,58,.32), 0 0 80px -20px rgba(240,185,58,.35), 0 50px 100px -40px #000;
}
.lg__head { padding-right: 76px; display: flex; justify-content: space-between; margin-bottom: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,223,174,.7); }
.lg__head span:first-child { color: #f6c95c; }
.lg__board {
  display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(240,185,58,.55), 0 0 30px -4px rgba(240,185,58,.45);
}
.lg__sq {
  position: relative; display: grid; place-items: center; aspect-ratio: 1;
  font-size: clamp(26px, 5.4vw, 42px); line-height: 1;
  user-select: none; -webkit-user-select: none;
  transition: background-color .3s;
}
.lg__sq.is-light { background: #1d1709; }
.lg__sq.is-dark { background: #0b0904; }
.lg__sq.is-sel { background: rgba(240,185,58,.32); }
.lg__sq.is-from, .lg__sq.is-to { background: rgba(240,185,58,.2); }
.lg__sq.is-hint { animation: hint 1s ease-in-out 3; }
@keyframes hint { 50% { background: rgba(240,185,58,.45); } }
.lg__sq.is-mated { background: rgba(255,70,50,.5); animation: mated 1.2s ease-out; }
@keyframes mated { from { box-shadow: inset 0 0 0 40px rgba(255,90,60,.9); } }
.lg__sq.is-target::after { content: ""; position: absolute; width: 22%; height: 22%; border-radius: 50%; background: rgba(240,185,58,.4); }
.lg__sq.is-wrong { animation: wrong .4s; }
@keyframes wrong { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.lg__coord { position: absolute; font-family: var(--mono); font-size: 9px; color: rgba(240,185,58,.4); }
.lg__coord--f { left: 4px; bottom: 2px; } .lg__coord--r { left: 4px; top: 3px; }
.lg__pc { position: relative; z-index: 1; cursor: pointer; transition: transform .45s var(--ease); font-family: "Segoe UI Symbol", "Apple Symbols", "DejaVu Sans", serif; }
.lg__pc.w { color: #ffd772; text-shadow: 0 0 10px rgba(255,200,80,.75), 0 0 22px rgba(255,180,40,.35); }
.lg__pc.b { color: #8c8574; text-shadow: 0 1px 0 #000; }
.lg__pc.is-moving { z-index: 5; }
.lg__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.lg__msg { margin: 0; font-family: "Bodoni Moda", var(--serif); font-size: 18px; color: #f3dfae; }
.lg__msg b { color: #f6c95c; font-weight: 600; }
.lg__btns { display: flex; gap: 8px; }
.lg__btn { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(240,185,58,.4); color: #f6c95c; transition: background .3s, color .3s; }
.lg__btn:hover { background: #f6c95c; color: #050505; }
.lg__streak {
  position: absolute; top: -26px; right: -26px;
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: #050505; box-shadow: inset 0 0 0 1px rgba(240,185,58,.5), 0 0 40px -6px rgba(240,185,58,.5);
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,223,174,.7);
  transform: rotate(8deg);
}
.lg__streak b { font-family: "Bodoni Moda", var(--serif); font-size: 32px; line-height: 1; color: #f6c95c; letter-spacing: 0; }
.lg__streak.is-bump { animation: bump .8s var(--ease-back); }
@keyframes bump { 40% { transform: rotate(8deg) scale(1.25); } }
@media (max-width: 600px) { .lg__streak { top: -18px; right: -6px; width: 74px; height: 74px; } .lg__streak b { font-size: 24px; } }

.lg-roster { margin-top: clamp(60px, 7vw, 100px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 22px 0; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
.lg-roster span { font-family: "Bodoni Moda", var(--serif); font-size: clamp(36px, 5vw, 72px); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; color: #f6c95c; padding: 0 22px; line-height: 1; transition: text-shadow .4s, color 1s var(--ease); }
.lg-roster span:hover { text-shadow: 0 0 24px rgba(240,185,58,.8); }
.lg-roster i { align-self: center; font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,223,174,.5); padding-right: 22px; }
.lg-roster .marquee__track { align-items: center; }
.lg-roster i { transition: color 1s var(--ease); }
body:not([data-world="legends"]) .lg-roster span { color: var(--fg); }
body:not([data-world="legends"]) .lg-roster i { color: var(--fg-dim); }

/* ===== World 03 — Who Am I =============================================== */

.world--whoami .world__title { font-family: "Fredoka", var(--sans); font-weight: 700; letter-spacing: -0.03em; }
.world--whoami .world__title .split-word:nth-child(odd) { rotate: -3deg; }
.world--whoami .world__title .split-word:nth-child(even) { rotate: 2deg; }
.world--whoami .world__tag { font-family: "Fredoka", var(--sans); font-weight: 600; letter-spacing: -0.01em; }
.wa-hl { background: #ef8f74; color: #2b2520; padding: 0 .2em; border-radius: .25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; box-shadow: 3px 3px 0 #2b2520; }
.world--whoami .world__features b, .world--whoami .world__meta { font-family: "Fredoka", var(--sans); }
.world--whoami .world__icon { border: 3px solid #2b2520; box-shadow: 6px 6px 0 #2b2520; }
.world--whoami .appstore { box-shadow: 5px 5px 0 #ef8f74; }

.wa { --ink-w: #2b2520; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 26px; align-items: start; width: min(640px, 100%); font-family: "Fredoka", var(--sans); color: var(--ink-w); }
.wa__cards { position: relative; aspect-ratio: 3 / 4.1; margin-top: 30px; perspective: 900px; }
.wa__card { position: absolute; inset: 0; border-radius: 22px; border: 4px solid var(--ink-w); }
.wa__card--back { background: #a9cbe8; transform: rotate(10deg) translate(16px, -8px); }
.wa__card--front { border: 0; transform: rotate(-5deg); }
.wa__flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1s var(--ease-back); }
.wa__card--front.is-flipped .wa__flip { transform: rotateY(180deg); }
.wa__face { position: absolute; inset: 0; border-radius: 22px; border: 4px solid var(--ink-w); backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
.wa__face--q { background: #ef8f74; font-size: 110px; font-weight: 700; color: var(--ink-w); }
.wa__face--a { background: #fffaf0; transform: rotateY(180deg); align-content: center; gap: 8px; padding: 10px; text-align: center; }
.wa__emoji { font-size: 64px; line-height: 1; }
.wa__name { font-size: 20px; line-height: 1.1; }
.wa__panel { background: #fffaf0; border: 3px solid var(--ink-w); border-radius: 26px; box-shadow: 8px 8px 0 var(--ink-w); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wa__bar { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; }
.wa__bar span:first-child { background: #a9cbe8; border: 2px solid var(--ink-w); padding: 1px 10px; border-radius: 999px; }
.wa__count b { font-size: 18px; }
.wa__chat { display: flex; flex-direction: column; gap: 8px; height: 200px; overflow-y: auto; padding-right: 4px; scroll-behavior: smooth; }
.wa__msg { max-width: 86%; padding: 8px 12px; border-radius: 16px; font-size: 14.5px; line-height: 1.3; border: 2px solid var(--ink-w); animation: pop .5s var(--ease-back); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.wa__msg--host { align-self: flex-start; background: #dcebf6; border-bottom-left-radius: 4px; }
.wa__msg--me { align-self: flex-end; background: #ef8f74; border-bottom-right-radius: 4px; }
.wa__verdict { display: inline-block; font-weight: 700; padding: 0 8px; border-radius: 8px; margin-right: 6px; border: 2px solid var(--ink-w); }
.wa__verdict--yes { background: #8fd694; } .wa__verdict--no { background: #ff9f8a; } .wa__verdict--cant { background: #e8e2d4; }
.wa__asks { display: flex; flex-wrap: wrap; gap: 6px; }
.wa__asks button, .wa__guesses button {
  font-family: inherit; font-weight: 500; font-size: 13.5px; padding: 6px 12px; border-radius: 999px;
  border: 2px solid var(--ink-w); background: #fff; transition: transform .3s var(--ease-back), background .2s, box-shadow .3s;
}
.wa__asks button:hover, .wa__guesses button:hover { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink-w); background: #fff1c9; }
.wa__asks button:disabled { opacity: .35; pointer-events: none; text-decoration: line-through; }
.wa__guess { border-top: 2px dashed rgba(43,37,32,.25); padding-top: 10px; }
.wa__guess p { margin: 0 0 6px; font-weight: 600; font-size: 14px; }
.wa__guesses { display: flex; flex-wrap: wrap; gap: 6px; }
.wa__guesses button { background: #ffe8a8; font-size: 13px; }
.wa__guesses button.is-wrong { background: #ff9f8a; text-decoration: line-through; pointer-events: none; }
.wa__again { margin-top: 4px; font-family: inherit; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--ink-w); background: #8fd694; box-shadow: 3px 3px 0 var(--ink-w); }
.world--whoami .world__stage { container-type: inline-size; width: 100%; }
@container (max-width: 560px) {
  .wa { grid-template-columns: 118px minmax(0, 1fr); gap: 18px; }
  .wa__face--q { font-size: 76px; }
  .wa__emoji { font-size: 44px; }
  .wa__name { font-size: 16px; }
}
@container (max-width: 430px) {
  .wa { grid-template-columns: 1fr; }
  .wa__cards { width: 130px; margin: 0 auto 10px; }
  .wa__face--q { font-size: 80px; }
}

/* ===== World 04 — Grandmasters & Gambits ================================= */

.world--gambits .world__title {
  font-family: "Press Start 2P", monospace; font-size: clamp(26px, 3.4vw, 54px); line-height: 1.32; letter-spacing: 0;
  color: #ffcc33; text-shadow: 4px 4px 0 #a2411a, 8px 8px 0 #000;
  text-transform: uppercase;
}
.world--gambits .world__tag { font-family: "Press Start 2P", monospace; font-size: clamp(13px, 1.15vw, 17px); line-height: 1.7; letter-spacing: 0; max-width: 30ch; }
.gg-hl { color: #6fe3ff; }
.world--gambits .world__meta, .world--gambits .world__features b { font-family: "Press Start 2P", monospace; font-size: 10px; letter-spacing: 0; line-height: 1.6; }
.world--gambits .world__features b { color: #ffcc33; margin-bottom: 4px; }
.world--gambits .world__icon { border-radius: 14px; box-shadow: 6px 6px 0 #000; }
.world--gambits .appstore { border-radius: 4px; box-shadow: 5px 5px 0 #ffcc33; }
.world--gambits .world__features li { border-top-style: dashed; }

.gg { width: min(520px, 100%); }
.gg__crt { padding: 20px; border-radius: 30px; background: linear-gradient(160deg, #3b3980, #23215a); box-shadow: inset 0 0 0 4px #0b0a22, inset 0 -10px 0 rgba(0,0,0,.25), 12px 12px 0 #000; }
.gg__screen {
  position: relative; overflow: hidden; border-radius: 18px; padding: 18px 16px 16px;
  background: radial-gradient(ellipse at 50% 40%, #1a1850, #0a0920 80%);
  box-shadow: inset 0 0 0 3px #000, inset 0 0 50px rgba(111,227,255,.12);
  font-family: "Press Start 2P", monospace; color: #fff; font-size: 10px; line-height: 1.6;
  image-rendering: pixelated;
}
.gg__screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.55));
  animation: flicker 0.15s infinite;
}
@keyframes flicker { 50% { opacity: .92; } }
.gg__title { margin: 0 0 14px; text-align: center; color: #ffcc33; font-size: 11px; text-transform: uppercase; text-shadow: 2px 2px 0 #a2411a; }
.gg__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; outline: none; }
.gg__tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 4px; background: #14123a; box-shadow: inset 0 0 0 2px #34318a;
  font-family: inherit; font-size: 7px; color: #c9ccff;
}
.gg__tile canvas { width: 100%; aspect-ratio: 1; image-rendering: pixelated; background: #2c2a6b; }
.gg__tile.is-on { box-shadow: inset 0 0 0 2px #ffcc33, 0 0 0 2px #ffcc33; color: #ffcc33; animation: blink-border .6s steps(2) infinite; }
@keyframes blink-border { 50% { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #fff; } }
.gg__grid:focus-visible { outline: 2px dashed #6fe3ff; outline-offset: 4px; }
.gg__panel { display: grid; grid-template-columns: 92px 1fr; gap: 14px; margin-top: 14px; padding: 12px; background: #14123a; box-shadow: inset 0 0 0 2px #34318a; }
.gg__portrait { width: 92px; height: 92px; image-rendering: pixelated; background: #2c2a6b; box-shadow: 0 0 0 2px #000; }
.gg__name { margin: 0; font-size: 13px; color: #ffcc33; }
.gg__nick { margin: 4px 0 8px; font-size: 7.5px; color: #6fe3ff; }
.gg__stats { display: grid; gap: 5px; }
.gg__stat { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 6px; font-size: 7px; color: #c9ccff; }
.gg__bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.gg__bar i { height: 7px; background: #2c2a6b; }
.gg__bar i.on { background: #ffcc33; }
.gg__bar i.on:nth-child(n+8) { background: #ff6a3d; }
.gg__levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.gg__levels button { font-family: inherit; font-size: 9px; padding: 8px 0; background: #14123a; color: #c9ccff; box-shadow: inset 0 0 0 2px #34318a; }
.gg__levels button.is-on { background: #6fe3ff; color: #0a0920; box-shadow: inset 0 0 0 2px #6fe3ff; }
.gg__start { display: block; width: 100%; margin-top: 12px; padding: 10px; font-family: inherit; font-size: 11px; color: #ffcc33; text-transform: uppercase; animation: blink 1s steps(2) infinite; }
.gg__start.is-go { animation: none; color: #6fe3ff; }
@keyframes blink { 50% { opacity: 0; } }
.gg__hint { margin: 16px 0 0; text-align: center; font-family: "Press Start 2P", monospace; font-size: 8px; color: rgba(220,225,255,.55); }
@media (max-width: 600px) {
  .gg__crt { padding: 12px; border-radius: 22px; box-shadow: inset 0 0 0 4px #0b0a22, 6px 6px 0 #000; }
  .gg__screen { padding: 12px 10px; }
  .gg__panel { grid-template-columns: 64px 1fr; }
  .gg__portrait { width: 64px; height: 64px; }
  .gg__tile { font-size: 6px; }
}

/* ===== World 05 — Digital Dice =========================================== */

.world--dice .world__title { font-family: "Unbounded", var(--sans); font-weight: 800; letter-spacing: -0.05em; font-size: clamp(50px, 7.2vw, 120px); }
.world--dice .world__tag { font-family: "Unbounded", var(--sans); font-weight: 500; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; }
.dd-hl { color: #7cf2b8; }
.world--dice .world__features b { font-family: "Unbounded", var(--sans); font-weight: 600; font-size: 14px; }

.dd { width: min(540px, 100%); display: flex; flex-direction: column; align-items: center; }
.dd__table { position: relative; width: 100%; height: 340px; perspective: 1100px; display: grid; place-items: center; }
.dd__dice { display: flex; gap: clamp(40px, 7vw, 80px); transform-style: preserve-3d; transform: rotateX(18deg); }
.die-wrap { position: relative; transform-style: preserve-3d; }
.die-wrap.is-tossing { animation: toss 1.5s cubic-bezier(.3,.6,.4,1); }
.die-wrap:nth-child(2).is-tossing { animation-duration: 1.65s; }
@keyframes toss {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(var(--dx, 20px), -150px, 80px); }
  55% { transform: translate3d(calc(var(--dx, 20px) * .4), 0, 0); }
  70% { transform: translate3d(calc(var(--dx, 20px) * .2), -38px, 0); }
  85% { transform: translate3d(0, 0, 0); }
  92% { transform: translate3d(0, -8px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.die {
  --s: clamp(86px, 12vw, 116px);
  position: relative; width: var(--s); height: var(--s);
  transform-style: preserve-3d;
  transition: transform 1.5s cubic-bezier(.15,.75,.25,1);
}
.die__face {
  position: absolute; inset: 0; border-radius: 22%;
  background: radial-gradient(circle at 30% 25%, #ffffff, #ece7da 70%, #d9d2c1);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), inset -6px -8px 18px rgba(0,0,0,.08);
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 16%;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.die__core { position: absolute; inset: 3%; background: #ddd6c5; border-radius: 12%; }
.die__core--x { transform: rotateX(90deg); } .die__core--y { transform: rotateY(90deg); }
.die__face i { width: 64%; aspect-ratio: 1; border-radius: 50%; place-self: center; background: radial-gradient(circle at 35% 35%, #34433c, #0b1612); box-shadow: inset 0 2px 3px rgba(0,0,0,.5); }
.die__face--1 { transform: translateZ(calc(var(--s) / 2)); }
.die__face--6 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.die__face--2 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.die__face--5 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.die__face--3 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.die__face--4 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.die__face--1 i { background: radial-gradient(circle at 35% 35%, #ff6a6a, #a3141e); width: 80%; }
.p-tl { grid-area: 1 / 1; } .p-tr { grid-area: 1 / 3; } .p-ml { grid-area: 2 / 1; } .p-c { grid-area: 2 / 2; }
.p-mr { grid-area: 2 / 3; } .p-bl { grid-area: 3 / 1; } .p-br { grid-area: 3 / 3; }
.dd__shadow { position: absolute; left: 15%; right: 15%; bottom: 52px; height: 40px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.45), transparent 70%); filter: blur(6px); pointer-events: none; }
.dd__hud { display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.dd__total { display: flex; flex-direction: column; align-items: center; min-width: 90px; }
.dd__total span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); }
.dd__total b { font-family: "Unbounded", var(--sans); font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.dd__total b.is-pop { animation: bump2 .6s var(--ease-back); }
@keyframes bump2 { from { transform: scale(1.5); color: #7cf2b8; } }
.dd__roll { --b-bg: #f6f1e3; --b-fg: #0c3427; }
.dd__roll kbd { font-family: var(--mono); font-size: 11px; padding: 3px 6px; border-radius: 6px; background: rgba(12,52,39,.12); }
.dd__history { list-style: none; display: flex; gap: 8px; margin: 22px 0 0; padding: 0; min-height: 34px; flex-wrap: wrap; justify-content: center; }
.dd__history li { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); color: var(--fg-dim); animation: pop .5s var(--ease-back); }
.dd__history li:first-child { color: var(--fg); box-shadow: inset 0 0 0 1px #7cf2b8; }
@media (max-width: 600px) { .dd__table { height: 260px; } .dd__hud { flex-direction: column; gap: 14px; } }

/* ----- Manifesto & principles -------------------------------------------- */

.manifesto { padding: clamp(120px, 16vw, 240px) var(--pad) clamp(80px, 10vw, 140px); max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; }
.manifesto__text { margin: 28px 0 0; font-size: clamp(32px, 4.9vw, 84px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 500; }
.manifesto__text .w { opacity: .13; transition: opacity .25s linear; }
.manifesto__text .w.on { opacity: 1; }
.principles { margin-top: clamp(90px, 12vw, 180px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.principle { border-top: 1px solid var(--rule); padding-top: 22px; }
.principle__n { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); }
.principle h3 { margin: 40px 0 12px; font-size: clamp(24px, 2.1vw, 30px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.principle p { margin: 0; color: var(--fg-dim); font-size: 15.5px; }
.stats { margin-top: clamp(90px, 12vw, 180px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat b { display: inline-block; font-size: clamp(64px, 8.6vw, 150px); font-weight: 600; letter-spacing: -.06em; line-height: .9; background: var(--iri); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 300% 100%; font-variant-numeric: tabular-nums; }
.stat:nth-child(2) b { background-position: 33% 0; } .stat:nth-child(3) b { background-position: 66% 0; } .stat:nth-child(4) b { background-position: 100% 0; }
.stat p { margin: 16px 0 0; color: var(--fg-dim); font-size: 15px; max-width: 26ch; }
@media (max-width: 960px) { .principles, .stats { grid-template-columns: 1fr 1fr; gap: 48px 28px; } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } }

/* ----- Studio ------------------------------------------------------------- */

.studio { padding: clamp(80px, 10vw, 160px) var(--pad) clamp(100px, 12vw, 180px); }
.studio__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; }
.studio__title { margin: 22px 0 0; font-size: clamp(44px, 6vw, 100px); }
.studio__body { padding-top: 46px; font-size: 19px; color: var(--fg-dim); }
.studio__body p { margin: 0 0 22px; max-width: 48ch; }
.studio__facts { margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.studio__facts div { border-top: 1px solid var(--rule); padding: 14px 0; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.studio__facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.studio__facts dd { margin: 0; color: var(--fg); }
.studio__icons { max-width: var(--max); margin: clamp(80px, 10vw, 140px) auto 0; display: flex; justify-content: center; gap: clamp(12px, 2.4vw, 32px); }
.studio__icons img { width: clamp(56px, 10vw, 132px); aspect-ratio: 1; border-radius: 23%; box-shadow: 0 30px 60px -24px rgba(0,0,0,.8); transform: translateY(var(--ty, 0)) rotate(var(--rot, 0deg)); transition: transform 1s var(--ease); }
.studio__icons img:nth-child(4) { image-rendering: pixelated; }
@media (max-width: 860px) { .studio__grid { grid-template-columns: 1fr; gap: 10px; } .studio__body { padding-top: 0; } .studio__facts { grid-template-columns: 1fr; } }
