/* =========================================================
   MOGNY STUDIO — Portfolio
   Dark · Luxurious · 2.5D
   ========================================================= */

:root {
  --bg: #060608;
  --bg-2: #0a0a0e;
  --surface: #111117;
  --surface-2: #17171f;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f1ec;
  --muted: #9a98a2;
  --dim: #5f5d68;
  --accent: #ff2f4b;
  --accent-2: #ff6a55;
  --accent-deep: #8e0a1f;
  --accent-ink: #3a0610;
  --grad: linear-gradient(135deg, #ff5a6c 0%, #ff2f4b 45%, #c3112f 100%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --f-display: "Unbounded", "Readex Pro", system-ui, sans-serif;
  --f-body: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --nav-h: 76px;
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.is-loading, html.lock, html.lock body { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
main { position: relative; z-index: 1; }

/* custom cursor (desktop) */
html.has-cursor, html.has-cursor *, html.has-cursor *::before, html.has-cursor *::after { cursor: none !important; }
html.has-cursor input:not([type="checkbox"]), html.has-cursor textarea { cursor: text !important; }

/* ---------- Typography ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 14px 0 0;
}
.h2 em { font-style: normal; color: var(--accent); }
[dir="rtl"] .h2 { letter-spacing: 0; line-height: 1.3; font-weight: 700; }

.section-tag {
  display: inline-flex; align-items: center; gap: .8em;
  font-family: var(--f-mono); font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.section-tag::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
[dir="rtl"] .section-tag { letter-spacing: 0; font-family: var(--f-body); font-size: .85rem; }

.extrude { --ex: #2b2b35; text-shadow: 1px 1px 0 var(--ex), 2px 2px 0 var(--ex), 3px 3px 0 var(--ex), 4px 4px 0 var(--ex), 5px 5px 0 var(--ex), 6px 6px 0 var(--ex), 8px 16px 28px rgba(0, 0, 0, .65); }
.extrude--red { --ex: #6a0717; }
[dir="rtl"] .extrude { text-shadow: -1px 1px 0 var(--ex), -2px 2px 0 var(--ex), -3px 3px 0 var(--ex), -4px 4px 0 var(--ex), -5px 5px 0 var(--ex), -6px 6px 0 var(--ex), -8px 16px 28px rgba(0, 0, 0, .65); }

/* ---------- Buttons (2.5D extruded) ---------- */
.btn {
  --h: 54px; --press: 0px; --mx: 0px; --my: 0px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  height: var(--h); padding: 0 1.65em; border-radius: 999px;
  font-weight: 600; font-size: .95rem; white-space: nowrap;
  transform: translate3d(var(--mx), calc(var(--my) + var(--press)), 0);
  transition: transform .45s var(--ease), box-shadow .3s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { --press: 4px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 5px 0 var(--accent-deep), 0 22px 40px -16px rgba(255, 47, 75, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--primary:active { box-shadow: 0 1px 0 var(--accent-deep), 0 10px 20px -10px rgba(255, 47, 75, .6); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: rgba(255, 255, 255, .035); border: 1px solid var(--line-2); color: var(--text); box-shadow: 0 5px 0 rgba(255, 255, 255, .05); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .06); }
.btn--ghost:active { box-shadow: 0 1px 0 rgba(255, 255, 255, .05); }
.btn--sm { --h: 42px; padding: 0 1.15em; font-size: .85rem; }
.btn--sm.btn--primary { box-shadow: 0 4px 0 var(--accent-deep), 0 14px 30px -14px rgba(255, 47, 75, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; }
.loader__panel { position: absolute; inset-inline: 0; height: 50.5%; background: #050507; transition: transform 1.15s var(--ease-io); }
.loader__panel--top { top: 0; border-bottom: 1px solid rgba(255, 47, 75, .25); }
.loader__panel--bottom { bottom: 0; }
.loader__center { position: relative; z-index: 2; display: grid; justify-items: center; gap: 16px; transition: opacity .45s, transform .7s var(--ease); }
.loader__logo { width: 110px; animation: loaderLogo 1.4s var(--ease) both; filter: drop-shadow(0 0 30px rgba(255, 47, 75, .35)); }
.loader__word { font-family: var(--f-mono); font-weight: 800; font-size: 1.1rem; letter-spacing: .12em; display: flex; gap: .5em; animation: fadeUp 1s .3s var(--ease) both; }
.loader__word span { color: var(--accent); }
.loader__bar { width: 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .25s linear; }
.loader__count { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .25em; color: var(--muted); }
.loader.is-done .loader__panel--top { transform: translateY(-100%); }
.loader.is-done .loader__panel--bottom { transform: translateY(100%); }
.loader.is-done .loader__center { opacity: 0; transform: scale(.92) translateY(-10px); }
.loader.is-gone { display: none; }
@keyframes loaderLogo { from { clip-path: inset(0 100% 0 0); filter: blur(10px); opacity: 0; } to { clip-path: inset(0 0 0 0); filter: blur(0) drop-shadow(0 0 30px rgba(255, 47, 75, .35)); opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Ambient FX ---------- */
.guides { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: flex; justify-content: space-between; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.guides span { width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .04) 15%, rgba(255, 255, 255, .04) 85%, transparent); }
@media (max-width: 700px) { .guides span:nth-child(2), .guides span:nth-child(4) { display: none; } }
.spot { position: fixed; left: 0; top: 0; z-index: 0; width: 900px; height: 900px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 47, 75, .085), transparent 62%); transform: translate3d(-50%, -50%, 0); opacity: 0; transition: opacity .6s; }
.has-cursor .spot { opacity: 1; }
.grain { position: fixed; inset: 0; z-index: 300; pointer-events: none; overflow: hidden; opacity: .055; }
.grain::before {
  content: ""; position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(5) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-2%, 4%); } 80% { transform: translate(4%, -1%); } 100% { transform: translate(0, 0); } }
@media (hover: none) { .grain::before { animation: none; } }
.progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 210; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--accent); }
[dir="rtl"] .progress i { transform-origin: right; }

/* cursor */
/* one element: a dot that grows into a ring on hover (sits above the viewer too) */
.cursor { position: fixed; inset: 0; z-index: 1200; pointer-events: none; display: none; opacity: 0; transition: opacity .25s; }
.has-cursor .cursor { display: block; }
.cursor.is-on { opacity: 1; }
.cursor.is-text { opacity: 0; }
.cursor__pos { position: fixed; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.cursor__shape {
  position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%;
  display: grid; place-items: center; transform: translate(-50%, -50%);
  background: #fff; border: 1.5px solid transparent; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .45);
  transition: width .45s var(--ease), height .45s var(--ease), background-color .3s, border-color .3s, box-shadow .3s, scale .25s var(--ease);
}
.cursor__label { font-family: var(--f-mono); font-size: .6rem; font-weight: 800; letter-spacing: .14em; color: #fff; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .2s; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
[dir="rtl"] .cursor__label { font-family: var(--f-body); letter-spacing: 0; font-size: .72rem; }
.cursor.is-link .cursor__shape { width: 44px; height: 44px; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); }
.cursor.is-view .cursor__shape { width: 84px; height: 84px; background: rgba(255, 47, 75, .16); border-color: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 0 36px rgba(255, 47, 75, .35); }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-down .cursor__shape { scale: .8; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 200; padding: 16px 0; border-bottom: 1px solid transparent; transition: padding .45s var(--ease), background-color .45s, border-color .45s, transform .5s var(--ease); }
.nav.is-scrolled { padding: 9px 0; background: rgba(8, 8, 11, .62); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 40px; height: auto; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-10deg) scale(1.08); }
.brand__word { display: flex; flex-direction: column; font-family: var(--f-mono); font-weight: 800; font-size: 1.02rem; line-height: 1; letter-spacing: .04em; direction: ltr; }
.brand__word small { font-size: .58rem; letter-spacing: .5em; color: var(--muted); margin-top: 4px; }
.nav__links { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02); }
.nav__links a { position: relative; padding: 8px 18px; border-radius: 999px; font-size: .88rem; color: var(--muted); transition: color .3s, background-color .3s; }
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); background: rgba(255, 255, 255, .07); box-shadow: inset 0 -2px 0 var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); font-weight: 700; font-size: .85rem; font-family: var(--f-body); background: rgba(255, 255, 255, .03); box-shadow: 0 3px 0 rgba(255, 255, 255, .05); transition: border-color .3s, background-color .3s, transform .3s; }
.lang-toggle:hover { border-color: var(--accent); background: rgba(255, 47, 75, .1); }
.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.burger span { position: absolute; left: 50%; top: 50%; width: 18px; height: 1.6px; margin-left: -9px; background: var(--text); border-radius: 2px; transition: transform .45s var(--ease); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.menu-open .burger span:first-child { transform: rotate(45deg); }
.menu-open .burger span:last-child { transform: rotate(-45deg); }

.menu {
  --ox: calc(100% - 40px);
  position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; justify-content: center; gap: 30px;
  padding: 100px var(--gutter) 40px; background: radial-gradient(circle at 80% 10%, rgba(255, 47, 75, .16), transparent 50%), rgba(6, 6, 8, .97);
  clip-path: circle(0 at var(--ox) 38px); transition: clip-path .85s var(--ease-io); pointer-events: none; visibility: hidden;
}
[dir="rtl"] .menu { --ox: 40px; }
.menu-open .menu { clip-path: circle(160% at var(--ox) 38px); pointer-events: auto; visibility: visible; }
.menu__links { display: grid; perspective: 800px; }
.menu__links a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(40px) rotateX(-50deg); transform-origin: 50% 100%; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.menu__links a span { font-family: var(--f-mono); font-size: .75rem; color: var(--accent); }
.menu__links a b { font-family: var(--f-display); font-size: clamp(2rem, 10vw, 3.6rem); font-weight: 700; line-height: 1.1; }
.menu-open .menu__links a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 70ms + .25s); }
.menu__foot { color: var(--muted); font-size: .85rem; opacity: 0; transition: opacity .6s .6s; }
.menu-open .menu__foot { opacity: 1; }

