/* ═══════════════════════════════════════════════
   Aesthetic Agent — design system
   Palette drawn from warm amber → black gradients
   ═══════════════════════════════════════════════ */
:root {
  --black: #0a0000;
  --ink: #0f0a01;
  --white: #ffffff;
  --cream: #f8f1f1;
  --sand: #ebe9e5;
  --orange: #ff7600;
  --coral: #ff8a50;
  --gold: #ffd278;
  --peach: #ffd6b2;
  --rust: #cc4e2b;
  --w80: rgba(255, 255, 255, 0.8);
  --w50: rgba(255, 255, 255, 0.5);
  --w20: rgba(255, 255, 255, 0.2);
  --w08: rgba(255, 255, 255, 0.08);
  --font-display: "DM Sans", sans-serif;
  --font-body: "Inter", sans-serif;
  --r: 8px;
  --r-lg: 12px;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; }

html { background: var(--black); }
body {
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* clip (not hidden) avoids a mobile Safari bug where overflow on body
     breaks position:fixed elements (like .nav) so they scroll with the page */
  overflow-x: clip;
}

::selection { background: var(--orange); color: var(--black); }

h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

.container { max-width: 1320px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.is-hidden { display: none !important; }
.tld { color: var(--gold); }
.section { padding: clamp(90px, 12vw, 170px) 0; position: relative; }
.muted { color: var(--w50); font-size: 14px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 28px;
}

.display {
  font-size: clamp(38px, 5dvw, 76px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.display.xl { font-size: clamp(56px, 9vw, 140px); }

.split-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.split-row-side p { color: var(--w80); max-width: 40ch; margin-bottom: 24px; }
@media (max-width: 860px) { .split-row { grid-template-columns: 1fr; align-items: start; } }

/* ═══════════ FIXED SCENE (live 3D backdrop) ═══════════ */
.scene {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  /* warm copper atmosphere behind the transparent WebGL canvas — bright end to end */
  background:
    radial-gradient(120% 90% at 68% 12%, #ffa268 0%, rgba(255, 138, 60, 0.65) 34%, transparent 64%),
    radial-gradient(90% 70% at 20% 45%, rgba(224, 98, 50, 0.55) 0%, transparent 62%),
    linear-gradient(180deg, #e07428 0%, #c05e1e 42%, #8a4014 76%, #5a2a0c 100%);
}
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}
body.webgl .scene video { display: none; }
/* far-field bokeh: pre-blurred discs drifting behind the crisp layer */
.scene-bokeh {
  position: absolute; border-radius: 50%;
  filter: blur(26px); opacity: 0.7;
  background: radial-gradient(circle at 34% 30%, rgba(255, 214, 178, 0.9), rgba(255, 138, 80, 0.35) 55%, rgba(120, 45, 10, 0) 72%);
  will-change: transform;
}
.scene-bokeh.b1 { width: 34vmin; height: 34vmin; top: 6%; left: 8%; }
.scene-bokeh.b2 { width: 22vmin; height: 22vmin; top: 58%; left: 78%; opacity: 0.4; }
.scene-bokeh.b3 { width: 16vmin; height: 16vmin; top: 32%; left: 62%; opacity: 0.35; filter: blur(32px); }
.scene-bokeh.b4 { width: 26vmin; height: 26vmin; top: 74%; left: 18%; opacity: 0.3; filter: blur(30px); }
.scene-tint {
  position: absolute; inset: 0;
  background: radial-gradient(110% 80% at 65% 15%, rgba(255, 118, 0, 0.5), rgba(204, 78, 43, 0.18) 55%, transparent 80%);
  mix-blend-mode: overlay;
}

/* ═══════════ LOADER ═══════════ */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--black);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--pad);
  transition: transform 1s var(--ease), visibility 1s;
}
.loader.done { transform: translateY(-100%); visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.loader-brand { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.loader-brand sup, .nav-logo sup { font-size: 0.5em; opacity: 0.6; }
.loader-count {
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 220px);
  font-weight: 500; letter-spacing: -0.04em;
  align-self: flex-end; line-height: 1;
  background: linear-gradient(135deg, var(--peach), var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.loader-bar { height: 2px; background: var(--w08); margin-top: 24px; border-radius: 2px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--rust), var(--orange), var(--gold)); transition: width 0.2s ease-out; }

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
  /* backdrop-filter is intentionally left out of this transition list — see
     the note above .nav.scrolled:not(:has(...)) below for why it must
     always apply/remove instantly rather than animate. */
  transition: background 0.5s, padding 0.5s, transform 0.6s var(--ease);
}
.nav.scrolled {
  background: rgba(40, 16, 4, 0.45);
  padding: 12px var(--pad);
}
/* backdrop-filter on an ancestor creates a new containing block for
   position:fixed descendants — that would confine the full-screen mobile
   menu (a fixed child of .nav) to the header's own small box instead of
   the viewport. Suppress the blur only while that menu is open. */
.nav.scrolled:not(:has(.nav-links.open)) {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav.hidden { transform: translateY(-110%); }
.nav-logo { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav-links > a:not(.btn) {
  font-size: 15px; color: var(--w80); position: relative;
  transition: color 0.3s;
}
.nav-links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 100%;
  background: var(--white); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links > a:not(.btn):hover { color: var(--white); }
.nav-links > a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-burger { display: none; }
/* language dropdown */
.lang-dd { position: relative; }
.lang-dd-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  background: var(--w08); border: 1px solid var(--w20); color: var(--white);
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  transition: background 0.3s, border-color 0.3s;
}
.lang-dd-btn:hover { background: var(--w20); border-color: var(--w50); }
.lang-dd-btn .flag { font-size: 15px; line-height: 1; }
.lang-dd-chev { color: var(--w50); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.lang-dd.open .lang-dd-chev { transform: rotate(180deg); }
.lang-dd-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 20;
  list-style: none; min-width: 168px; padding: 6px;
  background: rgba(20, 10, 3, 0.97);
  border: 1px solid var(--w20); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.lang-dd.open .lang-dd-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lang-dd-menu li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--w80);
  transition: background 0.2s, color 0.2s;
}
.lang-dd-menu li .flag { font-size: 17px; }
.lang-dd-menu li:hover { background: var(--w08); color: var(--white); }
.lang-dd-menu li[aria-selected="true"] { background: var(--w08); color: var(--white); }
.lang-dd-menu li[aria-selected="true"]::after {
  content: "✓"; margin-left: auto; color: var(--coral); font-weight: 700;
}
@media (max-width: 780px) {
  .lang-dd-menu { right: auto; left: 50%; transform: translate(-50%, -6px) scale(0.97); transform-origin: top center; }
  .lang-dd.open .lang-dd-menu { transform: translate(-50%, 0) scale(1); }
}

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-orb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--white); color: var(--black);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.35s var(--ease);
}
.btn-orb.dark { background: var(--black); color: var(--white); }
.btn-orb svg { width: 14px; height: 14px; }
.btn:hover .btn-orb { transform: translateX(3px); }
.btn-dark { background: var(--black); color: var(--white); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.btn-dark:hover { background: #1a1a1a; }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--peach); }
.btn-glass {
  background: var(--w08); color: var(--white);
  border-color: var(--w20);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { background: var(--w20); }
.btn-outline { border-color: var(--w20); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: var(--w08); }
.btn.wide { width: 100%; justify-content: center; }

/* ═══════════ HERO ═══════════ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 0, 0, 0.06) 0%, rgba(10, 0, 0, 0) 40%, rgba(30, 12, 3, 0.3) 100%);
}
.hero-content {
  width: 100%;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  padding: 0 var(--pad) clamp(56px, 8vh, 110px);
}
.hero-title { font-size: clamp(44px, 6.4vw, 104px); line-height: 1.0; font-weight: 500; }
.hero-trust { margin-top: 36px; display: flex; align-items: center; gap: 18px; }
.hero-trust p { font-size: 15px; color: var(--w80); }
.avatars { display: flex; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--black);
  border: 2px solid rgba(10, 0, 0, 0.6);
  margin-left: -10px;
}
.avatar:first-child { margin-left: 0; }
.avatar.a1 { background: var(--gold); }
.avatar.a2 { background: var(--peach); }
.avatar.a3 { background: var(--coral); }
.avatar.a4 { background: var(--cream); }
.hero-right p { color: var(--w80); font-size: 17px; max-width: 38ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-scrollcue {
  position: absolute; bottom: 28px; right: var(--pad);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--w50);
  display: flex; align-items: center; gap: 10px;
}
.hero-scrollcue span { display: block; width: 1px; height: 42px; background: var(--w20); position: relative; overflow: hidden; }
.hero-scrollcue span::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--white); animation: scrollcue 1.8s var(--ease) infinite;
}
@keyframes scrollcue { 0% { top: -100%; } 60%, 100% { top: 100%; } }
@media (max-width: 860px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero { align-items: flex-end; }
}

/* ═══════════ SECTION BACKDROP CHOREOGRAPHY ═══════════
   Solid sections cover the scene; "window" sections let it through,
   with soft gradient edges — like the original's scene reveals. */
.partners, .features, .usecases, .testimonials { background: rgba(30, 12, 3, 0.38); }
.solutions { background: linear-gradient(180deg, rgba(30, 12, 3, 0) 0%, rgba(30, 12, 3, 0.38) 220px); }
.pricing { background: linear-gradient(180deg, rgba(30, 12, 3, 0.38) calc(100% - 260px), rgba(30, 12, 3, 0) 100%); }
/* legibility panel: darker warm glass with soft edges, numbers pop */
.stats {
  background: linear-gradient(180deg,
    rgba(20, 9, 2, 0) 0%, rgba(20, 9, 2, 0.62) 150px,
    rgba(20, 9, 2, 0.62) calc(100% - 150px), rgba(20, 9, 2, 0) 100%);
}
/* legibility over the bright scene comes from a soft warm halo, not a dark veil */
.section .split-row-side p,
.section > .container > .eyebrow,
.frow-body p, .acc-body p, .stat p, .hero-right p {
  text-shadow: 0 1px 22px rgba(50, 18, 3, 0.55);
}
.display, .hero-title { text-shadow: 0 2px 34px rgba(50, 18, 3, 0.35); }

/* ═══════════ SOLUTIONS / CHAT ═══════════ */
.chat-stage { position: relative; max-width: 860px; margin: 0 auto; }
.chat-window {
  background: linear-gradient(160deg, #171009 0%, #0d0700 100%);
  border: 1px solid var(--w08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(255, 118, 0, 0.07), 0 20px 60px rgba(0, 0, 0, 0.6);
}
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 24px; border-bottom: 1px solid var(--w08);
}
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #58d97a; box-shadow: 0 0 12px #58d97a; }
.chat-title { font-weight: 600; font-size: 15px; }
.chat-status { font-size: 12px; color: var(--w50); margin-left: auto; }
.chat-body {
  padding: 28px 24px 20px; display: flex; flex-direction: column; gap: 14px;
  height: 340px; overflow-y: auto; scroll-behavior: smooth;
  scrollbar-width: none;
}
.chat-body::-webkit-scrollbar { display: none; }
.msg.pop { animation: msg-in 0.45s var(--ease) both; }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-replies {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 14px 24px 20px; border-top: 1px solid var(--w08);
}
.chat-replies button {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  padding: 9px 15px; border-radius: 999px; cursor: pointer;
  background: var(--w08); color: var(--w80); border: 1px solid var(--w20);
  transition: all 0.3s;
}
.chat-replies button:hover { background: var(--w20); color: var(--white); border-color: var(--coral); transform: translateY(-1px); }
.chat-replies button.active { background: linear-gradient(135deg, var(--peach), var(--coral)); color: var(--black); border-color: transparent; }
.msg {
  max-width: 72%; padding: 13px 18px; font-size: 15px; line-height: 1.5;
  border-radius: 18px;
}
.msg.them { align-self: flex-start; background: var(--w08); border-bottom-left-radius: 4px; }
.msg.me {
  align-self: flex-end; color: var(--black);
  background: linear-gradient(135deg, var(--peach), var(--coral));
  border-bottom-right-radius: 4px;
}
.chat-typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 18px; background: var(--w08); border-radius: 18px; border-bottom-left-radius: 4px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--w50); animation: typing 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-chip {
  position: absolute; padding: 10px 16px; font-size: 13px; font-weight: 500;
  background: rgba(20, 12, 4, 0.8); border: 1px solid var(--w08); border-radius: 999px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: floaty 5s ease-in-out infinite;
}
.chip-1 { top: 20%; right: -3%; }
.chip-2 { bottom: 12%; left: -4%; animation-delay: 2.2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 720px) {
  /* on narrow screens .chat-window fills the whole stage width, so the
     floating chips have no side gutter to sit in — they'd overlap the
     chat and the reply buttons underneath. Pull them into normal flow
     instead: one badge above the window, one below the reply chips. */
  .chat-stage { display: flex; flex-direction: column; gap: 14px; }
  .chat-chip {
    position: static; align-self: flex-start;
    animation: none;
  }
  .chip-1 { order: -1; }
  .chip-2 { order: 1; align-self: flex-end; }
}

/* ═══════════ PARTNERS MARQUEE ═══════════ */
.partners { padding-bottom: clamp(60px, 8vw, 120px); }
.partners .container { margin-bottom: clamp(40px, 5vw, 72px); }
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--w08); border-bottom: 1px solid var(--w08);
  padding: 34px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: inline-flex; align-items: center; gap: 56px; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 500;
  color: var(--w50); transition: color 0.3s;
}
.marquee-track span:hover { color: var(--gold); }
.marquee-track span:nth-child(even) { font-size: 12px; color: var(--rust); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════ FEATURE CARDS ═══════════ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.four .card { padding: 36px 26px 80px; }
@media (max-width: 1100px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .cards, .cards.four { grid-template-columns: 1fr; } }
.card {
  position: relative;
  background: linear-gradient(160deg, #14100a 0%, #0c0801 100%);
  border: 1px solid var(--w08);
  border-radius: var(--r-lg);
  padding: 40px 32px 88px;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(255, 118, 0, 0.16), transparent 70%);
  opacity: 0; transition: opacity 0.5s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(255, 138, 80, 0.35); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--rust), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 60px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 24px; margin-bottom: 12px; }
.card p { color: var(--w80); font-size: 15px; max-width: 32ch; }
.card-num {
  position: absolute; bottom: 24px; right: 28px;
  font-family: var(--font-display); font-size: 15px; color: var(--w20);
}

/* ═══════════ KEY FEATURE ROWS ═══════════ */
.keyfeatures { background: linear-gradient(180deg, rgba(30, 12, 3, 0.2), rgba(30, 12, 3, 0.5) 50%, rgba(30, 12, 3, 0.2)); }
.frow {
  display: grid; grid-template-columns: 90px 1.2fr 1fr;
  gap: clamp(20px, 3vw, 56px); align-items: center;
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--w08);
}
.frow:last-child { border-bottom: 1px solid var(--w08); }
/* flipped rows: number stays in the narrow left column,
   visual takes the wide middle track, body moves right */
