/*
 * Kumo Visuals - site skin.
 *
 * The client's rule, kept here: one accent, in one role. #FF5FAE is light - it lights edges, glows
 * behind glass, fills what is on, and marks the one action on a screen that matters. Panels, text and
 * chrome stay neutral. Little is said, so what is said has room.
 */

/* ------------------------------------------------------------------ tokens */

:root {
  color-scheme: dark;

  --accent: #FF5FAE;
  --accent-2: #FF9BD0;
  --accent-rgb: 255, 95, 174;

  --bg: #060609;
  --bg-2: #0A0A0E;
  --panel: rgba(255, 255, 255, .028);
  --panel-2: rgba(255, 255, 255, .05);
  --panel-3: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --text: #ECEAF2;
  --dim: rgba(236, 234, 242, .55);
  --faint: rgba(236, 234, 242, .3);
  --shadow: 0 40px 90px -46px rgba(0, 0, 0, .95);
  --glow: 0 0 60px -12px rgba(var(--accent-rgb), .45);

  --r-m: 14px;
  --r-l: 20px;
  --r-xl: 28px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --brand: 'Audiowide', 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --head: 'Manrope', 'Inter Tight', 'Segoe UI', system-ui, sans-serif;
  --body: 'Manrope', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'JetBrains Mono', 'Cascadia Mono', monospace;

  --gutter: clamp(18px, 5vw, 70px);
  --maxw: 1240px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #F5F3F8;
  --bg-2: #FFFFFF;
  --panel: rgba(17, 13, 24, .035);
  --panel-2: rgba(17, 13, 24, .055);
  --panel-3: rgba(17, 13, 24, .08);
  --line: rgba(17, 13, 24, .09);
  --line-2: rgba(17, 13, 24, .16);
  --text: #16131D;
  --dim: rgba(22, 19, 29, .62);
  --faint: rgba(22, 19, 29, .38);
  --shadow: 0 24px 60px -34px rgba(38, 24, 44, .45);
  --glow: 0 0 50px -14px rgba(var(--accent-rgb), .35);
}

/* ------------------------------------------------------------------ base */

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15.5px/1.66 var(--body);
  letter-spacing: -.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; letter-spacing: -.035em; margin: 0; line-height: 1.02; }
h2 { font-size: clamp(27px, 3.4vw, 44px); }
h3 { font-size: 17px; letter-spacing: -.016em; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: .92em; }
::selection { background: rgba(var(--accent-rgb), .3); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb), .45); background-clip: content-box; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------------ backdrop */

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i {
  will-change: transform;
  position: absolute; border-radius: 50%; filter: blur(110px);
  background: radial-gradient(circle, rgba(var(--accent-rgb), .42), transparent 70%);
}
.aurora i:nth-child(1) { width: 60vw; height: 60vw; left: -18vw; top: -22vw; opacity: .5; }
.aurora i:nth-child(2) { width: 44vw; height: 44vw; right: -12vw; top: 34vh; opacity: .22; background: radial-gradient(circle, rgba(170, 130, 255, .45), transparent 70%); }
html[data-theme="light"] .aurora i { opacity: .28; }

.scroll-line { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), .8); z-index: 60; pointer-events: none; }

/* The measure of the page, drawn: two hairlines where the column starts and ends. Everything else on
   the page lines up with them, which is most of what makes a layout look deliberate. */
.rules { position: fixed; inset: 0; z-index: 1; pointer-events: none; display: flex; justify-content: center; }
.rules i {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  border-left: 1px solid var(--line); border-right: 1px solid var(--line); opacity: .6;
}

/* A soft light the page carries under the cursor - far too faint to notice, loud by its absence. */
.spot {
  position: fixed; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px;
  z-index: 1; pointer-events: none; opacity: 0; will-change: transform;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .075), transparent 62%);
  transition: opacity .7s var(--ease);
}
html[data-theme="light"] .spot { background: radial-gradient(circle, rgba(var(--accent-rgb), .12), transparent 62%); }

.mark {
  width: 1em; height: 1em; flex: none; display: block;
  background: currentColor;
  -webkit-mask: url(/mark.png) center / contain no-repeat;
  mask: url(/mark.png) center / contain no-repeat;
}

