/* =========================================================
   site! by Ginola — stylesheet
   black + amethyst, Inter + Instrument Serif, perched scroll
   ========================================================= */

:root {
  --bg: #050307;
  --bg-deep: #020103;
  --ink: #f4f1f7;
  --ink-dim: rgba(244, 241, 247, 0.62);
  --ink-faint: rgba(244, 241, 247, 0.38);
  --line: rgba(244, 241, 247, 0.08);
  --line-strong: rgba(244, 241, 247, 0.16);

  --amethyst-1: #c77dff;
  --amethyst-2: #9d4edd;
  --amethyst-3: #7b2cbf;
  --amethyst-4: #5a189a;
  --amethyst-deep: #3c096c;

  --glow: rgba(157, 78, 221, 0.45);
  --glow-soft: rgba(157, 78, 221, 0.18);

  --grad: linear-gradient(135deg, #e0aaff 0%, #c77dff 35%, #9d4edd 65%, #7b2cbf 100%);
  --grad-soft: linear-gradient(135deg, #c77dff 0%, #9d4edd 100%);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* =========================================================
   ALT-MODE TOGGLE — sticky in top-right. Button is its own
   thing (round); the label sits to the LEFT of the button and
   on mount slides out from behind the button (right→left).
   ========================================================= */
.alt-toggle-wrap {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 250;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.alt-toggle-text {
  position: relative;
  z-index: 1; /* sits behind the button while animating */
  white-space: nowrap;
  font-size: 13px;
  color: rgba(244, 241, 247, 0.92);
  background: rgba(10, 6, 14, 0.78);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(199, 125, 255, 0.22);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow:
    0 12px 40px -10px rgba(0, 0, 0, 0.5),
    0 0 50px -16px rgba(157, 78, 221, 0.25);
  /* The text starts shoved to the right (under the button) and slides
     leftward into its natural position on mount. transform-origin: right
     means the right edge stays anchored to the button so the reveal looks
     like the text is emerging from behind it. */
  transform-origin: right center;
  transform: translateX(calc(100% + 18px)) scaleX(0.75);
  opacity: 0;
  clip-path: inset(0 0 0 100%);
  animation: alt-text-emerge 0.95s cubic-bezier(.16, 1, .3, 1) 0.55s forwards;
}

@keyframes alt-text-emerge {
  60% {
    opacity: 1;
  }
  100% {
    transform: translateX(0) scaleX(1);
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

.alt-toggle-arrow {
  display: inline-block;
  margin-left: 4px;
  background: linear-gradient(135deg, #e0aaff, #c77dff);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.alt-toggle {
  position: relative;
  z-index: 2; /* above the text so text appears to come from behind */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c77dff 0%, #7b2cbf 100%);
  border: 1px solid rgba(224, 170, 255, 0.4);
  color: #0a060e;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(199, 125, 255, 0.06),
    0 12px 40px -10px rgba(0, 0, 0, 0.55),
    0 0 60px -12px rgba(157, 78, 221, 0.55);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, filter 0.25s;
}

.alt-toggle:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 0 1px rgba(199, 125, 255, 0.12),
    0 14px 50px -10px rgba(0, 0, 0, 0.6),
    0 0 80px -10px rgba(157, 78, 221, 0.7);
}

.alt-toggle:active { transform: scale(0.96); }

/* When alt-mode is active, the button slightly rotates to signal "swapped" */
body.alt-mode .alt-toggle { transform: rotate(180deg); }
body.alt-mode .alt-toggle:hover { transform: rotate(180deg) scale(1.06); }

/* When alt-mode is on: hide the real site, show the alt site, but keep
   the toggle visible. */
.alt-site { display: none; }
body.alt-mode > *:not(.alt-toggle-wrap):not(.alt-site):not(.desktop-gate) {
  display: none !important;
}
body.alt-mode .alt-site { display: block; }
body.alt-mode { background: #ffffff; overflow: auto; }
body.alt-mode::before { display: none !important; }

@media (max-width: 1023px) {
  .alt-toggle-wrap { display: none; }
}

/* =========================================================
   ALT-SITE — intentionally hideous "discount template" version
   ========================================================= */
.alt-site {
  position: relative;
  background: #ffffff;
  color: #000000;
  font-family: 'Times New Roman', Times, serif;
  font-size: 14px;
  line-height: 1.4;
  min-height: 100vh;
}

.alt-site a { color: #0000ee; text-decoration: underline; }
.alt-site a:visited { color: #551a8b; }

.alt-topbar {
  background: #000000;
  color: #ffff00;
}

.alt-marquee {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 0;
  display: block;
}

.alt-header {
  background: linear-gradient(180deg, #003366 0%, #0066cc 100%);
  color: #ffffff;
  padding: 14px 20px;
  border-bottom: 4px solid #ff9900;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.alt-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Comic Sans MS', 'Chalkboard SE', cursive;
  font-size: 22px;
  font-weight: bold;
  color: #ffff00;
  text-shadow: 2px 2px 0 #000000;
}

.alt-logo img { display: block; border: 2px solid #ffff00; }

.alt-nav {
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.alt-nav a {
  color: #ffffff;
  text-decoration: underline;
  margin: 0 4px;
}
.alt-nav a:hover { color: #ffff00; background: #003366; }

.alt-cta-top { text-align: right; }

.alt-button-red,
.alt-button-blue,
.alt-button-green,
.alt-button-big {
  display: inline-block;
  padding: 8px 14px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 13px;
  text-decoration: none !important;
  border: 2px outset;
  cursor: pointer;
}

.alt-button-red    { background: #cc0000; color: #ffffff !important; border-color: #ff6666 #660000 #660000 #ff6666; }
.alt-button-blue   { background: #0066cc; color: #ffffff !important; border-color: #66aadd #003366 #003366 #66aadd; }
.alt-button-green  { background: #009900; color: #ffffff !important; border-color: #66cc66 #003300 #003300 #66cc66; }
.alt-button-big {
  background: #ff9900;
  color: #000000 !important;
  font-size: 18px;
  padding: 14px 28px;
  border-color: #ffcc66 #663300 #663300 #ffcc66;
}

/* panic modal — also parody-styled like an old Windows alert dialog */
.alt-panic {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: Arial, sans-serif;
}
.alt-panic[data-state="open"] { display: flex; }

.alt-panic-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.alt-panic-box {
  position: relative;
  width: min(440px, 100%);
  background: #ece9d8;
  border: 2px solid #003c74;
  box-shadow: 4px 4px 0 #555555;
  color: #000000;
}

.alt-panic-bar {
  background: linear-gradient(180deg, #0058e1 0%, #003c93 100%);
  color: #ffffff;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alt-panic-x {
  background: #d4d0c8;
  color: #000000;
  border: 1px outset;
  width: 22px;
  height: 20px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.alt-panic-x:active { border-style: inset; }

.alt-panic-body {
  padding: 20px 24px 24px;
  text-align: center;
}

.alt-panic-body img {
  display: block;
  margin: 0 auto 12px;
}

.alt-panic-body h3 {
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: bold;
  color: #cc0000;
  margin: 0 0 10px;
}

.alt-panic-body p {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #000000;
  margin: 4px 0;
}

.alt-hero {
  background:
    repeating-linear-gradient(45deg, #ffffe0 0 10px, #fffacd 10px 20px);
  padding: 24px 20px;
  border-top: 2px solid #999999;
  border-bottom: 2px solid #999999;
}

.alt-hero-table { width: 100%; max-width: 960px; margin: 0 auto; }

.alt-hero-text { vertical-align: top; padding-right: 24px; }

.alt-hero-text h1 {
  font-family: 'Comic Sans MS', 'Chalkboard SE', cursive;
  font-size: 30px;
  margin: 0 0 6px;
  color: #003366;
}

.alt-hero-text h2 {
  font-family: Arial, sans-serif;
  font-size: 18px;
  margin: 0 0 16px;
  color: #cc0000;
  font-style: italic;
}

.alt-hero-text p { margin: 0 0 12px; }

.alt-hero-text .alt-hero-sub {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: #222222;
  margin-bottom: 18px;
}

.alt-hero-img { width: 380px; vertical-align: top; text-align: center; }
.alt-hero-img img { border: 4px ridge #999999; padding: 4px; background: #ffffff; }
.alt-cap { font-size: 11px; color: #666666; font-style: italic; margin-top: 6px; }

.alt-services {
  padding: 24px 20px;
  background: #ffffff;
  text-align: center;
}

.alt-services h3,
.alt-testimonials h3,
.alt-cta-band h3 {
  font-family: Arial, sans-serif;
  font-size: 22px;
  text-decoration: underline;
  color: #003366;
  margin: 0 0 16px;
  text-transform: lowercase;
}

.alt-services-table {
  margin: 0 auto;
  border-collapse: collapse;
  background: #f0f0f0;
}
.alt-services-table td {
  width: 230px;
  padding: 12px;
  text-align: center;
  vertical-align: top;
  background: #fafafa;
  border: 1px solid #999999;
}
.alt-services-table img { display: block; margin: 0 auto 8px; }
.alt-services-table h4 {
  font-family: Arial, sans-serif;
  font-size: 14px;
  margin: 0 0 6px;
  color: #003366;
}
.alt-services-table p { font-size: 12px; margin: 0 0 8px; color: #333333; }

.alt-testimonials {
  padding: 24px 20px;
  background: #eeeeee;
  text-align: center;
}

.alt-testimonials blockquote {
  display: inline-block;
  margin: 8px 12px;
  padding: 12px 16px;
  background: #ffffff;
  border-left: 4px solid #ff9900;
  font-style: italic;
  color: #333333;
  max-width: 360px;
  text-align: left;
}
.alt-testimonials cite { display: block; margin-top: 8px; font-size: 12px; color: #666666; font-style: normal; }

.alt-cta-band {
  padding: 24px 20px;
  text-align: center;
  background: #003366;
  color: #ffffff;
}
.alt-cta-band h3 { color: #ffff00; text-decoration: none; }
.alt-cta-band p { margin: 0 0 14px; }

.alt-footer {
  padding: 20px;
  background: #cccccc;
  border-top: 2px solid #999999;
  text-align: center;
  font-size: 12px;
  color: #333333;
}
.alt-footer p { margin: 6px 0; }
.alt-footer img { margin: 0 4px; vertical-align: middle; }
.alt-counter { font-family: 'Courier New', monospace; }
.alt-counter-num {
  background: #000000;
  color: #00ff00;
  padding: 2px 6px;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

/* =========================================================
   DESKTOP-ONLY GATE — phones + tablets see this instead
   of the site. Triggered purely by viewport width so it works
   regardless of UA spoofing.
   ========================================================= */
.desktop-gate { display: none; }

@media (max-width: 1023px), (pointer: coarse) and (max-width: 1279px) {
  .desktop-gate {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background:
      radial-gradient(ellipse at top, rgba(157, 78, 221, 0.18) 0%, transparent 60%),
      radial-gradient(ellipse at bottom, rgba(123, 44, 191, 0.12) 0%, transparent 70%),
      #050307;
    color: #f4f1f7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
  }

  /* Hide the rest of the site behind the gate so it never paints. */
  body > *:not(.desktop-gate) { display: none !important; }

  .desktop-gate-inner {
    max-width: 460px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .desktop-gate-mark {
    display: inline-flex;
    align-self: center;
    align-items: baseline;
    gap: 8px;
    font-family: 'Instrument Serif', 'Times New Roman', serif;
    font-style: italic;
    font-size: 28px;
    color: #c77dff;
    margin-bottom: 8px;
  }
  .desktop-gate-mark em {
    font-family: var(--font-sans);
    font-style: normal;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
  }

  .desktop-gate-title {
    font-size: clamp(28px, 7vw, 38px);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
  }

  .desktop-gate-title em.grad {
    font-family: 'Instrument Serif', 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(135deg, #e0aaff 0%, #c77dff 35%, #9d4edd 65%, #7b2cbf 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #c77dff;
  }

  .desktop-gate-body {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(244, 241, 247, 0.62);
    margin: 0;
  }

  .desktop-gate-foot {
    font-size: 13px;
    color: rgba(244, 241, 247, 0.45);
    margin: 12px 0 0;
  }

  .desktop-gate-foot a {
    color: #c77dff;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

html, body {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { text-transform: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--amethyst-3); color: var(--ink); }

/* =========================================================
   AMBIENT BACKGROUND — glows + noise
   ========================================================= */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
  will-change: transform;
}

.orb-1 {
  width: 620px; height: 620px;
  top: -180px; left: -160px;
  background: radial-gradient(circle, var(--amethyst-3) 0%, transparent 70%);
  animation-delay: 0s;
}

.orb-2 {
  width: 540px; height: 540px;
  bottom: -180px; right: -120px;
  background: radial-gradient(circle, var(--amethyst-4) 0%, transparent 70%);
  animation-delay: -6s;
  opacity: 0.45;
}

.orb-3 {
  width: 380px; height: 380px;
  top: 45%; left: 55%;
  background: radial-gradient(circle, var(--amethyst-deep) 0%, transparent 70%);
  animation-delay: -12s;
  opacity: 0.35;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.05); }
  66%      { transform: translate(-30px, 40px) scale(0.97); }
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-conic-gradient(from 0deg at 50% 50%, #fff 0deg 1deg, transparent 1deg 4deg);
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* deep vignette so amethyst sits on true black */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at top, transparent 0%, var(--bg-deep) 75%),
    radial-gradient(ellipse at bottom, transparent 0%, var(--bg-deep) 80%);
}

/* =========================================================
   GRADIENT KEYWORDS (em.grad)
   ========================================================= */
.grad,
.grad-soft {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amethyst-1); /* fallback if background-clip text fails */
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.005em;
  /* italic glyphs (e.g. "f") have ascenders/swashes that extend past the
     box on the right — pad so they're not clipped by overflow ancestors. */
  padding-right: 0.08em;
  margin-right: -0.04em;
}

.grad-soft { background: var(--grad-soft); }

/* =========================================================
   FLOATING PILL NAV
   ========================================================= */
.pill-nav {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(10, 6, 14, 0.65);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(199, 125, 255, 0.08),
    0 20px 60px -10px rgba(0, 0, 0, 0.6),
    0 0 80px -20px var(--glow);
  animation: nav-in 1.2s var(--ease-out) 0.3s both;
}

@keyframes nav-in {
  from { opacity: 0; transform: translate(-50%, 30px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.pill-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-dim);
  border-radius: 999px;
  transition: color 0.4s var(--ease), background 0.4s var(--ease);
}

.pill-link:hover {
  color: var(--ink);
  background: rgba(157, 78, 221, 0.08);
}

.pill-link.active {
  color: var(--ink);
  background: rgba(157, 78, 221, 0.14);
  box-shadow: inset 0 0 0 1px rgba(199, 125, 255, 0.18);
}

.pill-link .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amethyst-1);
  box-shadow: 0 0 8px var(--amethyst-1);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.85); }
}

.pill-link.contact {
  background: linear-gradient(135deg, rgba(199, 125, 255, 0.22), rgba(123, 44, 191, 0.22));
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(199, 125, 255, 0.28);
}
.pill-link.contact:hover {
  background: linear-gradient(135deg, rgba(199, 125, 255, 0.32), rgba(123, 44, 191, 0.32));
}

/* =========================================================
   BRAND MARK (top left)
   ========================================================= */
.brand {
  position: fixed;
  top: 28px;
  left: 32px;
  z-index: 90;
  display: flex;
  align-items: baseline;
  gap: 8px;
  animation: brand-in 1s var(--ease-out) 0.2s both;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  font-weight: 400;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.brand-by {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  font-weight: 500;
}

@keyframes brand-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   MAIN
   ========================================================= */
main {
  position: relative;
  z-index: 2;
}

/* =========================================================
   HERO — perched / sticky
   ========================================================= */
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  z-index: 1;
  /* the hero will fade as next section "perches" — handled by JS */
  will-change: transform, opacity, filter;
}

.hero-inner {
  max-width: 1100px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* =========================================================
   HYPERSPEED BG — WebGL highway behind hero content
   ========================================================= */
.hyperspeed-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.8; /* bumped temporarily to confirm visibility — dial back once you see it */
}
.hyperspeed-bg canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* small / lowkey hero variant */
.hero-inner-min {
  max-width: 760px;
  transform: translateY(-22vh);
}

.eyebrow,
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 28px;
  animation: fade-in 1.4s var(--ease-out) 0.4s both;
}

.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amethyst-1);
  box-shadow: 0 0 10px var(--amethyst-1);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-title {
  font-size: clamp(56px, 11vw, 156px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.045em;
  margin-bottom: 36px;
}

.hero-title .line {
  display: block;
}

.hero-title em.grad {
  font-size: 1.02em; /* serif optical compensation */
}

.hero-sub {
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--ink-dim);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.45;
  font-weight: 400;
}

.hero-sub em.grad-soft {
  font-size: 1.15em;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* =========================================================
   TYPEWRITER HERO LINE — small, centered
   ========================================================= */
.hero-typed {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 680px;
  margin: 0 auto 40px;
  min-height: 1.45em;
  text-align: center;
}

/* gradient italic keywords inside the typed line — slight bump for serif optics */
.hero-typed em.grad {
  font-size: 1.08em;
  line-height: 1;
}

/* blinking caret — pseudo so it doesn't get picked up by typewriter content */
.hero-typed::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.92em;
  background: var(--amethyst-1);
  margin-left: 4px;
  vertical-align: -10%;
  box-shadow: 0 0 10px var(--amethyst-1);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hero-typed.typing::after { opacity: 1; }
.hero-typed.done::after   { opacity: 1; animation: caret-blink 1s steps(2) infinite; }

@keyframes caret-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* CTA below the typed line — hidden until typing completes */
.hero-cta-min {
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.hero-cta-min.in {
  opacity: 1;
  transform: translateY(0);
}

.cta-primary.cta-small {
  padding: 12px 20px;
  font-size: 13px;
}

/* demos page — small headline variant */
.demos-line {
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 640px;
  margin: 0 auto;
}
.demos-line em.grad { font-size: 1.06em; }

/* =========================================================
   BUTTONS
   ========================================================= */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: linear-gradient(135deg, var(--amethyst-2), var(--amethyst-3));
  color: var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow:
    0 0 0 1px rgba(199, 125, 255, 0.3),
    0 10px 40px -10px var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.cta-primary.big {
  padding: 20px 32px;
  font-size: 15px;
}

.cta-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--amethyst-1), var(--amethyst-2));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.cta-primary > * { position: relative; z-index: 1; }

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(199, 125, 255, 0.45),
    0 18px 50px -12px var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.cta-primary:hover::before { opacity: 1; }

.cta-primary svg {
  transition: transform 0.4s var(--ease);
}
.cta-primary:hover svg { transform: translateX(3px); }

.cta-ghost {
  padding: 16px 24px;
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.cta-ghost:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

/* scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: var(--ink-faint);
  animation: fade-in 1.5s var(--ease-out) 1.2s both;
}

.hint-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--amethyst-2), transparent);
  animation: hint-drop 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes hint-drop {
  0%, 100% { transform: scaleY(0.3); opacity: 0.4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* =========================================================
   REVEAL ANIM — for hero lines
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(10px);
  transition:
    opacity 1.2s var(--ease-out),
    transform 1.2s var(--ease-out),
    filter 1.2s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* =========================================================
   SHOWCASE — sits under the hero; cards arrive from the
   highway's vanishing point (top-center) with a streak trail
   ========================================================= */
.showcase {
  position: relative;
  z-index: 2;
  padding: 140px 32px 140px;
  background: var(--bg-deep);
  overflow: hidden;
}

.showcase::before {
  /* faint horizon glow that visually links to the hero's vanishing point */
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  width: 60vw;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(157, 78, 221, 0.18) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(8px);
}

.showcase-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 72px;
  position: relative;
  z-index: 1;
}

.showcase-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 18px;
}

.showcase-title {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.showcase-hint {
  margin: 18px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: -0.005em;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(244, 241, 247, 0.03);
}

.showcase-hint svg {
  color: #e0aaff;
  animation: showcase-hint-pulse 2.2s ease-in-out infinite;
}

@keyframes showcase-hint-pulse {
  0%, 100% { transform: translate(0, 0); opacity: 0.85; }
  50% { transform: translate(1px, 1px); opacity: 1; }
}

.showcase-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  perspective: 1400px;
  perspective-origin: 50% -10%;
  position: relative;
  z-index: 1;
}

.scc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translate3d(0, -180px, -600px) scale(0.45);
  filter: blur(14px) brightness(1.6);
  transition:
    transform 1.4s cubic-bezier(.16, 1, .3, 1),
    opacity 1s ease-out,
    filter 1.2s ease-out;
  will-change: transform, opacity, filter;
  /* button reset for the clickable card */
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-align: inherit;
}

button.scc { cursor: pointer; }
button.scc:focus-visible .scc-frame {
  outline: 2px solid var(--amethyst-1);
  outline-offset: 4px;
}

.scc-soon {
  cursor: default;
  pointer-events: none;
}
.scc-soon .scc-frame { opacity: 0.55; }
.scc-soon .scc-meta { opacity: 0.6; }

.scc.arrived {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0) brightness(1);
}

.scc[data-scc="1"].arrived { transition-delay: 0s; }
.scc[data-scc="2"].arrived { transition-delay: 0.16s; }
.scc[data-scc="3"].arrived { transition-delay: 0.32s; }

/* light-streak trail above each card — flashes as the card "arrives" */
.scc-trail {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 2px;
  height: 70vh;
  transform: translateX(-50%) scaleY(0);
  transform-origin: bottom;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(199, 125, 255, 0) 30%,
    rgba(199, 125, 255, 0.55) 80%,
    rgba(255, 255, 255, 0.95) 100%
  );
  opacity: 0;
  pointer-events: none;
  filter: blur(0.5px);
  box-shadow: 0 0 12px rgba(199, 125, 255, 0.6);
}

.scc[data-scc="1"].arrived .scc-trail { animation: scc-trail 1.1s cubic-bezier(.2,.7,.2,1) 0s forwards; }
.scc[data-scc="2"].arrived .scc-trail { animation: scc-trail 1.1s cubic-bezier(.2,.7,.2,1) 0.16s forwards; }
.scc[data-scc="3"].arrived .scc-trail { animation: scc-trail 1.1s cubic-bezier(.2,.7,.2,1) 0.32s forwards; }

@keyframes scc-trail {
  0%   { opacity: 0; transform: translateX(-50%) scaleY(0); }
  35%  { opacity: 1; transform: translateX(-50%) scaleY(1); }
  100% { opacity: 0; transform: translateX(-50%) scaleY(0.05); }
}

.scc-frame {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(35, 22, 50, 0.95) 0%, rgba(18, 10, 28, 0.95) 100%);
  border: 1px solid rgba(199, 125, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(199, 125, 255, 0.05),
    0 30px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 60px -20px rgba(157, 78, 221, 0.25);
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s;
}

.scc:hover .scc-frame {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow:
    0 0 0 1px rgba(199, 125, 255, 0.18),
    0 30px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 60px -10px var(--glow);
}

.scc-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
}

.scc-bar > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.scc-bar > span:nth-child(1) { background: rgba(255, 95, 86, 0.5); }
.scc-bar > span:nth-child(2) { background: rgba(255, 189, 46, 0.5); }
.scc-bar > span:nth-child(3) { background: rgba(40, 200, 64, 0.5); }

.scc-url {
  flex: 1;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-family: var(--font-sans);
}

.scc-canvas {
  aspect-ratio: 16 / 10;
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(ellipse at top right, rgba(199, 125, 255, 0.22) 0%, transparent 65%),
    linear-gradient(180deg, #1a0f28 0%, #0b0612 100%);
}

.scc-frame-2 .scc-canvas {
  background:
    radial-gradient(ellipse at bottom left, rgba(210, 130, 70, 0.28) 0%, transparent 65%),
    linear-gradient(180deg, #2a1610 0%, #100806 100%);
}

.scc-frame-3 .scc-canvas {
  background:
    radial-gradient(ellipse at center, rgba(140, 170, 230, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, #0f1228 0%, #07070d 100%);
}

.scc-mock-logo {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--ink-dim);
}

.scc-mock-logo.light { letter-spacing: 0.3em; text-transform: lowercase; color: var(--ink); }

.scc-mock-h {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
}

.scc-mock-h em {
  font-family: var(--font-serif);
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scc-mock-h.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.scc-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 4px;
}

.scc-meta h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.scc-meta span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--ink-faint);
}

.showcase-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 64px auto 0;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
  width: fit-content;
  display: flex;
  justify-content: center;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.showcase-more {
  margin-left: auto;
  margin-right: auto;
}

.showcase-more:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(199, 125, 255, 0.04);
}

@media (max-width: 860px) {
  .showcase { padding: 100px 20px; }
  .showcase-strip { grid-template-columns: 1fr; gap: 18px; }
  .scc-trail { height: 40vh; }
}

/* =========================================================
   DEMO MODAL — clicked card morphs into the modal frame
   (port of the kensoku "node turns into the eelco site" effect,
    adapted from circle to rectangle)
   ========================================================= */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  /* set by JS at open: center of the clicked card + card frame size */
  --start-x: 50%;
  --start-y: 50%;
  --start-w: 320px;
  --start-h: 200px;
  /* final size of the modal */
  --target-w: min(1280px, 94vw);
  --target-h: min(820px, 90vh);
}

.demo-modal[data-state="closed"] { display: none; }
.demo-modal[data-state="opening"],
.demo-modal[data-state="open"],
.demo-modal[data-state="closing"] { pointer-events: auto; }

.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 8, 0.78);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.demo-modal[data-state="open"] .demo-modal-backdrop { opacity: 1; }

/* The morph shell: starts as a small dark-purple rounded rect at the
   clicked card, grows into the large modal at viewport center. */
.demo-modal-shell {
  position: absolute;
  top: var(--start-y);
  left: var(--start-x);
  width: var(--start-w);
  height: var(--start-h);
  transform: translate(-50%, -50%);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(35, 22, 50, 0.95) 0%, rgba(18, 10, 28, 0.95) 100%);
  border: 1px solid rgba(199, 125, 255, 0.18);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(199, 125, 255, 0.05),
    0 0 0 0 rgba(157, 78, 221, 0);
  transition:
    top    0.7s cubic-bezier(0.7, 0, 0.2, 1),
    left   0.7s cubic-bezier(0.7, 0, 0.2, 1),
    width  0.7s cubic-bezier(0.7, 0, 0.2, 1),
    height 0.7s cubic-bezier(0.7, 0, 0.2, 1),
    border-radius 0.7s cubic-bezier(0.7, 0, 0.2, 1),
    box-shadow 0.6s ease 0.1s,
    background 0.5s ease 0.1s;
  will-change: top, left, width, height, border-radius;
}
.demo-modal[data-state="open"] .demo-modal-shell {
  top: 50%;
  left: 50%;
  width: var(--target-w);
  height: var(--target-h);
  border-radius: 16px;
  background: #0a0612;
  box-shadow:
    0 0 0 1px rgba(199, 125, 255, 0.08),
    0 30px 100px -20px rgba(0, 0, 0, 0.9),
    0 0 120px -20px rgba(157, 78, 221, 0.4);
}

/* Iframe sits at modal target size, centered in the shell. While the shell
   is small the iframe is clipped by overflow:hidden; opacity stays at 0
   until the shell finishes growing, then it fades in. */
.demo-modal-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--target-w);
  height: var(--target-h);
  transform: translate(-50%, -50%);
  border: 0;
  background: #050307;
  opacity: 0;
  transition: opacity 0.4s ease 0.5s;
}
.demo-modal[data-state="open"] .demo-modal-frame { opacity: 1; }

.demo-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(20, 12, 28, 0.82);
  border: 1px solid rgba(199, 125, 255, 0.22);
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.3s ease 0.55s,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s,
    background 0.2s ease,
    border-color 0.2s ease;
}
.demo-modal-close:hover {
  background: rgba(199, 125, 255, 0.18);
  border-color: rgba(199, 125, 255, 0.4);
}
.demo-modal[data-state="open"] .demo-modal-close {
  opacity: 1;
  transform: scale(1);
}

/* The clicked card fades while the modal is up so the morph reads as
   "the card became the modal," not as a duplicate appearing on top. */
.scc--lifted {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.2s ease 0.05s;
}
.scc--lifted .scc-trail { opacity: 0 !important; animation: none !important; }

body.modal-open { overflow: hidden; }

@media (max-width: 760px) {
  .demo-modal { --target-w: 96vw; --target-h: 88vh; }
}

/* =========================================================
   PROCESS MODAL — interactive 5-step timeline
   ========================================================= */
.proc-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 3vw;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s;
}

.proc-modal[data-state="open"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.proc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 8, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.proc-modal-shell {
  position: relative;
  width: 100%;
  max-width: 920px;
  height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, rgba(157, 78, 221, 0.18) 0%, transparent 60%),
    #0a0612;
  border: 1px solid rgba(199, 125, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(199, 125, 255, 0.06),
    0 30px 100px -20px rgba(0, 0, 0, 0.9),
    0 0 120px -20px rgba(157, 78, 221, 0.35);
  transform: scale(0.95);
  opacity: 0;
  animation: proc-pop 0.55s cubic-bezier(.16, 1, .3, 1) 0.05s forwards;
}

@keyframes proc-pop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.proc-modal-bar {
  position: relative;
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.proc-modal-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 8px;
}

.proc-modal-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.proc-modal-title em.grad {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.proc-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(20, 12, 28, 0.82);
  border: 1px solid rgba(199, 125, 255, 0.22);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.proc-modal-close:hover {
  background: rgba(199, 125, 255, 0.18);
  border-color: rgba(199, 125, 255, 0.4);
}

/* Sticky strip of jump chips */
.proc-strip-wrap {
  position: relative;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: rgba(10, 6, 14, 0.7);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.proc-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.proc-strip::-webkit-scrollbar { display: none; }

.proc-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-dim);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  cursor: pointer;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease);
}

.proc-chip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c77dff, #7b2cbf);
  color: #0a060e;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 4px 14px rgba(157, 78, 221, 0.45);
}

.proc-chip-label {
  text-transform: lowercase;
  letter-spacing: 0.14em;
  font-size: 11px;
}

.proc-chip:hover {
  background: rgba(199, 125, 255, 0.15);
  border-color: rgba(199, 125, 255, 0.55);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(157, 78, 221, 0.25);
}

.proc-chip.is-active {
  background: rgba(199, 125, 255, 0.22);
  border-color: rgba(224, 170, 255, 0.7);
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(224, 170, 255, 0.55),
    0 14px 30px rgba(157, 78, 221, 0.45);
}

/* Scrollable step body */
.proc-scroll {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(40px, 6vh, 70px) 32px clamp(80px, 10vh, 120px);
  scroll-behavior: smooth;
  isolation: isolate;
}

.proc-scroll::-webkit-scrollbar { width: 8px; }
.proc-scroll::-webkit-scrollbar-track { background: transparent; }
.proc-scroll::-webkit-scrollbar-thumb { background: rgba(199, 125, 255, 0.18); border-radius: 4px; }
.proc-scroll::-webkit-scrollbar-thumb:hover { background: rgba(199, 125, 255, 0.32); }

/* Containing block for the rail — content-sized so the rail spans the full
   timeline rather than just the visible viewport. */
.proc-content {
  position: relative;
}

/* central vertical rail */
.proc-rail {
  position: absolute;
  top: 12px;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  pointer-events: none;
  z-index: 1;
}

.proc-rail-track {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--line-strong) 4%, var(--line-strong) 96%, transparent 100%);
  border-radius: 2px;
}

.proc-rail-fill {
  position: absolute;
  top: 0;
  left: -1px;
  width: 4px;
  height: 0%;
  border-radius: 2px;
  background: linear-gradient(180deg, #e0aaff, #9d4edd);
  box-shadow: 0 0 16px rgba(157, 78, 221, 0.65);
  transition: height 0.12s linear;
}

.proc-stops {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 7vh, 90px);
  z-index: 2;
}

/* one milestone — 3-col grid: card | node | spacer (alternating) */
.proc-stop {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: start;
  column-gap: clamp(18px, 3vw, 32px);
  min-height: 200px;
  --enter-x: 40px;
}

/* alternating: odd → card on the left, even → card on the right */
.proc-stop:nth-child(odd) > .proc-card {
  grid-column: 1;
  text-align: right;
  --enter-x: -40px;
}
.proc-stop:nth-child(odd) > .proc-step-tag-side {
  grid-column: 3;
  justify-self: start;
}
.proc-stop:nth-child(even) > .proc-card {
  grid-column: 3;
  text-align: left;
}
.proc-stop:nth-child(even) > .proc-step-tag-side {
  grid-column: 1;
  justify-self: end;
}

/* the node sits on the rail */
.proc-node {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  align-self: start;
  margin-top: 8px;
}

.proc-node-disc {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(20, 12, 28, 0.85);
  border: 1px solid rgba(199, 125, 255, 0.32);
  color: var(--ink-dim);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 4px #0a0612,
    0 12px 32px rgba(0, 0, 0, 0.4);
  transition:
    background 0.5s var(--ease),
    border-color 0.5s var(--ease),
    color 0.5s var(--ease),
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}

.proc-stop.is-active .proc-node-disc {
  background: linear-gradient(135deg, #c77dff, #7b2cbf);
  border-color: rgba(224, 170, 255, 0.6);
  color: #0a060e;
  transform: scale(1.08);
  box-shadow:
    0 0 0 4px #0a0612,
    0 0 0 5px rgba(224, 170, 255, 0.35),
    0 16px 40px rgba(157, 78, 221, 0.55);
}

/* card */
.proc-card {
  padding-top: 8px;
  opacity: 0.55;
  transform: translateX(var(--enter-x));
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.proc-stop.is-active .proc-card,
.proc-stop.is-in-view .proc-card {
  opacity: 1;
  transform: translateX(0);
}

.proc-card-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: lowercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 10px;
}

.proc-card-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0 0 12px;
  color: var(--ink);
}

.proc-card-title em.grad {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.proc-card-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 38ch;
  margin-left: auto;
}

.proc-stop:nth-child(even) .proc-card-text {
  margin-left: 0;
  margin-right: auto;
}

.proc-step-tag-side {
  align-self: center;
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: rgba(244, 241, 247, 0.32);
  margin-top: 32px;
  transition: color 0.5s var(--ease);
}

.proc-stop.is-active .proc-step-tag-side {
  color: rgba(224, 170, 255, 0.7);
}

@media (max-width: 760px) {
  .proc-modal { padding: 0; }
  .proc-modal-shell { height: 100vh; max-height: 100vh; border-radius: 0; max-width: 100%; }
  .proc-modal-bar { padding: 22px 20px 18px; }
  .proc-strip-wrap { padding: 12px 20px; }
  .proc-scroll { padding: 32px 20px 64px; }

  /* rail moves to the left side; stops become single-column */
  .proc-rail { left: 28px; transform: none; bottom: 32px; }
  .proc-stops { gap: 40px; }
  .proc-stop { grid-template-columns: 56px 1fr; }
  .proc-stop:nth-child(odd) > .proc-card,
  .proc-stop:nth-child(even) > .proc-card {
    grid-column: 2;
    text-align: left;
    --enter-x: 20px;
  }
  .proc-stop:nth-child(odd) > .proc-step-tag-side,
  .proc-stop:nth-child(even) > .proc-step-tag-side {
    display: none;
  }
  .proc-node {
    grid-column: 1;
    width: 56px;
    height: 56px;
    margin-top: 0;
    justify-self: start;
  }
  .proc-node-disc { width: 44px; height: 44px; font-size: 13px; }
  .proc-card-text, .proc-stop:nth-child(even) .proc-card-text { margin: 0; max-width: none; }
}

/* =========================================================
   KIT — included vs. add-ons
   ========================================================= */
.kit {
  position: relative;
  z-index: 2;
  padding: 120px 32px 140px;
  background: var(--bg-deep);
  overflow: hidden;
}

.kit::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  width: 70vw;
  height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(157, 78, 221, 0.14) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(8px);
}

.kit-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
  position: relative;
  z-index: 1;
}

.kit-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 18px;
}

.kit-title {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 16px;
}

.kit-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0 auto;
  max-width: 560px;
}

.kit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.kit-col {
  position: relative;
  padding: 36px 32px 32px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(244, 241, 247, 0.025) 0%, rgba(244, 241, 247, 0.005) 100%),
    rgba(8, 5, 12, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.kit-col-extras {
  border-color: rgba(199, 125, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(199, 125, 255, 0.05) 0%, rgba(199, 125, 255, 0.01) 100%),
    rgba(8, 5, 12, 0.6);
}

.kit-col-head {
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.kit-col-eyebrow {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 12px;
}

.kit-col-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 10px;
}

.kit-col-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-dim);
  margin: 0;
}