.frow.flip { grid-template-columns: 90px 1fr 1.2fr; }
.frow.flip .frow-num { order: -1; }
.frow.flip .frow-visual { order: 0; }
.frow.flip .frow-body { order: 1; }
.frow-num {
  font-family: var(--font-display); font-size: clamp(40px, 5vw, 72px); font-weight: 300;
  color: transparent; -webkit-text-stroke: 1px var(--coral);
}
.frow-body h3 { font-size: clamp(26px, 3vw, 40px); margin: 14px 0; letter-spacing: -0.02em; }
.frow-body > p:last-child { color: var(--w80); max-width: 46ch; }
.frow-body .eyebrow { margin-bottom: 0; }
.frow-visual {
  border-radius: var(--r-lg); min-height: 240px;
  border: 1px solid var(--w08);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.frow-visual.v1 { background: radial-gradient(100% 100% at 30% 20%, #2a1503, #0c0801); }
.frow-visual.v2 { background: radial-gradient(100% 100% at 70% 10%, #241104, #0c0801); }
.frow-visual.v3 { background: radial-gradient(100% 100% at 50% 0%, #1f1206, #0c0801); }
.orb {
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--peach), var(--orange) 45%, var(--rust) 80%);
  box-shadow: 0 30px 80px rgba(255, 118, 0, 0.35), inset 0 -12px 30px rgba(0, 0, 0, 0.35);
  animation: orb-breathe 6s ease-in-out infinite;
}
@keyframes orb-breathe { 0%, 100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.06) translateY(-8px); } }
.mini-bars { display: flex; align-items: flex-end; gap: 12px; height: 140px; }
.mini-bars i {
  width: 26px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--gold), var(--rust));
  height: var(--h);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 1s var(--ease);
}
.frow.in .mini-bars i { transform: scaleY(1); }
.mini-bars i:nth-child(2) { transition-delay: 0.1s; }
.mini-bars i:nth-child(3) { transition-delay: 0.2s; }
.mini-bars i:nth-child(4) { transition-delay: 0.3s; }
.mini-bars i:nth-child(5) { transition-delay: 0.4s; }
.tool-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 12px; padding: 24px; }
.tool-grid span {
  padding: 12px 20px; border-radius: 999px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--w20); color: var(--w80);
  transition: all 0.3s;
}
.tool-grid span:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
@media (max-width: 900px) {
  .frow, .frow.flip { grid-template-columns: 1fr; }
  .frow.flip .frow-num, .frow.flip .frow-visual, .frow.flip .frow-body { order: 0; }
}