/* ------------------------------------------------------------------ topbar */

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 16px var(--gutter);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border-bottom: 1px solid transparent;
  transition: padding .45s var(--ease), border-color .45s var(--ease);
}
.topbar.stuck { padding: 10px var(--gutter); border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--brand); font-weight: 640; letter-spacing: .05em; font-size: 13.5px; }
.brand .mark { font-size: 24px; color: var(--accent); filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), .45)); transition: transform 1s var(--ease); }
.brand:hover .mark { transform: rotate(180deg); }
.brand em { font-style: normal; color: var(--dim); }

.topbar nav { display: flex; gap: 4px; margin-left: auto; }
.topbar nav a { position: relative; padding: 8px 14px; border-radius: 99px; font-size: 13.5px; color: var(--dim); transition: color .3s var(--ease); }
.topbar nav a:hover, .topbar nav a.active { color: var(--text); }
.topbar nav a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1.5px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.top-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--dim);
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-1px); }
.icon-btn svg { width: 16px; height: 16px; }
.lang-btn { width: auto; padding: 0 11px; font-size: 12px; letter-spacing: .06em; font-weight: 600; }
.burger { display: none; }

/* ------------------------------------------------------------------ buttons */

.button {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 24px; height: 48px; border-radius: 13px; cursor: pointer; white-space: nowrap;
  font-size: 14px; font-weight: 600; font-family: var(--head); letter-spacing: -.012em;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .4s var(--ease), background .3s var(--ease), border-color .3s var(--ease), box-shadow .4s var(--ease), opacity .2s;
}
/* A light runs across the face on hover - the one thing that reads as a surface rather than a rectangle. */
.button::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .16) 50%, transparent 62%);
}
.button:hover::after { transform: translateX(120%); transition: transform .85s var(--ease); }
.button:hover { background: var(--panel-2); border-color: var(--line-2); transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.985); }
.button[disabled] { opacity: .5; pointer-events: none; }
.button.primary {
  background: var(--accent); border-color: rgba(255, 255, 255, .18); color: #12050B; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -8px 18px -10px rgba(0, 0, 0, .5),
    0 14px 38px -18px rgba(var(--accent-rgb), 1);
}
.button.primary:hover { background: var(--accent-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 20px 46px -18px rgba(var(--accent-rgb), 1); }
.button.primary::after { background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%); }
.button.small { height: 36px; padding: 0 15px; font-size: 13px; border-radius: 10px; }
.button.tiny { height: 28px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.button.full { width: 100%; }
.button.danger { color: #FF8080; border-color: rgba(255, 128, 128, .28); background: rgba(255, 80, 80, .07); }
.button.danger:hover { background: rgba(255, 80, 80, .13); border-color: rgba(255, 128, 128, .45); }
.button svg { width: 16px; height: 16px; }
.button .arrow { transition: transform .4s var(--ease); }
.button:hover .arrow { transform: translateX(4px); }

/* ------------------------------------------------------------------ layout */

main { position: relative; z-index: 2; }
.page { display: none; }
.page.on { display: block; }

.wrap { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(60px, 8vw, 112px) 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.lead { color: var(--dim); font-size: clamp(15px, 1.4vw, 17px); max-width: 44ch; }

/* one motion for everything that arrives: up, in, and out of blur */
.rise { opacity: 0; transform: translateY(26px); filter: blur(6px); }
.rise.seen { opacity: 1; transform: none; filter: none; transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; filter: none; } }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; min-height: min(86vh, 800px); display: flex; align-items: center; padding: clamp(40px, 6vw, 70px) 0; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(30px, 5vw, 60px); align-items: center; }

.wordmark {
  font-family: var(--brand); font-size: clamp(46px, 8.6vw, 122px); line-height: .94;
  letter-spacing: -.01em; margin: 22px 0 0; font-weight: 400;
}
.wordmark span { color: var(--accent); text-shadow: 0 0 60px rgba(var(--accent-rgb), .4); }
.hero .lead { margin-top: 26px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

.mark-stage { perspective: 1000px; display: grid; place-items: center; min-height: 320px; }
.mark3d { position: relative; width: clamp(170px, 21vw, 270px); aspect-ratio: 1; transform-style: preserve-3d; will-change: transform; }
.mark-spin { position: absolute; inset: 0; transform-style: preserve-3d; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mark3d .m-layer {
  position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent);
  opacity: var(--o); transform: translateZ(var(--z)) rotate(var(--r));
}
/* The face of the mark is lit rather than filled: light at the top left, the accent through the
   middle, and the accent falling into shadow at the bottom. The same one accent, given a direction. */
.mark3d .m-layer.front {
  background: linear-gradient(152deg,
    var(--accent-2) 0%,
    var(--accent) 42%,
    color-mix(in srgb, var(--accent) 58%, #24060F) 100%);
  filter: drop-shadow(0 18px 44px rgba(var(--accent-rgb), .4));
}

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 1px; height: 46px; background: linear-gradient(var(--line-2), transparent); overflow: hidden; }
.scroll-cue i { position: absolute; left: -1px; width: 3px; height: 14px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: cue 2.6s var(--ease-io) infinite; }
@keyframes cue { 0% { top: -14px; opacity: 0; } 30% { opacity: 1; } 100% { top: 46px; opacity: 0; } }

/* ------------------------------------------------------------------ counters */

.band { border-block: 1px solid var(--line); }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); }
.counter {
  position: relative; padding: clamp(24px, 3vw, 38px) 0 clamp(24px, 3vw, 38px) clamp(16px, 2.2vw, 30px);
  border-left: 1px solid var(--line);
}
.counter:first-child { border-left: none; padding-left: 0; }
/* A hairline that lights under the figure you are reading, and only that one. */
.counter::after {
  content: ''; position: absolute; left: clamp(16px, 2.2vw, 30px); right: 0; bottom: 0; height: 1px;
  background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .8);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease);
}
.counter:first-child::after { left: 0; }
.counter:hover::after { transform: scaleX(1); }
.counter b {
  display: block; font-family: var(--head); font-size: clamp(32px, 4.6vw, 58px); font-weight: 700;
  letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums;
}
.counter span {
  display: block; margin-top: 10px; font-size: 11px; color: var(--faint);
  letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
}