.kit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.kit-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 14px;
}

.kit-list strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}

.kit-list em {
  display: block;
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-dim);
}

.kit-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(157, 78, 221, 0.14);
  border: 1px solid rgba(199, 125, 255, 0.28);
  color: #e0aaff;
  flex-shrink: 0;
  margin-top: 1px;
}

.kit-mark.plus {
  background: rgba(199, 125, 255, 0.18);
  border-color: rgba(199, 125, 255, 0.4);
  color: #e0aaff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  padding-bottom: 1px;
}

@media (max-width: 920px) {
  .kit { padding: 90px 24px 100px; }
  .kit-grid { grid-template-columns: 1fr; gap: 20px; }
  .kit-col { padding: 28px 24px; }
}

/* =========================================================
   PERCHED SECTION — climbs over the hero
   ========================================================= */
.perched {
  position: relative;
  z-index: 2;
  padding: 120px 24px 60px;
  background:
    linear-gradient(180deg, transparent 0%, var(--bg-deep) 8%, var(--bg-deep) 100%);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow:
    0 -40px 80px -20px rgba(0, 0, 0, 0.8),
    0 -1px 0 var(--line-strong),
    0 -2px 60px -10px var(--glow);
}

.perched::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: var(--grad);
  filter: blur(0.5px);
  box-shadow: 0 0 30px var(--glow);
}

