/* =========================================================
   Supercode v2 — design system (homepage)
   ========================================================= */
:root {
  --bg: #05060a;
  --bg-2: #0b0d16;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f3f5fa;
  --muted: #a3aabb;
  --dim: #6c7387;
  --blue: #5b8cff;
  --violet: #9a6bff;
  --cyan: #2fd8f0;
  --green: #4ade80;
  --grad: linear-gradient(100deg, #5b8cff 0%, #9a6bff 50%, #2fd8f0 100%);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 24px;
  --nav-h: 72px;
  color-scheme: dark;
  interpolate-size: allow-keywords;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); scrollbar-color: #2a2f3d var(--bg); scrollbar-width: thin; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(154, 107, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -64px; z-index: 1000; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 16px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(96px, 13vw, 176px); }
main, .footer { position: relative; z-index: 2; }

/* ---------- background layers ---------- */
#sc-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
#sc-canvas.is-ready { opacity: 1; }
.no-webgl #sc-canvas { display: none; }
body::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  top: -20vh; left: 0; right: 0; height: 120vh; /* no side bleed: mobile Chrome widens the layout viewport for it */
  background:
    radial-gradient(38% 46% at 72% 34%, rgba(91, 140, 255, .20), transparent 70%),
    radial-gradient(34% 40% at 22% 8%, rgba(154, 107, 255, .14), transparent 70%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 0%, #000 25%, transparent 75%);
}
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .05;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 1; width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .8s; will-change: transform;
  background: radial-gradient(circle, rgba(91, 140, 255, .12), rgba(154, 107, 255, .05) 40%, transparent 70%);
}
.has-pointer .cursor-glow { opacity: 1; }
.no-webgl .hero::after {
  content: ''; position: absolute; z-index: -1; right: 4%; top: 18%; width: 42vw; height: 42vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 140, 255, .35), rgba(154, 107, 255, .15) 40%, transparent 70%); filter: blur(40px);
}

/* ---------- type ---------- */
.label {
  display: inline-flex; align-items: center; gap: .7em; margin-bottom: 22px;
  font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.label::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); box-shadow: 0 0 14px rgba(91, 140, 255, .8); }