/* ═══════════ PLATFORM DEMO 1: channel network ═══════════ */
.frow-visual { min-height: 280px; }
.net { position: relative; width: 100%; height: 280px; }
.net-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2;
}
.net-center em { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--w80); }
.net-core {
  width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--peach), var(--orange) 55%, var(--rust));
  box-shadow: 0 0 40px rgba(255, 118, 0, 0.55);
  animation: core-pulse 2.4s ease-in-out infinite;
}
@keyframes core-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 34px rgba(255, 118, 0, 0.45); }
  50% { transform: scale(1.1); box-shadow: 0 0 58px rgba(255, 118, 0, 0.75); }
}
.net-chip {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy)));
  padding: 9px 16px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--white);
  background: rgba(25, 11, 3, 0.85); border: 1px solid var(--w20);
  animation: chip-bob 4s ease-in-out infinite;
  animation-delay: calc(var(--sx) * 0.004s);
}
@keyframes chip-bob {
  0%, 100% { transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))); }
  50% { transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy) - 7px)); }
}
.net-dot {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 9px; height: 9px; border-radius: 50%;
}
.net-dot.in {
  background: var(--white); box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  animation: net-in 4.5s linear infinite;
}
.net-dot.out {
  background: var(--gold); box-shadow: 0 0 12px rgba(255, 210, 120, 0.9);
  animation: net-out 4.5s linear infinite;
}
@keyframes net-in {
  0% { opacity: 0; transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(0.5); }
  4% { opacity: 1; }
  16% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  20%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
}
@keyframes net-out {
  0%, 2% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  6% { opacity: 1; }
  18% { opacity: 1; transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(1); }
  22%, 100% { opacity: 0; transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(0.4); }
}
@media (max-width: 520px) { .net { transform: scale(0.72); } }