.perched-shell {
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================================
   FACTS ROW — minimal price/timeline/code trio
   ========================================================= */
.facts {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  max-width: 900px;
  margin: 40px auto 56px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(20, 12, 28, 0.4);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.fact-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: lowercase;
  color: var(--ink-faint);
  font-weight: 500;
}

.fact-value {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
}

.fact-value em.grad {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.fact-meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}

.fact-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--line-strong), transparent);
}

.facts-cta {
  text-align: center;
  margin-bottom: 80px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: linear-gradient(135deg, rgba(199, 125, 255, 0.14) 0%, rgba(123, 44, 191, 0.10) 100%);
  border: 1px solid rgba(199, 125, 255, 0.4);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(199, 125, 255, 0.08),
    0 10px 30px rgba(157, 78, 221, 0.18);
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.ghost-btn:hover {
  border-color: rgba(224, 170, 255, 0.7);
  background: linear-gradient(135deg, rgba(199, 125, 255, 0.24) 0%, rgba(123, 44, 191, 0.18) 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(224, 170, 255, 0.2),
    0 14px 40px rgba(157, 78, 221, 0.32);
}

.ghost-btn svg {
  transition: transform 0.3s var(--ease-out);
}

.ghost-btn:hover svg {
  transform: translateX(3px);
}

/* wrapper for section-end CTAs (under showcase, kit, etc) */
.section-cta {
  text-align: center;
  margin: 64px auto 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 720px) {
  .facts {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
  }
  .fact-divider { width: 60%; height: 1px; margin: 0 auto; background: linear-gradient(to right, transparent, var(--line-strong), transparent); }
}

.perched-head {
  text-align: center;
  margin-bottom: 80px;
}

.perched-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--amethyst-1);
  margin-bottom: 24px;
  opacity: 0.85;
}