/* ------------------------------------------------------------------ lines */

.lines { list-style: none; margin: 0; padding: 0; }
.lines li {
  display: flex; align-items: baseline; gap: clamp(14px, 3vw, 42px); padding: clamp(20px, 2.6vw, 30px) 4px;
  border-top: 1px solid var(--line); transition: padding-left .5s var(--ease), border-color .5s var(--ease);
}
.lines li:last-child { border-bottom: 1px solid var(--line); }
.lines li:hover { padding-left: 16px; border-color: var(--line-2); }
.lines li em {
  font-style: normal; font-size: 11px; letter-spacing: .14em; color: var(--faint); font-weight: 600;
  min-width: 2.4em; transition: color .4s var(--ease);
}
.lines li:hover em { color: var(--accent); }
.lines li b { font-family: var(--head); font-size: clamp(18px, 2.1vw, 25px); font-weight: 600; letter-spacing: -.03em; min-width: 8.5em; }
.lines li span { color: var(--dim); font-size: 14.5px; }
.lines li i {
  margin-left: auto; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--panel-3);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.lines li:hover i { background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* ------------------------------------------------------------------ the terms */

.terms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }

.term {
  position: relative; overflow: hidden; display: grid; gap: 4px; align-content: start; text-align: left;
  padding: 24px 22px 22px; border-radius: 18px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font-family: var(--head);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
  transition: transform .5s var(--ease), border-color .4s var(--ease), background .4s var(--ease),
    box-shadow .5s var(--ease);
}
.term::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 90% at 50% -20%, rgba(var(--accent-rgb), .2), transparent 62%);
  transition: opacity .5s var(--ease);
}
.term:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--panel-2); }
.term:hover::after { opacity: .55; }
.term.on {
  border-color: rgba(var(--accent-rgb), .5); background: var(--panel-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(var(--accent-rgb), .14), var(--glow);
}
.term.on::after { opacity: 1; }
/* The chosen tile is capped with light, the way a lit edge marks state everywhere else in the client. */
.term.on::before {
  content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 1px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.term > * { position: relative; }
/* In the flow, and kept on every tile even when it has nothing to say: an absolute badge got clipped
   by the card's own rounding, and a badge only some cards reserve room for makes the row of names
   sit at different heights. */
.term .badge {
  font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; line-height: 1;
  color: var(--accent); font-weight: 700; margin-bottom: 10px; min-height: 10px;
  white-space: nowrap;   /* two lines here and this tile's name sits lower than the rest of the row */
}
.term .t-name { font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
.term .t-term { font-size: 12px; color: var(--faint); letter-spacing: .04em; }
.term .t-price { margin-top: 12px; font-size: 25px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.term .t-note { font-size: 12px; color: var(--dim); min-height: 18px; }

.term-bar {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); flex-wrap: wrap;
  margin-top: clamp(26px, 3.4vw, 40px); padding-top: clamp(22px, 2.6vw, 30px); border-top: 1px solid var(--line);
}
.term-sum { display: grid; gap: 3px; }
.term-name { font-family: var(--head); font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
.term-note { font-size: 13px; color: var(--dim); }
.term-price { margin-left: auto; display: flex; align-items: baseline; gap: 6px; font-family: var(--head); font-weight: 700; letter-spacing: -.05em; }
.term-price b { font-size: clamp(42px, 6vw, 68px); line-height: .9; font-variant-numeric: tabular-nums; }
.term-price em { font-style: normal; font-size: clamp(18px, 2.2vw, 24px); color: var(--dim); }

.service {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(34px, 5vw, 60px);
  padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim);
}
.service i { flex: 1; height: 1px; background: var(--line); min-width: 20px; }
.service b { font-family: var(--head); font-size: 19px; font-weight: 620; color: var(--text); }

/* ------------------------------------------------------------------ faq */

.faq { display: grid; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 2px; display: flex; align-items: center; gap: 16px; font-family: var(--head); font-weight: 560; font-size: 16px; transition: color .3s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary i { margin-left: auto; width: 12px; height: 12px; position: relative; flex: none; transition: transform .45s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; background: var(--accent); border-radius: 2px; }
.faq summary i::before { left: 0; right: 0; top: 5.5px; height: 1.5px; }
.faq summary i::after { top: 0; bottom: 0; left: 5.5px; width: 1.5px; transition: opacity .3s var(--ease); }
.faq details[open] summary i { transform: rotate(180deg); }
.faq details[open] summary i::after { opacity: 0; }
.faq .answer { padding: 0 2px 24px; color: var(--dim); font-size: 14.5px; max-width: 64ch; animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-6px); } }

/* ------------------------------------------------------------------ footer */

footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 30px 0; margin-top: 40px; }
.foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; margin-left: auto; font-size: 13.5px; }
.foot nav a { color: var(--dim); transition: color .3s var(--ease); }
.foot nav a:hover { color: var(--text); }
.foot-note { font-size: 12.5px; color: var(--faint); }