/* ═══════════ PLATFORM DEMO 2: self-serve setup ═══════════ */
.frow-visual.v2 { padding: 26px 0; }
.setup {
  width: min(320px, 90%); padding: 20px 22px 18px;
  background: rgba(18, 8, 2, 0.75); border: 1px solid var(--w08); border-radius: 14px;
}
/* stacked rows: label on its own line so nothing can overflow the card */
.setup-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 14px; }
.setup-row label {
  width: 100%; font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--w50);
}
.setup-pills { display: flex; gap: 8px; }
.setup-pills span {
  padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 500;
  white-space: nowrap;
  border: 1px solid rgba(255, 138, 80, 0.5); color: var(--peach);
  opacity: 0; animation: pill-pop 9s var(--ease) infinite;
}
.setup-pills .p1 { animation-delay: 0.3s; }
.setup-pills .p2 { animation-delay: 0.9s; }
.setup-pills .p3 { animation-delay: 1.5s; }
@keyframes pill-pop {
  0% { opacity: 0; transform: scale(0.7); }
  4%, 90% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(0.9); }
}
.setup-type {
  font-size: 13.5px; color: var(--white); overflow: hidden; white-space: nowrap;
  width: 0; max-width: 100%; border-right: 2px solid var(--coral);
  animation: type-in 9s steps(14) infinite;
}
@keyframes type-in {
  0%, 22% { width: 0; }
  38%, 90% { width: 14.5ch; }
  95%, 100% { width: 0; }
}
.setup-toggle {
  width: 38px; height: 21px; border-radius: 999px; position: relative; flex-shrink: 0;
  background: var(--w20); animation: tog-bg 9s ease infinite;
}
.setup-toggle i {
  position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--white); animation: tog-knob 9s var(--ease) infinite;
}
@keyframes tog-bg { 0%, 44% { background: var(--w20); } 48%, 92% { background: var(--orange); } 96%, 100% { background: var(--w20); } }
@keyframes tog-knob { 0%, 44% { transform: translateX(0); } 48%, 92% { transform: translateX(17px); } 96%, 100% { transform: translateX(0); } }
.setup-hrs { font-size: 13.5px; color: var(--w80); opacity: 0; animation: hrs-in 9s ease infinite; }
@keyframes hrs-in { 0%, 46% { opacity: 0; } 52%, 88% { opacity: 1; } 94%, 100% { opacity: 0; } }
.setup-bar { height: 5px; border-radius: 3px; background: var(--w08); overflow: hidden; margin: 16px 0 10px; }
.setup-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--rust), var(--orange), var(--gold));
  animation: bar-fill 9s var(--ease) infinite;
}
@keyframes bar-fill { 0%, 6% { width: 0; } 62% { width: 78%; } 70%, 90% { width: 100%; } 96%, 100% { width: 0; } }
.setup-foot { display: flex; align-items: center; justify-content: space-between; }
.setup-foot em { font-style: normal; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--w50); }
.setup-live {
  font-size: 13px; font-weight: 600; color: #6fe08d;
  opacity: 0; animation: live-pop 9s var(--ease) infinite;
}
@keyframes live-pop {
  0%, 70% { opacity: 0; transform: translateY(6px); }
  75%, 90% { opacity: 1; transform: translateY(0); }
  96%, 100% { opacity: 0; }
}

