/* GOLEM — studio site. Single dark theme. */

:root {
  --bg: #06070c;
  --bg-2: #0a0c14;
  --panel: #0e111c;
  --line: #1c2233;
  --ink: #eef1fa;
  --ink-2: #9aa4bd;
  --ink-3: #78829f;
  --violet: #7c5cff;
  --mint: #2ee6a8;
  --cyan: #46c8ff;
  --grad: linear-gradient(92deg, #7c5cff, #46c8ff 55%, #2ee6a8);
  --font-d: "Unbounded", "Space Grotesk", system-ui, sans-serif;
  --font-b: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-b); font-size: 16.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: none; }
::selection { background: rgba(124,92,255,.4); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

section[id] { scroll-margin-top: 84px; }
@media (max-width: 760px) { section[id] { scroll-margin-top: 140px; } }

h1, h2, h3, .brand-txt, .btn, .chip-status { font-family: var(--font-d); }
h1, h2 { text-wrap: balance; }

/* skip link (visually hidden until focused) */
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--violet); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-family: var(--font-d); font-size: 13px; transition: top .15s ease;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------ header */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,7,12,.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(124,92,255,.14);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-txt { font-weight: 700; font-size: 15px; letter-spacing: .14em; }
.brand-txt em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo { width: 30px; height: 30px; flex: none; }