@media (max-width: 920px) {
  .nav__links, .nav__actions .btn { display: none; }
  .burger { display: block; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .02em .1em; margin: -.04em -.02em -.1em; }
.split .w > span { display: inline-block; transform: translateY(110%) rotateX(-70deg); transform-origin: 50% 100%; transition: transform 1.05s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0s)); }
.split.is-in .w > span { transform: none; }
.split:not(.is-split) { opacity: 0; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 110px; overflow: hidden; }
.hero__glow { position: absolute; inset-inline-end: -10%; top: 10%; width: 70vw; max-width: 900px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 47, 75, .18), rgba(255, 47, 75, .05) 40%, transparent 65%); filter: blur(10px); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }

.hero__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.5rem, 6.3vw, 6.2rem); line-height: .98; letter-spacing: -.035em; text-transform: uppercase; margin: 0 0 22px; perspective: 900px; }
.hero__title .line { display: block; overflow: hidden; padding: .04em .2em .14em; margin: -.04em -.2em -.14em; }
.hero__title .line > span { display: inline-block; transform: translateY(115%) rotateX(-55deg); transform-origin: 50% 100%; transition: transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.is-ready .hero__title .line > span { transform: none; }
.hero__title .accent { color: var(--accent); }
.hero__title .outline { color: transparent; background: linear-gradient(180deg, #f4f1ec 0%, rgba(244, 241, 236, .55) 45%, rgba(244, 241, 236, .08) 100%); -webkit-background-clip: text; background-clip: text; padding-bottom: .06em; }
[dir="rtl"] .hero__title { letter-spacing: 0; line-height: 1.22; font-size: clamp(2.4rem, 6vw, 5.6rem); }
.hero__lead { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.12rem); max-width: 50ch; margin: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-in { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.is-ready .hero-in { opacity: 1; transform: none; }

/* hero 2.5D stage */
.hero__stage { position: relative; perspective: 1500px; perspective-origin: 50% 40%; opacity: 0; transform: scale(.92); transition: opacity 1.4s .3s var(--ease), transform 1.6s .3s var(--ease); }
.is-ready .hero__stage { opacity: 1; transform: none; }
.scene { --rx: 8deg; --ry: -20deg; --sy: 0px; position: relative; width: 100%; aspect-ratio: 1 / .96; transform-style: preserve-3d; transform: translateY(var(--sy)) rotateX(var(--rx)) rotateY(var(--ry)); will-change: transform; }
.ly { position: absolute; transform-style: preserve-3d; }
.ly__in { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -24px rgba(0, 0, 0, .9); }
.ly__in img { width: 100%; height: auto; }
.ly--back { width: 78%; top: 3%; inset-inline-start: 20%; transform: translateZ(-170px) rotateZ(3deg); }
.ly--back .ly__in { box-shadow: 0 0 0 1px rgba(255, 47, 75, .25), 0 40px 80px -24px rgba(0, 0, 0, .9), 0 0 120px -20px rgba(255, 47, 75, .5); }
.ly__tag { position: absolute; inset-inline-start: 12px; bottom: 10px; font-family: var(--f-mono); font-size: .6rem; font-weight: 800; letter-spacing: .25em; color: #fff; background: rgba(0, 0, 0, .55); padding: 5px 8px; border-radius: 6px; }
.ly--mid { width: 72%; top: 33%; inset-inline-start: 0; transform: translateZ(0); }
.screen { background: #0c0c11; padding: 0 6px 6px; border: 1px solid rgba(255, 255, 255, .1); }
.screen__bar { display: flex; align-items: center; gap: 6px; height: 26px; padding-inline: 6px; }
.screen__bar i { width: 8px; height: 8px; border-radius: 50%; background: #2c2c36; }
.screen__bar i:first-child { background: var(--accent); }
.screen__bar span { margin-inline-start: auto; font-family: var(--f-mono); font-size: .58rem; letter-spacing: .14em; color: var(--dim); }
.screen img { border-radius: 8px; }
.ly--front { width: 44%; bottom: 3%; inset-inline-end: 0; transform: translateZ(150px); }
.glass { display: grid; justify-items: center; gap: 10px; padding: 22px 18px 18px; background: linear-gradient(160deg, rgba(40, 40, 52, .92), rgba(14, 14, 20, .95)); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 6px 0 rgba(0, 0, 0, .5), 0 40px 70px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .15) !important; }
.glass img { width: 62%; filter: drop-shadow(0 6px 14px rgba(255, 47, 75, .45)); }
.glass__word { font-family: var(--f-mono); font-weight: 800; font-size: clamp(.8rem, 1.5vw, 1.1rem); letter-spacing: .06em; text-align: center; line-height: 1; direction: ltr; }
.glass__word small { display: block; font-size: .55em; letter-spacing: .55em; color: var(--muted); margin-top: 5px; }
.glass__tags { display: flex; gap: 6px; }
.glass__tags span { font-family: var(--f-mono); font-size: .5rem; font-weight: 800; letter-spacing: .15em; padding: 4px 7px; border-radius: 5px; background: rgba(255, 47, 75, .14); color: #ff8091; }
.chip { width: clamp(58px, 16%, 104px); }
.chip .ly__in { aspect-ratio: 1; display: grid; place-items: center; padding: 14%; background: linear-gradient(150deg, #1e1e27, #0e0e13); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22%; box-shadow: 0 5px 0 #050507, 0 26px 40px -12px rgba(0, 0, 0, .9); }
.chip img { width: 100%; height: 100%; object-fit: contain; }
.chip--1 { top: -1%; inset-inline-start: 6%; transform: translateZ(230px); }
.chip--2 { top: 47%; inset-inline-end: -5%; transform: translateZ(270px); }
.chip--3 { bottom: -3%; inset-inline-start: 14%; transform: translateZ(100px); }
.pedestal { position: absolute; left: 50%; bottom: -14%; width: 115%; aspect-ratio: 1; margin-left: -57.5%; border-radius: 50%; transform: translateZ(-80px) rotateX(82deg); background: radial-gradient(circle, rgba(255, 47, 75, .32), rgba(255, 47, 75, .06) 45%, transparent 66%); border: 1px solid rgba(255, 47, 75, .18); box-shadow: inset 0 0 0 30px rgba(255, 255, 255, .012), inset 0 0 0 31px rgba(255, 255, 255, .05); }
.fl-a { animation: floatY 7s ease-in-out infinite; }
.fl-b { animation: floatY 8.5s -2s ease-in-out infinite; }
.fl-c { animation: floatY 6.4s -1s ease-in-out infinite; }
.fl-d { animation: floatY 5.6s -3s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 96px; height: 96px; margin-left: -48px; display: grid; place-items: center; z-index: 2; }
.scroll-cue__ring { position: absolute; inset: 0; animation: spin 16s linear infinite; }
.scroll-cue__ring text { font-family: var(--f-mono); font-size: 7.4px; font-weight: 700; fill: var(--muted); }
.scroll-cue__box { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 4px 0 #000; transition: background-color .3s, transform .3s; }
.scroll-cue__box svg { width: 18px; animation: bob 1.8s ease-in-out infinite; }
.scroll-cue:hover .scroll-cue__box { background: var(--accent); border-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

@media (max-width: 960px) {
  .hero { padding-top: 110px; padding-bottom: 60px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { max-width: 560px; width: 100%; margin: 56px auto 0; }
  .chip--1 { transform: translateZ(110px); inset-inline-start: 10%; }
  .chip--2 { transform: translateZ(130px); inset-inline-end: 0; }
  .chip--3 { transform: translateZ(60px); }
  .ly--front { transform: translateZ(90px); }
  .ly--back { transform: translateZ(-110px) rotateZ(3deg); }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__title .line > span.extrude { --ex: #24242c; }
  .extrude { text-shadow: 1px 1px 0 var(--ex), 2px 2px 0 var(--ex), 3px 3px 0 var(--ex), 4px 4px 0 var(--ex), 6px 12px 20px rgba(0, 0, 0, .6); }
  [dir="rtl"] .extrude { text-shadow: -1px 1px 0 var(--ex), -2px 2px 0 var(--ex), -3px 3px 0 var(--ex), -4px 4px 0 var(--ex), -6px 12px 20px rgba(0, 0, 0, .6); }
  .ly--front { width: 50%; }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquees { position: relative; z-index: 2; padding: 50px 0 70px; overflow: hidden; }
.marquee { display: flex; overflow: hidden; white-space: nowrap; direction: ltr; margin-inline: -4vw; user-select: none; }
.marquee--a { position: relative; z-index: 2; padding: 16px 0; background: var(--grad); transform: rotate(-2deg); box-shadow: 0 7px 0 var(--accent-deep), 0 30px 60px -20px rgba(255, 47, 75, .45); }
.marquee--b { padding: 14px 0; margin-top: -34px; background: var(--surface); border-block: 1px solid var(--line); transform: rotate(1.6deg); box-shadow: 0 7px 0 #050506; }
.marquee__track { display: flex; flex: none; animation: marquee 38s linear infinite; }
.marquee--b .marquee__track { animation-direction: reverse; animation-duration: 46s; }
.marquee__item { display: inline-flex; align-items: center; gap: .85em; padding-inline: .85em; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 2rem); text-transform: uppercase; line-height: 1.2; }
.marquee__item::after { content: "✦"; font-size: .6em; opacity: .85; }
.marquee--b .marquee__item { color: var(--muted); }
.marquee--b .marquee__item::after { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* =========================================================
   SECTIONS (shared)
   ========================================================= */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section, .chapter, .marquees { overflow-x: clip; }
.section-head { display: grid; gap: 4px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { color: var(--muted); font-size: clamp(.95rem, 1.2vw, 1.08rem); margin: 14px 0 0; max-width: 60ch; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.about__text > p { color: var(--muted); font-size: clamp(.98rem, 1.15vw, 1.06rem); max-width: 58ch; margin: 20px 0 0; }
.about__text > p strong { color: var(--text); font-weight: 500; }
.services { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; perspective: 900px; }
.service { --tx: 0deg; --ty: 0deg; position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(170deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); box-shadow: 0 6px 0 rgba(255, 255, 255, .03); }
.service.reveal { transition: opacity 1s var(--ease) var(--d, 0s), filter 1s var(--ease) var(--d, 0s), transform .6s var(--ease), border-color .35s, box-shadow .5s var(--ease); }
.service.is-in { transform: rotateX(var(--tx)) rotateY(var(--ty)); }
.service:hover { border-color: rgba(255, 47, 75, .38); box-shadow: 0 8px 0 rgba(255, 47, 75, .2), 0 30px 50px -30px rgba(255, 47, 75, .5); }
.service__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; color: var(--accent); background: rgba(255, 47, 75, .1); box-shadow: 0 3px 0 rgba(255, 47, 75, .22); }
.service__icon svg { width: 22px; height: 22px; }
.service h3 { font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.service p { margin: 0; font-size: .85rem; line-height: 1.55; color: var(--muted); }

/* orbit */
.orbit { position: relative; width: min(100%, 540px); aspect-ratio: 1; margin-inline: auto; perspective: 1300px; }
.orbit__scene { --orx: 0deg; --ory: 0deg; position: absolute; inset: 6%; transform-style: preserve-3d; transform: rotateX(var(--orx)) rotateY(var(--ory)); }
.orbit__halo { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 47, 75, .28), rgba(255, 47, 75, .05) 50%, transparent 70%); transform: translateZ(-120px); filter: blur(6px); }
.orbit__ring { --tilt: 72deg; --yaw: 0deg; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); transform-style: preserve-3d; animation: ringSpin 26s linear infinite; box-shadow: inset 0 0 40px rgba(255, 47, 75, .08); }
.orbit__ring--2 { --tilt: 66deg; --yaw: -22deg; inset: -9%; border: 1px dashed rgba(255, 47, 75, .35); animation-duration: 38s; animation-direction: reverse; }
@keyframes ringSpin { from { transform: rotateX(var(--tilt)) rotateY(var(--yaw)) rotateZ(0deg); } to { transform: rotateX(var(--tilt)) rotateY(var(--yaw)) rotateZ(360deg); } }
.orbit__arm { position: absolute; inset: 0; transform: rotateZ(var(--a)); transform-style: preserve-3d; }
.orbit__planet, .orbit__moon { position: absolute; top: 0; left: 50%; transform-style: preserve-3d; }
.orbit__planet { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, #2a2a35, #121218); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 5px 0 #050506, 0 14px 30px rgba(0, 0, 0, .6); animation: planet 26s linear infinite; }
.orbit__planet svg { width: 24px; height: 24px; color: var(--accent); }
.orbit__moon { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); animation: planet 38s linear infinite reverse; }
@keyframes planet { from { transform: rotateZ(calc(-1 * var(--a))) rotateY(calc(-1 * var(--yaw))) rotateX(calc(-1 * var(--tilt))); } to { transform: rotateZ(calc(-1 * var(--a) - 360deg)) rotateY(calc(-1 * var(--yaw))) rotateX(calc(-1 * var(--tilt))); } }
.orbit__ring--2 .orbit__moon { animation-direction: normal; }
.orbit__core { position: absolute; inset: 24%; display: grid; place-items: center; transform: translateZ(10px); }
.orbit__core img { width: 100%; filter: drop-shadow(0 24px 40px rgba(255, 47, 75, .35)); animation: floatY 6s ease-in-out infinite; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
}
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } .orbit__planet { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 13px; } .orbit__planet svg { width: 20px; height: 20px; } }

/* ---------- Works index (chapter cards) ---------- */
.chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chapters > div { display: flex; }
.chapters .ccard { flex: 1; min-width: 0; }
.ccard { --tx: 0deg; --ty: 0deg; --gx: 50%; --gy: 50%; position: relative; display: flex; flex-direction: column; min-height: 420px; padding: 20px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(170deg, #121219, #0b0b10); box-shadow: 0 8px 0 #040405, 0 40px 60px -40px rgba(0, 0, 0, .9); overflow: hidden; transform: perspective(900px) rotateX(var(--tx)) rotateY(var(--ty)); transition: transform .6s var(--ease), border-color .4s, box-shadow .5s var(--ease); }
.ccard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .09), transparent 45%); opacity: 0; transition: opacity .4s; }
.ccard:hover { border-color: rgba(255, 47, 75, .45); box-shadow: 0 10px 0 var(--accent-ink), 0 40px 60px -30px rgba(255, 47, 75, .4); }
.ccard:hover::after { opacity: 1; }
.ccard__fan { position: relative; height: 210px; margin: 6px 0 22px; perspective: 700px; transform-style: preserve-3d; }
.ccard__fan img { position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 18px 30px -10px rgba(0, 0, 0, .9); transition: transform .8s var(--ease); background: #15151c; }
.ccard__fan--wide img { width: 78%; aspect-ratio: 16 / 10; }
.ccard__fan--logo img { width: 56%; aspect-ratio: 1; object-fit: contain; padding: 12%; background: linear-gradient(150deg, #1d1d26, #101016); }
.ccard__fan img:nth-child(1) { transform: translate(-50%, -50%) translate3d(-18%, 4%, -40px) rotate(-9deg); }
.ccard__fan img:nth-child(2) { transform: translate(-50%, -50%) translate3d(18%, 4%, -40px) rotate(9deg); }
.ccard__fan img:nth-child(3) { transform: translate(-50%, -50%) translate3d(0, 0, 30px); }
.ccard:hover .ccard__fan img:nth-child(1) { transform: translate(-50%, -50%) translate3d(-40%, 2%, -20px) rotate(-16deg); }
.ccard:hover .ccard__fan img:nth-child(2) { transform: translate(-50%, -50%) translate3d(40%, 2%, -20px) rotate(16deg); }
.ccard:hover .ccard__fan img:nth-child(3) { transform: translate(-50%, -50%) translate3d(0, -8%, 90px) scale(1.04); }
.ccard__num { font-family: var(--f-mono); font-size: .75rem; font-weight: 800; color: var(--accent); letter-spacing: .1em; }
.ccard h3 { font-family: var(--f-display); font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 700; line-height: 1.2; margin: 6px 0 6px; }
[dir="rtl"] .ccard h3 { font-family: var(--f-body); font-size: 1.3rem; }
.ccard p { margin: 0; color: var(--muted); font-size: .85rem; }
.ccard__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.ccard__more { font-size: .82rem; color: var(--muted); transition: color .3s; }
.ccard:hover .ccard__more { color: var(--text); }
.ccard__arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: background-color .35s, border-color .35s, transform .5s var(--ease); }
.ccard__arrow svg { width: 16px; height: 16px; }
.ccard:hover .ccard__arrow { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }
[dir="rtl"] .ccard:hover .ccard__arrow { transform: rotate(45deg); }
@media (max-width: 1100px) { .chapters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .chapters { grid-template-columns: 1fr; gap: 14px; }
  .ccard { min-height: 0; display: grid; grid-template-columns: 42% 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 14px; }
  .ccard__fan { grid-row: 1 / span 2; height: 150px; margin: 0; }
  .ccard__body { align-self: end; }
  .ccard__foot { grid-column: 2; padding-top: 10px; margin-top: 10px; }
  .ccard__arrow { width: 32px; height: 32px; }
}

/* ---------- Chapter shared ---------- */
.chapter { position: relative; padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 110px); }
.chapter::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1320px, 100%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.chapter__head { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 3vw, 40px); align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.chapter__num {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(4.2rem, 11vw, 9.5rem); line-height: .82; letter-spacing: -.04em;
  color: var(--surface-2); -webkit-text-stroke: 1px rgba(255, 47, 75, .55);
  text-shadow: 1px 1px 0 #17171e, 2px 2px 0 #15151c, 3px 3px 0 #14141a, 4px 4px 0 #121218, 5px 5px 0 #111116, 6px 6px 0 #0f0f14, 7px 7px 0 #0e0e12, 8px 8px 0 #0c0c10, 14px 22px 30px rgba(0, 0, 0, .7);
}
[dir="rtl"] .chapter__num { text-shadow: -1px 1px 0 #17171e, -2px 2px 0 #15151c, -3px 3px 0 #14141a, -4px 4px 0 #121218, -5px 5px 0 #111116, -6px 6px 0 #0f0f14, -7px 7px 0 #0e0e12, -8px 8px 0 #0c0c10, -14px 22px 30px rgba(0, 0, 0, .7); }
.chapter__titles p { color: var(--muted); max-width: 58ch; margin: 14px 0 0; font-size: clamp(.94rem, 1.1vw, 1.04rem); }
.chapter__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
@media (max-width: 820px) {
  .chapter__head { grid-template-columns: auto 1fr; align-items: start; }
  .chapter__aside { grid-column: 1 / -1; justify-self: start; }
  .chapter__aside { flex-direction: row; align-items: center; flex-wrap: wrap; }
}
@media (max-width: 480px) { .chapter__head { grid-template-columns: 1fr; gap: 6px; } .chapter__num { font-size: 4.4rem; } }

/* =========================================================
   01 GAME UI — level select + 2.5D monitor
   ========================================================= */
.game__wrap { display: grid; grid-template-columns: minmax(220px, 290px) 1fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.game__side { position: sticky; top: 100px; }
.game__press { display: inline-block; font-family: var(--f-mono); font-size: .7rem; font-weight: 800; letter-spacing: .32em; color: var(--accent); margin-bottom: 12px; animation: blink 1.3s steps(2, jump-none) infinite; }
[dir="rtl"] .game__press { letter-spacing: .05em; font-family: var(--f-body); font-size: .8rem; }
@keyframes blink { 50% { opacity: .25; } }
.game__menu { display: flex; flex-direction: column; gap: 4px; }
.game__item { position: relative; display: grid; grid-template-columns: 1fr 16px; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; text-align: start; color: var(--muted); border: 1px solid transparent; transition: color .3s, background-color .3s, border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease); }
.game__item .name { font-family: var(--f-display); font-size: 1rem; font-weight: 600; line-height: 1.2; }
[dir="rtl"] .game__item .name { font-family: var(--f-body); font-size: 1.08rem; }
.game__item .sub { display: block; margin-top: 3px; font-family: var(--f-body); font-size: .74rem; font-weight: 400; color: var(--dim); }
.game__item .caret { width: 14px; height: 14px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease); }
[dir="rtl"] .game__item .caret { transform: translateX(6px) scaleX(-1); }
.game__item:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.game__item:hover .caret { opacity: .5; transform: none; }
[dir="rtl"] .game__item:hover .caret { transform: scaleX(-1); }
.game__item.is-active { color: var(--text); border-color: rgba(255, 47, 75, .38); background: linear-gradient(90deg, rgba(255, 47, 75, .17), rgba(255, 47, 75, .02)); box-shadow: 0 4px 0 rgba(255, 47, 75, .22); }
[dir="rtl"] .game__item.is-active { background: linear-gradient(-90deg, rgba(255, 47, 75, .17), rgba(255, 47, 75, .02)); }
.game__item.is-active .caret { opacity: 1; transform: none; animation: nudge 1s ease-in-out infinite; }
[dir="rtl"] .game__item.is-active .caret { transform: scaleX(-1); animation-name: nudgeRtl; }
@keyframes nudge { 50% { transform: translateX(4px); } }
@keyframes nudgeRtl { 0%, 100% { transform: scaleX(-1); } 50% { transform: scaleX(-1) translateX(4px); } }

.game__stage { position: relative; perspective: 1900px; perspective-origin: 50% 30%; min-width: 0; }
.monitor { --mrx: 4deg; --mry: -12deg; position: relative; transform-style: preserve-3d; transform: rotateX(var(--mrx)) rotateY(var(--mry)); will-change: transform; }
.monitor__screen { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: clamp(6px, 1vw, 11px) solid #0f0f15; box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 60px 110px -40px rgba(0, 0, 0, .95), 0 0 90px -25px rgba(255, 47, 75, .4); }
.monitor__side { position: absolute; background: linear-gradient(180deg, #1b1b23, #0a0a0e); }
.monitor__side--r { top: 6px; left: 100%; width: 26px; height: calc(100% - 12px); transform-origin: left center; transform: rotateY(90deg); background: linear-gradient(90deg, #1a1a22, #08080b); }
.monitor__side--l { top: 6px; right: 100%; width: 26px; height: calc(100% - 12px); transform-origin: right center; transform: rotateY(-90deg); background: linear-gradient(-90deg, #1a1a22, #08080b); }
.monitor__side--b { left: 6px; top: 100%; width: calc(100% - 12px); height: 26px; transform-origin: top center; transform: rotateX(-90deg); background: linear-gradient(180deg, #16161d, #070709); }
.monitor__side--t { left: 6px; bottom: 100%; width: calc(100% - 12px); height: 26px; transform-origin: bottom center; transform: rotateX(90deg); background: linear-gradient(0deg, #1d1d25, #0a0a0e); }
.monitor__content { position: absolute; inset: 0; transform-origin: 50% 50%; }
.monitor__slides img, .monitor__slides video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.07); transition: opacity .9s var(--ease), transform 5s linear; }
.monitor__slides .is-on { opacity: 1; transform: scale(1); }
.monitor.is-switching .monitor__content { animation: crt .62s var(--ease-io); }
@keyframes crt { 0% { transform: scale(1, 1); filter: brightness(1); } 38% { transform: scale(1, .006); filter: brightness(4) saturate(0); } 52% { transform: scale(.0, .006); filter: brightness(6); } 62% { transform: scale(1, .006); filter: brightness(3); } 100% { transform: scale(1, 1); filter: brightness(1); } }
.monitor__hud { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(10px, 1.6vw, 18px); background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 24%, transparent 72%, rgba(0, 0, 0, .65)); }
.hud__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: clamp(.55rem, .9vw, .68rem); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .85); direction: ltr; }
.hud__live { display: inline-flex; align-items: center; gap: 6px; }
.hud__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1s steps(2, jump-none) infinite; }
.hud__segs { display: flex; gap: 6px; direction: ltr; }
.hud__segs i { position: relative; flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.hud__segs i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.hud__segs i.done::after { transform: scaleX(1); }
.hud__segs i.run::after { animation: seg var(--t, 4.5s) linear forwards; }
.hud__segs.is-paused i.run::after { animation-play-state: paused; }
@keyframes seg { to { transform: scaleX(1); } }
.monitor__scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.monitor__glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .13), transparent 38%); }
.monitor__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 47, 75, .92); box-shadow: 0 0 0 10px rgba(255, 47, 75, .2); }
.monitor__floor { position: absolute; left: 8%; right: 8%; top: calc(100% - 20px); height: 90px; margin-top: -1px; pointer-events: none; background: radial-gradient(ellipse at 50% 0%, rgba(255, 47, 75, .38), transparent 70%); filter: blur(18px); }
.game__info { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-top: clamp(36px, 5vw, 54px); }
.game__title { font-family: var(--f-display); font-size: clamp(1.4rem, 2.8vw, 2.3rem); font-weight: 700; margin: 0; line-height: 1.1; }
.game__title small { display: block; margin-top: 6px; font-family: var(--f-body); font-size: .45em; font-weight: 400; color: var(--muted); }
[dir="rtl"] .game__title { font-family: var(--f-body); }
.game__desc { margin: 10px 0 0; color: var(--muted); font-size: .94rem; max-width: 52ch; }
.game__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.filmstrip { display: flex; gap: 10px; margin-top: 22px; padding: 6px 2px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #2a2a33 transparent; }
.filmstrip button { flex: 0 0 auto; width: clamp(92px, 11vw, 136px); aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); opacity: .45; scroll-snap-align: start; transition: opacity .3s, border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease); }
.filmstrip button img { width: 100%; height: 100%; object-fit: cover; }
.filmstrip button:hover { opacity: .8; }
.filmstrip button.is-on { opacity: 1; border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 4px 0 var(--accent-deep); }

@media (max-width: 900px) {
  .game__wrap { grid-template-columns: 1fr; }
  .game__side { position: relative; top: 0; min-width: 0; }
  .game__press { display: none; }
  .game__menu { flex-direction: row; overflow-x: auto; gap: 8px; padding: 4px 2px 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x mandatory; scrollbar-width: none; }
  .game__menu::-webkit-scrollbar { display: none; }
  .game__item { flex: 0 0 auto; grid-template-columns: auto; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); scroll-snap-align: start; border-radius: 999px; }
  .game__item .sub, .game__item .caret { display: none; }
  .game__item .name { font-size: .88rem; white-space: nowrap; }
  .monitor { --mry: -6deg; }
  .monitor__side { width: 14px !important; }
  .monitor__side--b, .monitor__side--t { width: calc(100% - 12px) !important; height: 14px; }
}

/* =========================================================
   02 POSTERS — Z-depth fly-through gallery
   ========================================================= */
.tunnel { position: relative; height: calc(var(--n, 8) * 62vh + 100vh); }
.tunnel__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 900px; perspective-origin: 50% 42%; }
.tunnel__world { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.tcard { position: absolute; left: 0; top: 0; display: block; padding: 0; transform-style: preserve-3d; will-change: opacity; }
.tcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; background: #121218; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 90px -30px rgba(0, 0, 0, .95); }
.tcard__plate { position: absolute; inset: 0; border-radius: 14px; background: #08080b; transform: translate3d(10px, 10px, -18px); box-shadow: 0 0 0 1px rgba(255, 47, 75, .25); }
.tcard__cap { position: absolute; top: calc(100% + 14px); inset-inline-start: 0; display: flex; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: .68rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); white-space: nowrap; text-transform: uppercase; }
.tcard__cap b { color: var(--accent); }
.tunnel__floor { position: absolute; left: 0; top: 0; transform-origin: 50% 0; background-image: linear-gradient(rgba(255, 47, 75, .26) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 100% 140px, 140px 100%; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 92%); mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 92%); pointer-events: none; }
.tdust { position: absolute; left: 0; top: 0; width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .55); pointer-events: none; }
.tdust.r { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.tunnel__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(6, 6, 8, .6) 100%); }
.tunnel__hud { position: absolute; left: 0; right: 0; bottom: clamp(18px, 4vh, 40px); margin-inline: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; pointer-events: none; }
.tunnel__caption { min-width: 0; }
.tunnel__title { font-family: var(--f-display); font-size: clamp(1.2rem, 2.6vw, 2.2rem); font-weight: 700; margin: 6px 0 0; line-height: 1.1; }
[dir="rtl"] .tunnel__title { font-family: var(--f-body); }
.tunnel__type { margin: 6px 0 0; color: var(--muted); font-size: .88rem; }
.tunnel__title, .tunnel__type { transition: opacity .35s, transform .5s var(--ease); }
.tunnel__caption.is-swap .tunnel__title, .tunnel__caption.is-swap .tunnel__type { opacity: 0; transform: translateY(10px); }
.tunnel__meter { flex: 0 0 min(220px, 30%); height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; margin-bottom: 10px; }
.tunnel__meter i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .tunnel__meter i { transform-origin: right; }
.tunnel__hint { margin-bottom: 4px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; transition: opacity .5s; }
.tunnel.is-moving .tunnel__hint { opacity: 0; }
[dir="rtl"] .tunnel__hint { letter-spacing: 0; font-family: var(--f-body); }
@media (max-width: 700px) {
  .tunnel__hud { flex-direction: column; align-items: stretch; gap: 12px; }
  .tunnel__meter { flex: none; width: 100%; margin: 0; }
  .tunnel__hint { display: none; }
}

/* grid fallback */
.posters.is-grid .tunnel { display: none; }
.poster-grid { columns: 3 280px; column-gap: 16px; }
.pgrid__item { display: block; width: 100%; margin: 0 0 16px; break-inside: avoid; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); position: relative; box-shadow: 0 6px 0 #040405; transition: transform .5s var(--ease), border-color .3s; }
.pgrid__item:hover { transform: translateY(-4px); border-color: rgba(255, 47, 75, .45); }
.pgrid__item img { width: 100%; height: auto; }
.pgrid__item span { position: absolute; inset-inline-start: 10px; bottom: 10px; padding: 5px 10px; border-radius: 8px; background: rgba(0, 0, 0, .65); font-size: .78rem; }

/* =========================================================
   03 LOGOS — isometric extruded board
   ========================================================= */
.board-wrap { container-type: inline-size; max-width: 1040px; margin-inline: auto; perspective: 1700px; perspective-origin: 50% 20%; padding: 20px 0 60px; }
.board {
  --gap: clamp(10px, 1.5vw, 18px); --bx: 56deg; --bz: -34deg; --bs: .8;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: calc((100cqw - 3 * var(--gap)) / 4); gap: var(--gap);
  grid-auto-flow: dense; transform-style: preserve-3d; transform: rotateX(var(--bx)) rotateZ(var(--bz)) scale(var(--bs)); will-change: transform;
}
.ltile { --lift: 22px; --drop: 0px; position: relative; transform-style: preserve-3d; transform: translateZ(var(--drop)); transition: transform 1s var(--ease), opacity .8s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); text-align: start; }
.board:not(.is-in) .ltile { --drop: 340px; opacity: 0; }
.ltile--wide { grid-column: span 2; }
.ltile--big { grid-column: span 2; grid-row: span 2; }
.ltile--transparent.ltile--big .ltile__face { padding: 14% 10%; }
.ltile__base { position: absolute; inset: 0; border-radius: 18px; background: linear-gradient(150deg, #17171f, #0b0b10); border: 1px solid rgba(255, 255, 255, .08); transform-style: preserve-3d; }
.ltile__base::before, .ltile__edge { content: ""; position: absolute; pointer-events: none; }
.ltile__base::before { left: 14px; right: 14px; top: 100%; height: 16px; transform-origin: top; transform: rotateX(-90deg); background: linear-gradient(#20202a, #08080b); }
.ltile__edge--l { top: 14px; bottom: 14px; right: 100%; width: 16px; transform-origin: right; transform: rotateY(-90deg); background: linear-gradient(-90deg, #1c1c25, #08080b); }
.ltile__edge--r { top: 14px; bottom: 14px; left: 100%; width: 16px; transform-origin: left; transform: rotateY(90deg); background: linear-gradient(90deg, #1c1c25, #08080b); }
.ltile__shadow { position: absolute; inset: 14%; border-radius: 20px; background: rgba(0, 0, 0, .75); filter: blur(14px); transform: translateZ(1px); transition: opacity .6s var(--ease), inset .6s var(--ease); }
.ltile__plate { position: absolute; inset: 9px; transform-style: preserve-3d; transform: translateZ(var(--lift)); transition: transform .7s var(--ease); }
.ltile__flipper { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.ltile.is-flipped .ltile__flipper { transform: rotateY(180deg); }
.ltile__face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 13px; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; background: var(--face-bg, transparent); }
.ltile__face--back { transform: rotateY(180deg); }
.ltile__face img { width: 100%; height: 100%; object-fit: contain; }
.ltile--transparent .ltile__face { padding: 15%; }
.ltile--transparent.ltile--wide .ltile__face { padding: 12% 10%; }
.ltile--transparent .ltile__face img { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.ltile--transparent .ltile__shadow { display: none; }
.ltile--opaque .ltile__face { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.ltile__label { position: absolute; inset-inline-start: 14px; bottom: 10px; transform: translateZ(2px); font-family: var(--f-mono); font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; pointer-events: none; }
.ltile--opaque .ltile__label { display: none; }
.ltile__flip { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--accent-deep); transform: translateZ(calc(var(--lift) + 8px)); transition: transform .7s var(--ease); }
.ltile__flip svg { width: 14px; height: 14px; }
.ltile:hover, .ltile:focus-visible { --lift: 54px; }
.ltile:hover .ltile__shadow { opacity: .55; inset: 4%; }
.ltile:hover .ltile__base { border-color: rgba(255, 47, 75, .4); }
.board__hint { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; color: var(--dim); font-size: .82rem; }
.board__hint i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-style: normal; font-size: .8rem; }
@media (max-width: 700px) {
  .board { grid-template-columns: repeat(2, 1fr); grid-auto-rows: calc((100cqw - var(--gap)) / 2); }
  .ltile__label { display: none; }
  .ltile__base { border-radius: 14px; }
  .ltile__base::before { height: 10px; }
  .ltile__edge { width: 10px; }
  .ltile { --lift: 14px; }
  .ltile:hover { --lift: 30px; }
}

/* =========================================================
   04 APP UI — floating phones
   ========================================================= */
.app__grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.app__stage { position: relative; aspect-ratio: 1 / .98; perspective: 1500px; }
.app__scene { --ax: 6deg; --ay: -16deg; position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--ax)) rotateY(var(--ay)); will-change: transform; }
.app__glow { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 213, 0, .14), rgba(255, 47, 75, .08) 45%, transparent 70%); transform: translateZ(-200px); }
.app__card, .phone { position: absolute; display: block; transform-style: preserve-3d; text-align: start; }
.app__float { transform-style: preserve-3d; }
.app__card img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 70px -24px rgba(0, 0, 0, .95); }
.app__card--watch { width: 42%; top: 0; inset-inline-start: 0; transform: translateZ(-130px) rotateZ(-6deg); }
.app__card--social { width: 36%; bottom: 0; inset-inline-end: 0; transform: translateZ(-80px) rotateZ(5deg); }
.phone { width: 31%; }
.phone__body { position: relative; padding: clamp(5px, .8vw, 9px); border-radius: clamp(20px, 3vw, 36px); background: linear-gradient(160deg, #2a2a33, #0c0c10); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 1px 1px 0 #1d1d24, 2px 2px 0 #1b1b22, 3px 3px 0 #191920, 4px 4px 0 #17171d, 5px 5px 0 #15151b, 6px 6px 0 #131318, 7px 7px 0 #111116, 8px 8px 0 #0f0f13, 30px 40px 60px rgba(0, 0, 0, .7); }
.phone__screen { aspect-ratio: 9 / 16; border-radius: clamp(15px, 2.4vw, 28px); overflow: hidden; background: #1b1b1b; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__island { position: absolute; top: 3.2%; left: 50%; width: 28%; height: 2.6%; margin-left: -14%; border-radius: 20px; background: #000; }
.phone--a { top: 10%; inset-inline-start: 24%; transform: translateZ(90px) rotateZ(-3deg); }
.phone--b { top: 17%; inset-inline-start: 53%; transform: translateZ(20px) rotateZ(4deg); }
.app__card:hover img, .phone:hover .phone__body { box-shadow: 0 0 0 1px rgba(255, 47, 75, .6), 0 40px 70px -24px rgba(0, 0, 0, .95); }
.phone:hover .phone__body { box-shadow: inset 0 0 0 1px rgba(255, 47, 75, .6), 1px 1px 0 #1d1d24, 2px 2px 0 #1b1b22, 3px 3px 0 #191920, 4px 4px 0 #17171d, 5px 5px 0 #15151b, 6px 6px 0 #131318, 7px 7px 0 #111116, 8px 8px 0 #0f0f13, 30px 40px 60px rgba(0, 0, 0, .7); }
.app__badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-family: var(--f-mono); font-size: .7rem; font-weight: 800; letter-spacing: .18em; color: #ffd400; background: rgba(255, 212, 0, .08); border: 1px solid rgba(255, 212, 0, .25); }
.app__badge i { width: 8px; height: 8px; border-radius: 50%; background: #ffd400; box-shadow: 0 0 10px #ffd400; }
.app__h { font-family: var(--f-display); font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.2; margin: 18px 0 0; }
[dir="rtl"] .app__h { font-family: var(--f-body); }
.app__copy > p { color: var(--muted); margin: 14px 0 0; max-width: 52ch; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.feature-list li { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-size: .92rem; }
.feature-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); box-shadow: 0 0 10px rgba(255, 47, 75, .6); }
.app__thumbs { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.app__thumbs button { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 4px 0 #040405; transition: transform .4s var(--ease), border-color .3s; }
.app__thumbs button:hover { transform: translateY(-3px); border-color: var(--accent); }
.app__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .app__grid { grid-template-columns: 1fr; }
  .app__stage { max-width: 560px; width: 100%; margin-inline: auto; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact__lead { color: var(--muted); margin: 18px 0 0; max-width: 46ch; font-size: clamp(.98rem, 1.15vw, 1.06rem); }
.coin-scene { position: relative; width: clamp(150px, 20vw, 230px); aspect-ratio: 1; margin: 48px 0 0; perspective: 900px; }
.coin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: coin 10s linear infinite; }
.coin-scene:hover .coin { animation-duration: 2.6s; }
.coin__layer { position: absolute; inset: 0; border-radius: 50%; background: #7d0a1d; }
.coin__face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #30303b, #0d0d12 72%); border: 3px solid var(--accent); box-shadow: inset 0 0 0 7px rgba(255, 47, 75, .12), inset 0 0 40px rgba(255, 47, 75, .25); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.coin__face img { width: 60%; filter: drop-shadow(0 4px 10px rgba(255, 47, 75, .5)); }
.coin-shadow { position: absolute; left: 15%; right: 15%; bottom: -26px; height: 18px; border-radius: 50%; background: rgba(0, 0, 0, .7); filter: blur(10px); animation: coinShadow 10s linear infinite; }
@keyframes coin { to { transform: rotateY(360deg); } }
@keyframes coinShadow { 0%, 50%, 100% { transform: scaleX(1); } 25%, 75% { transform: scaleX(.25); } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(20px, 3vw, 36px); border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(170deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); box-shadow: 0 10px 0 #040405, 0 50px 90px -50px rgba(0, 0, 0, .9); }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .84rem; font-weight: 500; padding: 0; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #0d0d13; color: var(--text); font: inherit; font-size: 1rem; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .35); transition: border-color .3s, box-shadow .3s; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(255, 47, 75, .6); box-shadow: inset 0 3px 0 rgba(0, 0, 0, .35), 0 0 0 4px rgba(255, 47, 75, .13); }
.field.is-error input, .field.is-error textarea { border-color: #ff4d64; }
.field textarea { min-height: 150px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label span { display: inline-flex; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .84rem; color: var(--muted); background: rgba(255, 255, 255, .02); box-shadow: 0 3px 0 rgba(255, 255, 255, .04); transition: all .3s var(--ease); cursor: pointer; }
.chips input:checked + span { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 3px 0 var(--accent-deep); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__note { margin: 0; font-size: .86rem; color: var(--muted); }
.form__note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form__hp { display: none !important; }
.form.is-sending .btn { opacity: .6; pointer-events: none; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } .coin-scene { margin: 36px auto 0; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .form__foot .btn { width: 100%; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; z-index: 1; padding: 64px 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(14px, 4vw, 44px); }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; transition: color .3s; }
.footer__links a:hover { color: var(--text); }
.footer__links svg { width: 17px; height: 17px; }
.footer__mega { --fx: 50%; --fy: 50%; margin: 44px 0 20px; text-align: center; white-space: nowrap; user-select: none; direction: ltr; font-family: var(--f-mono); font-weight: 800; font-size: clamp(2.1rem, 11vw, 10rem); line-height: .95; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .12); background: radial-gradient(circle 240px at var(--fx) var(--fy), var(--accent), rgba(255, 47, 75, .15) 50%, transparent 72%); -webkit-background-clip: text; background-clip: text; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--dim); }
.to-top:hover { color: var(--text); }
@media (max-width: 600px) { .footer { padding-bottom: 96px; } }

/* ---------- Chapter dock ---------- */
.dock { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 120; display: flex; gap: 4px; padding: 5px; max-width: calc(100vw - 24px); border-radius: 999px; border: 1px solid var(--line-2); background: rgba(14, 14, 19, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 6px 0 rgba(0, 0, 0, .45), 0 24px 40px rgba(0, 0, 0, .5); transform: translate(-50%, 160%); transition: transform .7s var(--ease); }
.dock.is-on { transform: translate(-50%, 0); }
.dock a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .8rem; color: var(--muted); white-space: nowrap; transition: background-color .3s, color .3s, box-shadow .3s; }
.dock a b { font-family: var(--f-mono); font-size: .68rem; color: var(--dim); }
.dock a:hover { color: var(--text); }
.dock a.is-active { color: #fff; background: var(--grad); box-shadow: 0 3px 0 var(--accent-deep); }
.dock a.is-active b { color: rgba(255, 255, 255, .8); }
@media (max-width: 640px) { .dock a { padding: 8px 11px; } .dock a span { display: none; } .dock a.is-active span { display: inline; } }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 800; display: grid; grid-template-rows: auto 1fr auto; visibility: hidden; opacity: 0; transition: opacity .45s var(--ease), visibility 0s .45s; }
.lb.is-open { visibility: visible; opacity: 1; transition: opacity .45s var(--ease); }
.lb__bg { position: absolute; inset: 0; background: rgba(4, 4, 6, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lb__top { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px var(--gutter); }
.lb__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; color: var(--muted); }
.lb__close { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface); transition: background-color .3s, transform .4s var(--ease); }
.lb__close svg { width: 20px; height: 20px; }
.lb__close:hover { background: var(--accent); transform: rotate(90deg); }
.lb__stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 6px var(--gutter); perspective: 1400px; touch-action: pan-y; }
.lb__media { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 50px 120px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08); animation: lbIn .7s var(--ease) both; }
img.lb__media, video.lb__media { max-height: calc(100vh - 190px); max-height: calc(100svh - 190px); }
.lb__media.is-logo { background: radial-gradient(circle, #1d1d26, #0b0b10); padding: 6%; }
@keyframes lbIn { from { opacity: 0; transform: translate3d(calc(var(--sx, 0) * 60px), 20px, -120px) rotateY(calc(var(--sx, 0) * -14deg)) scale(.96); } }
.lb__nav { position: absolute; top: 50%; z-index: 2; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(17, 17, 23, .8); box-shadow: 0 4px 0 #000; transition: background-color .3s, transform .3s; }
.lb__nav svg { width: 22px; height: 22px; }
.lb__nav:hover { background: var(--accent); }
.lb__prev { inset-inline-start: var(--gutter); }
.lb__next { inset-inline-end: var(--gutter); }
.lb__thumbs { position: relative; direction: ltr; display: flex; justify-content: center; gap: 8px; padding: 12px var(--gutter) max(18px, env(safe-area-inset-bottom)); overflow-x: auto; scrollbar-width: none; }
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumbs button { flex: 0 0 auto; width: 66px; height: 46px; border-radius: 9px; overflow: hidden; border: 1px solid transparent; opacity: .4; transition: opacity .3s, border-color .3s; background: #15151c; }
.lb__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lb__thumbs button.is-on { opacity: 1; border-color: var(--accent); }
.lb__thumbs .is-video { display: grid; place-items: center; color: var(--accent); }
.lb.is-single .lb__nav, .lb.is-single .lb__thumbs { display: none; }
@media (max-width: 700px) {
  .lb__nav { top: auto; bottom: 74px; width: 44px; height: 44px; }
  .lb__thumbs { justify-content: flex-start; }
}

/* toast */
.toast { position: fixed; left: 50%; top: 20px; z-index: 900; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 5px 0 #000, 0 20px 40px rgba(0, 0, 0, .5); font-size: .9rem; transform: translate(-50%, -160%); visibility: hidden; transition: transform .6s var(--ease), visibility 0s .6s; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal, .hero-in { opacity: 1; transform: none; filter: none; }
}