/* ═══════════ PLATFORM DEMO 3: booking sync ═══════════ */
.sync { position: relative; width: min(340px, 88%); padding: 10px 0 46px; }
.sync-cal {
  background: rgba(18, 8, 2, 0.75); border: 1px solid var(--w08); border-radius: 14px;
  padding: 18px;
}
.sync-cal header { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--w50); }
.sync-sys { color: var(--gold); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.cal-grid i {
  aspect-ratio: 1; border-radius: 6px; background: var(--w08);
}
.cal-grid i.busy { background: rgba(255, 138, 80, 0.22); }
.cal-grid i.target { animation: cell-land 8s var(--ease) infinite; }
@keyframes cell-land {
  0%, 47% { background: var(--w08); box-shadow: none; }
  53%, 92% { background: linear-gradient(135deg, var(--peach), var(--coral)); box-shadow: 0 0 18px rgba(255, 138, 80, 0.6); }
  97%, 100% { background: var(--w08); box-shadow: none; }
}
.sync-chip {
  position: absolute; top: -6px; right: -14px; z-index: 2;
  padding: 9px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: linear-gradient(135deg, var(--peach), var(--coral)); color: var(--black);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  animation: chip-fly 8s var(--ease) infinite;
}
@keyframes chip-fly {
  0%, 8% { opacity: 0; transform: translate(30px, -16px) scale(0.85); }
  14% { opacity: 1; transform: translate(0, 0) scale(1); }
  40% { opacity: 1; transform: translate(0, 0) scale(1); }
  52% { opacity: 0; transform: translate(-96px, 108px) scale(0.4); }
  100% { opacity: 0; }
}
.sync-badge {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  font-size: 13px; font-weight: 600; color: #6fe08d;
  opacity: 0; animation: badge-in 8s var(--ease) infinite;
}
@keyframes badge-in {
  0%, 55% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  62%, 90% { opacity: 1; transform: translateX(-50%) translateY(0); }
  96%, 100% { opacity: 0; }
}

/* ═══════════ IN THE CLINIC: full-bleed triptych ═══════════ */
.gallery-section { background: rgba(30, 12, 3, 0.38); padding-bottom: 0; }
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  width: 100%;
}
.gallery figure { position: relative; overflow: hidden; margin: 0; }
.gallery img {
  width: 100%; height: clamp(400px, 58vh, 640px); object-fit: cover; display: block;
  transition: transform 1.1s var(--ease);
}
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 52px 24px 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(10, 0, 0, 0.6));
}
@media (max-width: 860px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { flex: 0 0 80%; scroll-snap-align: center; }
  .gallery img { height: 420px; }
}