.perched-title {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.perched-title em.grad {
  font-size: 1.02em;
}

/* =========================================================
   CARDS GRID
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 120px;
}

.card {
  position: relative;
  padding: 36px 32px 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.6s var(--ease), border-color 0.6s var(--ease);
  cursor: default;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(199, 125, 255, 0.3), transparent 50%, rgba(199, 125, 255, 0.1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.card-glow {
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at center, var(--glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  pointer-events: none;
  filter: blur(40px);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 125, 255, 0.2);
}
.card:hover::before { opacity: 1; }
.card:hover .card-glow { opacity: 0.6; }

.card-num {
  position: absolute;
  top: 28px;
  right: 32px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.card-title em.grad {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 2px;
}

.card-title span {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  color: var(--ink-faint);
}

.card-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-dim);
  flex: 1;
}

.card-meta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* =========================================================
   PERCHED CTA
   ========================================================= */
.perched-cta {
  position: relative;
  margin: 60px 0 80px;
  padding: 60px 48px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(157, 78, 221, 0.12) 0%, rgba(60, 9, 108, 0.08) 100%),
    rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(199, 125, 255, 0.18);
  overflow: hidden;
}

.perched-cta::before {
  content: '';
  position: absolute;
  top: -80%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow-soft) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.perched-cta-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.perched-cta-eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.perched-cta-title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 40px 0 120px;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.foot-dot { color: var(--amethyst-2); }

