:root {
  --bg: #040404;
  --bg-soft: #0a0a0c;
  --text: #f4f4f4;
  --muted: #9a9aa4;
  --purple: #b15af8;
  --orange: #ff8951;
  --orange-hot: #ff622b;
  --line: rgba(255, 255, 255, 0.07);
  --grad: linear-gradient(104deg, var(--purple) 12%, var(--orange) 94%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

/* Grid backdrop */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100px 100px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.25));
}

/* Glow blobs */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.glow.purple { background: rgba(177, 90, 248, 0.30); }
.glow.orange { background: rgba(255, 98, 43, 0.22); }

/* ---------- Video intro ---------- */
#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.1s ease, visibility 1.1s ease;
}
#intro.done { opacity: 0; visibility: hidden; }
#intro video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Phones are taller than the 9:16 cut, so `cover` would crop the lockup.
   `contain` letterboxes instead — invisible against the black backdrop. */
@media (max-width: 767px) {
  #intro video { object-fit: contain; }
}
#skip-intro {
  position: absolute;
  bottom: 38px;
  right: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 11px 22px;
  border-radius: 100px;
  font: 600 12px/1 'Archivo', sans-serif;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}
#skip-intro:hover { background: rgba(255, 255, 255, 0.18); }

body.intro-active { overflow: hidden; }

