/* Marmos — site styles. Svyazka kit language, tuned for a wide landing: glass and orb cards,
   lime only for live signals. Blur is baked into images (public/fx) so nothing is blurred live;
   motion is transform/opacity only and off-screen sections are skipped (content-visibility). */

/* ---------- tokens */
:root {
  --bg: #050507;
  --panel: #0c0b12;
  --s1: rgba(255, 255, 255, .045);
  --s2: rgba(255, 255, 255, .075);
  --s3: rgba(255, 255, 255, .12);
  --line: rgba(255, 255, 255, .07);
  --text: #f4f4f6;
  --muted: rgba(244, 244, 246, .64);
  --faint: rgba(244, 244, 246, .42);
  --accent: #e6f56b;
  --violet: #7d5cff;
  --violet-2: #b29bff;
  --ok: #7ee0b5; --warn: #ffc65c; --danger: #ff6b5e;
  --r-xl: 30px; --r-l: 22px; --r-m: 16px;
  --lift: inset 0 1px 0 rgba(255, 255, 255, .06);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #060609; overscroll-behavior-y: none; scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { overscroll-behavior-y: none; margin: 0; color: var(--text); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; background: transparent; overflow-x: hidden;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
img { max-width: 100%; display: block; -webkit-user-drag: none; -webkit-touch-callout: none; }
.px { image-rendering: pixelated; }
a, button { touch-action: manipulation; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.02em; }
h3 { font-size: 18px; line-height: 1.25; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 14px; } .xs { font-size: 12.5px; }
.row { display: flex; gap: 12px; align-items: center; } .between { justify-content: space-between; } .center { justify-content: center; } .grow { flex: 1; min-width: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 12px; background: #fff; color: #000; text-decoration: none; }
.skip:not(:focus-visible) { opacity: 0; pointer-events: none; clip-path: inset(50%); }
.grad { background: linear-gradient(100deg, #fff 0%, var(--violet-2) 45%, #ff83c8 75%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ic { width: 18px; height: 18px; flex: none; }

/* ---------- palettes: --c1 light, --c2 deep, --c3 core, --glow rgb, --orb the drifting light of orb cards */
.g-violet    { --c1: #9d91c9; --c2: #45368f; --c3: #0d0b24; --glow: 125, 100, 220; --orb: radial-gradient(44% 38% at 40% 74%, #937ddb 0%, #4b34b0 40%, #1b1342 76%, #09070f 100%); }
.g-pink      { --c1: #c98fb0; --c2: #74385a; --c3: #170a1f; --glow: 215, 100, 165; --orb: radial-gradient(42% 36% at 50% 72%, #d76aa6 0%, #8c3468 40%, #280f20 78%, #0e070c 100%); }
.g-teal      { --c1: #7fb3aa; --c2: #22534d; --c3: #071822; --glow: 70, 175, 160; --orb: radial-gradient(42% 36% at 50% 74%, #6cc4b4 0%, #26685f 40%, #0d2224 78%, #070d0e 100%); }
.g-green     { --c1: #93b483; --c2: #345a30; --c3: #08180a; --glow: 110, 175, 90; --orb: radial-gradient(42% 36% at 50% 74%, #8cc271 0%, #3a6e35 40%, #10220f 78%, #070d07 100%); }
.g-blue      { --c1: #8b9bd0; --c2: #2f3d82; --c3: #080d28; --glow: 100, 130, 225; --orb: radial-gradient(42% 36% at 50% 74%, #7491e0 0%, #3247b0 40%, #101a4a 76%, #07091a 100%); }
.g-orange    { --c1: #cf9a7b; --c2: #7c3e27; --c3: #1b0a12; --glow: 225, 130, 85; --orb: radial-gradient(42% 36% at 62% 74%, #dc8a63 0%, #b04a2a 40%, #371409 78%, #0f0705 100%); }
.g-graphite { --c1: #b9b6cc; --c2: #4a4859; --c3: #0d0d16; --glow: 150, 146, 180; --orb: radial-gradient(50% 40% at 50% 28%, #6c6c7a 0%, #2b2b34 45%, #121217 80%, #0b0b0e 100%); }

/* ---------- background: ONE static layer (base, baked auras, vignette, grain — painted once, never moves)
   + ONE canvas for the dots, the two parallax line layers and the cursor spot. The canvas is redrawn by
   site.js only on scroll / mouse move / resize, and only for the visible viewport. */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    url(/fx/grain.png) repeat,
    radial-gradient(130% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, .55)),
    url(/fx/aura-violet.webp) -26vmax -38vmax / 78vmax 78vmax no-repeat,
    url(/fx/aura-pink.webp) calc(100% + 32vmax) 6vh / 78vmax 78vmax no-repeat,
    url(/fx/aura-teal.webp) 16vw calc(100% + 50vmax) / 78vmax 78vmax no-repeat,
    #050507; }
.bg::after { content: ""; position: absolute; inset: 0; background: rgba(5, 5, 7, .42); } /* tones the auras down to their old opacity */
.bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

/* every section: dark violet in the middle, fading out to the edges (baked blurred glow) */
.sec::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: min(1500px, 150vw); height: 100%; transform: translateX(-50%);
  background: url(/fx/glow-section.webp) center 35% / 100% 100% no-repeat; opacity: .75; pointer-events: none;
  /* fade out before the section edges, so content-visibility clipping never shows a hard line */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 62%, transparent 96%); mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 62%, transparent 96%); }
/* skip rendering sections far from the viewport */
.sec, .footer { content-visibility: auto; contain-intrinsic-size: auto 1000px; }


/* ---------- reveal on scroll: opacity + transform only */
.js .reveal { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- top bar */
.topbar { position: fixed; z-index: 40; top: 14px; left: 0; right: 0; padding: 0 var(--gut); pointer-events: none; }
.topbar-in { pointer-events: auto; max-width: calc(var(--wrap) - 2 * var(--gut)); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 8px 8px 8px 14px; border-radius: 26px; background: rgba(14, 12, 24, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), var(--lift), 0 18px 50px rgba(0, 0, 0, .35); transition: background .4s var(--ease); }
.topbar.scrolled .topbar-in { background: rgba(14, 12, 24, .88); }
.brand { justify-self: start; display: inline-flex; align-items: center; text-decoration: none; }
.wordmark { padding: 0 6px; font-size: 21px; font-weight: 650; letter-spacing: -.035em;
  background: linear-gradient(100deg, #fff 0 40%, var(--violet-2) 50%, #fff 60% 100%); background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position 1.1s var(--ease); }
.brand:hover .wordmark { background-position: 0 0; }
.nav { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: var(--s1); }
.nav a { position: relative; z-index: 1; padding: 8px 16px; border-radius: 99px; font-size: 14.5px; color: var(--muted); text-decoration: none; transition: color .25s var(--ease); }
.nav a:hover, .nav a.on { color: var(--text); }
.nav-pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 99px; background: var(--s3); box-shadow: var(--lift); opacity: 0;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s; }
.nav-pill.show { opacity: 1; }
.topbar-end { display: flex; gap: 8px; align-items: center; justify-self: end; }
.kbd-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 14px; border: 0; border-radius: 99px; background: var(--s2); color: var(--muted); cursor: pointer; font-size: 14px; box-shadow: var(--lift); transition: background .2s, color .2s, transform .25s var(--ease); }
.kbd-btn:hover { background: var(--s3); color: var(--text); }
.kbd-btn .ic { width: 17px; height: 17px; }
kbd { font: 500 11.5px var(--mono); padding: 3px 7px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: var(--muted); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08); }

/* ---------- buttons, chips */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 99px;
  background: #fff; color: #050507; font: 500 15px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .45s var(--ease-out), background .2s var(--ease), box-shadow .3s var(--ease); --ink: rgba(125, 92, 255, .35); }
.btn:hover { box-shadow: 0 8px 28px rgba(255, 255, 255, .16); }
.btn.ghost { background: var(--s2); color: var(--text); box-shadow: var(--lift); --ink: rgba(255, 255, 255, .22); } .btn.ghost:hover { background: var(--s3); }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn .ic { width: 17px; height: 17px; }
.btn small { color: var(--faint); font-size: 12px; margin-left: 2px; }
.btn-count { padding: 2px 7px; border-radius: 99px; background: rgba(0, 0, 0, .1); font: 500 12px var(--mono); color: inherit !important; }
.round { position: relative; overflow: hidden; width: 44px; height: 44px; border: 0; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--s2); color: var(--text); box-shadow: var(--lift); cursor: pointer; text-decoration: none; transition: background .2s var(--ease), transform .45s var(--ease-out); }
.round:hover { background: var(--s3); } .round .ic { width: 19px; height: 19px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; background: var(--s2); color: inherit; white-space: nowrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.s-live { color: var(--accent); background: rgba(230, 245, 107, .1) !important; }
.s-live::before { transition: opacity .5s; }
.tock .s-live::before, .tock .typer-caret, .tock [data-state="loading"] .live-dot { opacity: .35; }
.s-closed { color: var(--violet-2); background: rgba(125, 92, 255, .14) !important; }
.s-beta { color: var(--ok); background: rgba(126, 224, 181, .12) !important; }
.s-dev { color: #8fc1ff; background: rgba(91, 139, 255, .14) !important; }
.s-paused { color: var(--warn); background: rgba(255, 198, 92, .12) !important; }
.s-archive { color: var(--faint); background: var(--s1) !important; }
@keyframes blink { 50% { opacity: .35; } }

/* frosted buttons: a real backdrop blur only where sharp detail sits behind them (the dot grid / lines,
   scrolling content). On flat or soft backgrounds (cards, hero light, orbs) a blur looks identical to a tint
   but is recomputed every frame, so those get an equivalent tint instead. */
.seg, .sec-head .btn.ghost, .sec-head .refresh, .faq-help .btn.ghost {
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.ghost { background: rgba(255, 255, 255, .1); }
.btn.ghost:hover { background: rgba(255, 255, 255, .16); }
.qchip { background: rgba(255, 255, 255, .07); }
.comm-act { background: rgba(0, 0, 0, .34); }
.card .btn.ghost, .card .round { background: rgba(255, 255, 255, .1); }
.card.glass .btn.ghost { background: rgba(255, 255, 255, .12); }
.hero .btn.ghost { background: rgba(26, 20, 48, .6); } .hero .btn.ghost:hover { background: rgba(40, 32, 70, .7); }
.hero .qchip { background: rgba(22, 18, 40, .55); } .hero .qchip:hover { background: rgba(34, 28, 60, .65); }
.st-state { background: rgba(0, 0, 0, .42); }
.svc-live { background: rgba(0, 0, 0, .4); }
/* the top bar only needs a real blur once sharp content scrolls under it */
.topbar:not(.scrolled) .topbar-in { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(16, 13, 30, .62); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .seg, .sec-head .btn.ghost, .sec-head .refresh { background: rgba(30, 27, 44, .92); }
}
@media (max-width: 640px) {
  .seg, .sec-head .btn.ghost, .sec-head .refresh, .faq-help .btn.ghost { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}

/* press feedback: native :active (no delay), ink ripple from site.js, smooth release */
.btn:active, .round:active, .qchip:active, .addr:active, .kbd-btn:active, .seg button:active, .gstep-check:active, .tabbar a:active, .tabbar button:active { transform: scale(.95); transition-duration: .08s; }
.card.tap:active { transform: scale(.985); transition-duration: .12s; }
.ink { position: absolute; z-index: -1; left: 0; top: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, var(--ink, rgba(255, 255, 255, .25)) 0 45%, transparent 70%); }
.burst { position: absolute; z-index: 90; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--c, #fff); box-shadow: 0 0 8px var(--c, #fff); }

/* ---------- cards (kit): neutral surface, orb (drifting light), glass (glowing rim + dark frosted core) */
.card { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); padding: 22px; min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)), var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .5s var(--ease-out), box-shadow .45s var(--ease); }
a.card { display: block; color: inherit; text-decoration: none; }
.card.orb { background: #0a0a0f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.card.orb::before { content: ""; position: absolute; inset: -35%; z-index: -1; background: var(--orb); transform: translate3d(var(--ox, 0%), var(--oy, 0%), 0) scale(var(--os, 1)) rotate(var(--or, 0deg)); will-change: transform; }
.card.orb::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, .09), transparent 60%); }
/* glass: glowing coloured rim fading smoothly into a dark core. The core is a solid colour masked by two
   eased gradients (horizontal x vertical, intersected) — looks like a blur, costs nothing, and --rim drives
   both the fade width and the padding, so content can never sit on the rim. */
.card.glass { --rim: 30px; padding: calc(var(--rim) + 2px); background: var(--c2); contain: paint;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px rgba(0, 0, 0, .45), 0 0 46px rgba(var(--glow), .14); }
.card.glass::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 34%), linear-gradient(155deg, var(--c1) 0%, var(--c2) 48%, color-mix(in srgb, var(--c2) 70%, var(--c1)) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), inset 0 1px 0 rgba(255, 255, 255, .45); }
/* core: a rounded rect blurred deep towards the middle, so the rim fades out gradually in brightness and opacity.
   The blur is static (painted once per card), unlike the old animated full-screen blurs. */
.card.glass::after { content: ""; position: absolute; inset: var(--core-inset, 20px); z-index: -1; pointer-events: none;
  border-radius: calc(var(--r-xl) + 6px);
  background: radial-gradient(120% 100% at 50% 42%, color-mix(in srgb, var(--c3) 74%, var(--c2)), color-mix(in srgb, var(--c3) 90%, var(--c2)) 75%);
  filter: blur(var(--core-blur, 26px)); opacity: .95; }
.card:is(.orb, .glass) .chip:not(.status) { background: rgba(0, 0, 0, .3); }
/* hover light that follows the cursor (site.js writes --mx/--my) */
.card > .hl { position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0), rgba(255, 255, 255, .1), transparent 55%); }
@media (hover: hover) and (pointer: fine) {
  .card:hover > .hl { opacity: 1; }
  a.card:hover, .svc:hover, .pcard:hover, .comm:hover { transform: translateY(-4px); }
  .pcard:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 26px 50px rgba(0, 0, 0, .5); }
  .btn:hover { transform: translateY(-1px); }
}
.num-xl { font-weight: 600; font-size: 56px; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.kicker { font-size: 13px; color: var(--muted); }
.tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; flex: none; color: #fff;
  background: rgba(0, 0, 0, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.tile .ic { width: 24px; height: 24px; }

/* address chip with copy */
.addr { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 44px; padding: 6px 6px 6px 14px; border: 0; border-radius: 14px; cursor: pointer;
  background: rgba(0, 0, 0, .38); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background .2s, box-shadow .2s, transform .45s var(--ease-out); }
.addr code { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr:hover { background: rgba(0, 0, 0, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.addr-ic { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .1); flex: none; transition: background .3s; }
.addr-ic .ic { position: absolute; width: 16px; height: 16px; transition: transform .35s var(--ease), opacity .25s; }
.addr .i-check { opacity: 0; transform: scale(.4); color: var(--accent); }
.addr.copied .i-copy { opacity: 0; transform: scale(.4); }
.addr.copied .i-check { opacity: 1; transform: none; }
.addr.copied .addr-ic { background: rgba(230, 245, 107, .16); }
.addr::after { content: "Скопировано"; position: absolute; inset: 0 44px 0 0; display: flex; align-items: center; padding-left: 14px; border-radius: inherit; pointer-events: none;
  font: 500 13.5px var(--font); color: var(--accent); background: rgba(28, 30, 14, .97);
  opacity: 0; clip-path: inset(0 100% 0 0 round 14px); transition: clip-path .5s var(--ease-out), opacity .2s; }
.addr.copied::after { opacity: 1; clip-path: inset(0 0 0 0 round 14px); }
.addr code { transition: opacity .3s var(--ease); } .addr.copied code { opacity: 0; }
.addr.copied { box-shadow: inset 0 0 0 1px rgba(230, 245, 107, .35); }

/* live dot */
.live-dot { position: relative; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
[data-state="up"] .live-dot { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
[data-state="up"] .live-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--accent); transform: scale(var(--ps, .5)); opacity: var(--po, 0); will-change: transform, opacity; }
[data-state="partial"] .live-dot, [data-state="maintenance"] .live-dot { background: var(--warn); box-shadow: 0 0 12px var(--warn); }
[data-state="down"] .live-dot { background: var(--danger); box-shadow: 0 0 12px var(--danger); }
[data-state="loading"] .live-dot { transition: opacity .4s; }

/* ---------- hero */
.hero { position: relative; isolation: isolate; padding: 150px 0 0; }
.hero-aurora { position: absolute; inset: 0 0 auto; height: 1150px; z-index: -1; pointer-events: none; overflow: hidden;
}
.hero-aurora i { position: absolute; background: center / 100% 100% no-repeat; will-change: transform; }
.hero-aurora i:nth-child(1) { left: -18vw; top: -4vh; width: 92vw; height: 80vh; background-image: url(/fx/ribbon-a.webp); opacity: .7; }
.hero-aurora i:nth-child(2) { right: -30vw; top: 12vh; width: 84vw; height: 76vh; background-image: url(/fx/ribbon-b.webp); opacity: .5; }
.hero-aurora i:nth-child(3) { left: 24vw; top: -18vh; width: 58vw; height: 74vh; background-image: url(/fx/ribbon-c.webp); opacity: .35; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-title { font-size: clamp(48px, 7.4vw, 104px); line-height: .95; letter-spacing: -.055em; font-weight: 600; }
.hero-title .w { display: inline-block; white-space: nowrap; }
.hero-title .grad, .sec h2 .grad { padding: 0 .1em .08em 0; margin-right: -.1em; }
.js .hero-title .w { opacity: 0; transform: translate3d(0, .3em, 0); animation: word-in .9s var(--ease-out) forwards; animation-delay: calc(.08s + var(--i) * .1s); }
@keyframes word-in { to { opacity: 1; transform: none; } }
.hero-lead { margin-top: 22px; max-width: 560px; font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.qchip { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 16px 8px 10px; border-radius: 16px; background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--lift); text-decoration: none; font-size: 14px; transition: background .2s, transform .45s var(--ease-out); --ink: rgba(255, 255, 255, .2); }
.qchip img { width: 22px; height: 22px; object-fit: contain; }
.qchip:hover { background: rgba(255, 255, 255, .09); }
.qchip-ic { display: grid; place-items: center; width: 22px; height: 22px; }
.hero-show { transition: transform .9s var(--ease-out); }

/* MarMic showcase */
.mm { display: grid; gap: 16px; }

.mm-head { display: flex; align-items: center; gap: 14px; }
.mm-logo { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 10px 30px rgba(168, 136, 255, .5); }
.mm-name { font-size: 30px; font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.mm-sub { color: rgba(255, 255, 255, .7); margin-top: 3px; }
.mm-title { font-size: clamp(22px, 2.3vw, 30px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.mm-app { display: grid; grid-template-columns: 46px 156px minmax(0, 1fr); height: 268px; border-radius: 18px; overflow: hidden; background: rgba(6, 5, 16, .82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 40px rgba(0, 0, 0, .35); font-size: 12.5px; }
.mm-rail { display: grid; align-content: start; justify-items: center; gap: 8px; padding: 10px 0; background: rgba(0, 0, 0, .35); }
.srv { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; background: rgba(255, 255, 255, .08); color: #fff; }
.srv img { width: 26px; height: 26px; border-radius: 50%; }
.srv .px { width: 22px; height: 22px; border-radius: 0; }
.srv .ic { width: 17px; height: 17px; }
.srv.on { border-radius: 50%; background: none; }
.srv.on::before { content: ""; position: absolute; left: -10px; width: 4px; height: 20px; border-radius: 0 4px 4px 0; background: #fff; }
.srv.g { background: linear-gradient(150deg, #ffa06a, #dd3e17); }
.srv.m { background: linear-gradient(150deg, #62e8d3, #17716a); }
.srv.add { color: var(--ok); background: rgba(126, 224, 181, .12); font-size: 18px; }
.mm-channels { display: grid; align-content: start; gap: 2px; padding: 10px 8px; border-right: 1px solid rgba(255, 255, 255, .06); }
.mm-cap { font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); padding: 0 6px 6px; }
.mm-ch { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 8px; color: var(--muted); white-space: nowrap; }
.mm-ch.on { color: var(--text); background: rgba(255, 255, 255, .07); }
.mm-ch .ic { width: 13px; height: 13px; }
.mm-ch.voice { color: var(--ok); }
.mm-voice { display: grid; gap: 5px; padding: 3px 0 0 12px; }
.mm-u { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; transition: color .3s; }
.av { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none; font-style: normal; font-size: 13px; line-height: 1;
  background: radial-gradient(120% 120% at 30% 10%, hsl(var(--h) 90% 75%), hsl(var(--h) 65% 40%)); box-shadow: 0 0 0 2px transparent; transition: box-shadow .35s var(--ease); }
.mm-u.speaking .av { box-shadow: 0 0 0 2px #7ee0b5, 0 0 12px rgba(126, 224, 181, .7); }
.mm-u.speaking { color: var(--text); }
.mm-chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 10px 12px; min-width: 0; min-height: 0; }
.mm-msgs { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; overflow: hidden; padding-bottom: 8px; min-height: 0;
}
.mm-chat { position: relative; }
.mm-chat::after { content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 54px; pointer-events: none; background: linear-gradient(180deg, rgb(10, 8, 22), transparent); }
.mm-m { display: flex; gap: 8px; align-items: flex-start; flex: none; }
.mm-m span { display: grid; color: var(--muted); line-height: 1.35; min-width: 0; } .mm-m b { font-weight: 600; color: var(--text); font-size: 12px; }
.mm-input { display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: var(--faint); }
.mm-ph { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mm-typing { display: inline-flex; align-items: center; gap: 3px; height: 100%; opacity: 0; transition: opacity .25s; }
.mm-input.typing .mm-typing { opacity: 1; }
.mm-typing b { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); will-change: transform, opacity; }
.mm-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mm-more { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: rgba(255, 255, 255, .72); text-decoration: none; }
.mm-more:hover { color: #fff; } .mm-more .ic { width: 14px; height: 14px; }

/* marquee (site.js drives it with eased speed) */
.marquee { position: relative; margin-top: clamp(56px, 8vw, 96px); padding: 16px 0; overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(90deg, rgba(14, 12, 24, .9), rgba(24, 20, 42, .9) 50%, rgba(14, 12, 24, .9)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee::before, .marquee::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; width: 14%; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, rgb(14, 12, 24), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, rgb(14, 12, 24), transparent); }
.marquee-track > div { display: flex; align-items: center; gap: 22px; padding-right: 22px; font: 14px var(--mono); color: rgba(244, 244, 246, .66); white-space: nowrap; }
.marquee-track i { font-style: normal; color: rgba(178, 155, 255, .75); font-size: 11px; }

/* ---------- sections */
.sec { position: relative; padding: clamp(80px, 10vw, 130px) 0 0; }
.sec.tight { padding-top: 56px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-num { display: block; margin-bottom: 14px; font: 500 13px var(--mono); letter-spacing: 0; color: var(--accent); }
.sec h2 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.lead { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 560px; }
.sec-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.eyebrow b { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 99px; background: var(--s2); color: var(--accent); }
.eyebrow b .ic { width: 15px; height: 15px; }

/* segmented control with sliding pill */
.seg { position: relative; display: flex; max-width: 100%; padding: 4px; gap: 2px; border-radius: 99px; background: rgba(255, 255, 255, .05); box-shadow: var(--lift), inset 0 0 0 1px rgba(255, 255, 255, .05); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { position: relative; z-index: 1; flex: 1 0 auto; display: inline-flex; align-items: center; gap: 7px; justify-content: center; min-height: 40px; padding: 8px 15px;
  border: 0; border-radius: 99px; background: none; color: var(--muted); font-size: 14px; cursor: pointer; transition: color .25s var(--ease), transform .45s var(--ease-out); }
.seg button small { font: 500 11px var(--mono); color: var(--faint); transition: color .25s; }
.seg .on { color: var(--text); } .seg .on small { color: var(--accent); }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 99px; background: var(--s3); box-shadow: var(--lift); transition: transform .45s var(--ease), width .45s var(--ease); }
[data-filter-grid] > .hidden { display: none; }

/* ---------- services: centred cards, visual in the middle */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.svc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.svc-live { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px 0 10px; border-radius: 99px; background: rgba(0, 0, 0, .35); font-size: 12px; color: var(--muted); }
.svc-live.ghost { visibility: hidden; }
.svc-live[data-state="up"] { color: var(--accent); }
.svc-live[data-state="down"] { color: #ffb0a8; }
.svc-live[data-state="partial"] { color: var(--warn); }
.svc-stage { display: grid; place-items: center; width: 100%; height: 168px; margin: 4px 0 6px; }
.svc h3 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.svc .kicker { margin-bottom: 10px; color: rgba(255, 255, 255, .7); }
.svc-meta { font-size: 12.5px; color: rgba(255, 255, 255, .55); margin-bottom: 10px; min-height: 44px; display: grid; place-items: center; }
.svc .addr { margin-bottom: 10px; }
.svc-btn { margin-top: auto; width: 100%; }
/* visuals: zoom on hover; only the round GitHub mark turns */
.v-img { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .45)); transition: transform .7s var(--ease-out); }
.svc:hover .v-img { transform: scale(1.18); }
.v-gh { position: relative; display: grid; place-items: center; width: 124px; height: 124px; border-radius: 50%; }
.v-gh::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed rgba(178, 195, 255, .55); transform: rotate(var(--spin, 0deg)); will-change: transform; }
.v-gh img { width: 66px; height: 66px; transition: transform .8s var(--ease-out); }
.svc:hover .v-gh img { transform: scale(1.12) rotate(-12deg); }

/* ---------- projects */
.pgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.pcard { grid-column: span 2; display: flex; flex-direction: column; padding: 0; }
.pcard.featured { grid-column: span 3; }
.pmedia { position: relative; height: 230px; overflow: hidden; isolation: isolate; cursor: pointer; background: #09090d; }
.pmedia::before { content: ""; position: absolute; inset: -40% -20% -10%; z-index: -1; background: var(--orb); opacity: .9; transition: transform 1.2s var(--ease); }
.pcard:hover .pmedia::before { transform: scale(1.08) translateY(-3%); }
.pcard.featured .pmedia { height: 300px; }
.pmedia::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(15, 15, 20, .85)); pointer-events: none; z-index: 2; }
.shot { position: relative; overflow: hidden; }
.shot img { width: 100%; height: auto; transition: transform 5s cubic-bezier(.45, 0, .25, 1); }
.pmedia.browser { padding: 26px 26px 0; }
.pframe { position: relative; height: 100%; border-radius: 14px 14px 0 0; overflow: hidden; background: #111116;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px rgba(0, 0, 0, .55); transform: translateY(10px); transition: transform .7s var(--ease); }
.chrome { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #17171d; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.chrome i { width: 8px; height: 8px; border-radius: 50%; }
.chrome i:nth-child(1) { background: #ff6b5e; } .chrome i:nth-child(2) { background: #ffc65c; } .chrome i:nth-child(3) { background: #7ee0b5; }
.chrome span { margin: 0 auto; padding: 2px 12px; border-radius: 6px; background: rgba(255, 255, 255, .06); font: 11px var(--mono); color: var(--faint); transform: translateX(-20px); }
.pframe .shot { height: calc(100% - 28px); }
.pmedia.phone { display: grid; justify-items: center; padding-top: 22px; }
.pphone { width: 168px; height: 360px; padding: 7px; border-radius: 32px; background: #121218;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px rgba(0, 0, 0, .6); transform: translateY(14px) rotate(-2deg); transition: transform 1.6s var(--ease); }
.pcard.featured .pphone { width: 200px; height: 430px; }
.pphone .shot { height: 100%; border-radius: 26px; }
.pcard:hover .pphone, .pcard.peeking .pphone { transform: translateY(var(--rise, 2px)) rotate(0); }
.pcard.peeking .shot img { transform: translateY(var(--peek, 0)); }
@media (hover: hover) and (pointer: fine) {
  .pcard:hover .shot img { transform: translateY(var(--peek, 0)); }
  .pcard:hover .pframe { transform: translateY(0); }
}
.pmedia.glyph { display: grid; place-items: center; }
.glyph-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; background: linear-gradient(150deg, var(--c1), var(--c2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 20px 50px rgba(var(--glow), .45); transition: transform .6s var(--ease-out); }
.pcard:hover .glyph-ic { transform: scale(1.1); }
.glyph-ic .ic { width: 38px; height: 38px; color: #fff; }
.glyph-rings { position: absolute; inset: 0; display: grid; place-items: center; }
.glyph-rings i { position: absolute; width: 84px; height: 84px; border-radius: 30px; border: 1px solid rgba(var(--glow), .4); opacity: 0; will-change: transform, opacity; }
.typer { position: relative; z-index: 1; display: flex; align-items: center; padding: 16px 22px; border-radius: 18px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font: 500 26px var(--mono); min-width: 210px; }
.typer-text.fixed { color: var(--accent); text-shadow: 0 0 18px rgba(230, 245, 107, .45); }
.typer-caret { width: 2px; height: 1.1em; margin-left: 3px; background: var(--accent); }
.typer-hint { position: absolute; bottom: 22px; z-index: 3; display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.typer-hint .ic { width: 15px; height: 15px; }
.pbody { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 22px; flex: 1; }
.pmeta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pbody h3 { margin-top: 6px; font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.pcard.featured .pbody h3 { font-size: 30px; }
.ptag { color: var(--c1); font-size: 14.5px; }
.ptext { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chips.stack { margin-top: 4px; }
.chips.stack .chip { background: rgba(255, 255, 255, .05); color: var(--muted); font-size: 11.5px; }
.pactions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; }
.pactions .btn.ghost:last-child { margin-left: auto; }

/* ---------- status */
.st-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.st-sum div { display: grid; justify-items: center; gap: 2px; padding: 18px; border-radius: var(--r-l); background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); text-align: center; }
.st-sum b { font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.st-sum span { font-size: 13px; color: var(--muted); }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.st-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 22px; }
.st-card h3 { margin-top: 10px; font-size: 20px; font-weight: 600; }
.st-state { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 12px; border-radius: 99px; background: rgba(0, 0, 0, .35); font-size: 14px; font-weight: 500; }
.st-card[data-state="partial"] .st-state, .st-card[data-state="maintenance"] .st-state { color: var(--warn); }
.st-card[data-state="down"] .st-state { color: #ff8f85; }
.st-card[data-state="up"] .st-state { color: var(--accent); }
.st-up { color: var(--muted); font-size: 14px; } .st-up b { color: var(--text); font-size: 22px; font-weight: 600; letter-spacing: -.03em; margin-right: 4px; font-variant-numeric: tabular-nums; }
.st-chart { display: flex; align-items: flex-end; gap: 3px; width: 100%; height: 56px; margin-top: 8px; }
.st-chart i { flex: 1; height: 100%; border-radius: 3px; background: rgba(126, 224, 181, .75); transform-origin: bottom; animation: bar-in .6s var(--ease-out) both; animation-delay: calc(var(--k) * 12ms); }
.st-chart i.part { height: 60%; background: rgba(255, 198, 92, .85); }
.st-chart i.down { height: 35%; background: rgba(255, 107, 94, .9); }
.st-chart i.none { height: 12%; background: rgba(255, 255, 255, .12); }
@keyframes bar-in { from { transform: scaleY(0); } }
.st-axis { display: flex; justify-content: space-between; width: 100%; font-size: 11.5px; color: var(--faint); }
.st-mons { list-style: none; margin: 6px 0 0; padding: 0; width: 100%; display: grid; gap: 4px; }
.st-mons li { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .32); font-size: 13px; text-align: left; }
.st-mons li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-mons li em { font: normal 12px var(--mono); color: var(--muted); }
.st-mons li .live-dot { width: 7px; height: 7px; }
.st-mons li[data-state="up"] .live-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.st-mons li[data-state="down"] .live-dot { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.st-mons li[data-state="unknown"] .live-dot { background: var(--faint); box-shadow: none; }
.refresh { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 99px; background: rgba(255, 255, 255, .05); }
.refresh svg { width: 32px; height: 32px; transform: rotate(-90deg); }
.refresh circle { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 3; }
.refresh .refresh-arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--off, 100); }
.refresh > span { display: grid; line-height: 1.2; white-space: nowrap; } .refresh b { font-weight: 500; font-size: 14px; } .refresh small { font-size: 12px; color: var(--faint); }

/* ---------- community: centred cards */
.comm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.comm { display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 8px; min-height: 290px; }
.comm-ic { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 10px; transition: transform .6s var(--ease-out); }
.comm-ic img { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); }
.comm:hover .comm-ic { transform: scale(1.14); }
.comm h3 { font-size: 22px; font-weight: 600; }
.comm-act { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding: 9px 16px; border-radius: 99px; background: rgba(0, 0, 0, .3); font-size: 14px; font-weight: 500; transition: background .3s; }
.comm:hover .comm-act { background: rgba(0, 0, 0, .45); }
.comm-act .ic { width: 15px; height: 15px; }
.comm-flag { position: absolute; top: calc(var(--rim) - 6px); left: 50%; transform: translateX(-50%); }
.comm.is-down { filter: saturate(.25) brightness(.85); } .comm.is-down:hover { filter: saturate(.55); }
.comm.is-down .comm-ic img { filter: grayscale(.7) opacity(.8); }

/* ---------- footer */
.footer { position: relative; margin-top: clamp(90px, 12vw, 150px); padding: 56px 0 28px; border-top: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 8, 20, .6), #060609 260px);
  /* where a browser still bounces past the end, keep painting the footer colour below it */
  box-shadow: 0 400px 0 #060609, 0 800px 0 #060609, 0 1200px 0 #060609; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.footer-brand { display: grid; gap: 14px; align-content: start; justify-items: start; }
.footer h4 { font-size: 13px; color: var(--faint); font-weight: 500; margin-bottom: 12px; letter-spacing: .02em; }
.footer-grid > div:not(.footer-brand) { display: grid; gap: 8px; align-content: start; }
.footer-grid a:not(.brand) { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.footer-grid a:not(.brand):hover { color: var(--text); }
.footer-word { margin: 48px 0 6px; font-weight: 700; font-size: clamp(76px, 18vw, 260px); line-height: .9; letter-spacing: -.01em; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .1); background: linear-gradient(180deg, rgba(178, 155, 255, .18), transparent 80%); -webkit-background-clip: text; background-clip: text; }
/* hover: the word comes closer while a white copy and a pre-rendered glow (fx/footer-glow.webp) fade in.
   Only transform and opacity animate, so every browser keeps it smooth (no live text-shadow blur). */
.footer-word { position: relative; display: table; margin-left: auto; margin-right: auto; cursor: default; transform-origin: 50% 60%;
  transition: transform .9s cubic-bezier(.16, 1, .3, 1); will-change: transform; }
.footer-word::before, .footer-word::after { position: absolute; pointer-events: none; opacity: 0; transition: opacity .7s cubic-bezier(.16, 1, .3, 1); will-change: opacity; }
.footer-word::before { content: ""; inset: -.54em; background: url(/fx/footer-glow.webp) 0 0 / 100% 100% no-repeat; }
.footer-word::after { content: attr(data-text); inset: 0; color: #fff; -webkit-text-stroke: 0; background: none; }
.footer-word:hover { transform: scale(1.07); }
.footer-word:hover::before, .footer-word:hover::after { opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- mobile tab bar */
.tabbar { display: none; position: fixed; z-index: 30; bottom: calc(12px + env(safe-area-inset-bottom)); left: 12px; right: 12px; padding: 6px; border-radius: 28px;
  background: rgba(18, 16, 28, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--lift), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 50px rgba(0, 0, 0, .55); }
.tabbar a, .tabbar button { position: relative; z-index: 1; flex: 1; display: grid; justify-items: center; gap: 2px; padding: 7px 2px; border: 0; border-radius: 22px; background: none; color: var(--muted); font-size: 10.5px; text-decoration: none; cursor: pointer; transition: color .25s, background .3s, transform .45s var(--ease-out); }
.tabbar .ic { width: 22px; height: 22px; }
.tabbar .on { color: var(--text); background: rgba(255, 255, 255, .12); }

/* ---------- dialogs: palette and project sheet share open/close/drag behaviour */
dialog { padding: 0; border: 0; background: none; color: inherit; max-width: none; max-height: none; overflow: visible; --drag: 0px; }
dialog::backdrop { background: rgba(4, 3, 10, .62); }
dialog[open]::backdrop { animation: fade .3s var(--ease); }
dialog.closing::backdrop { animation: fade-out .26s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.sh-grab { display: none; justify-content: center; padding: 10px 0 6px; cursor: grab; touch-action: none; }
.dragging, .dragging * { cursor: grabbing !important; }
.sh-content { position: relative; will-change: transform; }
.sheet:focus, .sheet:focus-visible, .palette-box:focus { outline: none; }
.sh-ghost { position: absolute; left: 0; width: 100%; pointer-events: none; }
dialog.closing-drag::backdrop { animation: fade-out .3s var(--ease) forwards; }
.sh-grab i { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.palette { width: min(640px, calc(100% - 24px)); margin: 12vh auto auto; }
.palette-box { border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, #1a1726, #110f19 140px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), var(--lift), 0 40px 100px rgba(0, 0, 0, .7);
  transform: translate3d(0, var(--drag), 0); }
.palette[open] .palette-box { animation: pop-in .38s var(--ease-out); }
.palette.closing .palette-box { animation: pop-out .24s var(--ease) forwards; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette-input .ic { width: 20px; height: 20px; color: var(--faint); }
.palette-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 17px var(--font); color: var(--text); }
.palette-input input::-webkit-search-cancel-button { display: none; }
.palette-list { max-height: min(56vh, 460px); overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.palette-group { padding: 10px 12px 6px; font-size: 12px; color: var(--faint); }
.palette-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer; color: inherit; text-decoration: none; }
.palette-item .pi-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(var(--glow), .2); color: var(--c1); box-shadow: inset 0 0 0 1px rgba(var(--glow), .35); flex: none; }
.palette-item .pi-ic .ic { width: 17px; height: 17px; }
.palette-item .pi-t { flex: 1; min-width: 0; } .palette-item .pi-t b { display: block; font-weight: 500; } .palette-item .pi-t span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item .pi-k { font: 11px var(--mono); color: var(--faint); }
.palette-item.on { background: var(--s2); }
.palette-item.on .pi-k { color: var(--accent); }
.palette-empty { padding: 34px 16px; text-align: center; color: var(--muted); }
.palette-foot { display: flex; gap: 14px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.palette-foot kbd { margin-right: 3px; }
@keyframes pop-in { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.97); } }
@keyframes pop-out { to { opacity: 0; transform: translate3d(0, 10px, 0) scale(.97); } }

.sheet-dialog { width: min(760px, calc(100% - 32px)); margin: auto; }
.sheet { position: relative; max-height: min(88vh, 860px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; border-radius: 30px; touch-action: pan-y;
  background: linear-gradient(180deg, #1a1726, #100e18 180px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 100px rgba(0, 0, 0, .7);
  transform: translate3d(0, var(--drag), 0); }
.sheet-dialog[open] .sheet { animation: pop-in .42s var(--ease-out); }
.sheet-dialog.closing .sheet { animation: pop-out .26s var(--ease) forwards; }
.sheet .sh-grab { position: absolute; top: 0; left: 0; right: 0; z-index: 7; }
.sh-close { position: absolute; top: 14px; right: 14px; z-index: 6; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(10, 9, 16, .7); color: #fff; cursor: pointer; transition: background .2s, transform .3s var(--ease-out); }
.sh-close:hover { background: rgba(40, 36, 60, .9); transform: rotate(90deg); }
.sh-close .ic { width: 18px; height: 18px; }
.sh-media { position: relative; height: 300px; overflow: hidden; isolation: isolate; touch-action: none; cursor: grab; background: radial-gradient(70% 90% at 50% 70%, rgba(var(--glow), .45), transparent 75%), #0b0a12; }
.sh-media .pframe, .sh-media .pphone { transform: none; transition: none; }
.sh-media.browser { padding: 34px 40px 0; }
.sh-media.phone { display: grid; justify-items: center; padding-top: 30px; }
.sh-media.phone .pphone { width: 210px; height: 450px; }
.sh-media.glyph { display: grid; place-items: center; }
.sh-media .shot img { animation: peek 14s cubic-bezier(.45, 0, .25, 1) 1s infinite alternate; transition: none; }
@keyframes peek { 0%, 15% { transform: translateY(0); } 85%, 100% { transform: translateY(var(--peek, 0)); } }
.sh-body { display: grid; gap: 14px; padding: 26px 30px 30px; }
.sh-body h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.sh-tag { color: var(--c1); font-size: 16px; }
.sh-list { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.sh-list li { position: relative; padding: 12px 14px 12px 40px; border-radius: 16px; background: rgba(255, 255, 255, .04); font-size: 14.5px; }
.sh-list li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 8px; height: 8px; border-radius: 3px; background: var(--c1); box-shadow: 0 0 10px var(--c1); }
.sh-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.sh-facts div { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); display: grid; gap: 2px; } .sh-facts span { font-size: 12px; color: var(--faint); } .sh-facts b { font-weight: 500; font-size: 14.5px; }
.sh-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sh-nav { display: flex; justify-content: space-between; gap: 8px; padding: 0 30px 26px; }
.sh-nav button { max-width: 48%; }
.sh-nav button span { overflow: hidden; text-overflow: ellipsis; }

/* ---------- toast */
.toast { position: fixed; z-index: 60; left: 50%; bottom: 28px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 99px; background: #fff; color: #050507; font-size: 14.5px; font-weight: 500;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5); transform: translate3d(-50%, 30px, 0); opacity: 0; pointer-events: none; transition: transform .45s var(--ease-out), opacity .3s var(--ease); }
.toast.show { transform: translate3d(-50%, 0, 0); opacity: 1; }
.toast .ic { width: 18px; height: 18px; color: #5333c9; }

/* ---------- guide pages */
.ghero { position: relative; isolation: isolate; padding: 140px 0 0; }
.ghero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.back { display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--text); } .back .ic { transition: transform .3s var(--ease); } .back:hover .ic { transform: translateX(-3px); }
.gtitle { margin-top: 18px; font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -.05em; font-weight: 600; }
.gfacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.gfacts div { display: grid; gap: 2px; padding: 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.gfacts b { font-weight: 500; }
.gaddr { display: grid; gap: 14px; padding: 26px; }
.gaddr-big { font-size: clamp(18px, 2.2vw, 24px); font-weight: 500; word-break: break-all; padding: 14px 0 4px; }
.gaddr-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.gaddr-acts .btn { background: rgba(0, 0, 0, .3); }
.down-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 16px 10px 14px; border-radius: 16px; background: rgba(255, 198, 92, .1); color: #ffd88f; font-size: 14.5px; }
.down-note .live-dot { background: var(--warn); box-shadow: 0 0 12px var(--warn); }
.gsteps-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.gprogress { position: sticky; top: 100px; display: grid; gap: 12px; padding: 22px; border-radius: var(--r-xl); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); justify-items: start; }
.gprogress .row { width: 100%; }
.gprogress h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.gprogress b { color: var(--accent); font-weight: 600; }
.bar { width: 100%; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #c8d94a, var(--accent)); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease-out); }
.gsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gstep { position: relative; display: flex; gap: 16px; padding: 18px; border-radius: var(--r-l); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), var(--lift); transition: background .3s var(--ease); }
.gstep:not(:last-child)::after { content: ""; position: absolute; left: 39px; top: 64px; bottom: -12px; width: 2px; background: linear-gradient(var(--s3), transparent); }
.gstep-check { position: relative; overflow: hidden; display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--s2); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: background .3s var(--ease), box-shadow .3s, transform .45s var(--ease-out); }
.gstep-check .n { font: 500 15px var(--mono); transition: transform .35s var(--ease), opacity .25s; }
.gstep-check .ic { position: absolute; width: 20px; height: 20px; color: #111; opacity: 0; transform: scale(.4) rotate(-20deg); transition: transform .4s var(--ease), opacity .25s; }
.gstep-check:hover { box-shadow: inset 0 0 0 1px rgba(230, 245, 107, .5); }
.gstep.done .gstep-check { background: var(--accent); box-shadow: 0 0 18px rgba(230, 245, 107, .45); }
.gstep.done .gstep-check .n { opacity: 0; transform: scale(.4); }
.gstep.done .gstep-check .ic { opacity: 1; transform: none; }
.gstep.done { background: rgba(230, 245, 107, .05); }
.gstep.done h3 { color: var(--muted); }
.gstep-body { display: grid; gap: 6px; min-width: 0; padding-top: 10px; }
.gstep-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.faq-wrap { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 32px; align-items: start; }
.faq-wrap h2 { font-size: clamp(32px, 4vw, 48px); }
.faq-help { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.faq { display: grid; gap: 8px; }
.faq details { border-radius: var(--r-l); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); transition: background .25s; }
.faq details[open] { background: rgba(255, 255, 255, .07); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq-x { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--s2); }
.faq-x::before, .faq-x::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
.faq-x::after { transform: rotate(90deg); }
details[open] .faq-x::after { transform: rotate(0); }
.faq-a { padding: 0 20px 18px; overflow: hidden; }

/* ---------- 404 */
.nf { position: relative; isolation: isolate; min-height: 100vh; display: grid; place-items: center; padding: 120px 0 60px; }
.nf-in { width: 100%; display: grid; place-items: center; }
.nf-card { width: min(560px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; padding: 44px 30px; }
.nf-num { font-size: clamp(90px, 18vw, 160px); font-weight: 700; letter-spacing: -.06em; line-height: .9; }
.nf-card h1 { font-size: 28px; font-weight: 600; }

/* ---------- responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-show { max-width: 680px; }
  .svc-grid, .comm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard, .pcard.featured { grid-column: span 1; }
  .pcard.featured .pmedia { height: 260px; }
  .status-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-card { padding: 20px 12px; }
  .st-card h3 { font-size: 17px; margin-top: 4px; }
  .st-chart, .st-axis, .st-mons { display: none; }
  .st-up { white-space: nowrap; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); } .footer-brand { grid-column: 1 / -1; }
  .gsteps-wrap, .faq-wrap { grid-template-columns: 1fr; }
  .gprogress { position: static; }
  .ghero-grid { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 860px) {
  .nav, .topbar .kbd-btn span, .topbar .kbd-btn kbd, .footer .kbd-btn { display: none; }
  .topbar-in { grid-template-columns: 1fr auto; }
  .topbar .kbd-btn { padding: 0; width: 40px; justify-content: center; }
  .tabbar { display: flex; }
  .footer { padding-bottom: 110px; }
  .toast { bottom: 100px; }
  .sec-head { margin-bottom: 22px; }
  .sec-tools { width: 100%; }
  .sh-grab { display: flex; }
  .sh-close { display: none; }
  .sh-media { padding-top: 22px !important; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  html { scroll-padding-top: 80px; }
  body { font-size: 15px; }
  .topbar { top: 10px; }
  .hero { padding-top: 104px; }
  .hero-title { font-size: clamp(44px, 13vw, 60px); }
  .hero-aurora { height: 760px; }
  .mm { gap: 12px; border-radius: 26px; }
  .mm-name { font-size: 26px; } .mm-logo { width: 48px; height: 48px; }
  .mm-title { font-size: 21px; }
  .mm-app { grid-template-columns: 38px 108px minmax(0, 1fr); height: 236px; font-size: 11.5px; border-radius: 14px; }
  .srv { width: 28px; height: 28px; } .srv img { width: 22px; height: 22px; } .srv .px { width: 18px; height: 18px; }
  .mm-channels { padding: 8px 4px; } .mm-voice { padding-left: 6px; } .av { width: 22px; height: 22px; font-size: 12px; }
  .mm-acts .btn { flex: 1; padding: 12px 14px; }
  .mm-more { display: none; }
  .svc-grid { gap: 10px; }
  .svc-live { font-size: 11px; height: 24px; padding: 0 10px 0 8px; }
  .svc-stage { height: 112px; }
  .v-img { width: 84px; height: 84px; }
  .v-gh { width: 100px; height: 100px; } .v-gh img { width: 54px; height: 54px; }
  .svc h3 { font-size: 19px; } .svc .kicker { font-size: 12px; margin-bottom: 8px; }
  .svc .addr code { font-size: 12.5px; }
  .svc-meta { font-size: 11px; min-height: 0; margin-bottom: 8px; }
  .svc-btn { min-height: 40px; padding: 8px 10px; font-size: 13.5px; }
  .pgrid { grid-template-columns: 1fr; }
  .pmedia, .pcard.featured .pmedia { height: 210px; }
  .pmedia.browser { padding: 20px 18px 0; }
  .pactions .btn.ghost:last-child { margin-left: 0; }
  .pactions { flex-wrap: wrap; }
  .st-sum { gap: 8px; } .st-sum div { padding: 12px 6px; } .st-sum b { font-size: 24px; } .st-sum span { font-size: 11.5px; }
  .status-grid { grid-template-columns: 1fr; gap: 10px; }
  .st-card { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "t h s" "t u s"; align-items: center; text-align: left; gap: 0 14px; padding: 16px 18px; }
  .st-card .tile { grid-area: t; width: 46px; height: 46px; }
  .st-card h3 { grid-area: h; margin: 0; font-size: 16px; }
  .st-card .st-up { grid-area: u; font-size: 12.5px; } .st-card .st-up b { font-size: 17px; }
  .st-card .st-state { grid-area: s; font-size: 12px; padding: 5px 10px 5px 9px; white-space: nowrap; gap: 7px; }
  .st-card h3 { font-size: 15px; }
  .card.glass { --rim: 20px; --core-inset: 14px; --core-blur: 18px; }
  .svc-grid .svc:first-child, .svc-grid .svc:last-child { grid-column: span 2; }
  .quick { gap: 6px; } .qchip { padding: 8px 12px 8px 9px; gap: 7px; font-size: 13.5px; }
  .pactions { gap: 6px; flex-wrap: nowrap; } .pactions .btn.sm { padding: 8px 12px; } .pactions .round { width: 40px; height: 40px; }
  .comm-grid { gap: 10px; } .comm { min-height: 0; } .comm-ic { width: 72px; height: 72px; margin-bottom: 6px; } .comm-ic img { width: 44px; height: 44px; }
  .comm h3 { font-size: 18px; } .comm p { font-size: 12.5px; } .comm-act { padding: 8px 12px; font-size: 13px; }
  .comm-flag { font-size: 10.5px; }
  .comm .comm-ic { margin-top: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ghero { padding-top: 104px; }
  .gstep { padding: 14px; gap: 12px; }
  .gstep:not(:last-child)::after { left: 35px; top: 60px; }
  .sheet-dialog { width: 100%; margin: auto 0 0; }
  .sheet { border-radius: 28px 28px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); }
  .sheet-dialog[open] .sheet { animation: sheet-up .5s var(--ease-out); }
  .sheet-dialog.closing .sheet { animation: sheet-down .3s var(--ease) forwards; }
  .sh-media { height: 240px; } .sh-media.browser { padding: 30px 18px 0; } .sh-media.phone .pphone { width: 180px; height: 390px; }
  .sh-body { padding: 18px 18px 22px; } .sh-nav { padding: 0 18px 22px; }
  .palette { width: 100%; margin: auto 0 0; }
  .palette-box { border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .palette[open] .palette-box { animation: sheet-up .45s var(--ease-out); }
  .palette.closing .palette-box { animation: sheet-down .28s var(--ease) forwards; }
  .palette-list { max-height: 52vh; }
  .palette-foot { display: none; }
}
@keyframes sheet-up { from { transform: translate3d(0, 100%, 0); } }
@keyframes sheet-down { to { transform: translate3d(0, 100%, 0); } }

/* lite: set automatically when the device can't keep the frame rate — keeps the look, drops the costly parts */
.lite .marquee, .lite .btn.ghost, .lite .qchip, .lite .addr, .lite .comm-act, .lite .seg, .lite .round, .lite .kbd-btn, .lite .svc-live, .lite .st-state { -webkit-backdrop-filter: none; backdrop-filter: none; }
.lite .btn.ghost { background: rgba(40, 36, 58, .92); } .lite .qchip, .lite .seg { background: rgba(30, 27, 44, .92); }
.lite .topbar-in, .lite .tabbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(16, 14, 26, .96); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .hero-title .w { opacity: 1; transform: none; }
}

/* ---------- project scenes: static styling only; motion lives in site.js (scenes). Every loop ends exactly where it starts. */
.pmedia.scene, .sh-media.scene { padding-bottom: 46px; }
.sc { position: relative; z-index: 1; color: #fff; }
.sc b, .sc i, .sc em { display: block; font-style: normal; }
.hint-app { width: 18px; height: 18px; border-radius: 5px; }
/* news: rows step up one at a time; the row in the middle is lifted and gets its check */
.sc-news { width: min(86%, 330px); }
.sc-news-win { position: relative; height: 150px; margin: 0 -26px; padding: 0 40px; overflow: hidden; -webkit-mask: linear-gradient(transparent 0, #000 26%, #000 74%, transparent 100%); mask: linear-gradient(transparent 0, #000 26%, #000 74%, transparent 100%); }
.sc-news-feed { position: relative; will-change: transform; }
.sc-row { display: flex; align-items: center; gap: 10px; height: 42px; margin-bottom: 8px; padding: 0 12px; border-radius: 14px; background: rgba(0, 0, 0, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transform-origin: center; }
.sc-thumb { width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(150deg, var(--c1), var(--c2)); flex: none; }
.sc-lines { flex: 1; display: grid; gap: 5px; }
.sc-lines b { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .5); }
.sc-lines b + b { background: rgba(255, 255, 255, .22); }
.sc-ok { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); transform: scale(0); box-shadow: 0 0 14px rgba(230, 245, 107, .6); }
.sc-ok svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #111; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* study: speech -> transcript that keeps growing */
.sc-study { display: flex; align-items: center; gap: 10px; }
.sc-wave { display: flex; align-items: center; gap: 4px; height: 76px; }
.sc-wave i { width: 5px; height: 100%; border-radius: 3px; background: linear-gradient(180deg, var(--c1), var(--c2)); box-shadow: 0 0 10px rgba(var(--glow), .55); transform: scaleY(.3); }
.sc-flow { position: relative; width: 50px; height: 20px; }
.sc-flow i { position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(230, 245, 107, .8); opacity: 0; }
.sc-note { position: relative; width: 118px; height: 84px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); overflow: hidden; }
.sc-note-feed { position: relative; will-change: transform; }
.sc-note-feed b { width: var(--w); height: 15px; padding-top: 4px; }
.sc-note-feed b i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .6); transform-origin: left; }
.sc-pen { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px 2px rgba(230, 245, 107, .7); }
/* deals: live price chart */
.sc-deal { display: grid; justify-items: center; gap: 8px; width: 240px; }
.sc-chart { width: 220px; height: 70px; overflow: visible; }
.sc-chart-line { fill: none; stroke: var(--c1); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(var(--glow), .8)); }
.sc-chart-area { fill: rgba(var(--glow), .14); }
.sc-chart-dot { fill: var(--accent); filter: drop-shadow(0 0 7px rgba(230, 245, 107, .9)); }
.sc-deal-card { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 16px; min-width: 220px; border-radius: 16px; background: rgba(0, 0, 0, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.sc-deal-name { font-size: 12px; color: rgba(255, 255, 255, .6); }
.sc-deal-price { font: 600 19px/1.1 var(--mono, ui-monospace, monospace); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-deal-badge { position: absolute; top: -13px; right: -10px; padding: 4px 8px; border-radius: 9px; background: var(--accent); color: #111; font-weight: 700; font-size: 12px; transform: scale(0); box-shadow: 0 0 16px rgba(230, 245, 107, .55); }
/* wine */
.sc-wine { width: 128px; height: 128px; display: grid; place-items: center; }
.sc-wine svg { position: absolute; inset: 0; overflow: visible; transform: rotate(-90deg); }
.sc-wine circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.sc-wine-bg { stroke: rgba(255, 255, 255, .1); }
.sc-wine-arc { stroke: var(--c1); stroke-dasharray: 314.16; stroke-dashoffset: 314.16; }
.sc-bubbles { position: absolute; inset: 22px; border-radius: 50%; overflow: hidden; }
.sc-bubbles i { position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 6px rgba(var(--glow), .9); opacity: 0; }
.sc-wine-score { position: relative; display: grid; justify-items: center; line-height: 1; }
.sc-wine-score b { font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(var(--glow), .6); }
.sc-wine-score small { color: rgba(255, 255, 255, .55); font-size: 11px; margin-top: 4px; }
/* workspace: every step all cards advance one column; the finished one leaves and a new task arrives */
.sc-kanban { display: grid; grid-template-columns: repeat(3, 84px); gap: 8px; }
.sc-col { display: grid; align-content: start; gap: 6px; padding: 8px; height: 118px; border-radius: 12px; background: rgba(0, 0, 0, .4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.sc-col small { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.sc-col i { height: 18px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.sc-moving { position: absolute; left: 8px; top: 72px; width: 68px; height: 22px; border-radius: 6px; background: linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: 0 0 16px rgba(var(--glow), .55); will-change: transform, opacity; }
/* media hub */
.sc-media { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sc-media-pic { position: relative; width: 150px; height: 84px; border-radius: 14px; overflow: hidden; background: linear-gradient(140deg, var(--c1), var(--c2) 60%, var(--c3)); box-shadow: 0 0 30px rgba(var(--glow), .4); will-change: transform, opacity, filter; }
.sc-sun { position: absolute; width: 28px; height: 28px; right: 20px; top: 13px; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 0 18px rgba(255, 255, 255, .6); }
.sc-hill { position: absolute; left: -10%; right: -10%; bottom: -34px; height: 72px; border-radius: 50%; background: rgba(0, 0, 0, .38); }
.sc-progress { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 4px; border-radius: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px rgba(230, 245, 107, .8); }
.sc-media-link { position: relative; width: 214px; height: 30px; padding: 0 14px; border-radius: 999px; background: rgba(0, 0, 0, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font: 500 13px/30px var(--mono, ui-monospace, monospace); text-align: left; white-space: pre; }
.sc-media-link em { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: var(--accent); color: #111; font-weight: 700; font-family: inherit; opacity: 0; box-shadow: 0 0 18px rgba(230, 245, 107, .55); }
.sc-pointer { position: absolute; left: 0; top: 0; width: 22px; height: 22px; fill: #fff; stroke: #111; stroke-width: 1.4; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); opacity: 0; }
/* maredit: the timeline scrolls under a fixed playhead */
.sc-edit { display: grid; gap: 12px; width: min(84%, 300px); }
.sc-caption { display: flex; justify-content: center; gap: 7px; font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: .02em; }
.sc-caption span { display: inline-block; color: rgba(255, 255, 255, .32); }
.sc-tracks { position: relative; height: 66px; padding: 8px 0; border-radius: 12px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; }
.sc-reel { display: flex; width: max-content; will-change: transform; }
.sc-set { display: grid; gap: 5px; padding-right: 4px; }
.sc-set > div { display: flex; gap: 4px; }
.sc-set > div > i { width: var(--w); height: 16px; border-radius: 4px; background: linear-gradient(150deg, var(--c1), var(--c2)); }
.sc-set > div:nth-child(2) i { background: rgba(255, 255, 255, .2); }
.sc-audio { align-items: center; height: 14px; gap: 2px !important; width: 240px; }
.sc-audio i { flex: 1; height: 100%; border-radius: 1px; background: rgba(var(--glow), .55); }
.sc-head { position: absolute; top: 3px; bottom: 3px; left: 42%; width: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.sc-head::before { content: ""; position: absolute; top: -3px; left: -4px; width: 10px; height: 8px; border-radius: 2px 2px 5px 5px; background: var(--accent); }
/* margpt */
.sc-gpt { display: flex; align-items: center; gap: 16px; }
.sc-gpt-shot { position: relative; display: grid; gap: 8px; width: 150px; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.sc-gpt-shot b { width: var(--w); height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.sc-gpt-shot b:nth-child(2), .sc-gpt-shot b:nth-child(3) { margin-left: 14px; }
.sc-gpt-scan { position: absolute; left: 6px; right: 6px; top: 0; height: 2px; border-radius: 1px; background: var(--accent); box-shadow: 0 0 14px 3px rgba(230, 245, 107, .5); }
.sc-gpt-side { position: relative; display: grid; gap: 12px; justify-items: start; min-width: 118px; }
.sc-gpt-mic { position: relative; width: 14px; height: 14px; border-radius: 50%; background: #ff6b6b; box-shadow: 0 0 12px rgba(255, 107, 107, .8); }
.sc-gpt-mic i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 107, 107, .7); opacity: 0; }
.sc-gpt-answer { position: relative; display: grid; gap: 4px; min-width: 118px; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: rgba(0, 0, 0, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 0 24px rgba(230, 245, 107, .15); }
.sc-gpt-answer small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.sc-gpt-answer span { height: 20px; font: 600 18px/20px var(--mono, ui-monospace, monospace); color: var(--accent); text-shadow: 0 0 14px rgba(230, 245, 107, .5); white-space: pre; }
.sc-gpt-think { position: absolute; left: 14px; bottom: 15px; display: flex !important; gap: 5px; }
.sc-gpt-think i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .75); opacity: 0; }
/* sheet: a calm pulsing glow behind screenshots */
.sh-media.browser::before, .sh-media.phone::before { content: ""; position: absolute; left: 50%; top: 60%; width: 70%; height: 80%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--glow), .55), transparent); transform: translate(-50%, -50%); animation: sh-pulse 4.5s ease-in-out infinite alternate; }
@keyframes sh-pulse { from { opacity: .45; transform: translate(-50%, -50%) scale(.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
/* sections must not clip cards that slide in from below or their glow */
.sec, .footer { content-visibility: visible; contain-intrinsic-size: none; }

/* ---------- FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-item.card { padding: 0 !important; min-height: 0 !important; border-radius: 20px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: none; width: 14px; height: 14px; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0deg); }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--muted); line-height: 1.6; }
.faq-item p a { color: var(--accent); white-space: nowrap; }
.faq-item p a .ic { width: 14px; height: 14px; vertical-align: -2px; }
.faq-page { padding-top: 120px; }
.faq-page .hero-lead { margin-bottom: 28px; }
.faq-item.card { background: rgba(18, 15, 30, .58) !important; -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.faq-item p { color: rgba(255, 255, 255, .72); }
.lite .faq-item.card { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(22, 19, 36, .92) !important; }

/* ---------- quick search: launchpad grid */
.palette { width: min(920px, calc(100% - 24px)); margin-top: 8vh; }
.palette-box { background: rgba(22, 19, 34, .78) !important; -webkit-backdrop-filter: blur(28px) saturate(1.3); backdrop-filter: blur(28px) saturate(1.3); }
.palette-input { padding: 18px 22px; }
.palette-input input { font-size: 20px; }
.pc-chips { display: flex; gap: 8px; padding: 12px 18px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.pc-chips::-webkit-scrollbar { display: none; }
.pc-chip { flex: none; padding: 8px 14px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .06); color: var(--muted); font: 500 14px var(--font); cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease-out); }
.pc-chip:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
.pc-chip.on { background: rgba(255, 255, 255, .16); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.palette-list { max-height: min(64vh, 620px); padding: 14px; }
.pt-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px 4px; padding-bottom: 6px; }
.pt-tile { position: relative; display: grid; justify-items: center; gap: 9px; padding: 12px 6px 10px; border: 0; border-radius: 18px; background: none; color: inherit; cursor: pointer; text-align: center; transition: background .25s; }
.pt-tile b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 13.5px; }
.pt-tile.on { background: rgba(255, 255, 255, .08); }
.pt-art { position: relative; display: block; width: 78px; height: 78px; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 90% at 50% 100%, var(--c2), var(--c3) 75%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 22px rgba(0, 0, 0, .4); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.pt-tile.on .pt-art, .pt-tile:hover .pt-art { transform: translateY(-3px) scale(1.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 12px 30px rgba(var(--glow), .45); }
.pt-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pt-brand { background: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); }
.pt-brand img { object-fit: contain; }
.pt-3d { background: radial-gradient(120% 90% at 50% 100%, var(--c2), var(--c3) 75%); }
.pt-3d img { padding: 10px; }
.pt-shot img { transform: scale(1.02); }
.pt-shot.phone img { object-position: center 8%; }
.pt-scene { display: grid; place-items: center; }
.pt-mini { display: grid; place-items: center; width: 300px; height: 190px; transform: scale(.3); pointer-events: none; }
.pt-mini .sc { margin: 0; }
.pt-dot { position: absolute; top: 12px; right: calc(50% - 44px); width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px #17141f; background: var(--faint); }
.pt-dot.pd-live { background: #3fd68a; } .pt-dot.pd-beta { background: #ffb547; } .pt-dot.pd-dev { background: #6aa3ff; } .pt-dot.pd-closed { background: #a28bff; } .pt-dot.pd-paused, .pt-dot.pd-archive { background: rgba(255, 255, 255, .35); }
@media (max-width: 760px) { .pt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pt-art { width: 62px; height: 62px; border-radius: 16px; } .pt-mini { transform: scale(.24); } .pt-dot { right: calc(50% - 36px); } .palette-list { max-height: 62vh; } }
@media (max-width: 420px) { .pt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lite .palette-box { -webkit-backdrop-filter: none; backdrop-filter: none; background: #17141f !important; }
.pt-scene { display: block; }
.pt-mini { position: absolute; left: 50%; top: 50%; width: 300px; height: 190px; margin: -95px 0 0 -150px; display: grid; place-items: center; transform: scale(.32); }
@media (max-width: 760px) { .pt-mini { transform: scale(.26); } .palette-list { max-height: 68vh; } }
.pt-icon { background: none; border-radius: 22%; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.pt-icon img { object-fit: cover; border-radius: inherit; }
/* macOS app icons carry the standard transparent margin (824 of 1024 px); scale it away so the icon fills the tile */
.pt-mac img { transform: scale(var(--zoom, 1.243)); }
.pt-gen img { transform: scale(var(--zoom, 1.1)); }
.pt-icon[style] img { transform: scale(var(--zoom)); }
/* quick search keeps one size while filtering, and the mobile sheet stays docked to the bottom */
.palette-list { height: min(64vh, 620px); }
@media (max-width: 760px) { .palette { width: 100%; max-width: 100%; margin: auto 0 0; } .palette-list { height: 68vh; max-height: none; } }
.palette-item .pi-ic.pi-img { overflow: hidden; background: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); } .pi-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* app icons: the tile clips the artwork; no inner ring on hover */
.pt-icon img { border-radius: 0; }
.pt-tile.on .pt-icon, .pt-tile:hover .pt-icon { box-shadow: 0 12px 30px rgba(var(--glow), .45); }