/* =========================================================
   DEMOS PAGE
   ========================================================= */
.page-demos main {
  padding-top: 0;
}

.demos-hero {
  position: sticky;
  top: 0;
  height: 70vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  z-index: 1;
}

.demos-hero-inner {
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

.demos-hero .hero-title {
  font-size: clamp(48px, 9vw, 120px);
  margin-bottom: 28px;
}

.demos-hero .hero-sub {
  margin-bottom: 0;
}

.demos-grid-wrap {
  position: relative;
  z-index: 2;
  margin-top: 70vh;
  padding: 100px 24px 60px;
  background: linear-gradient(180deg, transparent 0%, var(--bg-deep) 8%, var(--bg-deep) 100%);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow:
    0 -40px 80px -20px rgba(0, 0, 0, 0.8),
    0 -1px 0 var(--line-strong),
    0 -2px 60px -10px var(--glow);
}

.demos-grid-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: var(--grad);
  filter: blur(0.5px);
  box-shadow: 0 0 30px var(--glow);
}

.demos-grid {
  max-width: 1200px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* =========================================================
   DEMO CARD
   ========================================================= */
.demo {
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out);
}
.demo.in {
  opacity: 1;
  transform: translateY(0);
}

.demo-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0a0410;
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(199, 125, 255, 0.04);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s var(--ease);
}