.h2 { font-size: clamp(2.3rem, 5.6vw, 5rem); font-weight: 600; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 58ch; margin-top: 24px; text-wrap: pretty; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; padding-right: .06em; }
.h2 .serif, .cta__title .serif { font-size: 1.06em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 920px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- buttons & bits ---------- */
.ico { width: 1em; height: 1em; flex: none; }
.btn {
  --h: 48px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: var(--h); padding: 0 1.4em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 550; font-size: .95rem; letter-spacing: -.01em; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s;
}
.btn .ico { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--primary { background: #fff; color: #05060a; }
.btn--primary::before { content: ''; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; background: var(--grad); filter: blur(16px); opacity: 0; transition: opacity .4s; }
.btn--primary:hover::before { opacity: .85; }
.btn--ghost { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, .03); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .07); }
.btn--lg { --h: 56px; font-size: 1rem; padding: 0 1.6em; }
.btn--xl { --h: 68px; font-size: 1.1rem; padding: 0 2em; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; padding-bottom: 4px; border-bottom: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-weight: 500; transition: border-color .3s, gap .3s; }
.link-arrow:hover { border-color: #fff; gap: .8em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02); font: 500 .78rem/1 var(--mono); color: var(--muted); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); border-bottom: 1px solid transparent; transition: transform .5s var(--ease), background-color .4s, border-color .4s; }
.nav.is-scrolled { background: rgba(5, 6, 10, .62); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; margin-right: auto; color: #fff; text-decoration: none; }
.brand svg { fill: currentColor; }
.brand__mark { width: 22px; height: 36px; }
.brand__word { width: 124px; height: 16px; }
.nav__menu { display: flex; align-items: center; gap: 2px; }
.nav__menu a:not(.btn) { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: .92rem; text-decoration: none; transition: color .3s, background-color .3s; }
.nav__menu a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__menu-cta, .nav__toggle { display: none; }

@media (max-width: 991px) {
  .nav__cta { display: none; }
  .nav.is-open { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }
  .nav__toggle { position: relative; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); cursor: pointer; }
  .nav__toggle span { position: absolute; width: 16px; height: 1.5px; border-radius: 2px; background: #fff; transition: transform .4s var(--ease); }
  .nav__toggle span:first-child { transform: translateY(-3px); }
  .nav__toggle span:last-child { transform: translateY(3px); }
  .nav.is-open .nav__toggle span:first-child { transform: rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: rotate(-45deg); }
  .nav__menu {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
    padding: 96px var(--gutter) 40px; background: rgba(5, 6, 10, .97);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; }
  .nav__menu a:not(.btn) { padding: 6px 0; color: #fff; font-size: clamp(2rem, 9vw, 3rem); font-weight: 600; letter-spacing: -.04em; }
  .nav__menu a:not(.btn):hover { background: none; }
  .nav__menu-cta { display: inline-flex; margin-top: 28px; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 48px) 0 120px; }
.hero__inner { position: relative; }
.hero__copy { position: relative; z-index: 1; max-width: 780px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px; padding: 8px 14px 8px 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .04); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 clamp(.64rem, 2.9vw, .76rem)/1.2 var(--mono); letter-spacing: .04em; color: #dfe4f0;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }
.hero__title { font-size: clamp(3rem, 8.2vw, 7.2rem); font-weight: 600; line-height: .92; letter-spacing: -.05em; }
.hero__lines { display: block; }
.line { display: block; overflow: hidden; padding: 0 .12em .1em 0; margin-bottom: -.1em; }
.ln-mask { padding-bottom: .14em; margin-bottom: -.14em; } /* SplitText line masks (overflow: clip): room for the italic serif descenders (g, p, q) */
.line__in { display: inline-block; }
.rotator { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret { display: inline-block; width: .055em; height: .74em; margin-left: .08em; vertical-align: -.02em; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__title .serif { font-size: 1.1em; text-shadow: 0 0 48px rgba(154, 107, 255, .5); }
.hero__sub { max-width: 54ch; margin-top: 32px; font-size: clamp(1.05rem, 1.4vw, 1.28rem); line-height: 1.55; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; font-size: .9rem; color: var(--muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .ico { color: var(--green); }
.ticket {
  position: absolute; right: 0; bottom: -24px; z-index: 1; display: grid; gap: 6px; padding: 20px 24px;
  border: 1px solid var(--line-2); border-radius: 20px; color: var(--text); text-decoration: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); transition: border-color .3s;
}
.ticket:hover { border-color: rgba(255, 255, 255, .4); }
.ticket__label, .ticket__note { font: 500 .7rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ticket__value { font-size: 2.6rem; font-weight: 650; line-height: 1; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font: 500 .68rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.hero__scroll i { width: 1px; height: 48px; background: linear-gradient(var(--text), transparent); animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* pre-hide hero until the intro runs; failsafe reveals it if JS never does */
.js:not(.sc-ready) [data-hero], .js:not(.sc-ready) .hero__lines { opacity: 0; animation: sc-failsafe 0s 3s forwards; }
@keyframes sc-failsafe { to { opacity: 1; } }

@media (max-width: 991px) {
  .hero { align-items: flex-end; padding-bottom: 72px; }
  .hero__title { font-size: clamp(2.8rem, 13vw, 5.4rem); }
  .ticket { position: relative; right: auto; bottom: auto; display: inline-grid; margin-top: 28px; }
  .hero__scroll { display: none; }
}

/* ---------- marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: clamp(18px, 2.4vw, 30px) 0; border-block: 1px solid var(--line); background: rgba(5, 6, 10, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.marquee__track {
  display: flex; align-items: center; width: max-content; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px);
  font-size: clamp(1.6rem, 4.2vw, 3.6rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; white-space: nowrap;
  animation: marquee 40s linear infinite;
}
.sc-motion .marquee__track { animation: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item.is-outline { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55); }
.marquee__star { font-size: .5em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- manifesto ---------- */
.manifesto__text { max-width: 1100px; font-size: clamp(1.75rem, 3.7vw, 3.4rem); font-weight: 500; line-height: 1.16; letter-spacing: -.035em; }
.manifesto__text em { font-style: normal; color: #c3b2ff; }
.manifesto__text em .w { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- stats ---------- */
.stats { position: relative; padding-bottom: clamp(80px, 10vw, 140px); }
.stats__grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { display: grid; align-content: start; gap: 12px; padding: 40px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num {
  font-size: clamp(2.6rem, 5.4vw, 4.8rem); font-weight: 600; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 35%, rgba(255, 255, 255, .45)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { max-width: 18ch; color: var(--muted); font-size: .95rem; }
@media (max-width: 991px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding-bottom: 32px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ---------- services ---------- */
.services { position: relative; padding-top: clamp(96px, 13vw, 176px); }
.services .section-head { margin-bottom: 0; }
.service__top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.service__num { font: 500 .85rem/1 var(--mono); color: var(--dim); }
.service__tag { padding: 7px 10px; border: 1px solid rgba(91, 140, 255, .4); border-radius: 999px; background: rgba(91, 140, 255, .08); font: 500 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #b8c8ff; }
.service__title { margin-bottom: 20px; font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.service__desc { max-width: 46ch; margin-bottom: 26px; font-size: clamp(1rem, 1.3vw, 1.2rem); color: var(--muted); }
.service__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; max-width: 520px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.service__price { font-size: 1.6rem; font-weight: 600; letter-spacing: -.03em; }
.service__price small { font-size: .8rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.services__progress { display: none; }

@media (min-width: 992px) {
  .services__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  :root:not(.sc-motion) .services__pin { padding-top: 96px; }
  :root:not(.sc-motion) .service + .service { margin-top: 96px; }
  .sc-motion .services__pin { height: 100vh; display: flex; align-items: center; }
  .sc-motion .services__list { display: grid; }
  .sc-motion .service { grid-area: 1 / 1; }
  .sc-motion .services__progress { display: flex; grid-column: 1; align-items: center; gap: 16px; margin-top: 56px; font: 500 .8rem/1 var(--mono); color: var(--dim); }
  .services__count b { font-weight: 500; color: #fff; }
  .services__bar { width: 160px; height: 2px; border-radius: 2px; overflow: hidden; background: var(--line-2); }
  .services__bar i { display: block; height: 100%; background: var(--grad); transform: scaleX(.25); transform-origin: left; }
}
@media (max-width: 991px) {
  .service { position: relative; min-height: 92vh; min-height: 92svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 46vh 0 8vh; }
  .service::before { content: ''; position: absolute; z-index: -1; inset: 38% calc(-1 * var(--gutter)) 0; background: linear-gradient(to top, var(--bg) 55%, transparent); }
}

/* ---------- method ---------- */
.method__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 30px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font: 500 .85rem/1.9 var(--mono); color: var(--dim); transition: color .4s; }
.step h3 { margin-bottom: 10px; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -.03em; transition: color .4s; }
.step p { max-width: 46ch; color: var(--muted); }
.sc-ready .step h3 { color: var(--muted); }
.sc-ready .step.is-active h3 { color: #fff; }
.step.is-active .step__num { color: var(--cyan); }
.terminal-wrap { position: sticky; top: calc(var(--nav-h) + 48px); }
.terminal {
  overflow: hidden; border: 1px solid var(--line-2); border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 19, 30, .94), rgba(8, 10, 16, .94));
  box-shadow: 0 40px 120px -40px rgba(91, 140, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 500 .75rem/1 var(--mono); color: var(--dim); }
.terminal__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.terminal__bar i:nth-child(2) { background: #febc2e; }
.terminal__bar i:nth-child(3) { background: #28c840; }
.terminal__bar span { margin-left: 12px; }
.terminal__body { min-height: 360px; padding: 22px 22px 26px; font: 400 clamp(.72rem, .95vw, .88rem)/1.95 var(--mono); color: #cfd6e6; }
.t-line { display: flex; align-items: baseline; gap: 10px; overflow: hidden; white-space: nowrap; }
.t-path { color: var(--cyan); }
.t-path::after { content: ' %'; color: var(--dim); }
.t-cmd { overflow: hidden; text-overflow: ellipsis; color: #fff; }
.t-txt::before { content: '→ '; color: var(--violet); }
.t-lead { flex: 1; min-width: 16px; border-bottom: 1px dotted rgba(255, 255, 255, .2); transform: translateY(-4px); }
.t-ok { color: var(--green); }
.t-final { margin-top: 10px; color: #fff; font-weight: 500; }
.t-star { color: #febc2e; }
.t-cursor { align-self: center; width: .6em; height: 1.1em; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@media (max-width: 991px) {
  .method__grid { grid-template-columns: minmax(0, 1fr); }
  .terminal-wrap { position: relative; top: auto; order: -1; }
}

/* ---------- compare ---------- */
.compare__table { max-width: 1000px; margin-inline: auto; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10, 12, 20, .65); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.compare__row { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; align-items: stretch; }
.compare__row + .compare__row { border-top: 1px solid var(--line); }
.compare__row > span { display: flex; align-items: center; padding: 22px 26px; }
.compare__row [role=rowheader] { font-weight: 550; }
.compare__row .old { display: block; align-content: center; color: var(--dim); } /* block, not flex: the inner span must stay inline to strike each line */
.compare__row .old > span {
  background: linear-gradient(rgba(255, 99, 99, .8), rgba(255, 99, 99, .8)) no-repeat 0 58% / 100% 1.5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; /* strike every wrapped line, not the gap between them */
  transition: background-size .8s var(--ease) .25s;
}
.sc-motion .compare__row:not(.is-in) .old > span { background-size: 0% 1.5px; }
.compare__row .new { gap: 10px; color: #fff; background: linear-gradient(90deg, rgba(91, 140, 255, .11), rgba(154, 107, 255, .05)); }
.compare__row .new .ico { color: var(--green); }
.compare__row--head > span { padding-block: 18px; font: 500 .76rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.compare__row--head .new { gap: .5em; color: #fff; }
.compare__row--head .new b { font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 700px) {
  .compare__row { grid-template-columns: 1fr 1fr; }
  .compare__row > span { padding: 14px 16px; font-size: .92rem; }
  .compare__row [role=rowheader] { grid-column: 1 / -1; padding-bottom: 0; font: 500 .72rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .compare__row--head > span:first-child { display: none; }
}

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 16px; }
.plans--narrow { max-width: 780px; margin-inline: auto; }
.plans--compact .plan__price { font-size: clamp(2rem, 2.6vw, 2.5rem); }
.plans--compact .plan__list { margin-bottom: 0; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(91, 140, 255, .14), transparent 45%), rgba(255, 255, 255, .025);
  transition: border-color .4s;
}
.plan:hover { border-color: var(--line-2); }
.plan--featured {
  border-color: transparent;
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(154, 107, 255, .2), transparent 45%) padding-box,
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 40px 100px -50px rgba(154, 107, 255, .7);
}
.plan__badge { position: absolute; top: 18px; right: 18px; padding: 7px 10px; border-radius: 999px; background: var(--grad); font: 600 .66rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.plan__name { margin-bottom: 18px; font-size: 1.05rem; font-weight: 600; }
.plan__price { font-size: clamp(2.6rem, 3.6vw, 3.4rem); font-weight: 650; line-height: 1; letter-spacing: -.05em; }
.plan--featured .plan__price { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan__price--text { font-size: clamp(2.2rem, 3vw, 2.8rem); }
.plan__note { margin-top: 10px; font: 500 .74rem/1.4 var(--mono); letter-spacing: .02em; color: var(--muted); }
.plan__desc { margin: 20px 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.plan__list { display: grid; gap: 10px; margin-bottom: 28px; font-size: .92rem; }
.plan__list li { display: flex; align-items: flex-start; gap: 10px; }
.plan__list li::before {
  content: ''; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: rgba(74, 222, 128, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%234ade80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan .btn { margin-top: auto; }
.pricing__foot { margin-top: 40px; text-align: center; color: var(--muted); }
.pricing__foot a { color: #fff; }
@media (max-width: 1199px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* ---------- partner ---------- */
.partner__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.partner .h2 { max-width: 14ch; font-size: clamp(2.6rem, 7vw, 6.2rem); }
.partner .lead { margin: 28px auto 40px; }
.partner::before { content: ''; position: absolute; z-index: -1; inset: 10% 8%; pointer-events: none; background: radial-gradient(closest-side, rgba(154, 107, 255, .18), transparent); }

/* ---------- quotes ---------- */
.quotes__stage { display: grid; }
.quote { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .8s, visibility .8s, transform .8s var(--ease); }
.quote.is-active { opacity: 1; visibility: visible; transform: none; }
.quote blockquote { max-width: 26ch; font-family: var(--serif); font-size: clamp(1.9rem, 4.4vw, 3.8rem); line-height: 1.1; letter-spacing: -.02em; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.quote figcaption b { display: block; font-weight: 600; }
.quote small { font-size: .85rem; color: var(--muted); }
.avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); font-size: .9rem; font-weight: 600; }
.quotes__dots { display: flex; gap: 8px; margin-top: 36px; }
.quotes__dots button { width: 28px; height: 24px; padding: 0; border: 0; cursor: pointer; background: linear-gradient(var(--line-2), var(--line-2)) center / 100% 4px no-repeat; transition: width .3s; }
.quotes__dots button.is-active { width: 48px; background-image: linear-gradient(#fff, #fff); }

/* ---------- faq ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 40px); margin-bottom: 0; }
.faq__head .lead a { color: #fff; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; list-style: none; cursor: pointer; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 550; letter-spacing: -.02em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 50%; transition: transform .4s var(--ease), background-color .3s; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: #fff; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: rgba(255, 255, 255, .08); }
.faq__item p { max-width: 64ch; padding: 0 56px 26px 0; color: var(--muted); }
.faq__item::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
@media (max-width: 991px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .faq__item p { padding-right: 0; }
}

/* ---------- cta ---------- */
.cta { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: 120px; }
.cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta__title { max-width: 13ch; font-size: clamp(2.8rem, 8vw, 7rem); font-weight: 600; line-height: .95; letter-spacing: -.05em; text-wrap: balance; }
.cta .lead { margin: 28px auto 44px; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__list { margin: 40px 0 28px; border-top: 1px solid var(--line); }
.contact__list li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__list span { font: 500 .76rem/1.7 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.contact__list a, .contact__list b { font-weight: 500; text-align: right; text-decoration: none; color: #fff; }
.form {
  display: grid; gap: 18px; padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--line-2); border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.form__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.form__group legend { margin-bottom: 12px; padding: 0; font-size: .85rem; color: var(--muted); }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .9rem; color: var(--muted); transition: background-color .25s, color .25s, border-color .25s; }
.choice label:hover span { border-color: rgba(255, 255, 255, .4); color: #fff; }
.choice input:checked + span { background: #fff; border-color: #fff; color: #05060a; }
.choice input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span { font-size: .85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 14px;
  background: rgba(5, 6, 10, .6); color: #fff; font-size: 1rem; transition: border-color .25s, box-shadow .25s;
}
.field textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
.field select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background: rgba(5, 6, 10, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23a3aabb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.field select option { background: var(--bg-2); color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #5d6478; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(91, 140, 255, .85); box-shadow: 0 0 0 4px rgba(91, 140, 255, .18); }
.form__row--captcha { align-items: end; }
.link-btn { justify-self: start; height: 52px; padding: 0; border: 0; background: none; color: var(--muted); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: #fff; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }
.check a { color: #fff; }
.form__feedback { padding: 14px 16px; border-radius: 14px; font-size: .92rem; }
.form__feedback.is-ok { border: 1px solid rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .1); color: #86efac; }
.form__feedback.is-err { border: 1px solid rgba(255, 99, 99, .3); background: rgba(255, 99, 99, .1); color: #fca5a5; }
@media (max-width: 991px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .link-btn { height: auto; }
}

/* ---------- footer ---------- */
.footer { overflow: hidden; padding: clamp(64px, 8vw, 110px) 0 32px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(91, 140, 255, .05)); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { margin-bottom: 24px; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 550; line-height: 1.25; letter-spacing: -.03em; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: .95rem; }
.footer__col p { margin-bottom: 8px; font: 500 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.footer__col a, .footer__col span { color: var(--muted); text-decoration: none; transition: color .3s; }
.footer__col a:hover { color: #fff; }
.footer__word {
  width: 100%; height: auto; aspect-ratio: 1289 / 158; margin: clamp(56px, 8vw, 100px) 0 28px;
  fill: #fff; opacity: .16;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 100%); mask-image: linear-gradient(180deg, #000 10%, transparent 100%);
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--dim); }
.footer__bottom a { color: var(--muted); text-decoration: none; }
.footer__bottom a:hover { color: #fff; }
@media (max-width: 991px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- service pages (inc/v2/service.php) ---------- */
.hero--page .hero__title { font-size: clamp(3rem, 7.4vw, 6.6rem); }
.features__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 28px 28px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .025); transition: border-color .4s, background-color .4s; }
.feature:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .04); }
.feature__num { font: 500 .78rem/1 var(--mono); letter-spacing: .06em; color: var(--cyan); }
.feature h3 { margin: 40px 0 10px; font-size: 1.3rem; font-weight: 600; letter-spacing: -.025em; }
.feature p { color: var(--muted); }
.process__grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.process__item { position: relative; padding-top: 28px; border-top: 1px solid var(--line-2); }
.process__item::before { content: ''; position: absolute; top: -1px; left: 0; width: 72px; height: 2px; background: var(--grad); }
.process__num { display: block; margin-bottom: 20px; font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 600; line-height: 1; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.process__item h3 { margin-bottom: 10px; font-size: 1.35rem; font-weight: 600; letter-spacing: -.025em; }
.process__item p { color: var(--muted); }
.others__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.other { position: relative; display: block; padding: 28px 26px 84px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .025); color: inherit; text-decoration: none; transition: border-color .4s, translate .5s var(--ease); }
.other:hover { translate: 0 -4px; border-color: var(--line-2); } /* translate, not transform: GSAP owns the transform after the reveal */
.other__tag { font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.other h3 { margin: 18px 0 8px; font-size: 1.35rem; font-weight: 600; letter-spacing: -.025em; }
.other p { color: var(--muted); font-size: .95rem; }
.other__go { position: absolute; left: 26px; bottom: 26px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color .3s, color .3s; }
.other:hover .other__go { background: #fff; color: #05060a; }
@media (max-width: 1199px) { .others__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991px) {
  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) { .features__grid, .others__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- blog (blog.php, blog-post.php, inc/v2/post-card.php) ---------- */
.blog.section { padding-top: clamp(64px, 8vw, 112px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 5vw, 56px); }
.filters a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .03); font-size: .9rem; color: var(--muted); text-decoration: none; transition: color .3s, border-color .3s, background-color .3s; }
.filters a:hover { color: var(--text); border-color: rgba(255, 255, 255, .38); }
.filters a span { font: 500 .72rem/1 var(--mono); color: var(--dim); }
.filters [aria-current] { border-color: #fff; background: #fff; color: #05060a; }
.filters [aria-current]:hover { color: #05060a; }
.filters [aria-current] span { color: rgba(5, 6, 10, .55); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .025); color: inherit; text-decoration: none; transition: border-color .4s, translate .5s var(--ease); }
.post-card:hover { translate: 0 -4px; border-color: var(--line-2); }
.post-card__media { display: block; overflow: hidden; border-bottom: 1px solid var(--line); }
.post-card__media img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; transition: scale .8s var(--ease); }
.post-card:hover .post-card__media img { scale: 1.04; }
.post-card__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 22px 24px 26px; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 .72rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.post-card__meta b { font-weight: 500; color: var(--cyan); }
.post-card__title { font-size: 1.3rem; font-weight: 600; line-height: 1.22; letter-spacing: -.025em; text-wrap: balance; }
.post-card__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: .95rem; color: var(--muted); }
.post-card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-size: .9rem; font-weight: 500; }
.post-card__go .ico { width: 1em; height: 1em; transition: transform .35s var(--ease); }
.post-card:hover .post-card__go .ico { transform: translateX(3px); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(40px, 6vw, 64px); }
.pager > * { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 .85rem/1 var(--mono); color: var(--muted); text-decoration: none; transition: color .3s, border-color .3s; }
.pager a:hover { color: var(--text); border-color: rgba(255, 255, 255, .38); }
.pager [aria-current] { border-color: #fff; background: #fff; color: #05060a; }
.pager span { opacity: .3; }
.blog-empty { padding: 64px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; color: var(--muted); }
.blog-empty h2 { margin-bottom: 8px; font-size: 1.5rem; font-weight: 600; color: var(--text); }
.blog-empty .btn { margin-top: 24px; }
.narrow { width: min(100% - 2 * var(--gutter), 820px); }
.hero--post { min-height: 0; padding-bottom: clamp(40px, 6vw, 64px); }
.hero--post .hero__copy { max-width: none; }
.hero--post .hero__title { font-size: clamp(2.2rem, 5.2vw, 4.2rem); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 28px; font: 500 .75rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.post-meta a { color: var(--muted); text-decoration: none; transition: color .3s, border-color .3s; }
.post-meta a:hover { color: var(--text); }
.post-meta .post-meta__cat { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--cyan); }
.post__cover { margin-bottom: clamp(40px, 6vw, 72px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.post__cover img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.post__tags { margin: 48px 0 0; }
/* article body: HTML from the CMS (super-adm ContentRenderer, written for Bootstrap) */
.prose { max-width: 70ch; font-size: clamp(1.05rem, 1.2vw, 1.15rem); line-height: 1.75; color: #cfd5e2; overflow-wrap: break-word; }
.prose :is(p, ul, ol, blockquote, figure, pre, table, .content-block) { margin: 0 0 1.4em; }
.prose .content-block > :last-child { margin-bottom: 0; }
.prose :is(h2, h3, h4) { margin: 2em 0 .6em; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; color: var(--text); text-wrap: balance; }
.prose h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); }
.prose h3 { font-size: clamp(1.25rem, 1.8vw, 1.45rem); }
.prose h4 { font-size: 1.1rem; }
.prose > :first-child, .prose > .content-block:first-child > :first-child { margin-top: 0; }
.prose a:not(.btn) { color: var(--text); text-decoration: underline; text-decoration-color: rgba(154, 107, 255, .7); text-underline-offset: 3px; transition: text-decoration-color .3s; }
.prose a:not(.btn):hover { text-decoration-color: var(--cyan); }
.prose strong { font-weight: 600; color: var(--text); }
.prose :is(ul, ol) { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--cyan); }
.prose blockquote { padding: .2em 0 .2em 1.2em; border-left: 2px solid var(--violet); font-size: 1.12em; color: var(--text); }
.prose .blockquote-footer { margin-top: .6em; font: 500 .8rem/1.4 var(--mono); color: var(--dim); }
.prose img { height: auto; border-radius: 16px; }
.prose figure img { margin-inline: auto; }
.prose figcaption { margin-top: 10px; font-size: .88rem; color: var(--dim); text-align: center; }
.prose code { padding: .15em .4em; border-radius: 6px; background: rgba(255, 255, 255, .06); font: .88em var(--mono); }
.prose pre { overflow-x: auto; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); font-size: .9rem; line-height: 1.6; }
.prose pre code { padding: 0; background: none; }
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: .95em; }
.prose :is(th, td) { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font-weight: 600; color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line-2); }
.prose .text-center { text-align: center; }
.prose :is(.text-end, .text-right) { text-align: right; }
.prose .container { width: auto; }
/* ponytail: Bootstrap rows/cols become an auto-fit grid; column ratios (8/4…) render as equal columns */
.prose .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 16px; }
.prose .ratio { position: relative; aspect-ratio: 16 / 9; }
.prose .ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 16px; }
.prose .gallery-grid-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.prose .gallery-masonry-item { display: block; margin-bottom: 1rem; break-inside: avoid; }
.prose .glightbox img { transition: opacity .3s; }
.prose .glightbox:hover img { opacity: .85; }
.prose .btn-primary { background: #fff; color: #05060a; }
.prose .btn:not(.btn-primary) { border-color: var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); }
@media (max-width: 991px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .posts { grid-template-columns: minmax(0, 1fr); }
  .prose .gallery-masonry { column-count: 2 !important; } /* the CMS sets column-count inline */
}