/* ═══════════ USE CASES ACCORDION ═══════════ */
.acc { border-top: 1px solid var(--w08); }
.acc-item { border-bottom: 1px solid var(--w08); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; color: var(--white); cursor: pointer;
  padding: clamp(24px, 3vw, 40px) 0; text-align: left;
}
.acc-head span { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 44px); font-weight: 500; letter-spacing: -0.02em; transition: color 0.3s, transform 0.4s var(--ease); }
.acc-head i {
  font-style: normal; font-size: 28px; font-weight: 300; color: var(--w50);
  transition: transform 0.4s var(--ease), color 0.3s;
}
.acc-item:hover .acc-head span { color: var(--gold); transform: translateX(10px); }
.acc-item.open .acc-head i { transform: rotate(45deg); color: var(--orange); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease); }
.acc-body p { color: var(--w80); max-width: 62ch; padding-bottom: clamp(24px, 3vw, 40px); }

/* ═══════════ STATS ═══════════ */
.stats { overflow: hidden; }
.stats-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 50% 110%, rgba(255, 118, 0, 0.28), transparent 70%),
    radial-gradient(40% 50% at 80% 100%, rgba(204, 78, 43, 0.2), transparent 70%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 96px); }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { border-top: 1px solid var(--w20); padding-top: 28px; }