/* ------------------------------------------------------------------ toasts + modal */

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 9px; justify-items: end; }
.toast {
  padding: 12px 17px; border-radius: 12px; font-size: 13.5px; max-width: 340px;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg-2) 90%, transparent);
  backdrop-filter: blur(16px); box-shadow: var(--shadow); animation: toastIn .5s var(--ease) both;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.toast.ok { border-left: 2px solid var(--accent); }
.toast.bad { border-left: 2px solid #FF6B6B; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }

.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 3, 8, .72); backdrop-filter: blur(8px); animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  position: relative; width: min(100%, 460px); max-height: 88vh; overflow: auto; padding: 30px;
  border-radius: var(--r-l); border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: var(--shadow);
  animation: modalIn .5s var(--ease) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal-card h2 { font-size: 22px; }
.modal-card h2 small { font-family: var(--mono); font-size: 12px; color: var(--faint); font-weight: 400; }
.modal-card p { color: var(--dim); font-size: 14px; }
.modal-card > * + * { margin-top: 14px; }
.modal-close { position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); cursor: pointer; display: grid; place-items: center; }
.modal-close:hover { color: var(--text); }

/* ------------------------------------------------------------------ forms */

label.field { display: grid; gap: 7px; font-size: 12.5px; color: var(--dim); }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input:not([type]), select, textarea {
  width: 100%; height: 46px; padding: 0 15px; border-radius: 12px; background: var(--panel);
  border: 1px solid var(--line); color: var(--text); font-size: 14.5px; font-family: var(--body);
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(var(--accent-rgb), .55); background: var(--panel-2); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .1); }
input::placeholder { color: var(--faint); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23888' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 11px; padding-right: 36px; }
.form-error { color: #FF7C7C; font-size: 13px; min-height: 19px; }

/* ------------------------------------------------------------------ auth */

.auth-shell {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--panel);
  margin: clamp(34px, 6vw, 80px) 0;
}
.auth-art { position: relative; padding: clamp(30px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 20px; overflow: hidden; border-right: 1px solid var(--line); }
.auth-art::before { content: ''; position: absolute; inset: auto -30% -50% -30%; height: 90%; background: radial-gradient(circle, rgba(var(--accent-rgb), .26), transparent 65%); filter: blur(46px); }
.auth-art > * { position: relative; }
.auth-art .mark { font-size: 44px; color: var(--accent); filter: drop-shadow(0 0 22px rgba(var(--accent-rgb), .5)); animation: float 9s var(--ease-io) infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.auth-art h2 { font-size: clamp(23px, 2.4vw, 30px); }
.auth-art ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 13.5px; color: var(--dim); }
.auth-art li { display: flex; align-items: center; gap: 11px; }
.auth-art li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex: none; }
.auth-card { padding: clamp(28px, 4vw, 46px); display: grid; align-content: center; gap: 18px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); width: fit-content; }
.tabs button { padding: 8px 18px; border-radius: 9px; border: none; background: transparent; color: var(--dim); cursor: pointer; font-size: 13.5px; font-weight: 550; transition: color .3s var(--ease), background .3s var(--ease); }
.tabs button.active { background: var(--panel-3); color: var(--text); }
.auth-card form { display: grid; gap: 14px; }

