/* Website Studio: its own world. Deep ink with a cutting-mat dot grid, cream type,
   two print colors (fluorescent pink and signal yellow) with a little blue.
   Bricolage Grotesque for display, Inter for reading, Fragment Mono for labels.
   Offset "print" shadows instead of glows. Motion is timed, transform and opacity only. */
body.world-studio {
  --ink: #121019; --night: #17141f; --plate: #1d1927; --plate-2: #272236;
  --line: rgba(244, 237, 225, .1); --line-2: rgba(244, 237, 225, .2);
  --paper: #f4ede1; --dim: #b8afa2; --mute: #857c70; --ivory: #f4ede1;
  --pop: #ff4f9a; --pop-hi: #ff8cc0; --sun: #ffd23f; --sky: #4d7cff; --mint: #2fe0a5;
  --accent: var(--pop); --accent-hi: var(--pop-hi); --brass: var(--sun); --brass-hi: #ffe27a; --brass-lo: #c9a020;
  --serif: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, monospace;
  --radius: 14px;
  background-color: var(--ink);
  background-image: radial-gradient(rgba(244, 237, 225, .07) 1px, transparent 1.4px);
  background-size: 24px 24px;
  font-family: var(--sans);
}
.world-studio .grain { display: none; }
.world-studio ::selection { background: var(--sun); color: var(--ink); }
.world-studio .hl { color: var(--pop); }
.world-studio .brand, .world-studio .nav, .world-studio .menu-btn { background: rgba(18, 16, 25, .78); border-color: var(--line-2); }
.world-studio .nav .cta { color: var(--ink); background: var(--sun); font-weight: 600; }
.world-studio .nav .cta:hover { background: #ffe27a; }
.world-studio .brand svg polygon:last-child { fill: var(--pop); }
.world-studio .site-foot { background: var(--night); }

/* ---------- Shared bits ---------- */
.st-kick { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); background: rgba(18, 16, 25, .6); }
.st-kick::before { content: ""; width: 8px; height: 8px; background: var(--sun); border-radius: 2px; }
.st-btn { display: inline-flex; align-items: center; gap: 10px; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 12px; border: 0; cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 16px; color: var(--ink); background: var(--sun); position: relative;
  box-shadow: 4px 4px 0 var(--pop); transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.st-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--pop); }
.st-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--pop); }
.st-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 12px; border: 1.5px solid var(--line-2); background: none; cursor: pointer; color: var(--paper); font-weight: 500; font-size: 16px; transition: border-color .2s, background .2s; }
.st-ghost:hover { border-color: var(--paper); background: rgba(244, 237, 225, .05); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pop); box-shadow: 0 0 0 0 rgba(255, 79, 154, .6); animation: stdot 1.8s ease-out infinite; }
@keyframes stdot { 0% { box-shadow: 0 0 0 0 rgba(255, 79, 154, .6); } 100% { box-shadow: 0 0 0 10px rgba(255, 79, 154, 0); } }

/* ---------- Hero: a site builds itself on a timed loop ---------- */
.sx { --T: 15s; position: relative; overflow: hidden; overflow: clip; padding: clamp(108px, 14vh, 150px) 0 clamp(60px, 8vw, 110px); }
.sx-aura { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent);
  background: radial-gradient(42% 55% at 78% 42%, rgba(255, 79, 154, .16), transparent 70%), radial-gradient(32% 40% at 8% 55%, rgba(77, 124, 255, .12), transparent 70%), radial-gradient(30% 30% at 40% 0%, rgba(255, 210, 63, .08), transparent 70%); }
.sx-wrap { position: relative; width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "intro scene" "steps steps"; column-gap: clamp(30px, 4.5vw, 72px); row-gap: clamp(30px, 4vh, 48px); align-items: center; }
.sx-intro { grid-area: intro; }
.sx-title { font-family: var(--serif); font-weight: 800; font-size: clamp(40px, 4.5vw, 68px); line-height: .98; letter-spacing: -.035em; margin: 22px 0 20px; max-width: 15ch; text-wrap: balance; }
.sx-title .hl { display: inline-block; color: var(--ink); background: var(--sun); padding: 0 .14em .04em; border-radius: .1em; transform: rotate(-2deg); box-shadow: .07em .07em 0 var(--pop); }
.sx-sub { font-size: clamp(17px, 1.45vw, 20px); color: var(--dim); max-width: 40ch; margin: 0; line-height: 1.5; }
.sx-steps { grid-area: steps; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); --off: .38; }
.sx-steps li { position: relative; padding: 16px 0 0; border-top: 2px solid var(--line-2); animation: sxStep var(--T) ease-in-out infinite; animation-delay: calc(var(--n) * var(--T) / 4 - var(--T)); }
.sx-steps b { display: block; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); margin-bottom: 3px; }
.sx-steps span { display: block; color: var(--paper); font-size: 15px; line-height: 1.45; max-width: 34ch; }
.sx-steps i { position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--pop); transform-origin: left; transform: scaleX(0); animation: sxStepBar var(--T) linear infinite; animation-delay: inherit; }
@keyframes sxStep { 0%, 23% { opacity: 1; } 27%, 97% { opacity: var(--off); } 100% { opacity: 1; } }
@keyframes sxStepBar { 0% { transform: scaleX(0); opacity: 1; } 25% { transform: scaleX(1); opacity: 1; } 28%, 100% { transform: scaleX(1); opacity: 0; } }

.sx-scene { grid-area: scene; position: relative; container-type: inline-size; padding: 0 7% 9% 0; align-self: center; }
.sx-win { container-type: inline-size; border-radius: 14px; overflow: hidden; background: #0f0d16; border: 1px solid var(--line-2);
  box-shadow: 12px 12px 0 rgba(255, 79, 154, .32), 0 50px 90px -40px rgba(0, 0, 0, .9); transform-origin: 30% 50%; animation: sxWin var(--T) ease-in-out infinite; }