.demo:hover .demo-frame {
  transform: translateY(-6px);
  border-color: rgba(199, 125, 255, 0.22);
  box-shadow:
    0 40px 100px -30px rgba(0, 0, 0, 0.95),
    0 0 80px -20px var(--glow),
    0 0 0 1px rgba(199, 125, 255, 0.12);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.frame-bar span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.frame-bar span:nth-child(1) { background: rgba(255, 95, 86, 0.5); }
.frame-bar span:nth-child(2) { background: rgba(255, 189, 46, 0.5); }
.frame-bar span:nth-child(3) { background: rgba(40, 200, 64, 0.5); }

.frame-url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
}

.frame-canvas {
  aspect-ratio: 16 / 10;
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* per-demo canvas backgrounds */
.demo-canvas-1 {
  background:
    radial-gradient(circle at 80% 20%, rgba(199, 125, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #0d0816 0%, #060309 100%);
}
.demo-canvas-2 {
  background:
    radial-gradient(circle at 20% 30%, rgba(199, 125, 255, 0.06), transparent 50%),
    linear-gradient(180deg, #1a0f08 0%, #0a0603 100%);
}
.demo-canvas-3 {
  background:
    radial-gradient(circle at 70% 80%, rgba(199, 125, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #08090d 0%, #030305 100%);
}
.demo-canvas-4 {
  background:
    radial-gradient(circle at 30% 70%, rgba(199, 125, 255, 0.1), transparent 50%),
    linear-gradient(180deg, #100818 0%, #060309 100%);
}
.demo-canvas-5 {
  background:
    radial-gradient(ellipse at center, rgba(157, 78, 221, 0.12), transparent 60%),
    linear-gradient(180deg, #0a0410 0%, #02010a 100%);
}
.demo-canvas-6 {
  background:
    radial-gradient(circle at 80% 30%, rgba(199, 125, 255, 0.07), transparent 50%),
    linear-gradient(180deg, #0c0712 0%, #060309 100%);
}

/* mock content */
.mock-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mock-logo {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.mock-logo.serif { font-family: var(--font-serif); font-style: italic; font-size: 16px; }
.mock-links {
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

.mock-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.mock-hero.center { align-items: center; text-align: center; }
.mock-hero.big-h { justify-content: center; align-items: center; }

.mock-hero h4 {
  font-size: 22px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mock-hero h4.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 26px; }
.mock-hero h4.huge { font-size: 44px; }
.mock-hero h4 em {
  font-family: var(--font-serif);
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mock-cta {
  display: inline-block;
  font-size: 11px;
  color: var(--ink-dim);
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  width: fit-content;
}
.mock-cta.solid {
  background: linear-gradient(135deg, var(--amethyst-2), var(--amethyst-3));
  color: var(--ink);
  border-color: transparent;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: auto;
}
.mock-grid span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.18), rgba(60, 9, 108, 0.1));
  border: 1px solid rgba(199, 125, 255, 0.08);
}

.mock-pills {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.mock-pills span {
  font-size: 9px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-faint);
  border: 1px solid var(--line);
}

.mock-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: center;
}
.mock-split-l h4 {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.mock-split-l p {
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.mock-split-r {
  aspect-ratio: 4/5;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(199, 125, 255, 0.15), rgba(60, 9, 108, 0.08));
  border: 1px solid var(--line);
}

.mock-row {
  display: flex;
  gap: 8px;
}
.mock-card {
  flex: 1;
  font-size: 10px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--ink-dim);
}

.mock-shop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}
.mock-tile {
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(199, 125, 255, 0.16), rgba(60, 9, 108, 0.06));
  border: 1px solid var(--line);
}

.tiny { font-size: 10px; color: var(--ink-faint); letter-spacing: 0.04em; }
.tiny.center { text-align: center; margin-top: auto; }

.dark-nav { border-bottom-color: rgba(255, 255, 255, 0.04); }

/* demo meta below frame */
.demo-meta {
  margin-top: 18px;
  padding: 0 4px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.demo-meta-left { flex: 1; }

.demo-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
  color: var(--ink);
}

.demo-desc {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.45;
}

.demo-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.demo-days {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.demo-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--ink-faint);
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* =========================================================
   CARD SWAP — floating stack, bottom-right of hero
   (vanilla port of the React Bits CardSwap component, theme-skinned)
   ========================================================= */
.card-swap-container {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 340px;
  height: 220px;
  transform: translate(8%, 22%);
  transform-origin: bottom right;
  perspective: 900px;
  overflow: visible;
  pointer-events: none; /* decorative; clicks pass through */
  z-index: 3;
}

.cs-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 220px;
  border-radius: 18px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(199, 125, 255, 0.10), transparent 55%),
    linear-gradient(150deg, rgba(20, 12, 30, 0.92) 0%, rgba(8, 4, 14, 0.94) 100%);
  border: 1px solid rgba(199, 125, 255, 0.16);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 80px -25px var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* subtle gradient seam on top edge of each card */
.cs-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 125, 255, 0.45), transparent);
  pointer-events: none;
}

.cs-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cs-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.cs-tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--ink-faint);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.cs-mid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

.cs-line {
  font-size: 18px;
  line-height: 1.1;
}

.cs-line em.grad {
  font-size: 1em;
}

.cs-foot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}