/* ------------------------------------------------------------------ store */

.page-head { margin: clamp(30px, 5vw, 60px) 0 40px; }
.page-head h1 { font-size: clamp(34px, 5vw, 60px); margin-top: 18px; font-family: var(--head); font-weight: 620; letter-spacing: -.03em; }
.page-head .lead { margin-top: 16px; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filter-row button { padding: 8px 15px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); cursor: pointer; font-size: 13px; transition: color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.filter-row button:hover { color: var(--text); border-color: var(--line-2); }
.filter-row button.active { color: var(--text); border-color: rgba(var(--accent-rgb), .5); box-shadow: inset 0 0 18px -10px rgba(var(--accent-rgb), 1); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; padding-bottom: 60px; }
.product {
  position: relative; padding: 16px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease);
}
.product:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--item) 45%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 44px -22px var(--item); }
.product-art {
  position: relative; aspect-ratio: 5 / 4; border-radius: var(--r-m); overflow: hidden;
  display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 14px;
}
.product-art::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 118%, color-mix(in srgb, var(--item) 34%, transparent), transparent 64%);
}
/* A hairline floor under the piece, so it stands on something instead of floating in a box. */
.product-art::after {
  content: ''; position: absolute; left: 18%; right: 18%; bottom: 22%; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--item) 70%, transparent), transparent);
  opacity: .5;
}
.product-art .art {
  position: relative; width: 62%; height: auto; overflow: visible;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--item) 65%, transparent));
  transition: transform .8s var(--ease);
}
.product:hover .art { transform: translateY(-5px) scale(1.04); }
.product .cat { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.product h3 { margin: 5px 0 14px; font-size: 15.5px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product .price { font-family: var(--head); font-weight: 620; font-size: 16px; }
.owned { font-size: 12px; color: var(--accent); }

.skeleton { height: 250px; border-radius: var(--r-l); border: 1px solid var(--line); background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%); background-size: 260% 100%; animation: shimmer 1.5s linear infinite; }
@keyframes shimmer { to { background-position: -160% 0; } }
.loading-ring { width: 26px; height: 26px; margin: 60px auto; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin2 .8s linear infinite; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.empty { color: var(--dim); font-size: 14px; padding: 30px 0; }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
  .terms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
  .terms { grid-template-columns: 1fr; }
}

@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; }
  .mark-stage { order: -1; min-height: 220px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { border-right: none; border-bottom: 1px solid var(--line); }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .counter:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 760px) {
  .topbar nav { display: none; }
  .topbar nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: var(--gutter); right: var(--gutter);
    padding: 10px; border-radius: var(--r-m); border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: var(--shadow);
  }
  .burger { display: grid; }
  .top-actions { margin-left: auto; }
  .lines li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .lines li i { display: none; }
  .dial-arrow { display: none; }
  .foot nav { margin-left: 0; gap: 16px; flex-wrap: wrap; }
}