.nav-l { display: flex; align-items: center; gap: 4px; }
.nav-l a {
  color: var(--ink-2); font-size: 13.5px; font-weight: 500; letter-spacing: .06em;
  padding: 8px 12px; border-radius: 8px; text-transform: uppercase;
}
.nav-l a:hover, .nav-l a[aria-current="page"] { color: var(--ink); background: rgba(124,92,255,.12); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn-hot { background: var(--grad); color: #05060a; box-shadow: 0 8px 28px rgba(124,92,255,.35); }
.btn-hot:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(70,200,255,.4); }
.btn-line { border-color: #2a3350; color: var(--ink); }
.btn-line:hover { border-color: var(--violet); background: rgba(124,92,255,.1); }
.hdr .btn { padding: 10px 18px; }

@media (max-width: 760px) {
  .nav { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .nav-l { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .nav-l a { white-space: nowrap; }
}

/* ------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(124,92,255,.34), transparent 65%),
    radial-gradient(700px 420px at 8% 108%, rgba(46,230,168,.16), transparent 60%),
    radial-gradient(560px 340px at 100% 78%, rgba(70,200,255,.14), transparent 60%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,92,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,92,255,.09) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(85% 80% at 50% 20%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(85% 80% at 50% 20%, #000 30%, transparent 100%);
}
.hero-in { position: relative; z-index: 1; padding-block: clamp(84px, 12vw, 150px) clamp(64px, 9vw, 120px); }

.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mint); margin-bottom: 26px;
}
.tag::before { content: ""; width: 34px; height: 1px; background: var(--mint); }

.hero h1 {
  margin: 0 0 26px; font-weight: 800;
  font-size: clamp(38px, 7.6vw, 88px);
  line-height: 1.02; letter-spacing: -0.01em; text-transform: uppercase;
}
.hero h1 .ghost { color: transparent; -webkit-text-stroke: 1.5px rgba(238,241,250,.5); }
.hero h1 .flame { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--ink-2); font-size: clamp(16px, 2vw, 19px); max-width: 56ch; margin: 0 0 38px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-meta {
  margin-top: clamp(48px, 7vw, 84px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.hero-meta div { background: var(--bg-2); padding: 18px 20px; }
.hero-meta b { display: block; font-family: var(--font-d); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.hero-meta span { color: var(--ink-3); font-size: 13.5px; }
@media (max-width: 640px) { .hero-meta { grid-template-columns: 1fr; } }

/* ------------------------------------------------ ticker */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 14px 0; }
.ticker-track { display: flex; gap: 0; width: max-content; animation: tick 30s linear infinite; }
.ticker span {
  font-family: var(--font-d); font-size: 13px; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; color: var(--ink-3); padding: 0 28px; white-space: nowrap;
}
.ticker span i { font-style: normal; color: var(--violet); }
.ticker span:nth-child(4n) i { color: #ff6bd6; }
.ticker span:nth-child(4n+2) i { color: var(--mint); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ------------------------------------------------ sections */
section { padding: clamp(64px, 9vw, 110px) 0; }
.sec-head { margin-bottom: clamp(36px, 5vw, 56px); }
.kicker {
  font-family: var(--font-d); font-size: 12px; font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--violet); display: block; margin-bottom: 14px;
}
.sec-head h2 { font-size: clamp(26px, 4.4vw, 46px); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 14px; line-height: 1.1; }
.sec-head p { color: var(--ink-2); max-width: 60ch; margin: 0; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ------------------------------------------------ capability tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px 22px; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.tile:hover { transform: translateY(-3px); border-color: rgba(124,92,255,.5); }
.tile::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity .18s ease;
}
.tile:hover::after { opacity: 1; }
.tile .num { font-family: var(--font-d); font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .2em; }
.tile h3 { font-size: 15.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 8px; }
.tile p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

/* ------------------------------------------------ projects */
.projects { display: grid; gap: 18px; }
.proj {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 280px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.proj:hover { border-color: rgba(124,92,255,.55); transform: translateY(-3px); }
@media (max-width: 820px) { .proj { grid-template-columns: 1fr; } }

.proj-info { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.chip-status {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; border: 1px solid;
}
.st-dev  { color: var(--mint);  border-color: rgba(46,230,168,.45); background: rgba(46,230,168,.08); }
.st-soon { color: var(--cyan);  border-color: rgba(70,200,255,.45); background: rgba(70,200,255,.08); }
.st-lock { color: var(--ink-3); border-color: var(--line); background: rgba(255,255,255,.02); }
.proj h3 { font-size: clamp(20px, 3vw, 30px); font-weight: 700; text-transform: uppercase; margin: 0; letter-spacing: .02em; }
.proj p { color: var(--ink-2); margin: 0; font-size: 15px; max-width: 46ch; }
.proj-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.proj-tags span { font-size: 12px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; letter-spacing: .06em; }

.proj-art { position: relative; min-height: 220px; overflow: hidden; }
.proj-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ------------------------------------------------ studio */
.studio-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .studio-grid { grid-template-columns: 1fr; } }
.studio-grid .lede { font-size: clamp(19px, 2.6vw, 26px); line-height: 1.45; color: var(--ink); font-weight: 500; margin: 0; }
.studio-grid .lede b { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 600; }
.creed { display: grid; gap: 0; border-top: 1px solid var(--line); }
.creed div { padding: 20px 4px; border-bottom: 1px solid var(--line); }
.creed b { font-family: var(--font-d); display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.creed span { color: var(--ink-2); font-size: 14.5px; }

/* ------------------------------------------------ contact band */
.band { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(40px, 7vw, 80px) clamp(26px, 5vw, 72px); background: var(--bg-2); border: 1px solid rgba(124,92,255,.3); }
.band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(560px 300px at 88% 0%, rgba(124,92,255,.3), transparent 65%),
    radial-gradient(420px 260px at 6% 100%, rgba(46,230,168,.16), transparent 60%);
}
.band > * { position: relative; }
.band h2 { font-size: clamp(26px, 4.6vw, 48px); text-transform: uppercase; margin: 0 0 14px; line-height: 1.08; }
.band p { color: var(--ink-2); margin: 0 0 30px; max-width: 54ch; }

/* ------------------------------------------------ contact page */
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 780px) { .cgrid { grid-template-columns: 1fr; } }
.cblock { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; }
.cblock h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .2em; color: var(--ink-3); margin: 0 0 16px; font-family: var(--font-d); }
.cblock address { font-style: normal; color: var(--ink-2); line-height: 1.85; }
.cblock .legal { color: var(--ink); font-weight: 600; display: block; margin-bottom: 6px; }
.mail { font-family: var(--font-d); font-size: clamp(17px, 2.4vw, 22px); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ------------------------------------------------ prose (legal) */
.prose { max-width: 72ch; }
.prose h2 { font-size: 19px; text-transform: uppercase; letter-spacing: .04em; margin: 38px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }

/* ------------------------------------------------ page head */
.phead { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.phead::before { content: ""; position: absolute; inset: 0; background: radial-gradient(640px 300px at 12% -40%, rgba(124,92,255,.26), transparent 65%); }
.phead .wrap { position: relative; padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.phead h1 { font-size: clamp(30px, 5.4vw, 56px); text-transform: uppercase; margin: 14px 0 12px; line-height: 1.05; }
.phead p { color: var(--ink-2); max-width: 60ch; margin: 0; }

/* ------------------------------------------------ footer */
.ftr { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 34px; }
.ftr-word {
  font-family: var(--font-d); font-weight: 800; text-transform: uppercase;
  font-size: clamp(48px, 12.5vw, 180px); line-height: .95; letter-spacing: .04em;
  color: transparent; -webkit-text-stroke: 1px rgba(238,241,250,.22);
  user-select: none; margin-bottom: 34px;
}
.ftr-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; }
.ftr-links { display: flex; gap: 20px; flex-wrap: wrap; }
.ftr-links a { color: var(--ink-2); font-size: 13.5px; letter-spacing: .04em; }
.ftr-links a:hover { color: var(--ink); }
.ftr small { color: var(--ink-3); font-size: 13px; }

/* ------------------------------------------------ reveal on scroll */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal { transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.on, .reveal.on { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html.js .reveal, .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.proj h3 .redact { color: var(--ink-3); opacity: .55; letter-spacing: -.5px; }

@media (prefers-reduced-motion: reduce) {
  .fl, .nucleus, .ring-dash, .term-lines div.typing::after { animation: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ================================================ V4 · scroll story */

/* right-edge scroll progress */
.progress {
  position: fixed; top: 0; right: 0; width: 3px; height: 100vh; z-index: 60;
  background: rgba(124,92,255,.12); pointer-events: none;
}
.progress i {
  display: block; width: 100%; height: 100%;
  background: var(--grad);
  transform: scaleY(0); transform-origin: top;
}

/* ---------- hero sky ---------- */
.sky { position: relative; overflow: hidden; min-height: clamp(560px, 92vh, 940px); display: flex; align-items: stretch; }
.sky::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1000px 520px at 50% 118%, rgba(124,92,255,.36), transparent 62%),
    radial-gradient(700px 380px at 12% -8%, rgba(70,200,255,.14), transparent 60%),
    radial-gradient(700px 380px at 88% -8%, rgba(46,230,168,.10), transparent 60%);
}
.sky-stars { position: absolute; inset: 0; }
.sky-stars::before, .sky-stars::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 22%, rgba(255,255,255,.7), transparent 100%),
    radial-gradient(1px 1px at 24% 64%, rgba(255,255,255,.5), transparent 100%),
    radial-gradient(1.5px 1.5px at 37% 30%, rgba(255,255,255,.6), transparent 100%),
    radial-gradient(1px 1px at 52% 74%, rgba(255,255,255,.45), transparent 100%),
    radial-gradient(1.5px 1.5px at 64% 18%, rgba(255,255,255,.65), transparent 100%),
    radial-gradient(1px 1px at 78% 56%, rgba(255,255,255,.5), transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 32%, rgba(255,255,255,.6), transparent 100%),
    radial-gradient(1px 1px at 14% 84%, rgba(255,255,255,.4), transparent 100%),
    radial-gradient(1px 1px at 86% 82%, rgba(255,255,255,.4), transparent 100%);
  animation: twk 5s ease-in-out infinite alternate;
}
.sky-stars::after { transform: translate(3%, 6%) scale(1.15); animation-delay: 2.4s; opacity: .6; }
@keyframes twk { from { opacity: .45; } to { opacity: 1; } }

.sky-in {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  align-items: center; text-align: center; justify-content: flex-start;
  padding-block: clamp(56px, 9vh, 110px) 0;
}
.whisper {
  font-family: var(--font-d); font-size: 11px; font-weight: 700; letter-spacing: .34em;
  color: var(--ink-3); margin: 0 0 22px;
}
.sky h1 {
  margin: 0; font-weight: 800; text-transform: uppercase;
  font-size: clamp(52px, 11vw, 132px); line-height: .96; letter-spacing: .01em;
}
.sky h1 .flame { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* the core orb */
.orb-stage { margin-top: clamp(36px, 6vh, 64px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.orb { position: relative; width: clamp(120px, 18vw, 190px); aspect-ratio: 1; }
.orb-heart {
  position: absolute; inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #d8f6ff 0%, #46c8ff 34%, #7c5cff 72%, #241457 100%);
  box-shadow:
    0 0 44px rgba(124,92,255,.75),
    0 0 120px rgba(70,200,255,.4),
    inset 0 -14px 34px rgba(10,6,40,.7);
  animation: breathe 4.2s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.orb-ring, .orb-ring.r2 {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(124,92,255,.55);
  animation: spin 22s linear infinite;
}
.orb-ring.r2 { inset: -14%; border-color: rgba(46,230,168,.35); animation-duration: 34s; animation-direction: reverse; }
.orb-tag { font-family: var(--font-d); font-size: 11px; font-weight: 700; letter-spacing: .34em; color: var(--ink-2); }

/* scroll cue */
.cue { margin-top: clamp(30px, 6vh, 58px); padding-bottom: 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cue span { width: 1px; height: 46px; background: linear-gradient(#7c5cff, transparent); position: relative; overflow: visible; }
.cue span::after {
  content: ""; position: absolute; left: -2.5px; top: 0; width: 6px; height: 6px; border-radius: 50%;
  background: #2ee6a8; box-shadow: 0 0 10px #2ee6a8;
  animation: drip 1.6s ease-in infinite;
}
@keyframes drip { from { transform: translateY(0); opacity: 1; } to { transform: translateY(44px); opacity: 0; } }
.cue b { font-family: var(--font-d); font-size: 10px; letter-spacing: .4em; color: var(--ink-3); }

/* ---------- distribution ---------- */
.dist { padding: 0 0 clamp(30px, 5vw, 60px); background: linear-gradient(180deg, transparent, rgba(124,92,255,.04)); }
.dist-d { display: block; width: min(1200px, 100%); margin: 0 auto; height: auto; }
.dist-m { display: none; width: min(420px, 92%); margin: 0 auto; height: auto; }
@media (max-width: 760px) { .dist-d { display: none; } .dist-m { display: block; } }
.dflow path {
  fill: none; stroke: url(#dg); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 10 8; animation: flow 1.2s linear infinite;
}
.dist-m .dflow path { stroke: url(#dgm); }
.dflow path:nth-child(2) { animation-delay: .25s; }
.dflow path:nth-child(3) { animation-delay: .5s; }
.dflow path:nth-child(4) { animation-delay: .75s; }
@keyframes flow { to { stroke-dashoffset: -36; } }
.dnode circle { fill: rgba(10,12,22,.92); stroke: rgba(124,92,255,.5); stroke-width: 1.4; }
.dlabel text {
  font-family: var(--font-d); font-size: 13px; font-weight: 700; letter-spacing: .22em;
  fill: var(--ink-2); text-anchor: middle;
}
.dlabel.m text { font-size: 11px; }

/* ---------- acts + spine ---------- */
.act { position: relative; padding: clamp(70px, 10vw, 130px) 0; }
.act::before { /* the descending spine */
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, rgba(124,92,255,.35), rgba(46,230,168,.25));
  pointer-events: none;
}
.act::after { /* energy pulse travelling down the spine */
  content: ""; position: absolute; left: calc(50% - 3px); top: 0; width: 7px; height: 7px; border-radius: 50%;
  background: #2ee6a8; box-shadow: 0 0 12px #2ee6a8;
  animation: fall 5.5s linear infinite; pointer-events: none;
}
@keyframes fall { from { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } to { transform: translateY(min(90vh, 700px)); opacity: 0; } }
.act > .wrap { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .act::before { left: 20px; }
  .act::after { left: 17px; }
}

.act-head { position: relative; text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 6vw, 64px); background: var(--bg); padding: 10px 26px; }
.act-no {
  display: inline-block; font-family: var(--font-d); font-weight: 800; font-size: 13px;
  letter-spacing: .3em; color: transparent;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  margin-bottom: 12px;
}
.act-head h2 { font-size: clamp(30px, 5.6vw, 58px); text-transform: uppercase; line-height: 1.02; margin: 0 0 12px; }
.act-head p { color: var(--ink-2); margin: 0; font-size: 16px; }
@media (max-width: 760px) { .act-head { text-align: left; margin-left: 34px; padding: 6px 0 6px 14px; } }

/* ---------- act 1: characters ---------- */
.char-stage {
  position: relative; display: flex; justify-content: center; align-items: center;
  min-height: 480px;
}
.phone {
  position: relative; z-index: 2; width: min(300px, 78vw);
  background: #0a0d18; border: 1px solid #232b44; border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(124,92,255,.12);
  padding: 14px 14px 22px;
}
.phone-top { display: flex; justify-content: center; padding: 4px 0 12px; }
.phone-top i { width: 74px; height: 5px; border-radius: 3px; background: #232b44; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; align-items: flex-end; gap: 8px; }
.msg p {
  margin: 0; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45;
  max-width: 78%;
}
.msg.them p { background: #171d31; color: var(--ink); border-bottom-left-radius: 5px; }
.msg.me { justify-content: flex-end; }
.msg.me p { background: linear-gradient(135deg, #7c5cff, #5a43d6); color: #fff; border-bottom-right-radius: 5px; }
.dotAv {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #ffd9a0, #c9744a 70%);
  border: 1px solid #3a2a20;
}
.msg.typing p { display: inline-flex; gap: 5px; padding: 12px 14px; }
.msg.typing p i {
  width: 6px; height: 6px; border-radius: 50%; background: #7b86a5;
  animation: tdot 1.2s ease-in-out infinite;
}
.msg.typing p i:nth-child(2) { animation-delay: .18s; }
.msg.typing p i:nth-child(3) { animation-delay: .36s; }
@keyframes tdot { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.pcard {
  position: absolute; z-index: 1; width: clamp(140px, 16vw, 190px);
  border-radius: 20px; overflow: hidden;
  border: 1px solid #2a3350;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  background: #0c0f1c;
}
.pcard svg { display: block; }
.pcard b {
  display: block; font-family: var(--font-d); font-size: 10px; font-weight: 700;
  letter-spacing: .16em; color: var(--ink-2); padding: 10px 12px; text-transform: uppercase;
}
.pc1 { left: max(2%, calc(50% - 430px)); top: 8%; transform: rotate(-7deg); animation: bob 7s ease-in-out infinite; }
.pc2 { right: max(2%, calc(50% - 430px)); bottom: 4%; transform: rotate(6deg); animation: bob 8s ease-in-out infinite reverse; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@media (max-width: 900px) {
  .char-stage { min-height: 0; flex-direction: column; gap: 22px; }
  .pcard { position: static; transform: rotate(0); width: 46%; max-width: 190px; animation: none; }
  .pc1 { align-self: flex-start; margin-left: 8%; transform: rotate(-4deg); }
  .pc2 { align-self: flex-end; margin-right: 8%; transform: rotate(4deg); margin-top: -8px; }
}

/* ---------- act 2: worlds scene ---------- */
.scene { position: relative; margin-top: -10px; }
.scene::before, .scene::after {
  content: ""; position: absolute; left: 0; right: 0; height: 90px; z-index: 1; pointer-events: none;
}
.scene::before { top: 0; background: linear-gradient(180deg, var(--bg), transparent); }
.scene::after { bottom: 0; background: linear-gradient(0deg, var(--bg), transparent); }
.scene svg { display: block; width: 100%; height: clamp(240px, 39vw, 560px); }
.twinkle circle { animation: twk 3.5s ease-in-out infinite alternate; }
.twinkle circle:nth-child(2n) { animation-delay: 1.2s; }
.twinkle circle:nth-child(3n) { animation-delay: 2.1s; }

/* ---------- act 3: sound & vision ---------- */
.media-stage { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 4vw, 44px); align-items: center; }
@media (max-width: 860px) { .media-stage { grid-template-columns: 1fr; } }

.player {
  background: linear-gradient(180deg, #121727, #0d1120);
  border: 1px solid #232b44; border-radius: 20px; padding: 26px 24px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.eq { display: flex; align-items: flex-end; gap: 5px; height: 110px; margin-bottom: 20px; }
.eq i {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #2ee6a8, #7c5cff);
  animation: eqb 1.1s ease-in-out infinite alternate;
  transform-origin: bottom; height: 100%;
}
.eq i:nth-child(1) { animation-delay: 0s; }    .eq i:nth-child(2) { animation-delay: .12s; }
.eq i:nth-child(3) { animation-delay: .24s; }  .eq i:nth-child(4) { animation-delay: .05s; }
.eq i:nth-child(5) { animation-delay: .3s; }   .eq i:nth-child(6) { animation-delay: .18s; }
.eq i:nth-child(7) { animation-delay: .4s; }   .eq i:nth-child(8) { animation-delay: .08s; }
.eq i:nth-child(9) { animation-delay: .27s; }  .eq i:nth-child(10) { animation-delay: .15s; }
.eq i:nth-child(11) { animation-delay: .36s; } .eq i:nth-child(12) { animation-delay: .02s; }
.eq i:nth-child(13) { animation-delay: .22s; } .eq i:nth-child(14) { animation-delay: .33s; }
.eq i:nth-child(15) { animation-delay: .1s; }  .eq i:nth-child(16) { animation-delay: .28s; }
.eq i:nth-child(17) { animation-delay: .06s; } .eq i:nth-child(18) { animation-delay: .2s; }
@keyframes eqb { from { transform: scaleY(.18); } to { transform: scaleY(1); } }
.player-row { display: flex; align-items: center; gap: 14px; }
.pp {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--grad); position: relative;
}
.pp::after {
  content: ""; position: absolute; left: 14px; top: 11px;
  border-left: 11px solid #05060a; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.tline { flex: 1; height: 4px; border-radius: 2px; background: #232b44; overflow: hidden; }
.tline i { display: block; width: 42%; height: 100%; background: var(--grad); }
.player-row b { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--ink-3); font-weight: 500; white-space: nowrap; }

.frames { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.frame {
  position: relative; width: clamp(150px, 17vw, 220px); border-radius: 14px; overflow: hidden;
  border: 1px solid #2a3350; box-shadow: 0 20px 50px rgba(0,0,0,.5);
  transition: transform .2s ease;
}
.frame:hover { transform: translateY(-6px) scale(1.03); }
.frame svg { display: block; width: 100%; height: auto; }
.frame span {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 22px; text-shadow: 0 2px 12px rgba(0,0,0,.8);
  background: rgba(4,5,10,.12);
}
.f1 { transform: rotate(-2.5deg); } .f3 { transform: rotate(2.5deg); }
.f1:hover { transform: rotate(-2.5deg) translateY(-6px) scale(1.03); }
.f3:hover { transform: rotate(2.5deg) translateY(-6px) scale(1.03); }

/* ---------- act 4: bench ---------- */
.bench { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .bench { grid-template-columns: 1fr; } }
.bcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.bcard:hover { border-color: rgba(124,92,255,.55); transform: translateY(-4px); }
.bshot { height: 220px; background: #0b0e1a; display: grid; place-items: center; overflow: hidden; }
.binfo { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.binfo h3 { font-size: 20px; text-transform: uppercase; margin: 0; letter-spacing: .02em; }
.binfo p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

.miniphone {
  width: 150px; background: #0a0d18; border: 1px solid #232b44; border-radius: 20px;
  padding: 12px 10px; display: flex; flex-direction: column; gap: 7px;
  transform: rotate(-4deg) translateY(12px);
  box-shadow: 0 18px 44px rgba(0,0,0,.6);
}
.mp-line { height: 5px; border-radius: 3px; background: #1c2338; }
.mp-line.l1 { width: 46%; margin: 0 auto 2px; }
.mp-line.l2 { width: 64%; }
.mp-bub { font-size: 10.5px; line-height: 1.4; padding: 6px 9px; border-radius: 10px; max-width: 86%; }
.mp-bub.them { background: #171d31; color: var(--ink-2); border-bottom-left-radius: 3px; align-self: flex-start; }
.mp-bub.me { background: linear-gradient(135deg, #7c5cff, #5a43d6); color: #fff; border-bottom-right-radius: 3px; align-self: flex-end; }

.endcta { text-align: center; margin-top: clamp(40px, 6vw, 64px); }

@media (prefers-reduced-motion: reduce) {
  .sky-stars::before, .sky-stars::after, .orb-heart, .orb-ring, .orb-ring.r2,
  .cue span::after, .dflow path, .act::after, .twinkle circle,
  .eq i, .msg.typing p i, .pc1, .pc2 { animation: none; }
  .eq i { transform: scaleY(.6); }
}