.sx-bar { height: 32px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #1b1724; border-bottom: 1px solid var(--line); }
.sx-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.sx-bar i:nth-child(2) { background: #febc2e; } .sx-bar i:nth-child(3) { background: #28c840; }
.sx-url { margin-left: 14px; flex: 0 1 300px; height: 20px; border-radius: 6px; background: #0f0d16; color: var(--mute); font-family: var(--mono); font-size: 11px; display: grid; place-items: center; }
.sx-site { position: relative; aspect-ratio: 16 / 9.6; padding: 3.2cqw 4cqw; display: grid; grid-template-rows: auto 1fr auto; gap: 2.4cqw; isolation: isolate; background: #0f0d16; }
.sx-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 78% 40%, rgba(255, 138, 92, .24), transparent 70%), linear-gradient(160deg, #1b1446, #0d0820 60%); animation: sxShine var(--T) ease-in-out infinite; }
.ns-slot { display: inline-grid; align-items: center; }
.ns-slot > * { grid-area: 1 / 1; }
.wf { display: block; border-radius: .6cqw; background: rgba(244, 237, 225, .06); border: 1px dashed rgba(244, 237, 225, .34); opacity: 0; transform-origin: left center; animation: sxWf var(--T) ease-in-out infinite; }
.real { animation: sxReal var(--T) ease-in-out infinite; }
.ns-nav { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; }
.w-logo { width: 13cqw; height: 2.2cqw; } .w-links { width: 24cqw; height: 1.4cqw; } .w-btn { width: 8cqw; height: 3.2cqw; border-radius: 3cqw; }
.ns-logo { display: inline-flex; align-items: center; gap: .9cqw; font-family: var(--serif); font-weight: 700; font-size: 1.9cqw; color: #fff; letter-spacing: -.02em; }
.ns-logo i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: linear-gradient(135deg, #ffb35c, #ff5fa2); }
.ns-links { font-size: 1.3cqw; color: rgba(255, 255, 255, .7); }
.ns-cta { font-size: 1.3cqw; font-weight: 600; padding: .9cqw 2cqw; border-radius: 3cqw; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.ns-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4cqw; align-items: center; }
.ns-copy { display: grid; gap: 1.6cqw; justify-items: start; }
.ns-copy .ns-slot { width: 100%; }
.w-eye { width: 18cqw; height: 1.2cqw; } .w-h1 { width: 36cqw; height: 4.2cqw; } .w-h1.b { width: 26cqw; translate: 0 5.4cqw; } .w-p { width: 34cqw; height: 1.4cqw; } .w-p.b { width: 24cqw; translate: 0 2.4cqw; }
.ns-eye { font-family: var(--mono); font-size: 1.15cqw; letter-spacing: .12em; text-transform: uppercase; color: #ffb35c; }
.ns-h { font-family: var(--serif); font-weight: 800; font-size: 5.2cqw; line-height: .98; letter-spacing: -.045em; color: #fff; margin: 0; }
.ns-h em, .sx-psite h4 em { font-style: normal; color: #ffb35c; }
.ns-p { font-size: 1.5cqw; line-height: 1.45; color: rgba(255, 255, 255, .72); margin: 0; max-width: 34ch; }
.ns-btns { display: flex; gap: 1.2cqw; margin-top: 1cqw; }
.w-b1 { width: 14cqw; height: 3.8cqw; border-radius: 3cqw; } .w-b2 { width: 12cqw; height: 3.8cqw; border-radius: 3cqw; }
.ns-b1, .ns-b2 { font-size: 1.35cqw; font-weight: 600; padding: 1.1cqw 2.2cqw; border-radius: 3cqw; white-space: nowrap; }
.ns-b1 { color: #1a0d14; background: linear-gradient(180deg, #ffd29a, #ff9a5c); }
.ns-b2 { color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.ns-img { position: relative; aspect-ratio: 4 / 3; border-radius: 1.4cqw; overflow: hidden; }
.ns-img .w-img { position: absolute; inset: 0; border-radius: 1.4cqw; animation-name: sxWfImg; }
.ns-art { position: absolute; inset: 0; width: 100%; height: 100%; animation: sxArt var(--T) ease-in-out infinite; }
.ns-m, .ns-sun { animation: sxRise var(--T) cubic-bezier(.22, 1, .36, 1) infinite; }
.ns-m1 { --my: 24px; } .ns-m2 { --my: 40px; } .ns-m3 { --my: 58px; } .ns-sun { --my: 50px; }
.ns-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; }
.ns-cards div { display: grid; height: 5.4cqw; border-radius: 1cqw; }
.ns-cards div > * { grid-area: 1 / 1; }
.ns-cards .wf { border-radius: 1cqw; }
.ns-cards .real { display: flex; align-items: flex-end; padding: 1.2cqw 1.6cqw; font-family: var(--serif); font-size: 1.6cqw; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 1cqw; }
.sx-phone { position: absolute; right: 0; bottom: 0; width: 23%; aspect-ratio: 9 / 19; border-radius: 3.2cqw; padding: .6cqw; background: linear-gradient(160deg, #3a3546, #0c0a10); box-shadow: 8px 8px 0 rgba(255, 210, 63, .5), 0 40px 80px -20px rgba(0, 0, 0, .9);
  animation: sxPhone var(--T) cubic-bezier(.22, 1, .36, 1) infinite; }
.sx-psite { height: 100%; border-radius: 2.7cqw; overflow: hidden; background: linear-gradient(170deg, #1b1446, #0d0820 70%); padding: 1.6cqw 1.3cqw; display: grid; align-content: start; gap: 1cqw; container-type: inline-size; }
.sx-psite .ns-logo { font-size: 7cqw; } .sx-psite .ns-logo i { width: 6cqw; height: 6cqw; }
.sx-psite svg { width: 100%; aspect-ratio: 1; border-radius: 5cqw; }
.sx-psite h4 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 13cqw; line-height: .98; letter-spacing: -.045em; color: #fff; }
.sx-psite .ns-b1 { font-size: 6cqw; padding: 4cqw 6cqw; border-radius: 10cqw; justify-self: start; }

/* Timeline (one loop = --T): 0-25% sketch, 25-50% style, 50-75% life, 75-100% ship, then reset. */
@keyframes sxWf { 0% { opacity: 0; transform: scaleX(.25); } 8%, 25% { opacity: 1; transform: none; } 33%, 100% { opacity: 0; transform: none; } }
@keyframes sxWfImg { 0% { opacity: 0; transform: scaleX(.25); } 8%, 50% { opacity: 1; transform: none; } 58%, 100% { opacity: 0; transform: none; } }
@keyframes sxReal { 0%, 26% { opacity: 0; transform: translateY(1cqw); } 36%, 92% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: none; } }
@keyframes sxShine { 0%, 50% { opacity: 0; } 62%, 92% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes sxArt { 0%, 50% { opacity: 0; transform: scale(1.12); } 64%, 92% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: none; } }
@keyframes sxRise { 0%, 51% { transform: translateY(var(--my)); } 68%, 100% { transform: none; } }
@keyframes sxPhone { 0%, 75% { opacity: 0; transform: translate(40%, 26%) rotate(9deg); } 86%, 92% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: translate(12%, 8%) rotate(3deg); } }
@keyframes sxWin { 0%, 75% { transform: none; } 86%, 92% { transform: scale(.965) translateX(-2%); } 99%, 100% { transform: none; } }
.sx.paused *, .sx.paused *::before { animation-play-state: paused !important; }

@media (max-width: 900px) {
  .sx { padding-top: 104px; }
  .sx-wrap { grid-template-columns: 1fr; grid-template-areas: "intro" "scene" "steps"; row-gap: 34px; }
  .sx-title { max-width: 14ch; }
  .sx-steps { --off: 0; gap: 0; }
  .sx-steps li { grid-area: 1 / 1; border-left: 0; padding: 14px 16px 16px; border-radius: 12px; background: var(--plate); border: 1px solid var(--line); }
  .sx-steps { grid-template-columns: 1fr; }
  .sx-steps i { left: 16px; right: 16px; top: auto; bottom: 0; }
}

/* Calm or reduced motion: the finished site, no motion. */
:is(html[data-calm], html.st-rm) .sx *, :is(html[data-calm], html.st-rm) .sx *::before { animation: none !important; }
:is(html[data-calm], html.st-rm) .sx-steps li { opacity: 1; grid-area: auto; }
:is(html[data-calm], html.st-rm) .sx-steps i { display: none; }
:is(html[data-calm], html.st-rm) .sx-steps { gap: 8px; }
:is(html[data-calm], html.st-rm) .dot { animation: none; }

/* ---------- Sections ---------- */
.st-pad { padding-block: clamp(84px, 11vw, 150px); position: relative; }
.st-tint { background-color: var(--night); }
.st-wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.st-head { max-width: 860px; margin: 0 0 clamp(36px, 5vw, 64px); display: grid; justify-items: start; }
.st-h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(34px, 5vw, 66px); line-height: 1.02; letter-spacing: -.035em; margin: 20px 0 16px; }
.st-lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--dim); max-width: 56ch; margin: 0; line-height: 1.5; }
.st-note { font-size: 13px; color: var(--mute); margin: 14px 0 0; }

/* ---------- Button wall: three rows drifting, press to stop ---------- */
.rolo { position: relative; display: grid; gap: 2px; overflow: hidden; padding-block: 6px; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.rolo::before, .rolo::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(24px, 7vw, 120px); z-index: 2; pointer-events: none; }
.rolo::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.rolo::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.rolo-row { overflow: hidden; }
.rolo-track { display: flex; width: max-content; align-items: center; animation: roloL var(--dur, 90s) linear infinite; will-change: transform; }
.rolo-row[data-dir="right"] .rolo-track { animation-name: roloR; }
@keyframes roloL { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes roloR { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
.rolo.held .rolo-track, .rolo.off .rolo-track, .rolo:has(:focus-visible) .rolo-track { animation-play-state: paused; }
.rk { flex: none; height: 92px; padding-right: 16px; display: grid; place-items: center; }
.rolo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 22px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.rolo-meta [data-rolo-count] { color: var(--paper); }
.rolo-meta .tip { flex-basis: 100%; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 14px; color: var(--dim); }
@media (min-width: 760px) { .rolo-meta .tip { flex-basis: auto; margin-left: 6px; } }
:is(html[data-calm], html.st-rm) .rolo-track { animation: none; }
:is(html[data-calm], html.st-rm) .rolo-row { overflow-x: auto; scrollbar-width: none; padding-inline: var(--gutter); }
:is(html[data-calm], html.st-rm) .rolo-row::-webkit-scrollbar { display: none; }
:is(html[data-calm], html.st-rm) .rk[data-clone] { display: none; }

/* Base demo button. --c main, --c2 second, --t text on --c. */
.rb { --c: var(--pop); --c2: var(--sun); --t: var(--ink); --dk: color-mix(in srgb, var(--c) 55%, #000);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer;
  font: 600 15px/1 var(--sans); white-space: nowrap; color: var(--t); background: var(--c); -webkit-tap-highlight-color: transparent; touch-action: pan-y;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s, background-color .3s, color .3s, border-color .3s; }
.rb svg { width: 18px; height: 18px; flex: none; }
.rb .lb { display: inline-block; transition: opacity .25s, transform .3s var(--ease-out); }
.rb:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }

.rb-squish { border-radius: 16px; box-shadow: 0 6px 0 var(--dk), inset 0 2px 0 rgba(255, 255, 255, .35); }
.rb-squish.act { transform: translateY(5px) scale(1.07, .88); box-shadow: 0 1px 0 var(--dk), inset 0 2px 0 rgba(255, 255, 255, .35); }

.rb-neon { background: transparent; color: var(--c); border: 2px solid var(--c); border-radius: 10px; text-shadow: 0 0 8px var(--c); box-shadow: 0 0 14px -3px var(--c), inset 0 0 12px -5px var(--c); }
.rb-neon.act { background: var(--c); color: var(--t); text-shadow: none; box-shadow: 0 0 34px 2px var(--c); animation: rbFlicker .6s steps(1) 1; }
@keyframes rbFlicker { 0%, 30%, 60% { opacity: 1; } 15%, 45% { opacity: .45; } }

.rb-glass { background: linear-gradient(135deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .04)); color: var(--paper); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; overflow: hidden; }
.rb-glass::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 25% 50%, var(--c), transparent 62%); opacity: .55; transition: transform .6s var(--ease-out), opacity .4s; }
.rb-glass.act { transform: scale(.96); }
.rb-glass.act::before { transform: scale(2.6); opacity: .95; }

.rb-grad { background: none; color: var(--paper); overflow: hidden; padding: 0; border-radius: 12px; }
.rb-grad::before { content: ""; position: absolute; left: 50%; top: 50%; width: 320px; height: 320px; margin: -160px 0 0 -160px; z-index: -1; background: conic-gradient(var(--c), var(--c2), var(--c)); }
.rb-grad .lb { display: flex; align-items: center; height: calc(100% - 4px); margin: 2px; padding: 0 20px; border-radius: 10px; background: var(--ink); }
.rb-grad.act::before { animation: rbSpin 1.1s linear infinite; }
.rb-grad.act .lb { background: rgba(18, 16, 25, .7); }

.rb-liquid { background: transparent; color: var(--c); border: 2px solid var(--c); overflow: hidden; }
.rb-liquid::before { content: ""; position: absolute; left: -25%; width: 150%; height: 300%; top: 100%; z-index: -1; background: var(--c); border-radius: 42%; transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
.rb-liquid.act { color: var(--t); }
.rb-liquid.act::before { transform: translateY(-62%) rotate(120deg); }

.rb-magnet { background: var(--c2); color: var(--ink); border-radius: 999px; box-shadow: 0 12px 26px -12px var(--c2); transition: translate .5s cubic-bezier(.34, 1.56, .64, 1), transform .3s; }
.rb-magnet.act { transform: scale(1.08); transition: translate .12s linear, transform .3s; }

.rb-ripple { overflow: hidden; border-radius: 10px; }
.rb-ripple .rp { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .55); transform: scale(0); animation: rbRip .75s var(--ease-out) forwards; pointer-events: none; z-index: -1; }
@keyframes rbRip { to { transform: scale(1); opacity: 0; } }

.rb-jelly { border-radius: 18px; }
.rb-jelly.go { animation: rbJelly .8s both; }
@keyframes rbJelly { 0% { transform: scale(1, 1); } 25% { transform: scale(1.18, .8); } 40% { transform: scale(.86, 1.14); } 55% { transform: scale(1.07, .94); } 70% { transform: scale(.97, 1.03); } 100% { transform: scale(1, 1); } }

.rb-pixel { font: 400 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; border-radius: 0; border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--c), 5px 5px 0 2px var(--paper); transition: transform .12s steps(2), box-shadow .12s steps(2); }
.rb-pixel.act { transform: translate(5px, 5px); box-shadow: 0 0 0 2px var(--c), 0 0 0 2px var(--paper); }

.rb-draw { background: transparent; color: var(--paper); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); }
.rb-draw::before, .rb-draw::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.rb-draw::before { border-top: 2px solid var(--c); border-right: 2px solid var(--c); clip-path: inset(0 100% 0 0); transition: clip-path .5s var(--ease-out); }
.rb-draw::after { border-bottom: 2px solid var(--c); border-left: 2px solid var(--c); clip-path: inset(0 0 0 100%); transition: clip-path .5s var(--ease-out) .25s; }
.rb-draw.act { color: var(--c); }
.rb-draw.act::before, .rb-draw.act::after { clip-path: inset(0 0 0 0); }

.rb-shine { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c)); border-radius: 10px; overflow: hidden; box-shadow: 0 10px 24px -14px var(--c); }
.rb-shine::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent); transform: translateX(-160%) skewX(-20deg); }
.rb-shine.act::after { animation: rbSweep .85s ease-in-out infinite; }
@keyframes rbSweep { to { transform: translateX(300%) skewX(-20deg); } }

.rb-check { border-radius: 999px; overflow: hidden; }
.rb-check::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--mint); transform: scaleX(0); transition: transform .45s var(--ease-out); }
.rb-check .ck { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.rb-check .ck path { stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .45s .15s var(--ease-out); }
.rb-check.act .lb { opacity: 0; transform: translateY(-10px); }
.rb-check.act::before { transform: none; }
.rb-check.act .ck { opacity: 1; transform: none; }
.rb-check.act .ck path { stroke-dashoffset: 0; }

.rb-toggle { background: var(--plate-2); color: var(--paper); border-radius: 999px; padding-left: 10px; border: 1px solid var(--line-2); }
.rb-toggle .sw { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #3a3448; transition: background .3s; }
.rb-toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.rb-toggle.on .sw { background: var(--c); }
.rb-toggle.on .sw::after { transform: translateX(16px); }
.rb-toggle.act { transform: scale(.95); }

.rb-spin { background: transparent; color: var(--paper); border: 1.5px solid var(--line-2); }
.rb-spin svg { color: var(--c); }
.rb-spin.act { border-color: var(--c); }
.rb-spin.act svg { animation: rbSpin .8s linear infinite; }
@keyframes rbSpin { to { transform: rotate(360deg); } }

.rb-key { font: 500 14px/1 var(--mono); border-radius: 10px; transform: translateY(-4px); box-shadow: 0 8px 0 var(--dk), 0 12px 20px -6px rgba(0, 0, 0, .6); transition: transform .08s, box-shadow .08s; }
.rb-key.act { transform: translateY(3px); box-shadow: 0 1px 0 var(--dk), 0 2px 6px rgba(0, 0, 0, .5); }

.rb-sticker { border: 3px solid #fff; border-radius: 10px; transform: rotate(-3deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .45); overflow: visible; }
.rb-sticker::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 0 0 8px 0; background: linear-gradient(135deg, transparent 50%, #e8e1d4 50%); box-shadow: -2px -2px 4px rgba(0, 0, 0, .25); transform-origin: 100% 100%; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.rb-sticker.act { transform: rotate(3deg) scale(1.08); }
.rb-sticker.act::after { transform: scale(2.3); }

.rb-confetti { background: var(--c2); color: var(--ink); }
.rb-confetti.act { transform: scale(.94); }
.rb .cf { position: absolute; left: 50%; top: 50%; width: 7px; height: 11px; margin: -5px 0 0 -3px; border-radius: 2px; pointer-events: none; animation: rbCf .9s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes rbCf { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

.rb-like { background: var(--plate-2); color: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 18px; font-variant-numeric: tabular-nums; }
.rb-like svg { color: var(--c); }
.rb-like svg path { fill: transparent; transition: fill .25s; }
.rb-like.on svg path { fill: currentColor; }
.rb-like.go svg { animation: rbPop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes rbPop { 0% { transform: scale(1); } 40% { transform: scale(1.55); } 100% { transform: scale(1); } }

.rb-load .dots { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; opacity: 0; transition: opacity .2s; }
.rb-load .dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rb-load.act .lb { opacity: 0; transform: scale(.8); }
.rb-load.act .dots { opacity: 1; }
.rb-load.act .dots i { animation: rbBounce .6s ease-in-out infinite; }
.rb-load.act .dots i:nth-child(2) { animation-delay: .1s; } .rb-load.act .dots i:nth-child(3) { animation-delay: .2s; }
@keyframes rbBounce { 50% { transform: translateY(-6px); } }

.rb-hold { background: transparent; color: var(--paper); border: 2px solid var(--c); overflow: hidden; }
.rb-hold::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); transform-origin: left; transform: scaleX(0); transition: transform .3s var(--ease-out); }
.rb-hold.act::before { transform: scaleX(1); transition: transform 1.1s linear; }
.rb-hold.act { color: var(--t); }

.rb-flip { overflow: hidden; border-radius: 10px; padding: 0; }
.rb-flip .fl { display: grid; transition: transform .45s cubic-bezier(.65, 0, .35, 1); }
.rb-flip .fl span { height: 50px; display: flex; align-items: center; justify-content: center; padding: 0 22px; }
.rb-flip .fl span + span { background: var(--c2); color: var(--ink); }
.rb-flip.act .fl { transform: translateY(-50px); }

.rb-blob { border-radius: 26px; }
.rb-blob.act { animation: rbBlob 1.2s ease-in-out infinite; }
@keyframes rbBlob { 0%, 100% { border-radius: 26px; transform: scale(1.04); } 33% { border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%; transform: scale(1.08, .96); } 66% { border-radius: 60% 40% 45% 55% / 40% 60% 40% 60%; transform: scale(.97, 1.07); } }

.rb-tilt { background: linear-gradient(135deg, var(--c), var(--c2)); color: var(--ink); border-radius: 14px; transform: perspective(300px); box-shadow: 0 14px 30px -14px var(--c); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.rb-tilt.act { transition: transform .08s linear; }

.rb-glitch { background: var(--ink); color: var(--paper); border: 1px solid var(--c); border-radius: 4px; font: 400 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.rb-glitch::before, .rb-glitch::after { content: attr(data-t); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; }
.rb-glitch::before { color: var(--c); } .rb-glitch::after { color: var(--c2); }
.rb-glitch.act::before { opacity: .9; animation: rbGlA .28s steps(2) infinite; }
.rb-glitch.act::after { opacity: .9; animation: rbGlB .32s steps(2) infinite; }
.rb-glitch.act { animation: rbGlC .4s steps(2) infinite; }
@keyframes rbGlA { 0% { transform: translate(-3px, 1px); } 50% { transform: translate(2px, -2px); } 100% { transform: translate(-1px, 2px); } }
@keyframes rbGlB { 0% { transform: translate(3px, -1px); } 50% { transform: translate(-2px, 2px); } 100% { transform: translate(1px, -2px); } }
@keyframes rbGlC { 0%, 100% { transform: none; } 50% { transform: skewX(-6deg); } }

.rb-stamp { background: transparent; color: var(--c); border: 2.5px solid var(--c); border-radius: 6px; font: 800 15px/1 var(--serif); text-transform: uppercase; letter-spacing: .06em; transform: rotate(-4deg); }
.rb-stamp::after { content: ""; position: absolute; inset: -5px; border: 2px solid var(--c); border-radius: 9px; opacity: 0; pointer-events: none; }
.rb-stamp.go { animation: rbStamp .45s cubic-bezier(.3, 1.5, .5, 1); }
.rb-stamp.go::after { animation: rbRing .6s ease-out; }
.rb-stamp.act { background: color-mix(in srgb, var(--c) 18%, transparent); }
@keyframes rbStamp { 0% { transform: rotate(-4deg) scale(1.35); } 60% { transform: rotate(-9deg) scale(.92); } 100% { transform: rotate(-4deg) scale(1); } }
@keyframes rbRing { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }

.rb-arrow { background: var(--paper); color: var(--ink); border-radius: 999px; overflow: hidden; }
.rb-arrow svg { color: var(--c); }
.rb-arrow.act svg { animation: rbShoot .6s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes rbShoot { 0% { transform: none; } 45% { transform: translateX(34px); opacity: 0; } 50% { transform: translateX(-30px); opacity: 0; } 100% { transform: none; opacity: 1; } }

.rb-count { font-variant-numeric: tabular-nums; }
.rb-count .n { display: inline-block; min-width: 3ch; padding: 4px 6px; border-radius: 6px; background: rgba(0, 0, 0, .18); text-align: center; overflow: hidden; }
.rb-count.go .n b { display: inline-block; animation: rbRoll .35s var(--ease-out); font-weight: 700; }
.rb-count .n b { font-weight: 700; }
@keyframes rbRoll { from { transform: translateY(110%); } to { transform: none; } }

.rb-shake { background: var(--plate-2); color: var(--paper); border: 1.5px solid var(--line-2); border-radius: 10px; }
.rb-shake.act { border-color: #ff5a52; color: #ffb0ab; }
.rb-shake.go { animation: rbShake .45s ease-in-out; }
@keyframes rbShake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

.rb-bevel { background: #c3c3c3; color: #000; font: 400 14px/1 Tahoma, Verdana, sans-serif; height: 40px; border-radius: 0; padding: 0 20px; box-shadow: inset -2px -2px 0 #404040, inset 2px 2px 0 #fff, inset -4px -4px 0 #808080; transition: none; }
.rb-bevel .lb { transition: none; }
.rb-bevel.act { box-shadow: inset 2px 2px 0 #404040, inset -2px -2px 0 #fff, inset 4px 4px 0 #808080; }
.rb-bevel.act .lb { transform: translate(1px, 1px); }

.rb-type { background: var(--ink); color: var(--c); border: 1px solid var(--c); border-radius: 6px; font: 400 14px/1 var(--mono); }
.rb-type::after { content: "_"; margin-left: -6px; animation: rbCaret 1s steps(1) infinite; }
.rb-type.go .lb { animation: rbType 1s steps(var(--n, 10)) both; }
@keyframes rbType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rbCaret { 50% { opacity: 0; } }

.rb-under { background: none; color: var(--paper); font: 700 17px/1 var(--serif); padding: 0 8px; height: 44px; border-radius: 4px; }
.rb-under::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 3px; border-radius: 3px; background: var(--c); transform-origin: left; transform: scaleX(.22); transition: transform .45s var(--ease-out); }
.rb-under.act { color: var(--c); }
.rb-under.act::after { transform: none; }

.rb-pulse { border-radius: 999px; }
.rb-pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--c); opacity: 0; pointer-events: none; }
.rb-pulse.act::after { animation: rbBurst .8s ease-out infinite; }
.rb-pulse.act { transform: scale(.96); }
@keyframes rbBurst { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.55, 1.9); } }

.rb-pill2 { background: color-mix(in srgb, var(--c) 18%, var(--ink)); color: var(--c); border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.rb-pill2 .badge { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--c); color: var(--t); font-size: 12px; }
.rb-pill2.act { background: var(--c); color: var(--t); }
.rb-pill2.act .badge { background: var(--ink); color: var(--c); animation: rbPop .45s cubic-bezier(.34, 1.56, .64, 1); }

/* Calm: buttons still answer a press, without the big moves. */
:is(html[data-calm], html.st-rm) .rb, :is(html[data-calm], html.st-rm) .rb *, :is(html[data-calm], html.st-rm) .rb::before, :is(html[data-calm], html.st-rm) .rb::after { animation: none !important; }
:is(html[data-calm], html.st-rm) .rb .cf, :is(html[data-calm], html.st-rm) .rb .rp { display: none; }

/* ---------- Six layers ---------- */
.lx { display: grid; grid-template-columns: minmax(280px, 410px) 1fr; gap: clamp(26px, 4vw, 60px); align-items: center; }
@media (max-width: 900px) { .lx { grid-template-columns: 1fr; } .lx-view { order: -1; position: sticky; top: 64px; z-index: 2; background: var(--night); margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 12px; box-shadow: 0 14px 18px -6px var(--night); } .lx-view .st-note { font-size: 11.5px; margin-top: 10px; } }
.lx-list { display: grid; gap: 8px; }
.lx-hint { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--pop-hi); transition: opacity .4s, transform .4s var(--ease-out); }
.lx:not(.fresh) .lx-hint { opacity: 0; transform: translateY(-4px); pointer-events: none; }
.lx-row { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--plate); cursor: pointer; transition: background .25s, border-color .25s, transform .2s var(--ease-out); }
.lx-row:hover { background: var(--plate-2); border-color: var(--line-2); }
.lx-row:active { transform: scale(.985); }
.lx-row b { display: block; font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: -.015em; }
.lx-row i { display: block; font-style: normal; font-size: 14px; color: var(--dim); line-height: 1.4; }
.lx-sw { width: 44px; height: 26px; border-radius: 99px; background: #3a3448; position: relative; transition: background .3s; }
.lx-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.lx-row[aria-pressed="true"] { border-color: var(--pop); background: color-mix(in srgb, var(--pop) 9%, var(--plate)); }
.lx-row[aria-pressed="true"] .lx-sw { background: var(--pop); }
.lx-row[aria-pressed="true"] .lx-sw::after { transform: translateX(18px); }
.lx-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.lx-count { font-family: var(--mono); font-size: 13px; color: var(--dim); margin-left: auto; }
.lx-count b { color: var(--paper); font-weight: 400; }
/* Invitation glow: a breathing ring on the first layer and on "Forge all six", until the visitor tries one. */
.lx-row::after, .lx-all::after { content: ""; position: absolute; inset: -4px; border-radius: 15px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2px var(--pop), 0 0 26px 4px rgba(255, 79, 154, .55); }
.lx-all::after { box-shadow: 0 0 0 2px var(--sun), 0 0 26px 4px rgba(255, 210, 63, .5); }
.lx.fresh .lx-row.next::after, .lx.fresh .lx-all::after { animation: lxGlow 1.9s ease-in-out infinite; }
.lx.fresh .lx-all::after { animation-delay: .95s; }
@keyframes lxGlow { 0%, 100% { opacity: .2; transform: scale(.99); } 50% { opacity: 1; transform: scale(1.012); } }
:is(html[data-calm], html.st-rm) .lx.fresh .lx-row.next::after, :is(html[data-calm], html.st-rm) .lx.fresh .lx-all::after { animation: none; opacity: .85; }
.hb { box-shadow: 10px 10px 0 rgba(255, 210, 63, .28), 0 50px 100px -40px rgba(0, 0, 0, .9) !important; }
/* The bakery mock: plain by default, each layer class upgrades one thing. */
.hb { container-type: inline-size; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); background: #fff; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9); transition: box-shadow .8s; }
.hb.l-color { box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 120px -40px rgba(226, 163, 92, .6); }
.hb-bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #e9e9ec; border-bottom: 1px solid #d6d6da; transition: background .6s; }
.hb-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c4c4c8; }
.hb-bar span { margin-left: 10px; font-family: var(--mono); font-size: 10.5px; color: #8a8a90; }
.hb-site { position: relative; aspect-ratio: 16 / 10; padding: 3cqw 4cqw; display: grid; grid-template-rows: auto 1fr; gap: 2cqw; background: #fafafa; color: #333; font-family: Arial, Helvetica, sans-serif; transition: background .8s, color .8s, padding .8s var(--ease-out); overflow: hidden; }
.hb-nav { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd; padding-bottom: 1.4cqw; transition: border-color .6s; }
.hb-logo { display: inline-flex; align-items: center; gap: 0; font-size: 2.2cqw; transition: gap .6s; }
.hb-logo i { width: 0; height: 2.4cqw; border-radius: 50%; background: #e2a35c; transition: width .6s var(--ease-out); }
.hb-links { font-size: 1.5cqw; color: #2a62c9; transition: color .6s; word-spacing: .2em; }
.hb-main { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; align-items: start; transition: align-items .6s; }
.hb-copy { display: grid; gap: 1.2cqw; justify-items: start; }
.hb-eye { font-size: 1.3cqw; color: #888; transition: color .6s, letter-spacing .6s; }
.hb-h { margin: 0; font-size: 3cqw; font-weight: 700; line-height: 1.15; transition: font-size .7s var(--ease-out), letter-spacing .7s, color .6s; }
.hb-p { margin: 0; font-size: 1.5cqw; color: #666; line-height: 1.5; transition: color .6s; }
.hb-btns { display: flex; gap: 1cqw; flex-wrap: wrap; }
.hb-b1, .hb-b2 { font-size: 1.4cqw; padding: 1cqw 1.8cqw; border-radius: 3px; transition: all .6s var(--ease-out); }
.hb-b1 { background: #2a62c9; color: #fff; }
.hb-b2 { background: #2a62c9; color: #fff; }
.hb-img { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: repeating-linear-gradient(45deg, #e4e4e8 0 10px, #ececf0 10px 20px); transition: border-radius .7s, transform .9s var(--ease-out); }
.hb-stock { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.4cqw; color: #999; transition: opacity .4s; }
.hb-art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.1); transition: opacity .8s, transform 1.2s var(--ease-out); }
/* Type */
.hb.l-type .hb-site { font-family: "Inter Tight", "Inter", sans-serif; }
.hb.l-type .hb-h { font-size: 5cqw; letter-spacing: -.045em; line-height: .98; }
.hb.l-type .hb-logo { font-weight: 700; letter-spacing: -.02em; }
.hb.l-type .hb-eye { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 1.1cqw; }
/* Color */
.hb.l-color .hb-bar { background: #2b170b; border-color: #3a2213; }
.hb.l-color .hb-site { background: radial-gradient(80% 80% at 80% 30%, #4a2410, transparent 70%), #1c0f07; color: #fff4e6; }
.hb.l-color .hb-nav { border-color: rgba(255, 226, 176, .15); }
.hb.l-color .hb-links { color: rgba(255, 244, 230, .7); }
.hb.l-color .hb-eye { color: #e2a35c; }
.hb.l-color .hb-p { color: rgba(255, 244, 230, .72); }
.hb.l-color .hb-b1 { background: linear-gradient(180deg, #ffd9a0, #e2a35c); color: #2a1408; }
.hb.l-color .hb-b2 { background: transparent; color: #fff4e6; box-shadow: inset 0 0 0 1px rgba(255, 226, 176, .4); }
.hb.l-color .hb-logo i { width: 2.4cqw; }
.hb.l-color .hb-logo { gap: .8cqw; }
/* Layout */
.hb.l-layout .hb-site { padding: 3.4cqw 5cqw; }
.hb.l-layout .hb-main { align-items: center; }
.hb.l-layout .hb-b2 { background: transparent; color: inherit; box-shadow: none; text-decoration: underline; text-underline-offset: 3px; padding-inline: .6cqw; }
.hb.l-layout .hb-b1, .hb.l-layout .hb-b2 { border-radius: 99px; }
.hb.l-layout .hb-links { word-spacing: .6em; }
.hb.l-layout .hb-nav { border-color: transparent; }
/* Imagery */
.hb.l-image .hb-stock { opacity: 0; }
.hb.l-image .hb-art { opacity: 1; transform: scale(1); }
.hb.l-image .hb-img { border-radius: 2cqw; }
/* Motion */
.hb.l-motion .hb-art { animation: hbfloat 6s ease-in-out infinite; }
.hb.l-motion .hb-b1 { animation: hbglow 2.6s ease-in-out infinite; }
.hb.l-motion .hb-h { animation: hbrise .9s var(--ease-out) both; }
@keyframes hbfloat { 50% { transform: scale(1.04) translateY(-1.5%); } }
@keyframes hbglow { 50% { box-shadow: 0 0 2.4cqw rgba(226, 163, 92, .7); } }
@keyframes hbrise { from { opacity: 0; transform: translateY(1.2cqw); } }
html[data-calm] .hb * { animation: none !important; }
/* Speed */
.hb-load { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f0f0f2; border-top: 1px solid #ddd; font-family: var(--mono); font-size: 12px; color: #666; transition: background .6s, color .6s; }
.hb-load b { font-weight: 400; color: #c2410c; min-width: 5ch; transition: color .6s; }
.hb-load i { flex: 1; height: 4px; border-radius: 4px; background: #ddd; overflow: hidden; }
.hb-load u { display: block; height: 100%; width: 100%; background: #c2410c; transform-origin: left; transform: scaleX(.9); transition: transform 1s var(--ease-out), background .6s; }
.hb.l-color .hb-load { background: #160b05; border-color: #2b170b; color: rgba(255, 244, 230, .6); }
.hb.l-speed .hb-load b { color: #34c77b; }
.hb.l-speed .hb-load u { background: #34c77b; transform: scaleX(.2); }

/* ---------- Motion gallery: six live mini demos side by side ---------- */
.fxr { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 8px max(var(--gutter), calc((100% - 1180px) / 2)) 26px; scroll-padding-inline: max(var(--gutter), calc((100% - 1180px) / 2)); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.fx { flex: 0 0 clamp(268px, 28vw, 350px); margin: 0; scroll-snap-align: start; }
.fx-win { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #0f0d16; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .9); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
@media (hover: hover) { .fx:hover .fx-win { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--pop), 0 30px 60px -34px rgba(0, 0, 0, .9); } }
.fx-bar { height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: #1b1724; border-bottom: 1px solid var(--line); }
.fx-bar i { width: 8px; height: 8px; border-radius: 50%; background: #4a4258; }
.fx-bar span { margin-left: 8px; font-family: var(--mono); font-size: 10px; color: var(--mute); }
.fx-stage { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; container-type: inline-size; isolation: isolate; }
.fx figcaption { margin-top: 14px; padding-right: 8px; }
.fx figcaption b { display: block; font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: -.015em; }
.fx figcaption span { display: block; color: var(--dim); font-size: 14.5px; line-height: 1.45; margin-top: 3px; }
.fx:not(.live) .fx-stage *, .fx:not(.live) .fx-stage *::before { animation-play-state: paused !important; }
.fxr-nav { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.fxr-nav .st-ghost { min-height: 44px; width: 52px; padding: 0; font-size: 18px; }
.fxr-nav .st-note { margin: 0 0 0 auto; }
@media (max-width: 700px) { .fxr-nav .st-ghost { display: none; } .fxr-nav .st-note { margin: 0; } }

/* Film hero */
.fx-film { background: #160d24; }
.ff-fallback { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: linear-gradient(160deg, #2a1240, #120a1e); }
.ff-fallback i { position: absolute; width: 90cqw; height: 90cqw; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 61, .55), transparent 62%); left: -20cqw; top: -10cqw; animation: ffDrift 9s ease-in-out infinite alternate; }
.ff-fallback i + i { background: radial-gradient(circle, rgba(255, 79, 154, .5), transparent 62%); left: 30cqw; top: 20cqw; animation-duration: 11s; animation-direction: alternate-reverse; }
@keyframes ffDrift { to { transform: translate(24cqw, 14cqw) scale(1.2); } }
.fx-film video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.fx-film video.on { opacity: 1; }
.ff-over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 3.4cqw; padding: 7cqw; background: linear-gradient(180deg, rgba(10, 8, 16, .35), transparent 35%, rgba(10, 8, 16, .82)); }
.ff-logo { position: absolute; left: 7cqw; top: 6cqw; display: inline-flex; align-items: center; gap: 2cqw; font-family: var(--serif); font-weight: 700; font-size: 4.6cqw; color: #fff; }
.ff-logo i { width: 4cqw; height: 4cqw; border-radius: 50%; background: var(--sun); }
.ff-over b { font-family: var(--serif); font-weight: 800; font-size: 9.4cqw; line-height: 1; letter-spacing: -.035em; color: #fff; max-width: 11ch; }
.ff-btn { font-size: 3.8cqw; font-weight: 600; padding: 2.4cqw 4.4cqw; border-radius: 99px; background: #fff; color: var(--ink); }
.ff-tag { position: absolute; right: 5cqw; top: 5.4cqw; font-family: var(--mono); font-size: 3.2cqw; letter-spacing: .08em; text-transform: uppercase; padding: 1.4cqw 2.6cqw; border-radius: 99px; background: rgba(0, 0, 0, .45); color: #fff; }

/* Parallax */
.fx-par .fp { position: absolute; left: 0; width: 100%; animation: fpMove 6.5s ease-in-out infinite alternate; }
.fp-sky { top: 0; height: 100%; background: linear-gradient(180deg, #ffb27a 0%, #e0607e 45%, #5a2f86 100%); --y: 0; animation: none !important; }
.fp-sun { left: 58% !important; top: 26%; width: 26cqw !important; height: 26cqw; border-radius: 50%; background: radial-gradient(circle, #fff3c4, #ffc56b 55%, rgba(255, 197, 107, 0) 70%); --y: 9cqw; }
.fx-par svg.fp { height: 90%; overflow: visible; }
.fp-l1 { top: 30%; --y: -6cqw; } .fp-l2 { top: 44%; --y: -13cqw; } .fp-l3 { top: 58%; --y: -22cqw; }
.fp-copy { top: 9%; padding: 0 7cqw; --y: -8cqw; display: grid; gap: 2cqw; justify-items: start; }
.fp-copy small { font-family: var(--mono); font-size: 3.2cqw; letter-spacing: .1em; text-transform: uppercase; color: #3a1640; }
.fp-copy b { font-family: var(--serif); font-weight: 800; font-size: 8.6cqw; line-height: 1; letter-spacing: -.035em; color: #1d0c2c; max-width: 12ch; }
.fp-copy span { font-size: 3.6cqw; font-weight: 600; padding: 2cqw 3.6cqw; border-radius: 99px; background: #1d0c2c; color: #ffd8b0; }
@keyframes fpMove { from { transform: translateY(0); } to { transform: translateY(var(--y)); } }

/* Split letters */
.fx-split { display: grid; align-content: center; gap: 3cqw; padding: 0 8%; background: radial-gradient(80% 80% at 80% 20%, #5a2a10, transparent 70%), #1c0f07; color: #fff4e6; }
.fx-split small { font-family: var(--mono); font-size: 3.8cqw; letter-spacing: .12em; text-transform: uppercase; color: #e2a35c; }
.fs-h { font-family: var(--serif); font-weight: 800; font-size: 13.5cqw; line-height: 1.02; letter-spacing: -.035em; }
.fs-h .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; white-space: nowrap; }
.fs-h .ch { display: inline-block; animation: fsUp 5s cubic-bezier(.22, 1, .36, 1) infinite; animation-delay: calc(var(--i) * 45ms); }
.fs-sub { font-size: 5cqw; color: rgba(255, 244, 230, .75); animation: fsFade 5s ease infinite; animation-delay: .7s; }
@keyframes fsUp { 0% { transform: translateY(110%) rotate(8deg); opacity: 0; } 16%, 70% { transform: none; opacity: 1; } 84%, 100% { transform: translateY(-110%); opacity: 0; } }
@keyframes fsFade { 0%, 6% { opacity: 0; transform: translateY(8px); } 20%, 66% { opacity: 1; transform: none; } 78%, 100% { opacity: 0; transform: none; } }

/* Stacking cards */
.fx-stack { background: #120e22; }
.fk { position: absolute; left: 9%; right: 9%; top: 18%; height: 64%; border-radius: 4cqw; padding: 6cqw; display: grid; align-content: end; gap: 1.4cqw; transform-origin: 50% 0; box-shadow: 0 -8px 24px -8px rgba(0, 0, 0, .55); }
.fk small { position: absolute; top: 5cqw; left: 6cqw; font-family: var(--mono); font-size: 3.4cqw; opacity: .7; }
.fk b { font-family: var(--serif); font-weight: 800; font-size: 9cqw; line-height: 1; letter-spacing: -.03em; }
.fk span { font-size: 3.9cqw; line-height: 1.35; opacity: .85; }
.fk1 { background: var(--sun); color: var(--ink); animation: fk1 8s cubic-bezier(.65, 0, .35, 1) infinite; }
.fk2 { background: var(--pop); color: var(--ink); animation: fk2 8s cubic-bezier(.65, 0, .35, 1) infinite; }
.fk3 { background: var(--sky); color: #fff; animation: fk3 8s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes fk1 { 0%, 14% { transform: none; } 28%, 44% { transform: translateY(-7%) scale(.92); } 58%, 84% { transform: translateY(-14%) scale(.84); } 98%, 100% { transform: none; } }
@keyframes fk2 { 0%, 14% { transform: translateY(125%); } 28%, 44% { transform: none; } 58%, 84% { transform: translateY(-7%) scale(.92); } 98%, 100% { transform: translateY(125%); } }
@keyframes fk3 { 0%, 44% { transform: translateY(125%); } 58%, 84% { transform: none; } 98%, 100% { transform: translateY(125%); } }

/* Counter and chart */
.fx-count { display: grid; align-content: start; gap: 1.8cqw; padding: 7% 7% 0; background: linear-gradient(170deg, #10241f, #0b1412); }
.fx-count small { font-family: var(--mono); font-size: 3.6cqw; letter-spacing: .1em; text-transform: uppercase; color: #8fd8bf; }
.fx-count > b { font-family: var(--serif); font-weight: 800; font-size: 19cqw; line-height: .95; letter-spacing: -.04em; color: #f4ede1; font-variant-numeric: tabular-nums; }
.fc-chip { justify-self: start; font-size: 4cqw; font-weight: 600; padding: 1.2cqw 3cqw; border-radius: 99px; background: rgba(47, 224, 165, .16); color: var(--mint); }
.fc-bars { position: absolute; left: 7%; right: 7%; bottom: 0; height: 36%; display: flex; align-items: flex-end; gap: 2.4cqw; }
.fc-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 1.6cqw 1.6cqw 0 0; background: #2a5a4c; transform-origin: bottom; animation: fcBar 5s cubic-bezier(.22, 1, .36, 1) infinite; animation-delay: calc(var(--i) * 70ms); }
.fc-bars i:last-child { background: var(--mint); }
@keyframes fcBar { 0% { transform: scaleY(0); } 26%, 86% { transform: none; } 97%, 100% { transform: scaleY(0); } }

/* Spotlight and tilt */
.fx-spot { background: radial-gradient(70% 60% at 50% 40%, #2a1a12, #0c0a10); perspective: 700px; cursor: none; }
.fsp-card { position: absolute; left: 16%; right: 16%; top: 12%; bottom: 12%; border-radius: 4cqw; padding: 6cqw; overflow: hidden; display: grid; align-content: end; gap: 1.6cqw; color: #fff4e6;
  background: linear-gradient(160deg, #4a2c1a, #1d100a 70%); border: 1px solid rgba(255, 220, 170, .2); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .9); animation: fspTilt 7s ease-in-out infinite; }
.fsp-card small { font-family: var(--mono); font-size: 3cqw; letter-spacing: .1em; text-transform: uppercase; color: #e2a35c; }
.fsp-card b { font-family: var(--serif); font-weight: 800; font-size: 9cqw; line-height: 1; letter-spacing: -.03em; }
.fsp-card > span:not(.fsp-light) { font-size: 3.6cqw; color: rgba(255, 244, 230, .75); }
.fsp-card em { justify-self: start; font-style: normal; font-size: 3.4cqw; font-weight: 600; padding: 1.8cqw 3.4cqw; border-radius: 99px; background: #ffd29a; color: #2a1408; margin-top: 1cqw; }
.fsp-light { position: absolute; left: 0; top: 0; width: 70cqw; height: 70cqw; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 226, 180, .5), rgba(255, 226, 180, 0) 60%); mix-blend-mode: screen; animation: fspLight 7s ease-in-out infinite; }
.fsp-cursor { position: absolute; left: 0; top: 0; width: 6cqw; height: 6cqw; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); pointer-events: none; animation: fspCur 7s ease-in-out infinite; }
.fx-spot.user .fsp-card, .fx-spot.user .fsp-light { animation: none; }
.fx-spot.user .fsp-cursor { opacity: 0; }
@keyframes fspTilt { 0%, 100% { transform: rotateX(4.7deg) rotateY(-7deg); } 25% { transform: rotateX(3.3deg) rotateY(7deg); } 50% { transform: rotateX(-6deg) rotateY(5.6deg); } 75% { transform: rotateX(-4.7deg) rotateY(-5.6deg); } }
@keyframes fspLight { 0%, 100% { transform: translate(-21cqw, -18.6cqw); } 25% { transform: translate(19cqw, -14.6cqw); } 50% { transform: translate(15cqw, 13.4cqw); } 75% { transform: translate(-17cqw, 9.4cqw); } }
@keyframes fspCur { 0%, 100% { transform: translate(30cqw, 26cqw); } 25% { transform: translate(70cqw, 30cqw); } 50% { transform: translate(66cqw, 58cqw); } 75% { transform: translate(34cqw, 54cqw); } }

:is(html[data-calm], html.st-rm) .fx-stage *, :is(html[data-calm], html.st-rm) .fx-stage *::before { animation: none !important; }
:is(html[data-calm], html.st-rm) .fx-film video { display: none; }
:is(html[data-calm], html.st-rm) .fk2 { transform: translateY(-7%) scale(.92); }
:is(html[data-calm], html.st-rm) .fk1 { transform: translateY(-14%) scale(.84); }
:is(html[data-calm], html.st-rm) .fsp-cursor { display: none; }
:is(html[data-calm], html.st-rm) .fsp-light { transform: translate(-6cqw, -16cqw); }

/* ---------- Directions ---------- */
.dirs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1000px) { .dirs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dirs { grid-template-columns: 1fr; } }
.dir2 { --fg: #fff; display: grid; gap: 10px; align-content: start; min-height: 250px; padding: 22px; border-radius: 14px; background: var(--bg); color: var(--fg); border: 1px solid rgba(255, 255, 255, .12); position: relative; overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
@media (hover: hover) { .dir2:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--a); } }
.dir2 .sw { display: flex; gap: 6px; } .dir2 .sw i { width: 22px; height: 22px; border-radius: 6px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .2); }
.dir2 b { font-family: var(--f); font-weight: 700; font-size: 26px; letter-spacing: -.01em; line-height: 1.05; margin-top: 18px; }
.dir2 > span:not(.sw) { font-size: 14.5px; opacity: .8; line-height: 1.4; }
.dir2 em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--a); margin-top: auto; }

/* ---------- Process and deliverables ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.flow::before { content: ""; position: absolute; left: 28px; right: 6%; top: 27px; border-top: 2px dashed var(--line-2); }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr 1fr; } .flow::before { display: none; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }
.flow li { position: relative; padding: 0 6px 0 0; }
.flow .fi { position: relative; width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: var(--sun); color: var(--ink); box-shadow: 4px 4px 0 var(--pop); font-family: var(--mono); font-size: 15px; margin-bottom: 20px; }
.flow b { display: block; font-family: var(--serif); font-weight: 800; font-size: 24px; letter-spacing: -.02em; margin-bottom: 6px; }
.flow p { color: var(--dim); font-size: 15.5px; margin: 0; }
.gets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(50px, 7vw, 90px); }
@media (max-width: 860px) { .gets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gets { grid-template-columns: 1fr; } }
.gets > div { padding: 22px; border-radius: 14px; background: var(--plate); border: 1px solid var(--line); }
.gets b { display: block; font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: -.015em; margin-bottom: 4px; }
.gets span { color: var(--dim); font-size: 15px; }

/* ---------- Closing ---------- */
.st-cta { display: grid; justify-items: start; padding: clamp(36px, 6vw, 80px); border-radius: 20px; background: var(--sun); color: var(--ink); box-shadow: 12px 12px 0 var(--pop); }
.st-cta .st-h2 { margin-top: 0; max-width: 16ch; }
.st-cta .hl { color: var(--ink); background: linear-gradient(transparent 62%, rgba(255, 79, 154, .55) 62% 92%, transparent 92%); }
.st-cta .st-lede { color: #3d3420; }
.st-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.st-cta .st-btn { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--pop); }
.st-cta .st-ghost { color: var(--ink); border-color: rgba(18, 16, 25, .35); }
.st-cta .st-ghost:hover { border-color: var(--ink); background: rgba(18, 16, 25, .06); }
@media (max-width: 560px) { .st-cta { box-shadow: 6px 6px 0 var(--pop); } }