.stat h3 {
  font-size: clamp(48px, 5.4vw, 84px); font-weight: 500; letter-spacing: -0.03em;
  color: var(--white);
}
.stat p { color: var(--white); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 10px; text-shadow: 0 1px 18px rgba(30, 12, 3, 0.7); }

/* ═══════════ TESTIMONIALS ═══════════ */
.quotes .quote { padding: 40px 32px; display: flex; flex-direction: column; gap: 40px; justify-content: space-between; }
.quote-text { font-family: var(--font-display); font-size: 20px; line-height: 1.45; letter-spacing: -0.01em; color: var(--cream); }
.quote-who { display: flex; align-items: center; gap: 14px; }
.quote-who .avatar { margin: 0; border-color: transparent; }
.quote-who h4 { font-size: 15px; }
.quote-who p { font-size: 13px; color: var(--w50); }

/* ═══════════ PRICING ═══════════ */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tiers.two { grid-template-columns: repeat(2, 1fr); max-width: 980px; margin: 0 auto; }
@media (max-width: 960px) { .tiers, .tiers.two { grid-template-columns: 1fr; } }
.tier {
  position: relative;
  background: linear-gradient(160deg, #14100a, #0c0801);
  border: 1px solid var(--w08); border-radius: var(--r-lg);
  padding: 40px 32px;
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
}
.tier:hover { transform: translateY(-8px); border-color: var(--w20); }
.tier.featured {
  background: linear-gradient(165deg, #2b1503 0%, #170b01 60%, #0c0600 100%);
  border-color: rgba(255, 138, 80, 0.4);
  box-shadow: 0 30px 90px rgba(255, 118, 0, 0.12);
}
.tier.featured:hover { box-shadow: 0 40px 110px rgba(255, 118, 0, 0.2); }
.tier-tag {
  position: absolute; top: 20px; right: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--rust)); color: var(--white);
}
.tier h3 { font-size: 22px; }
.tier-sub { color: var(--w50); font-size: 14px; margin: 8px 0 28px; }
.tier-price { font-family: var(--font-display); font-size: clamp(40px, 4vw, 56px); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 28px; }
.tier-price span { font-size: 16px; color: var(--w50); font-weight: 400; letter-spacing: 0; }
.tier ul { list-style: none; margin-bottom: 36px; flex: 1; }
.tier li { padding: 10px 0 10px 28px; font-size: 15px; color: var(--w80); border-bottom: 1px solid var(--w08); position: relative; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--coral); font-weight: 600; }

/* ═══════════ FOOTER: one continuous composition over the ambient loop ═══════════ */
.footer { position: relative; overflow: hidden; isolation: isolate; }
.footer-media { position: absolute; inset: 0; z-index: -2; }
.footer-media video {
  width: 100%; height: 100%; object-fit: cover;
  background: linear-gradient(200deg, var(--rust) 0%, #6b2c08 40%, #2a1204 100%);
}
/* readable toward the bottom, molten and bright up top */
.footer-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(10, 0, 0, 0.3) 0%, rgba(10, 0, 0, 0.1) 22%,
    rgba(10, 0, 0, 0.45) 55%, rgba(8, 2, 0, 0.82) 100%);
}
.footer-cta {
  position: relative; padding: clamp(80px, 9vw, 130px) 0 clamp(48px, 6vw, 80px);
  display: flex; align-items: center;
}
.footer-bottom { position: relative; }
.footer-cta .container { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 40px clamp(56px, 8vw, 130px);
  padding-top: clamp(32px, 4vw, 56px); padding-bottom: 48px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }
.footer-col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-col h5 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--w50); margin-bottom: 8px; }
.footer-col a { color: var(--w80); font-size: 15px; transition: color 0.3s, transform 0.3s; }
.footer-col a:hover { color: var(--gold); transform: translateX(4px); }
.footer-mark {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(70px, 13vw, 210px); letter-spacing: -0.05em; line-height: 0.9;
  text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 214, 178, 0.16), rgba(255, 118, 0, 0.02));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; pointer-events: none;
  transform: translateY(18%);
}
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--w08); padding-top: 24px; padding-bottom: 32px;
}

/* ═══════════ CONTACT PAGE ═══════════ */
.contact-main { min-height: 100svh; display: flex; align-items: center; padding: 140px 0 90px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 90px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-intro h1 { font-size: clamp(42px, 5.4vw, 74px); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 24px; }
.contact-intro p { color: var(--w80); max-width: 42ch; margin-bottom: 18px; text-shadow: 0 1px 22px rgba(50, 18, 3, 0.55); }
.contact-points { list-style: none; margin-top: 28px; }
.contact-points li { padding: 12px 0 12px 30px; position: relative; color: var(--w80); border-bottom: 1px solid var(--w08); }
.contact-points li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 600; }
.contact-card {
  background: linear-gradient(160deg, rgba(20, 10, 3, 0.92), rgba(12, 6, 1, 0.94));
  border: 1px solid var(--w08); border-radius: 20px;
  padding: clamp(28px, 3.4vw, 48px);
  box-shadow: 0 40px 120px rgba(20, 6, 0, 0.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--w80); margin-bottom: 8px; }
.field label span { color: var(--coral); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  background: var(--w08); border: 1px solid var(--w20); border-radius: var(--r);
  color: var(--white); font-family: var(--font-body); font-size: 15px;
  transition: border-color 0.3s, background 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--w50); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--coral); background: rgba(255, 255, 255, 0.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.contact-success { text-align: center; padding: 40px 10px; display: none; }
.contact-success.show { display: block; }
.contact-success .big { font-size: 48px; margin-bottom: 16px; }
.contact-success h3 { font-size: 26px; margin-bottom: 12px; }
.contact-success p { color: var(--w80); max-width: 40ch; margin: 0 auto; }
.contact-error {
  display: none; font-size: 14px; line-height: 1.5; color: #ffb4a8;
  background: rgba(255, 90, 60, 0.12); border: 1px solid rgba(255, 90, 60, 0.35);
  border-radius: 10px; padding: 12px 14px; margin: -4px 0 4px;
}
.contact-error.show { display: block; }
.contact-error a { color: inherit; text-decoration: underline; }
#contactSubmit.is-loading { opacity: 0.6; pointer-events: none; }

/* ═══════════ REVEAL SYSTEM ═══════════ */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: translateY(50px) scale(0.96); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal-scale.in { opacity: 1; transform: translateY(0) scale(1); }

/* split text line reveal */
.split .line { display: block; overflow: hidden; }
.split .line > span {
  display: block; transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.split.in .line > span { transform: translateY(0); }
.split.in .line:nth-child(2) > span { transition-delay: 0.08s; }
.split.in .line:nth-child(3) > span { transition-delay: 0.16s; }
.split.in .line:nth-child(4) > span { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-scale, .split .line > span { opacity: 1; transform: none; }
}

/* mobile nav */
@media (max-width: 780px) {
  /* solid, left-aligned, top-anchored panel — modeled on hints.so's mobile
     menu rather than a centered glassy overlay */
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: flex-start; align-items: flex-start;
    background: rgba(8, 2, 0, 0.98);
    padding: 104px var(--pad) 40px;
    font-size: 26px; gap: 22px;
    overflow-y: auto;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  }
  .nav-links.open {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
    z-index: 800;
  }
  .nav-links > a:not(.btn) { padding: 2px 0; }
  /* thin divider ahead of the language switcher + CTA cluster, like the
     rule hints.so draws above its "Try for free" button */
  .nav-links .lang-dd {
    margin-top: 10px; padding-top: 24px; width: 100%;
    border-top: 1px solid var(--w20);
  }
  /* .btn has 22px of horizontal padding baked in, so its own box being
     left-aligned still left its TEXT sitting 22px right of the plain
     links' text. Pull the box left by that same amount so the glyphs
     actually line up. */
  .nav-links .btn.btn-dark { margin-top: 6px; align-self: flex-start; margin-left: -22px; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 6px; z-index: 901;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-burger span { width: 26px; height: 2px; background: var(--white); transition: transform 0.35s var(--ease); }
  .nav-burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
}