.cs-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amethyst-1);
  box-shadow: 0 0 8px var(--amethyst-1);
}

/* hide the stack on small screens — it'd crowd the hero */
@media (max-width: 900px) {
  .card-swap-container {
    transform: scale(0.7) translate(20%, 22%);
  }
}
@media (max-width: 680px) {
  .card-swap-container { display: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .demos-grid { grid-template-columns: 1fr; gap: 24px; }
  .perched { padding: 80px 20px 40px; }
  .demos-grid-wrap { padding: 70px 20px 40px; }
  .brand { top: 20px; left: 20px; }
  .brand-mark { font-size: 22px; }
  .pill-nav { bottom: 20px; padding: 5px; gap: 2px; }
  .pill-link { padding: 9px 14px; font-size: 12px; }
  .perched-cta { padding: 40px 28px; }
  .perched-cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-scroll-hint { bottom: 90px; }
}

@media (max-width: 600px) {
  .pill-link.contact { display: none; } /* keep nav compact */
  .hero { min-height: 580px; }
  .demos-hero { min-height: 420px; height: 60vh; }
  .demos-grid-wrap { margin-top: 60vh; }
  .demo-meta { flex-direction: column; align-items: flex-start; }
  .demo-meta-right { flex-direction: row; align-items: center; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* =========================================================
   CONTACT MODAL — big chat-style modal from pill nav + CTA
   ========================================================= */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  visibility: hidden;
  pointer-events: none;
}

.contact-modal[data-state="open"] {
  visibility: visible;
  pointer-events: auto;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 1, 6, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.contact-modal[data-state="open"] .contact-modal-backdrop { opacity: 1; }

.contact-modal-shell {
  position: relative;
  width: min(520px, 100%);
  padding: 56px 40px 40px;
  border-radius: 24px;
  border: 1px solid rgba(199, 125, 255, 0.28);
  background:
    radial-gradient(ellipse at top, rgba(157, 78, 221, 0.22) 0%, transparent 60%),
    rgba(12, 7, 22, 0.96);
  box-shadow:
    0 0 0 1px rgba(224, 170, 255, 0.08),
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(157, 78, 221, 0.22);
  text-align: center;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition:
    opacity 0.32s ease,
    transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal[data-state="open"] .contact-modal-shell {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.contact-modal-close:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.contact-modal-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 22px;
}

.contact-modal-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(199, 125, 255, 0.28) 0%, rgba(123, 44, 191, 0.22) 100%);
  border: 1px solid rgba(199, 125, 255, 0.45);
  color: #e0aaff;
  box-shadow: 0 0 40px rgba(157, 78, 221, 0.35);
}

.contact-chat {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.contact-msg {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 28px;
  border-radius: 22px;
  background: rgba(244, 241, 247, 0.06);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  max-width: 100%;
}

.contact-msg-lead {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--ink-dim);
  letter-spacing: -0.005em;
}

.contact-msg-num {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter 0.2s ease;
}

.contact-msg-num:hover {
  filter: brightness(1.2);
}

.contact-msg-tail {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--ink-dim);
  letter-spacing: -0.005em;
}

.contact-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.contact-modal-btn.primary {
  background: var(--grad);
  color: #ffffff;
  border-color: rgba(224, 170, 255, 0.35);
  box-shadow: 0 14px 40px rgba(157, 78, 221, 0.4);
}

.contact-modal-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(157, 78, 221, 0.55);
}