/* Reveal animation for the page underneath */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-up.in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
header.site {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 18px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
header.site.stuck {
  background: rgba(4, 4, 4, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
header.site .brand img { height: 46px; width: auto; }

.nav-desktop { display: flex; gap: 32px; align-items: center; }
.nav-desktop a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-desktop a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 13px;
  padding: 15px 30px;
  border-radius: 100px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-grad {
  background: var(--grad);
  color: #0b0b0b;
  box-shadow: 0 8px 30px rgba(177, 90, 248, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { border-color: var(--purple); }

.cta-short { display: none; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(42px, 7.4vw, 96px); }
h2 { font-size: clamp(32px, 4.8vw, 62px); }
h3 { font-size: clamp(22px, 2.4vw, 34px); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 18px;
}

.lead { font-size: 18px; color: var(--muted); max-width: 620px; }

section { position: relative; z-index: 1; }
.pad { padding: 120px 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero .glow.purple { width: 620px; height: 620px; top: -140px; left: -160px; }
.hero .glow.orange { width: 520px; height: 520px; bottom: -180px; right: -120px; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin: 32px 0 40px; font-size: 20px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Numbered cards ---------- */
.stack { display: flex; flex-direction: column; gap: 18px; margin-top: 56px; }
.ncard {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  padding: 42px 40px 42px 108px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.ncard:hover { border-color: rgba(177, 90, 248, 0.5); transform: translateX(6px); }
.ncard .num {
  position: absolute;
  top: -1px;
  left: -1px;
  background: var(--grad);
  color: #0b0b0b;
  font-weight: 800;
  font-size: 14px;
  padding: 9px 15px;
  border-radius: 18px 0 18px 0;
  letter-spacing: 0.5px;
}
.ncard h3 { margin-bottom: 10px; }
.ncard p { color: var(--muted); margin: 0; max-width: 62ch; }

/* ---------- Big statement ---------- */
.statement { text-align: center; position: relative; overflow: hidden; }
.statement .glow.purple { width: 560px; height: 560px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.statement h2 { position: relative; z-index: 1; }
.pills { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 42px; position: relative; z-index: 1; }
.pill {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 100px;
  padding: 13px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

/* ---------- Feature rows ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.feature.flip .fig { order: -1; }
.feature .step {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 14px;
  display: block;
}
.feature h2 { margin-bottom: 20px; font-size: clamp(28px, 3.6vw, 46px); }
.feature p { color: var(--muted); margin-bottom: 26px; }
.feature ul { list-style: none; padding: 0; margin: 0 0 28px; }
.feature ul li {
  padding: 11px 0 11px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--muted);
  font-size: 15px;
}
.feature ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 12px;
  height: 2px;
  background: var(--grad);
}
.fig {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(177,90,248,0.16), transparent 60%), #0a0a0c;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
}
.fig img { max-height: 100%; width: auto; object-fit: contain; }
/* .fig is a flex container; a <picture> wrapper would become the flex item
   itself and stretch, distorting the image. display:contents hands the
   sizing back to the <img>. */
.fig picture { display: contents; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  background: rgba(255,255,255,0.015);
}
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: slide 34s linear infinite;
}
.marquee.rev .marquee-track { animation-direction: reverse; }
.marquee span {
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(255,255,255,0.42);
}
.marquee span em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Logo grid ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 52px;
}
.logos div {
  background: var(--bg);
  padding: 34px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 118px;
}
.logos img { max-height: 46px; width: auto; filter: grayscale(1) brightness(1.7) opacity(0.6); transition: filter 0.25s ease; }
.logos div:hover img { filter: grayscale(0) opacity(1); }

/* ---------- Client grid ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}
.client {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.client:hover {
  border-color: rgba(177, 90, 248, 0.55);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(177,90,248,0.10), rgba(255,255,255,0.012));
}
.client .sector {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.client .name {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 21px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
}
.client .domain {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.client .domain::after {
  content: "↗";
  font-size: 12px;
  opacity: 0.6;
  transition: transform 0.25s ease;
}
.client:hover .domain { color: var(--orange); }
.client:hover .domain::after { transform: translate(2px, -2px); opacity: 1; }

@media (max-width: 900px) { .clients { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .clients { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 52px auto 0; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 26px 44px 26px 0;
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--purple);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 26px; padding-right: 40px; }

/* ---------- CTA ---------- */
.cta-final { text-align: center; position: relative; overflow: hidden; padding: 150px 0; }
.cta-final .glow.orange { width: 640px; height: 640px; left: 50%; top: 55%; transform: translate(-50%, -50%); }
.cta-final h2 { position: relative; z-index: 1; max-width: 18ch; margin: 0 auto 22px; }
.cta-final p { position: relative; z-index: 1; color: var(--muted); max-width: 55ch; margin: 0 auto 38px; }
.cta-final .btn { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 76px 0 40px;
  position: relative;
  z-index: 1;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 44px; margin-bottom: 60px; }
.foot-grid h4 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 700;
}
.foot-grid a, .foot-grid p { display: block; color: var(--text); font-size: 15px; margin-bottom: 11px; }
.foot-grid a:hover { color: var(--purple); }
/* Keep pill buttons centered — the rule above would otherwise make them block. */
.foot-grid a.btn { display: inline-flex; color: #0b0b0b; }
.foot-grid a.btn:hover { color: #0b0b0b; }
.foot-brand img { height: 52px; margin-bottom: 18px; }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.foot-bottom a { color: var(--muted); }
.foot-bottom a:hover { color: var(--text); }

/* ---------- Local-visibility split hero ---------- */
.lv-hero { padding: 112px 0 60px; }
/* ~40/60 — the booking widget only lays dates and times out side by side
   once its own frame is wide enough, so the calendar gets the larger share. */
.lv-split {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 44px;
  /* stretch so the preview card matches the height of the copy beside it */
  align-items: stretch;
  position: relative;
  z-index: 1;
  /* .hero is a flex container, so without this the grid shrinks to its
     content width and the fr ratio collapses to equal columns. */
  width: 100%;
  /* Wider than the site default: the booking widget only lays dates and
     times out side by side once its frame is ~800px, and squeezing that
     out of a 1240 container leaves the copy column too narrow to read. */
  max-width: 1440px;
}
/* Let the columns honour the ratio instead of being held open by the
   iframe's intrinsic min-width. */
.lv-split > * { min-width: 0; }
.lv-hero h1 {
  font-size: clamp(32px, 3.5vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.lv-hero .lead { font-size: 16.5px; margin: 0 0 28px; max-width: 46ch; }

/* ---------- Calendar preview card ----------
   A styled stand-in for the booking widget. Clicking it opens the real
   calendar in a lightbox, so the hero keeps a layout we control and the
   iframe's own navigation never has to live inline. */
.cal-preview {
  /* Column flex so the card can fill the stretched grid track and push the
     CTA to the bottom, keeping both hero columns level. */
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  padding: 26px 26px 22px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font: inherit;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.cal-preview:hover {
  border-color: rgba(177,90,248,0.6);
  transform: translateY(-3px);
  box-shadow: 0 26px 70px rgba(0,0,0,0.55);
}
.cal-preview:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

.cp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cp-head img { height: 34px; width: auto; }
.cp-head .t {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.cp-head .t span { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 2px; }

.cp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cp-meta span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 12px;
}

/* Absorbs the spare height so the CTA stays pinned to the card's bottom. */
.cp-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; flex: 1; }
/* The aspect-ratio day cells give .cp-grid a large intrinsic min-width;
   without this the fr columns refuse to shrink and the card blows out. */
.cp-body > * { min-width: 0; }
.cp-grid, .cp-times { min-width: 0; }

.cp-month {
  text-align: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}
/* minmax(0,…) not 1fr: `1fr` floors at the item's min-content, and the
   aspect-ratio cells make that large enough to blow the card open. */
.cp-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  /* Default align-content is stretch, which would grow the auto rows to
     fill whatever height the column is stretched to. */
  align-content: start;
}
.cp-grid .dow {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #6b6b76;
  text-align: center;
  padding-bottom: 4px;
}
/* Fixed 26px circles centred in each track. Deliberately not aspect-ratio:
   in a grid track that resolves against min-content and overflows. */
.cp-grid .d {
  width: 26px;
  height: 26px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  color: var(--muted);
  border-radius: 50%;
}
.cp-grid .d.free { color: var(--text); background: rgba(177,90,248,0.16); font-weight: 700; }
.cp-grid .d.today { background: var(--grad); color: #0b0b0b; font-weight: 800; }
/* Named .blank, not .pad — the site already uses .pad for 120px section
   padding, which was inflating these cells to 240px tall. */
.cp-grid .d.blank { opacity: 0; }

.cp-times { display: grid; gap: 7px; align-content: start; }
.cp-times .slot {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 9px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255,255,255,0.03);
}
.cp-times .more { font-size: 11px; color: var(--muted); text-align: center; padding-top: 2px; }

.cp-cta {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cp-cta .label { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 14px; }
.cp-cta .go {
  background: var(--grad);
  color: #0b0b0b;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 10px 18px;
  white-space: nowrap;
  transition: transform 0.25s ease;
}
.cal-preview:hover .cp-cta .go { transform: translateX(3px); }

@media (max-width: 460px) {
  .cp-body { grid-template-columns: 1fr; }
  .cp-times { grid-template-columns: repeat(3, 1fr); }
}

/* Booking lightbox — reuses .lightbox from the portfolio, plus an iframe.
   Scrolling lives on .lb-scroll, not on the panel and not on the overlay:
   a scrollbar inside the panel squares off its rounded right edge, while
   scrolling the overlay drags the close button away with it (the overlay's
   backdrop-filter makes it the containing block even for position:fixed). */
.lightbox.scrolls { align-items: flex-start; overflow: hidden; }
.lightbox .lb-scroll {
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lightbox .lb-frame {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.lightbox .lb-frame iframe {
  width: 100%;
  min-height: 640px;
  border: none;
  display: block;
  border-radius: inherit;
}

/* Calendar column — capped so the whole booking UI stays in view on a
   laptop screen; it scrolls internally past that. */
.lv-cal .cal-wrap { margin: 0; }
.lv-cal .cal-wrap iframe { min-height: 0; }

@media (min-width: 941px) {
  .lv-cal .cal-wrap {
    max-height: calc(100vh - 190px);
    overflow-y: auto;
  }
}

@media (max-width: 940px) {
  .lv-hero { padding: 92px 0 40px; }
  .lv-split { grid-template-columns: 1fr; gap: 34px; }
  .lv-hero .lead { max-width: none; }
}

/* ---------- Stat row ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.stats .s {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 28px;
  background: rgba(255,255,255,0.02);
  text-align: center;
}
.stats .s .stat-fig {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(38px, 4.6vw, 54px);
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats .s p { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: 12px; }

/* ---------- Tiers ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
  align-items: start;
}
.tier {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px 30px;
  background: rgba(255,255,255,0.02);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.tier.featured {
  border-color: rgba(177,90,248,0.55);
  background: linear-gradient(180deg, rgba(177,90,248,0.10), rgba(255,255,255,0.02));
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.tier .flag {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--grad);
  color: #0b0b0b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 100px;
}
.tier h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.tier ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.tier ul li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.tier ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 13px; height: 8px;
  border-left: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(-45deg);
}
.tier ul li.carry {
  padding-left: 0;
  color: var(--text);
  font-weight: 700;
  font-size: 13.5px;
}
.tier ul li.carry::before { display: none; }
.tier .bestfor {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.tier .bestfor strong {
  display: block;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

@media (max-width: 940px) {
  .tiers { grid-template-columns: 1fr; gap: 30px; }
}
/* Keep the three figures on one line as long as they read comfortably;
   only stack on true phone widths. */
@media (max-width: 620px) {
  .stats { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Book page ---------- */
.book-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.book-wrap .cal-wrap { margin-top: 0; }

.expect {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 56px;
}
.expect .e {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px;
  background: rgba(255,255,255,0.02);
}
.expect .e .n {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1.6px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
  display: block;
}
.expect .e h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.expect .e p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.book-alt {
  text-align: center;
  margin-top: 54px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.book-alt a { color: var(--text); font-weight: 700; }
.book-alt .row { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }

@media (max-width: 860px) { .expect { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Landing page ---------- */
.lp-header { border-bottom: 1px solid var(--line); background: rgba(4,4,4,0.9); }
.lp-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.lp-header .brand img { height: 38px; }
.lp-header .ph { font-size: 14px; font-weight: 700; color: var(--muted); }
.lp-header .ph a { color: var(--text); }

.alert-bar {
  background: var(--grad);
  color: #0b0b0b;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.4px;
  padding: 11px 16px;
}

.lp-hero { position: relative; padding: 70px 0 80px; overflow: hidden; }
.lp-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.lp-hero h1 {
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.lp-hero .kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(255,137,81,0.4);
  background: rgba(255,137,81,0.08);
  border-radius: 100px;
  padding: 8px 16px;
  margin-bottom: 24px;
}
.lp-hero .sub { font-size: 18px; color: var(--muted); line-height: 1.6; margin-bottom: 30px; max-width: 52ch; }

.checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.checks li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}
.checks .tick {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--grad);
  color: #0b0b0b;
  font-size: 13px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

.lp-note {
  border-left: 3px solid var(--purple);
  padding: 4px 0 4px 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.eligibility {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  background: rgba(255,255,255,0.02);
}
.eligibility h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.eligibility ul { margin: 0; padding-left: 20px; }
.eligibility li { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-bottom: 8px; }
.eligibility li:last-child { margin-bottom: 0; }
.eligibility li strong { color: var(--text); }

/* Entry form */
.entry-card {
  background: #0b0b0e;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 22px;
  padding: 34px 32px 30px;
  position: sticky;
  top: 100px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.entry-card h2 { font-size: 26px; line-height: 1.05; margin-bottom: 6px; }
.entry-card .why { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.entry-card .btn { width: 100%; margin-top: 6px; }
.entry-card .fineprint { font-size: 11px; color: #6b6b76; text-align: center; margin: 14px 0 0; line-height: 1.5; }
.entry-card .fineprint a { color: #8a8a96; text-decoration: underline; }

.spots {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.spots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255,137,81,0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(255,137,81,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,137,81,0); }
}

/* Success state */
.entered { display: none; text-align: center; padding: 12px 0 6px; }
.entered.show { display: block; }
.entered .cal-wrap { margin-top: 22px; }

/* After entry the offer column is redundant — hand the width to the calendar. */
.lp-grid.entered-view { grid-template-columns: 1fr; }
.lp-grid.entered-view > div:first-child { display: none; }
.lp-grid.entered-view .entry-card {
  position: static;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}
.entered .big {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--grad); color: #0b0b0b;
  font-size: 30px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.entered h2 { margin-bottom: 10px; }
.entered p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

/* Value strip */
.value-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}
.value-strip .v .n {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 32px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.value-strip .v p { color: var(--muted); font-size: 14px; margin-top: 8px; }

@media (max-width: 980px) {
  .lp-grid { grid-template-columns: 1fr; gap: 40px; }
  .entry-card { position: static; }
  .value-strip { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .lp-hero { padding: 44px 0 56px; }
  .entry-card { padding: 26px 20px 24px; border-radius: 18px; }
  .lp-header .ph { display: none; }
}

/* ---------- Portfolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 44px 0 40px;
}
.filter {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 20px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.filter:hover { color: var(--text); border-color: rgba(255,255,255,0.28); }
.filter.active {
  background: var(--grad);
  border-color: transparent;
  color: #0b0b0b;
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.port-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.port-card.is-hidden { display: none; }
.port-card.ready { cursor: pointer; }
.port-card.ready:hover { border-color: rgba(177,90,248,0.55); transform: translateY(-4px); }

.port-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #08080b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.port-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Portrait clips would lose ~2/3 of the frame to `cover` in a 16:9 tile,
   so letterbox them instead. Applied by JS once metadata reports a
   taller-than-wide source. */
.port-thumb video.vertical { object-fit: contain; }
.port-thumb .play {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(10,10,12,0.62);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  transition: transform 0.25s ease, background 0.25s ease;
  pointer-events: none;
}
.port-card.ready:hover .play { transform: scale(1.12); background: rgba(177,90,248,0.85); }

.port-thumb .soon {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #4a4a55;
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 100px;
  padding: 9px 18px;
}

.port-meta { padding: 20px 22px 22px; }
.port-meta .cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.port-meta h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 7px 0 4px;
  line-height: 1.2;
}
/* Named .port-client, not .client — the Markets grid already owns that class. */
.port-meta .port-client { display: block; font-size: 13px; color: var(--muted); }

.port-empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
  font-size: 15px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(2,2,4,0.9);
  backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; }
.lightbox-inner { width: 100%; max-width: 1000px; }
.lightbox video {
  width: 100%;
  max-height: 78vh;
  border-radius: 14px;
  background: #000;
  display: block;
}
/* Size portrait clips by height so they don't sit in a wide black box. */
.lightbox video.vertical {
  width: auto;
  height: 78vh;
  max-width: 100%;
  margin: 0 auto;
}
.lightbox .lb-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 18px;
  margin-top: 18px;
  text-align: center;
}
.lightbox .lb-client { text-align: center; color: var(--muted); font-size: 13px; margin-top: 4px; }
.lb-close {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lb-close:hover { background: rgba(255,255,255,0.16); transform: rotate(90deg); }

@media (max-width: 900px) { .port-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .port-grid { grid-template-columns: 1fr; }
  .filters { gap: 8px; }
  .filter { padding: 9px 15px; font-size: 11px; }
}

/* ---------- Modal form ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  background: rgba(2, 2, 4, 0.82);
  backdrop-filter: blur(8px);
}
.modal.open { display: flex; }
body.modal-open { overflow: hidden; }

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: auto;
  background: #0b0b0e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 44px 44px 38px;
  animation: pop 0.28s ease;
}
.modal-panel.wide { max-width: 780px; }
@keyframes pop {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.14); transform: rotate(90deg); }

.modal h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 10px; }
.modal .modal-sub { color: var(--muted); font-size: 15px; margin: 0 0 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input,
.field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #131317;
  color: var(--text);
  font: 400 15px/1.4 'Archivo', sans-serif;
  transition: border-color 0.2s ease;
}
.field input::placeholder { color: #5c5c66; }
.field input:focus,
.field select:focus { outline: none; border-color: var(--purple); }
.field input:user-invalid,
.field select:user-invalid { border-color: #ff5c5c; }

/* Native select needs its own chevron once appearance is stripped. */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%239a9aa4' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}
.field select option { background: #131317; color: var(--text); }

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 14px;
}
.consent input { margin-top: 3px; flex: none; accent-color: var(--purple); }

.form-error {
  display: none;
  background: rgba(255, 92, 92, 0.1);
  border: 1px solid rgba(255, 92, 92, 0.4);
  color: #ff9b9b;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}
.form-error.show { display: block; }

.modal form .btn { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.form-legal { text-align: center; font-size: 12px; color: var(--muted); margin: 16px 0 0; }
.form-legal a { color: var(--muted); text-decoration: underline; }

/* Thank-you / booking state */
.thanks { display: none; text-align: center; }
.thanks.show { display: block; }
.thanks .tick {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--grad);
  color: #0b0b0b;
  font-size: 30px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.thanks h2 { margin-bottom: 10px; }
.thanks p { color: var(--muted); margin: 0 auto 26px; max-width: 46ch; font-size: 15px; }
.cal-wrap {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.cal-wrap iframe {
  width: 100%;
  min-height: 720px;
  border: none;
  display: block;
}

@media (max-width: 560px) {
  .modal { padding: 16px 12px; }
  .modal-panel { padding: 38px 22px 28px; border-radius: 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cal-wrap iframe { min-height: 640px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-desktop { display: none; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .fig { order: 0; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .pad { padding: 84px 0; }
  .ncard { padding: 36px 26px 32px 26px; }
  .ncard .num { position: static; display: inline-block; margin-bottom: 14px; border-radius: 100px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  header.site .btn { font-size: 11px; padding: 12px 18px; letter-spacing: 1px; white-space: nowrap; }
  header.site .brand img { height: 38px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  #skip-intro { bottom: 24px; right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .reveal-up { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   AI AUTOMATION PAGE
   Chart palette validated with the dataviz validator against surface #0b0b0e:
     #b15af8 purple  — the automation / the captured value
     #dd6a38 orange  — the baseline / the value being lost
     #3a9d6e green   — reserve slot
   All six checks PASS (lightness band, chroma floor, CVD separation,
   normal-vision floor, contrast). Classes are ai-/chrt- prefixed so they
   can't collide with site utilities like .pad or .client.
   ========================================================================== */
:root {
  --c1: #b15af8;
  --c2: #dd6a38;
  --c3: #3a9d6e;
  --chart-surface: #0b0b0e;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Hero stat ---- */
/* Sized so the whole card clears a 900px-tall viewport alongside the hero. */
.ai-hero-stat {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(177,90,248,0.10), rgba(255,255,255,0.02));
  padding: 26px 34px 24px;
  text-align: center;
  margin-top: 26px;
}
.ai-hero-stat .ai-fig {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(52px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ai-hero-stat .cap { font-size: 15.5px; color: var(--text); margin-top: 10px; font-weight: 600; }
.ai-hero-stat .sub { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* range bar under the hero number */
.ai-range { max-width: 520px; margin: 20px auto 0; }
.ai-range .track {
  height: 10px; border-radius: 100px;
  background: rgba(255,255,255,0.08);
  position: relative; overflow: hidden;
}
.ai-range .fill {
  position: absolute; inset: 0 50% 0 0;
  background: var(--grad); border-radius: 100px;
}
.ai-range .ticks {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--muted); margin-top: 9px; font-weight: 700;
}

/* ---- Callout ---- */
.ai-callout {
  border-left: 3px solid var(--c1);
  background: rgba(177,90,248,0.06);
  border-radius: 0 14px 14px 0;
  padding: 18px 24px;
  margin-top: 22px;
}
.ai-callout h4 {
  font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--c1); margin-bottom: 9px;
}
.ai-callout p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* ---- Channel block ---- */
.ai-channel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; padding: 74px 0;
  border-bottom: 1px solid var(--line);
}
.ai-channel:last-of-type { border-bottom: none; }
.ai-channel.flip .chrt { order: -1; }
.ai-channel h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; }
.ai-channel p { color: var(--muted); font-size: 16px; line-height: 1.65; margin-bottom: 14px; }
.ai-channel .step {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--c2); margin-bottom: 12px;
}

/* ---- Chart shell ---- */
.chrt {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--chart-surface);
  padding: 28px 26px 22px;
}
.chrt .chrt-title {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 15px; margin-bottom: 4px;
}
.chrt .chrt-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
.chrt .chrt-src {
  font-size: 11px; color: #6b6b76; margin-top: 20px;
  border-top: 1px solid var(--line); padding-top: 12px;
}
.chrt-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.chrt-legend .k { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.chrt-legend .sw { width: 11px; height: 11px; border-radius: 3px; flex: none; }

/* ---- Horizontal bars ---- */
.chrt-bars { display: grid; gap: 16px; }
.chrt-bar .lab {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; margin-bottom: 7px;
}
.chrt-bar .lab .n { color: var(--text); font-weight: 600; }
.chrt-bar .lab .v { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 15px; color: var(--text); }
.chrt-bar .track { height: 14px; background: rgba(255,255,255,0.055); border-radius: 4px; overflow: hidden; }
.chrt-bar .fill {
  height: 100%; border-radius: 4px;
  transition: filter 0.2s ease;
}
.chrt-bar:hover .fill { filter: brightness(1.15); }

/* ---- Pictogram ---- */
.chrt-picto { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-bottom: 16px; }
.chrt-picto .u { aspect-ratio: 1; border-radius: 5px; background: rgba(255,255,255,0.07); }
.chrt-picto .u.on { background: var(--c2); }
.chrt-picto-cap { font-size: 13px; color: var(--muted); }
.chrt-picto-cap strong { color: var(--text); }

/* ---- Stacked proportion ---- */
.chrt-stack { display: flex; height: 44px; border-radius: 6px; overflow: hidden; gap: 2px; }
.chrt-stack .seg {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 14px; color: #0b0b0b;
  transition: filter 0.2s ease;
}
.chrt-stack .seg:hover { filter: brightness(1.12); }
.chrt-stack .seg:first-child { border-radius: 6px 0 0 6px; }
.chrt-stack .seg:last-child { border-radius: 0 6px 6px 0; }

/* ---- Paired before/after ----
   The bar sits inside a fixed-height .plot rather than being a flex sibling of
   the labels: as a direct flex item its percentage height resolved against the
   leftover space, so 100% and 75% both rendered identically and the chart
   misstated the data. */
.chrt-pair { display: flex; align-items: flex-end; gap: 26px; }
.chrt-pair .col { flex: 1; display: flex; flex-direction: column; }
.chrt-pair .col .v {
  font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 22px;
  text-align: center; margin-bottom: 9px; flex: none;
}
.chrt-pair .col .plot { height: 150px; display: flex; align-items: flex-end; flex: none; }
.chrt-pair .col .b { width: 100%; border-radius: 4px 4px 0 0; transition: filter 0.2s ease; }
.chrt-pair .col:hover .b { filter: brightness(1.15); }
.chrt-pair .col .n { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; flex: none; }

/* ---- Table toggle ---- */
.chrt-tbl-btn {
  background: none; border: none; color: #6b6b76; font: inherit; font-size: 11px;
  text-decoration: underline; cursor: pointer; padding: 0; margin-top: 8px;
}
.chrt-tbl-btn:hover { color: var(--muted); }
.chrt table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12.5px; }
.chrt th, .chrt td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); color: var(--muted); }
.chrt th { color: var(--text); font-weight: 700; }
.chrt table[hidden] { display: none; }

@media (max-width: 900px) {
  .ai-channel { grid-template-columns: 1fr; gap: 32px; padding: 50px 0; }
  .ai-channel.flip .chrt { order: 0; }
  /* Was larger than the tightened desktop padding, pushing the card below
     the fold on a 375x812 screen. */
  .ai-hero-stat { padding: 22px 20px 20px; }
}