.contact-modal-btn.secondary {
  background: rgba(244, 241, 247, 0.04);
  color: var(--ink);
  border-color: var(--line-strong);
}

.contact-modal-btn.secondary:hover {
  background: rgba(199, 125, 255, 0.1);
  border-color: rgba(199, 125, 255, 0.45);
}

.contact-modal-btn .icon-check { display: none; }
.contact-modal-btn.is-copied .icon-copy { display: none; }
.contact-modal-btn.is-copied .icon-check { display: block; }
.contact-modal-btn.is-copied {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.5);
  background: rgba(37, 211, 102, 0.1);
}

@media (max-width: 560px) {
  .contact-modal { padding: 20px; }
  .contact-modal-shell { padding: 48px 24px 28px; }
  .contact-modal-avatar { width: 64px; height: 64px; }
  .contact-modal-actions { flex-direction: column; }
  .contact-modal-btn { width: 100%; }
}

/* =========================================================
   FAB STACK + CHAT PANEL — sticky bottom-right
   ========================================================= */
.fab-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: rgba(8, 5, 12, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.fab svg { flex-shrink: 0; }

.fab:hover {
  transform: translateY(-2px);
  border-color: rgba(199, 125, 255, 0.5);
}

.fab-chat {
  color: var(--ink);
}
.fab-chat:hover {
  background: rgba(20, 12, 28, 0.92);
  color: #e0aaff;
}

.fab-wa {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(199, 125, 255, 0.18) 0%, rgba(123, 44, 191, 0.14) 100%), rgba(8, 5, 12, 0.78);
  border-color: rgba(199, 125, 255, 0.32);
}
.fab-wa:hover {
  color: #ffffff;
  border-color: rgba(199, 125, 255, 0.6);
  background: linear-gradient(135deg, rgba(199, 125, 255, 0.28) 0%, rgba(123, 44, 191, 0.22) 100%), rgba(8, 5, 12, 0.82);
}

/* contact popover anchored above the get-in-touch FAB */
.fab-contact-wrap {
  position: relative;
}

.fab-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-width: 240px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 6, 18, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.fab-pop[data-state="open"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab-pop-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin: 0 0 8px;
}

.fab-pop-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fab-pop-num {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.005em;
  flex: 1;
  user-select: all;
}

.fab-pop-num:hover {
  color: #e0aaff;
}

.fab-pop-copy {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(244, 241, 247, 0.04);
  color: var(--ink-dim);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  position: relative;
}

.fab-pop-copy:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.fab-pop-copy .icon-check { display: none; }
.fab-pop-copy.is-copied {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.5);
  background: rgba(37, 211, 102, 0.12);
}
.fab-pop-copy.is-copied .icon-copy { display: none; }
.fab-pop-copy.is-copied .icon-check { display: block; }

/* chat panel */
.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 120px;
  z-index: 95;
  width: min(360px, calc(100vw - 48px));
  height: min(540px, calc(100vh - 160px));
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 6, 18, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(199, 125, 255, 0.12);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.chat-panel[data-state="open"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(199, 125, 255, 0.08) 0%, transparent 100%);
}

.chat-head-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: -0.005em;
}

.chat-head-title strong {
  font-weight: 500;
  color: var(--ink);
}

.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 12px #25d366;
  animation: chat-dot-pulse 2s ease-in-out infinite;
}

@keyframes chat-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-close {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.chat-close:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(199, 125, 255, 0.2); border-radius: 3px; }

.chat-msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  letter-spacing: -0.003em;
  animation: chat-msg-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes chat-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg-bot {
  align-self: flex-start;
  background: rgba(244, 241, 247, 0.05);
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.chat-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg a {
  color: #e0aaff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.chat-msg-user a { color: #fff; }

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 12px;
  max-height: 110px;
  overflow-y: auto;
}

.chat-chip {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: -0.005em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(244, 241, 247, 0.03);
  color: var(--ink-dim);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.chat-chip:hover {
  color: var(--ink);
  border-color: rgba(199, 125, 255, 0.45);
  background: rgba(199, 125, 255, 0.08);
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.chat-input input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13.5px;
  letter-spacing: -0.005em;
  padding: 6px 4px;
}

.chat-input input::placeholder {
  color: var(--ink-faint);
}

.chat-input button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: var(--grad);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.chat-input button:hover { transform: scale(1.06); }

@media (max-width: 560px) {
  .fab-stack { right: 16px; bottom: 16px; gap: 8px; }
  .fab { padding: 10px 14px; font-size: 12px; }
  .chat-panel { right: 16px; left: 16px; width: auto; bottom: 110px; height: min(520px, calc(100vh - 150px)); }
}
