/* ============================================================
   VictVest — stylesheet
   Brand Kit v1.1 (July 2026), dark-canvas-first as the kit specifies.

   - Canvas #0A0A12 (never pure black). Paper #F6F4FB is bright relief.
   - "Purple is a light source, never a wall": violet is glow, wash and
     gradient — never a flood fill behind text.
   - Every dark band carries a visible ambient wash.
   - Text on dark: exactly three steps, #FFFFFF / #B8B8C6 / #8B8B99.
   - Real liquid glass: blur 24–28px, saturate(160%), specular inset hairline.
   - Retired and absent: pink #FAB0FF, pastel mesh, Cormorant Garamond.
   - Easing is the kit's cubic-bezier(0.4, 0, 0.2, 1) throughout.

   The work is the hero. Imagery is full-bleed and dense; copy supports it.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Syne'; src: url('/fonts/syne-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Syne'; src: url('/fonts/syne-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --canvas:       #0A0A12;
  --surface:      #101020;
  --surface-high: #16162A;
  --surface-top:  #1D1D34;

  --t1: #FFFFFF;
  --t2: #B8B8C6;
  --t3: #8B8B99;

  --paper:      #F6F4FB;
  --paper-2:    #ECE8F7;
  --ink:        #131320;
  --ink-2:      #4B4867;
  --ink-3:      #726E8C;
  --accent-ink: #6B4FD6;

  --sig-a: #E5D9F2;
  --sig-b: #CDC1FF;
  --violet: #9F8BFF;
  --violet-deep: #7C5FE0;
  --signature: linear-gradient(90deg, var(--sig-a) 0%, var(--sig-b) 100%);
  --live: #4ADE80;

  --ember: #FF6A3D;
  --teal:  #2DD4BF;
  --azure: #56A8FF;

  --line:      rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-hi:   rgba(205, 193, 255, 0.38);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 200ms; --t: 260ms; --t-slow: 380ms;

  --shell: 1280px;
  --wide: 1600px;
  --gutter: clamp(18px, 4.4vw, 44px);
  --r: 18px; --r-lg: 26px; --r-xl: 34px;
  --nav-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--t1);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; display: block; }
a { color: var(--sig-b); text-decoration: none; }
a:hover { color: var(--sig-a); }
::selection { background: rgba(159, 139, 255, 0.32); color: #fff; }
:focus-visible { outline: 2px solid var(--sig-b); outline-offset: 3px; border-radius: 8px; }
hr { border: 0; height: 1px; background: var(--line); margin: 0; }

/* ---------- Type ---------- */
h1, h2, h3, h4, .display {
  font-family: 'Syne', sans-serif; letter-spacing: -0.025em; line-height: 1.03; margin: 0;
  text-wrap: pretty;
  /* Long compound words in a narrow grid column would otherwise spill over the
     neighbouring column instead of wrapping. */
  overflow-wrap: break-word;
}
.display  { font-size: clamp(42px, 8vw, 104px); font-weight: 800; }
.display-sm { font-size: clamp(34px, 5.4vw, 68px); font-weight: 800; letter-spacing: -0.03em; }
h1, .h1 { font-size: clamp(31px, 4.6vw, 58px); font-weight: 800; }
h2, .h2 { font-size: clamp(25px, 2.8vw, 36px); font-weight: 700; line-height: 1.1; }
h3, .h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; } p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sig-b); margin: 0 0 20px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; opacity: .6; flex: none; }
.eyebrow--plain::before { display: none; }
.lede { font-size: clamp(16.5px, 1.4vw, 20px); color: var(--t2); line-height: 1.62; }
.small { font-size: 13.5px; }
.muted { color: var(--t3); }
.measure { max-width: 66ch; } .measure-tight { max-width: 48ch; }
.num { font-family: 'Syne', sans-serif; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.grad {
  background: linear-gradient(102deg, var(--sig-a) 0%, var(--sig-b) 40%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Layout ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.shell-wide { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(60px, 8vw, 128px); position: relative; }
.section--sm { padding-block: clamp(40px, 5vw, 72px); }
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.split { display: grid; gap: clamp(26px, 4vw, 64px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); } }
@media (min-width: 900px) { .split-even { grid-template-columns: 1fr 1fr; } }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center { text-align: center; }
.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; }

/* ---------- Ambient light ---------- */
.wash { position: relative; isolation: isolate; }
.wash::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52% 62% at 14% 4%, rgba(159,139,255,.26), transparent 66%),
    radial-gradient(44% 54% at 88% 30%, rgba(124,95,224,.22), transparent 70%);
}
.wash--low::before { background: radial-gradient(58% 60% at 82% 6%, rgba(159,139,255,.15), transparent 72%); }
.wash--ember::before { background: radial-gradient(52% 60% at 12% 4%, rgba(255,106,61,.16), transparent 68%), radial-gradient(46% 54% at 90% 40%, rgba(159,139,255,.20), transparent 70%); }
.wash--teal::before  { background: radial-gradient(52% 60% at 12% 4%, rgba(45,212,191,.14), transparent 68%), radial-gradient(46% 54% at 90% 40%, rgba(159,139,255,.20), transparent 70%); }
.wash--azure::before { background: radial-gradient(52% 60% at 12% 4%, rgba(86,168,255,.16), transparent 68%), radial-gradient(46% 54% at 90% 40%, rgba(159,139,255,.20), transparent 70%); }

/* ---------- Paper relief band ---------- */
.paper {
  background: var(--paper); color: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
}
.paper::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 88% 0%, rgba(159,139,255,.20), transparent 68%);
}
.paper h1, .paper h2, .paper h3 { color: var(--ink); }
.paper p, .paper .lede { color: var(--ink-2); }
.paper .muted, .paper .small.muted { color: var(--ink-3); }
.paper .eyebrow { color: var(--accent-ink); }
.paper a { color: var(--accent-ink); }
.paper hr { background: rgba(19,19,32,.12); }
.paper .grad { background: linear-gradient(102deg, var(--accent-ink), var(--violet-deep) 55%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(155deg, rgba(255,255,255,.13), rgba(255,255,255,.04) 50%, rgba(159,139,255,.09));
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.28), 0 18px 50px rgba(0,0,0,.42);
  border-radius: var(--r-lg);
}
.paper .glass {
  background: linear-gradient(155deg, rgba(255,255,255,.95), rgba(255,255,255,.66) 50%, rgba(159,139,255,.10));
  border-color: rgba(255,255,255,.9);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.95), 0 14px 40px rgba(92,63,196,.12);
}

.card { padding: clamp(20px, 2.3vw, 30px); border-radius: var(--r-lg); position: relative; transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease), border-color var(--t-slow) var(--ease); }
a.card { display: block; color: inherit; }
a.card:hover, .card-hover:hover { transform: translateY(-6px); border-color: var(--line-hi); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.3), 0 26px 64px rgba(159,139,255,.22); }
.paper a.card:hover, .paper .card-hover:hover { box-shadow: inset 0 1.5px 0 rgba(255,255,255,.95), 0 24px 60px rgba(92,63,196,.2); border-color: rgba(159,139,255,.6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  padding: 13px 24px; border-radius: 9999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), gap var(--t) var(--ease);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-pri {
  background: linear-gradient(135deg, var(--violet-deep), var(--violet));
  color: #fff; box-shadow: 0 12px 34px rgba(124,95,224,.42), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-pri:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 46px rgba(124,95,224,.55), inset 0 1px 0 rgba(255,255,255,.38); }
.btn-glass {
  background: linear-gradient(155deg, rgba(255,255,255,.16), rgba(159,139,255,.08));
  border-color: rgba(255,255,255,.2); color: var(--t1);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32);
}
.btn-glass:hover { color: var(--t1); border-color: var(--line-hi); transform: translateY(-2px); }
.paper .btn-glass { background: linear-gradient(155deg, rgba(255,255,255,.95), rgba(159,139,255,.1)); border-color: rgba(19,19,32,.12); color: var(--ink); box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(19,19,32,.06); }
.paper .btn-glass:hover { color: var(--ink); border-color: rgba(159,139,255,.65); }
.btn-ghost { background: none; color: var(--sig-b); padding-inline: 4px; }
.btn-ghost:hover { gap: 14px; color: var(--sig-a); }
.paper .btn-ghost { color: var(--accent-ink); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 9999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--t2); white-space: nowrap;
}
.paper .badge { border-color: rgba(19,19,32,.14); background: rgba(255,255,255,.7); color: var(--ink-2); }
.badge--live { color: var(--live); border-color: rgba(74,222,128,.4); background: rgba(74,222,128,.1); }
.badge--live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(74,222,128,.2); animation: pulse 2.4s var(--ease) infinite; }
.badge--shipped { color: var(--sig-b); border-color: rgba(205,193,255,.34); background: rgba(159,139,255,.1); }
.badge--built { color: #F5B841; border-color: rgba(245,184,65,.34); background: rgba(245,184,65,.1); }
.badge--concept { color: var(--t3); }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .4 } }
@media (prefers-reduced-motion: reduce) { .badge--live .dot { animation: none } }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: 12px; padding: 6px 12px; border-radius: 9999px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.04); color: var(--t2); }
.paper .chip { border-color: rgba(19,19,32,.1); background: rgba(255,255,255,.66); color: var(--ink-2); }

/* ---------- Header ----------
   Fixed and floating over the page, so the first section's own background runs
   up behind it. Sticky in flow left a flat band above the hero. */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 12px 0; }
:root { --hdr-h: 78px; }
/* Pull the first section up under the header, then pad its content back down
   so nothing sits beneath the pill. `!important` is needed because the page
   templates set padding-block inline. */
main > section:first-child,
main > div:first-child + section {
  margin-top: calc(-1 * var(--hdr-h));
  padding-top: calc(var(--hdr-h) + 18px) !important;
}
main { padding-top: var(--hdr-h); }
/* The glass pill is the header, always. It used to appear only after 80px of
   scroll, which left a flat bar sitting on top of the hero. */
.header__in {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 9px 10px 9px 16px; border-radius: 9999px;
  background: rgba(16,16,32,.52); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 34px rgba(0,0,0,.34);
  transition: background var(--t-slow) var(--ease), border-color var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}
/* Once scrolled, it firms up so it reads clearly over dense content. */
.header.stuck .header__in {
  background: rgba(16,16,32,.72); border-color: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 44px rgba(0,0,0,.5);
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--t1); font-family: 'Syne', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.logo:hover { color: var(--t1); }
.logo img { height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 8px 14px; border-radius: 9999px; font-size: 14px; font-weight: 600; color: var(--t2); transition: color var(--t) var(--ease), background var(--t) var(--ease); }
.nav a:hover { color: var(--t1); background: rgba(255,255,255,.07); }
.nav a[aria-current="page"] { color: var(--t1); background: rgba(159,139,255,.18); }
@media (max-width: 960px) { .nav, .header__cta { display: none } .header__in { justify-content: flex-start } }

/* ---------- Mobile bottom bar ---------- */
.bnav { position: fixed; z-index: 70; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); display: none; }
.bnav__in {
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 2px;
  height: var(--nav-h); padding: 7px 6px; border-radius: 24px;
  background: rgba(16,16,32,.72); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.24), 0 16px 44px rgba(0,0,0,.55);
}
.bnav__i { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; border-radius: 17px; font-size: 10px; font-weight: 600; color: var(--t3); position: relative; transition: color var(--t) var(--ease), background var(--t) var(--ease), transform var(--t-fast) var(--ease); }
.bnav__i svg { width: 20px; height: 20px; stroke-width: 1.7; }
.bnav__i:active { transform: scale(.93) }
.bnav__i[aria-current="page"] { color: var(--sig-b); background: rgba(159,139,255,.18) }
.bnav__i[aria-current="page"]::after { content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 15px; height: 2.5px; border-radius: 2px; background: var(--sig-b) }
.bnav__a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: calc(100% + 14px); margin-top: -14px; border-radius: 19px; color: #fff; font-size: 10px; font-weight: 700; background: linear-gradient(135deg, var(--violet-deep), var(--violet)); box-shadow: 0 12px 28px rgba(124,95,224,.5), inset 0 1px 0 rgba(255,255,255,.34); transition: transform var(--t-fast) var(--ease) }
.bnav__a:hover { color: #fff } .bnav__a:active { transform: scale(.95) }
.bnav__a svg { width: 20px; height: 20px }
@media (max-width: 960px) { .bnav { display: block } body { padding-bottom: calc(var(--nav-h) + 26px) } }

/* ============================================================
   SHOWCASE COMPONENTS — the work is the hero
   ============================================================ */

/* Browser chrome around a screenshot */
.browser { border-radius: var(--r-lg); overflow: hidden; background: var(--surface-high); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.browser__bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: rgba(255,255,255,.05); border-bottom: 1px solid var(--line-soft); }
.browser__dots { display: flex; gap: 5px; flex: none }
.browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18) }
.browser__url { flex: 1; min-width: 0; font-size: 11.5px; color: var(--t3); padding: 4px 12px; border-radius: 9999px; background: rgba(0,0,0,.3); border: 1px solid var(--line-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.browser__shot { display: block; width: 100%; height: auto }
.browser--tall .browser__shot { max-height: 620px; object-fit: cover; object-position: top center }
.paper .browser { border-color: rgba(19,19,32,.12); box-shadow: 0 30px 70px rgba(19,19,32,.16) }
.paper .browser__bar { background: rgba(19,19,32,.05); border-bottom-color: rgba(19,19,32,.08) }
.paper .browser__dots i { background: rgba(19,19,32,.16) }
.paper .browser__url { background: #fff; color: var(--ink-3); border-color: rgba(19,19,32,.1) }

/* Phone frame */
.phone { position: relative; border-radius: 32px; padding: 8px; background: linear-gradient(160deg, #2A2A44, #12121F); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 26px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.2); width: 100%; max-width: 268px }
.phone::before { content: ''; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 62px; height: 5px; border-radius: 3px; background: rgba(0,0,0,.55); z-index: 2 }
.phone img { border-radius: 25px; width: 100%; height: auto }

/* Layered hero showcase */
.stage { position: relative; }
.stage__main { position: relative; z-index: 1 }
.stage__phone { position: absolute; right: -8px; bottom: -34px; z-index: 2; width: 30%; max-width: 210px }
@media (max-width: 780px) { .stage__phone { right: -4px; bottom: -22px; width: 34% } }

/* Infinite marquee of project tiles */
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent) }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: slide var(--dur, 62s) linear infinite }
.marquee--rev .marquee__track { animation-direction: reverse }
.marquee:hover .marquee__track { animation-play-state: paused }
@keyframes slide { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none } .marquee { overflow-x: auto } }
.tile { flex: none; width: clamp(230px, 26vw, 330px); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface-high); position: relative; transition: transform var(--t) var(--ease), border-color var(--t) var(--ease) }
.tile img { width: 100%; height: auto; display: block; transition: transform 600ms var(--ease) }
.tile:hover { border-color: var(--line-hi); transform: translateY(-4px) }
.tile:hover img { transform: scale(1.04) }
.tile__cap { position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(10,10,18,.9)); display: flex; justify-content: space-between; gap: 8px; align-items: end }

/* Full-bleed project slab */
.slab { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.slab__grid { display: grid; gap: 0 }
@media (min-width: 980px) { .slab__grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center } .slab--flip .slab__grid > .slab__body { order: 2 } }
.slab__body { padding: clamp(26px, 3.4vw, 52px) }
.slab__media { position: relative; padding: clamp(20px, 2.6vw, 40px); min-height: 100% ; display: flex; align-items: center }
.slab__media::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 40%, rgba(159,139,255,.2), transparent 72%); pointer-events: none }
.slab__rail { width: 40px; height: 3px; border-radius: 3px; background: var(--rail, var(--violet)); margin-bottom: 20px }

/* Screenshot gallery */
.shots { display: grid; gap: clamp(14px, 1.8vw, 22px); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) }
.shot { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface-high) }
.shot img { width: 100%; height: auto }
.shot figcaption { padding: 12px 16px; font-size: 12.5px; color: var(--t3); border-top: 1px solid var(--line-soft) }
.paper .shot { border-color: rgba(19,19,32,.1); background: #fff }
.paper .shot figcaption { color: var(--ink-3); border-top-color: rgba(19,19,32,.08) }

/* Metrics */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: clamp(12px, 1.6vw, 20px) }
.metric { padding: 22px 24px; border-radius: var(--r); }
.metric__n { font-size: clamp(28px, 3.2vw, 40px); line-height: 1; display: block; margin-bottom: 8px }
.metric__l { font-size: 12.5px; color: var(--t3); line-height: 1.45 }
.paper .metric__l { color: var(--ink-3) }

/* Live embed */
.embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-high) }
.embed__stage { position: relative; aspect-ratio: 16/10; background: var(--canvas) }
@media (max-width: 720px) { .embed__stage { aspect-ratio: 3/4 } }
.embed__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }
.embed__poster { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: none; font: inherit; color: inherit; overflow: hidden }
.embed__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 700ms var(--ease), filter var(--t) var(--ease) }
.embed__poster:hover img { transform: scale(1.03); filter: brightness(.8) }
.embed__veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; background: linear-gradient(rgba(10,10,18,.4), rgba(10,10,18,.78)) }
.embed__play { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--violet-deep), var(--violet)); box-shadow: 0 14px 36px rgba(124,95,224,.5), inset 0 1px 0 rgba(255,255,255,.3); color: #fff }
.embed__play svg { width: 22px; height: 22px }

/* Video testimonial */
.vtest { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column }
.vtest__media { position: relative; aspect-ratio: 9/16; background: var(--surface-high); display: grid; place-items: center }
.vtest__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.vtest__slot { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px; text-align: center; color: var(--t3); font-size: 12.5px }
.vtest__slot svg { width: 30px; height: 30px; opacity: .55 }
.vtest__body { padding: 20px 22px 22px }
.vtest__q { font-size: 14.5px; color: var(--t2); line-height: 1.55; margin-bottom: 14px }
.vtest__who { font-size: 13px; font-weight: 600; color: var(--t1) }
.vtest__role { font-size: 12px; color: var(--t3) }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden }
.faq details { border-bottom: 1px solid var(--line-soft) }
.faq details:last-child { border-bottom: 0 }
.faq summary { cursor: pointer; list-style: none; padding: 20px clamp(18px, 2.2vw, 26px); font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: center; transition: background var(--t) var(--ease) }
.faq summary::-webkit-details-marker { display: none }
.faq summary:hover { background: rgba(255,255,255,.04) }
.faq summary::after { content: '+'; font-size: 20px; color: var(--sig-b); flex: none; transition: transform var(--t) var(--ease) }
.faq details[open] summary::after { transform: rotate(45deg) }
.faq__a { padding: 0 clamp(18px, 2.2vw, 26px) 22px; color: var(--t2); font-size: 15px; line-height: 1.65 }
.paper .faq { border-color: rgba(19,19,32,.12) }
.paper .faq details { border-bottom-color: rgba(19,19,32,.08) }
.paper .faq summary:hover { background: rgba(19,19,32,.03) }
.paper .faq__a { color: var(--ink-2) }

/* Capability rows */
.caps { display: grid; gap: 1px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--line-soft) }
.cap { padding: 22px clamp(18px, 2.2vw, 28px); background: var(--canvas) }
.cap h3 { margin-bottom: 7px; font-size: 16.5px }
.cap p { font-size: 14.5px; color: var(--t2); line-height: 1.6 }
.paper .caps { border-color: rgba(19,19,32,.12); background: rgba(19,19,32,.08) }
.paper .cap { background: var(--paper) }
.paper .cap p { color: var(--ink-2) }

/* Bullet list */
.blist { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px }
.blist li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 15px; line-height: 1.6; color: var(--t2) }
.blist li::before { content: ''; width: 8px; height: 8px; border-radius: 2.5px; margin-top: 8px; margin-left: 6px; background: linear-gradient(135deg, var(--sig-b), var(--violet)); box-shadow: 0 0 0 4px rgba(159,139,255,.14) }
.paper .blist li { color: var(--ink-2) }

/* Client logo strip */
.logos { display: flex; flex-wrap: wrap; gap: 10px }
.logos span { font-size: 13.5px; font-weight: 600; color: var(--t2); padding: 9px 16px; border-radius: 9999px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.04) }
.paper .logos span { color: var(--ink-2); border-color: rgba(19,19,32,.1); background: rgba(255,255,255,.7) }

/* Step blocks */
.steps { display: grid; gap: clamp(14px, 1.8vw, 22px); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) }
.step { padding: clamp(20px, 2.3vw, 28px); border-radius: var(--r-lg) }
.step__n { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .12em; color: var(--sig-b); display: block; margin-bottom: 13px }
.paper .step__n { color: var(--accent-ink) }
.step h3 { margin-bottom: 9px } .step p { font-size: 14.5px; color: var(--t2) }
.paper .step p { color: var(--ink-2) }

/* Footer */
.footer { padding-block: clamp(52px, 6vw, 88px) 36px; border-top: 1px solid var(--line) }
.footer__g { display: grid; gap: clamp(26px, 4vw, 54px); grid-template-columns: 1fr }
@media (min-width: 620px) { .footer__g { grid-template-columns: repeat(2, minmax(0,1fr)) } }
@media (min-width: 980px) { .footer__g { grid-template-columns: 1.6fr repeat(3, minmax(0,1fr)) } }
.footer h4 { font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--t3); margin: 0 0 15px }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px }
.footer ul a { color: var(--t2); font-size: 14.5px } .footer ul a:hover { color: var(--t1) }
.footer__b { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; margin-top: clamp(34px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--t3) }

/* Reveal — visible by default, animated only when JS is present */
.js [data-rv] { opacity: 0; transform: translateY(24px); transition: opacity 640ms var(--ease), transform 640ms var(--ease) }
.js [data-rv].in { opacity: 1; transform: none }
@media (prefers-reduced-motion: reduce) { .js [data-rv] { opacity: 1; transform: none; transition: none } }

/* ============================================================
   HERO — the work, tilted into space.
   A 3D-perspective wall of real project screens auto-scrolling in three
   columns behind the headline. Pure CSS, deterministic, reduced-motion safe.
   ============================================================ */
.hero3d { position: relative; overflow: clip; min-height: min(92vh, 980px); display: flex; align-items: center; }
.hero3d::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 60% at 20% 22%, rgba(159,139,255,.30), transparent 66%),
    radial-gradient(38% 52% at 74% 80%, rgba(124,95,224,.22), transparent 70%);
}
.hero3d__copy { position: relative; z-index: 3; max-width: 640px; }
.hero3d__copy .display { font-size: clamp(44px, 6.4vw, 92px); }

/* The wall */
.hwall {
  position: absolute; z-index: 1; inset: -8% -6% -8% auto;
  width: min(58vw, 900px);
  perspective: 1400px; perspective-origin: 30% 50%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%);
}
.hwall__plane {
  position: absolute; inset: 0;
  transform: rotateY(-16deg) rotateX(4deg) rotateZ(2deg) translateX(6%);
  transform-style: preserve-3d;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.hcol { display: flex; flex-direction: column; gap: 18px; min-height: 200%; animation: vslide var(--vdur, 70s) linear infinite; }
.hcol--up { animation-direction: reverse; }
@keyframes vslide { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hcol { animation: none; } }
.hcard {
  border-radius: 14px; overflow: hidden; flex: none;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.16);
  background: var(--surface-high);
}
.hcard img { width: 100%; height: auto; display: block; }
.hcard--phone { border-radius: 22px; width: 78%; align-self: center; }

/* Dim the wall slightly so the headline owns the frame */
.hwall::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(100deg, rgba(10,10,18,.55) 0%, rgba(10,10,18,.06) 55%, rgba(10,10,18,.35) 100%);
}

@media (max-width: 960px) {
  /* Copy first, wall underneath: on a phone the headline must own the fold. */
  .hero3d { min-height: 0; padding-block: 26px 0; display: flex; flex-direction: column; }
  .hero3d__copy { max-width: none; }
  .hero3d__copy .display { font-size: clamp(38px, 11vw, 54px); }
  .hwall {
    position: relative; inset: auto; order: 2;
    width: 112%; margin-left: -6%; height: 300px; margin-top: 30px;
    perspective: 1000px; perspective-origin: 50% 0%;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent);
    mask-image: linear-gradient(180deg, #000 62%, transparent);
  }
  .hwall__plane { transform: rotateX(26deg) rotateZ(-2deg); gap: 12px; }
  .hwall::after { background: linear-gradient(180deg, rgba(10,10,18,.30), rgba(10,10,18,.05)); }
  .hcol { gap: 12px; }
}

/* Ticker strip under the hero — clients + facts on one endless line */
.ticker { border-block: 1px solid var(--line-soft); background: rgba(255,255,255,.02); overflow: hidden; }
.ticker__track { display: flex; gap: 44px; width: max-content; padding: 14px 0; animation: slide 46s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--t3); white-space: nowrap; }
.ticker i { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); opacity: .7; }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* Phone rail — horizontal scroll of app screens in device frames */
.rail { display: flex; gap: clamp(14px, 1.8vw, 22px); overflow-x: auto; padding: 6px 6px 18px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: rgba(159,139,255,.3); border-radius: 4px; }
.rail::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 4px; }
.rail figure { margin: 0; flex: none; width: 218px; scroll-snap-align: start; }
.rail .phone { width: 100%; max-width: none; }
.rail figcaption { font-size: 12px; color: var(--t3); padding: 10px 4px 0; line-height: 1.5; }

/* ---------- Recognition / credential ---------- */
.cred { display: grid; gap: clamp(22px, 3vw, 44px); align-items: center; }
@media (min-width: 900px) { .cred { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.cred__doc {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
  background: #fff;
  transform: rotate(-1.1deg);
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}
.cred__doc:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 36px 84px rgba(159,139,255,.26); }
.cred__doc img { width: 100%; height: auto; display: block; }
.cred__mark { height: 46px; width: auto; border-radius: 6px; background: #fff; padding: 5px 9px; }
.cred__quote {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(17px, 1.7vw, 21px); line-height: 1.45;
  color: var(--t1); margin: 18px 0 16px; max-width: 40ch;
}
.paper .cred__quote { color: var(--ink); }
.cred__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--t3); }
.paper .cred__meta { color: var(--ink-3); }

/* ============================================================
   HERO v3 — the sector selector.
   No giant headline. The visitor self-selects, and the hero answers.
   Six glass cards over a backdrop that swaps to the chosen sector's work.
   ============================================================ */
.hx { position: relative; overflow: clip; padding-block: clamp(20px, 3vw, 44px) clamp(36px, 5vw, 72px); isolation: isolate; }

/* Backdrop: stacked project images, only the active one visible */
.hx__bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hx__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  opacity: 0; transform: scale(1.08);
  transition: opacity 900ms var(--ease), transform 2600ms var(--ease);
  /* Heavily blurred: this is ambient depth, not content. It must never
     compete with the headline sitting on top of it. */
  filter: blur(26px) saturate(135%) brightness(.85);
}
.hx__bg img.on { opacity: .5; transform: scale(1.02); }
.hx__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 62% at 20% 12%, rgba(159,139,255,.30), transparent 68%),
    radial-gradient(48% 55% at 86% 78%, rgba(124,95,224,.22), transparent 72%),
    linear-gradient(180deg, rgba(10,10,18,.78) 0%, rgba(10,10,18,.86) 50%, var(--canvas) 100%);
}

.hx__top { margin-bottom: clamp(22px, 2.6vw, 34px); max-width: 60ch; }
.hx__kicker { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(30px, 4.4vw, 54px); letter-spacing: -.03em; line-height: 1.02; margin: 0 0 14px; }
.hx__sub { font-size: clamp(15px, 1.3vw, 18px); color: var(--t2); max-width: 46ch; margin: 0; }

/* Sector grid */
.sectors { display: grid; gap: clamp(10px, 1.2vw, 16px); grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 700px) { .sectors { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1100px) { .sectors { grid-template-columns: repeat(6, minmax(0,1fr)); } }

.sector {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  gap: 14px; text-align: left; overflow: hidden; isolation: isolate;
  padding: clamp(14px, 1.5vw, 18px); min-height: clamp(118px, 11.5vw, 148px);
  border-radius: 18px; cursor: pointer; color: inherit;
  background: linear-gradient(158deg, rgba(255,255,255,.10), rgba(255,255,255,.03) 55%, rgba(159,139,255,.07));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease),
              box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
/* The work itself, sitting behind the label. */
.sector__bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0; transform: scale(1.12);
  transition: opacity var(--t-slow) var(--ease), transform 1600ms var(--ease);
}
.sector::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,18,.32), rgba(10,10,18,.88));
  opacity: 0; transition: opacity var(--t-slow) var(--ease);
}
.sector:hover .sector__bg { opacity: .3; transform: scale(1.04); }
.sector:hover::after { opacity: 1; }
.sector[aria-selected="true"] .sector__bg { opacity: .42; transform: scale(1); }
.sector[aria-selected="true"]::after { opacity: 1; }

/* Cursor-tracked specular highlight (Brand Kit v1.1 glass spec) */
.sector::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 1;
  transition: opacity var(--t) var(--ease);
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 62%);
}
.sector:hover::before, .sector:focus-visible::before { opacity: 1; }
.sector:hover { transform: translateY(-5px); border-color: var(--line-hi); }
.sector[aria-selected="true"] {
  border-color: var(--sc, var(--violet));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28),
              0 0 0 1px var(--sc, var(--violet)),
              0 18px 44px color-mix(in srgb, var(--sc, var(--violet)) 30%, transparent);
}

/* Icon sits in a tinted well rather than floating */
.sector__well {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  color: var(--sc, var(--violet));
  background: color-mix(in srgb, var(--sc, var(--violet)) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--sc, var(--violet)) 38%, transparent);
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.sector__well svg { width: 20px; height: 20px; stroke-width: 1.7; }
.sector[aria-selected="true"] .sector__well {
  background: color-mix(in srgb, var(--sc, var(--violet)) 26%, transparent);
  transform: scale(1.05);
}

.sector__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sector__name {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(13.5px, 1.1vw, 16px); line-height: 1.15; letter-spacing: -.015em;
  transition: color var(--t) var(--ease);
}
.sector[aria-selected="true"] .sector__name { color: #fff; }
.sector__go { display: inline-flex; color: var(--sc, var(--violet)); opacity: 0; transform: translateX(-5px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.sector__go svg { width: 16px; height: 16px; }
.sector:hover .sector__go, .sector[aria-selected="true"] .sector__go { opacity: 1; transform: none; }

/* The answer panel that responds to the selection */
.hx__panel {
  margin-top: clamp(14px, 1.8vw, 22px); border-radius: var(--r-lg); overflow: hidden;
  /* Sectors have different copy lengths. Without a floor the panel resizes on
     every rotation, which reflows the whole page under the reader. */
  min-height: clamp(340px, 34vw, 420px);
}
@media (max-width: 979px) { .hx__panel { min-height: 0; } }
.hx__answer { display: none; }
.hx__answer.on { display: grid; }
@media (min-width: 980px) { .hx__answer.on { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.hx__text { padding: clamp(22px, 2.6vw, 36px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.hx__hook { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(21px, 2.3vw, 32px); line-height: 1.14; letter-spacing: -.02em; }
.hx__def { font-size: 14.5px; color: var(--t2); line-height: 1.6; max-width: 52ch; }
.hx__media { position: relative; padding: clamp(14px, 1.6vw, 24px); display: flex; align-items: center; }
.hx__media img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.5); }

/* Proof ribbon */
.proofbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(16px, 2vw, 24px); }
.proofbar b { font-family: 'Syne', sans-serif; font-weight: 800; letter-spacing: -.02em; color: var(--t1); }

/* ============================================================
   MOTION SYSTEM
   ============================================================ */

/* Staggered reveal */
.js [data-rv] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js [data-rv].in { opacity: 1; transform: none; }
.js [data-rv-up] { opacity: 0; transform: translateY(40px) scale(.985); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.js [data-rv-up].in { opacity: 1; transform: none; }
.js [data-rv-l] { opacity: 0; transform: translateX(-28px); transition: opacity 750ms var(--ease), transform 750ms var(--ease); }
.js [data-rv-l].in { opacity: 1; transform: none; }
.js [data-rv-r] { opacity: 0; transform: translateX(28px); transition: opacity 750ms var(--ease), transform 750ms var(--ease); }
.js [data-rv-r].in { opacity: 1; transform: none; }

/* Line-by-line headline reveal */
.js .rv-lines > * { display: block; opacity: 0; transform: translateY(.5em); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .rv-lines.in > * { opacity: 1; transform: none; }
.js .rv-lines.in > *:nth-child(2) { transition-delay: 90ms; }
.js .rv-lines.in > *:nth-child(3) { transition-delay: 180ms; }

/* Scroll-linked parallax on media */
.js [data-par] { will-change: transform; }

/* Cursor-tracked glass on any card */
.glass, .card, .slab, .step, .cap { position: relative; }
.spot::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity var(--t) var(--ease);
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.10), transparent 62%);
}
.spot:hover::before { opacity: 1; }
.paper .spot::before { background: radial-gradient(240px circle at var(--mx,50%) var(--my,50%), rgba(124,95,224,.13), transparent 62%); }

/* Count-up numbers get a specular sweep once */
.js .metric__n, .js .kpi__n { position: relative; }
.js .swept::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
  background-size: 260% 100%; animation: sweep 900ms var(--ease) 1 forwards;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes sweep { from { background-position: 180% 0; } to { background-position: -80% 0; } }

/* KPI strip */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line-soft); }
.kpi { padding: clamp(18px, 2vw, 26px); background: var(--canvas); transition: background var(--t) var(--ease); }
.kpi:hover { background: var(--surface); }
.kpi__n { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.04em; line-height: 1; display: block; margin-bottom: 8px; }
.kpi__l { font-size: 12.5px; color: var(--t2); line-height: 1.4; }
.kpi__who { font-size: 11px; color: var(--t3); letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; display: block; }
.paper .kpi { background: var(--paper); } .paper .kpi:hover { background: #fff; }
.paper .kpi__l { color: var(--ink-2); } .paper .kpi__who { color: var(--ink-3); }

/* Magnetic-ish button lift */
.btn-pri, .btn-glass { will-change: transform; }

/* Section entry: a hairline that draws itself */
.js .rule { transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease); height: 1px; background: linear-gradient(90deg, var(--violet), transparent); border: 0; }
.js .rule.in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .js [data-rv], .js [data-rv-up], .js [data-rv-l], .js [data-rv-r],
  .js .rv-lines > * { opacity: 1; transform: none; transition: none; }
  .js .rule { transform: none; }
  .hx__bg img { transition: none; }
  .js .swept::after { animation: none; content: none; }
}

/* ============================================================
   DELIGHT LAYER
   Ambient cursor light, 3D card tilt, cinematic image reveals,
   scroll progress, magnetic buttons. All transform/opacity only,
   all disabled under prefers-reduced-motion.
   ============================================================ */

/* Cursor-following ambient light. "Purple is a light source." */
.aura {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 700ms var(--ease);
  background: radial-gradient(420px circle at var(--ax, 50%) var(--ay, 40%), rgba(159,139,255,.10), transparent 65%);
  mix-blend-mode: screen;
}
.js .aura.live { opacity: 1; }
body > * { position: relative; z-index: 1; }
.aura { z-index: 0 !important; }

/* Scroll progress hairline */
.prog {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--violet-deep), var(--violet), var(--sig-b));
  pointer-events: none;
}

/* 3D tilt */
.js [data-tilt] { transform-style: preserve-3d; transition: transform 420ms var(--ease); will-change: transform; }
.js [data-tilt]:hover { transition: transform 120ms linear; }

/* Magnetic buttons */
.js .mag { transition: transform 380ms var(--ease); }

/* Headline that fills in as it enters */
.js .fill { background-size: 0% 100%; background-repeat: no-repeat;
  background-image: linear-gradient(90deg, var(--sig-a), var(--sig-b) 45%, var(--violet));
  -webkit-background-clip: text; background-clip: text;
  transition: background-size 1200ms var(--ease); }
.js .fill.in { background-size: 100% 100%; }

/* Sticky section label that rides the scroll */
.stick { position: sticky; top: 92px; }

/* Marquee speed-up on hover instead of pause: feels alive, not broken */
.marquee:hover .marquee__track { animation-duration: calc(var(--dur, 62s) * 2.4); }

/* Link underline that draws from the left */
.js a.ul { background-image: linear-gradient(var(--sig-b), var(--sig-b));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 320ms var(--ease); }
.js a.ul:hover { background-size: 100% 1px; }

@media (prefers-reduced-motion: reduce) {
  .aura { display: none; }
  .prog { display: none; }
  .js [data-tilt] { transform: none !important; transition: none; }
  .js .mag { transform: none !important; transition: none; }
  .js .fill { background-size: 100% 100%; transition: none; }
  .marquee:hover .marquee__track { animation-duration: var(--dur, 62s); }
}

/* ============================================================
   NAVIGATION v2
   Desktop: dropdown menus so every sub-page is one hop from anywhere.
   Mobile: centred logo, a menu button, and a full-screen sheet.
   ============================================================ */

/* --- Desktop dropdowns --- */
.nav__item { position: relative; }
.nav__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 9999px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--t2);
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.nav__btn:hover, .nav__item:hover .nav__btn { color: var(--t1); background: rgba(255,255,255,.07); }
.nav__btn svg { width: 12px; height: 12px; transition: transform var(--t) var(--ease); }
.nav__item:hover .nav__btn svg { transform: rotate(180deg); }

.drop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 340px; padding: 10px; border-radius: 20px;
  background: rgba(16,16,32,.9); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 24px 60px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
  display: grid; gap: 2px;
}
.nav__item:hover .drop, .nav__item:focus-within .drop {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.drop a { display: grid; grid-template-columns: 8px 1fr; gap: 12px; align-items: start; padding: 11px 13px; border-radius: 13px; color: var(--t1); transition: background var(--t) var(--ease); }
.drop a:hover { background: rgba(159,139,255,.14); color: var(--t1); }
.drop i { width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; background: var(--dc, var(--violet)); box-shadow: 0 0 10px var(--dc, var(--violet)); }
.drop b { display: block; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; }
.drop span { display: block; font-size: 12.5px; color: var(--t3); line-height: 1.4; margin-top: 2px; }
.drop__all { margin-top: 4px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.drop__all a { grid-template-columns: 1fr auto; color: var(--sig-b); font-size: 13px; font-weight: 600; }

/* --- Mobile header --- */
.hdr__menu, .hdr__spacer { display: none; }
@media (max-width: 960px) {
  .header__in { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
  .hdr__spacer { display: block; }
  .logo { justify-self: center; }
  .hdr__menu {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: var(--t1);
    justify-self: end;
  }
  .hdr__menu svg { width: 19px; height: 19px; }
}

/* --- Mobile sheet --- */
.sheet {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(6,6,12,.86);
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  opacity: 0; transition: opacity 300ms var(--ease);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.sheet.open { display: block; }
.sheet.in { opacity: 1; }
.sheet__in { padding: 18px var(--gutter) calc(40px + env(safe-area-inset-bottom)); min-height: 100%; }
.sheet__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.sheet__close { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: var(--t1); }
.sheet__close svg { width: 19px; height: 19px; }
.sheet__grp { margin-bottom: 24px; }
.sheet__grp > p { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--t3); margin: 0 0 10px; }
.sheet__lnk { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; color: var(--t1); font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.04); margin-bottom: 7px; }
.sheet__lnk i { width: 7px; height: 7px; border-radius: 50%; background: var(--dc, var(--violet)); flex: none; box-shadow: 0 0 10px var(--dc, var(--violet)); }
.sheet__lnk small { display: block; font-family: 'Manrope', sans-serif; font-weight: 400; font-size: 12px; color: var(--t3); margin-top: 2px; }
.sheet__lnk[aria-current="page"] { border-color: var(--line-hi); background: rgba(159,139,255,.14); }
body.locked { overflow: hidden; }

/* ============================================================
   HERO ON MOBILE
   A 2x3 card grid pushed the answer far below the fold. On a phone the
   sectors become one swipeable rail, so the headline, the choice and the
   answer all sit in the first screen and a half.
   ============================================================ */
@media (max-width: 699px) {
  .hx { padding-block: 14px 30px; }
  .hx__top { margin-bottom: 18px; }
  .hx__kicker { font-size: clamp(30px, 8.6vw, 40px); }
  .hx__sub { font-size: 14.5px; }

  .sectors {
    display: flex; gap: 9px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 2px var(--gutter) 12px; margin-inline: calc(var(--gutter) * -1);
    scrollbar-width: none;
  }
  .sectors::-webkit-scrollbar { display: none; }
  .sector {
    flex: none; width: 130px; min-height: 84px; scroll-snap-align: start;
    padding: 12px; border-radius: 15px;
  }
  .sector__name { font-size: 13.5px; }

  /* Answer panel: image first, then the words */
  .hx__answer.on { display: flex; flex-direction: column-reverse; }
  .hx__text { padding: 18px; gap: 11px; }
  .hx__hook { font-size: 21px; }
  .hx__def { font-size: 13.5px; }
  .hx__media { padding: 12px 12px 0; }
  .hx__panel { min-height: 0; }

  /* Scroll affordance so it is obvious the rail moves */
  .sectors::after { content: ''; flex: none; width: 4px; }
}

/* ============================================================
   CONVERSION BAND
   One obvious action, and the three things that happen after it.
   ============================================================ */
.next { display: grid; gap: clamp(12px, 1.6vw, 18px); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: clamp(26px, 3vw, 40px); text-align: left; }
.next__s { padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.next__n { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .12em; color: var(--sig-b); display: block; margin-bottom: 9px; }
.next__t { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.next__b { font-size: 13.5px; color: var(--t2); line-height: 1.5; }

/* Sector and solution marks replace the old colour dots. */
.sector__ico { display: inline-flex; color: var(--sc, var(--violet)); }
.sector__ico svg { width: 22px; height: 22px; stroke-width: 1.6; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--sc, var(--violet)) 55%, transparent)); }
.sector[aria-selected="true"] .sector__ico svg { stroke-width: 1.9; }

.drop__ico, .sheet__ico { display: inline-flex; color: var(--dc, var(--violet)); flex: none; }
.drop__ico svg { width: 17px; height: 17px; stroke-width: 1.7; margin-top: 1px; }
.sheet__ico svg { width: 20px; height: 20px; stroke-width: 1.7; }
.drop a { grid-template-columns: 18px 1fr; }

/* ============================================================
   PROOF BENTO
   The old flat stat row read like a 2018 template. Numbers now sit on the
   work they came from, at three tile sizes, in an asymmetric grid.
   ============================================================ */
.bento { display: grid; gap: clamp(10px, 1.1vw, 14px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px)  { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.bt {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 150px; padding: clamp(16px, 1.7vw, 22px); border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface);
  color: inherit; isolation: isolate;
  transition: transform var(--t-slow) var(--ease), border-color var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
  grid-column: span 2;
}
@media (min-width: 760px) {
  .bt--lg { grid-column: span 4; grid-row: span 2; min-height: 300px; }
  .bt--md { grid-column: span 2; min-height: 190px; }
  .bt--sm { grid-column: span 2; min-height: 140px; }
}
@media (min-width: 1100px) {
  .bt--lg { grid-column: span 3; grid-row: span 2; min-height: 320px; }
  .bt--md { grid-column: span 3; min-height: 152px; }
  .bt--sm { grid-column: span 2; min-height: 140px; }
}

.bt__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: .3; transition: opacity var(--t-slow) var(--ease), transform 1400ms var(--ease); }
.bt::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(190deg, rgba(10,10,18,.55) 0%, rgba(10,10,18,.86) 62%, rgba(10,10,18,.96) 100%);
}
.bt--plain { background: linear-gradient(155deg, rgba(255,255,255,.07), rgba(255,255,255,.02) 55%, rgba(159,139,255,.07)); }
.bt--plain::after { background: none; }

a.bt:hover { transform: translateY(-5px); border-color: var(--line-hi); box-shadow: 0 26px 60px rgba(159,139,255,.20); }
a.bt:hover .bt__img { opacity: .44; transform: scale(1.05); }

.bt__n {
  font-family: 'Syne', sans-serif; font-weight: 800; letter-spacing: -.05em; line-height: .88;
  font-size: clamp(38px, 5vw, 56px); display: block; margin-bottom: 10px;
  background: linear-gradient(170deg, #fff 0%, #fff 45%, var(--sig-b) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bt--lg .bt__n { font-size: clamp(58px, 9vw, 104px); }
.bt__l { font-size: 13.5px; color: var(--t2); line-height: 1.4; max-width: 26ch; }
.bt--lg .bt__l { font-size: clamp(15px, 1.4vw, 18px); max-width: 22ch; }
.bt__who {
  position: absolute; top: clamp(16px, 1.7vw, 22px); left: clamp(16px, 1.7vw, 22px);
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--t1);
  padding: 5px 11px; border-radius: 9999px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(10,10,18,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.bt__go { position: absolute; top: clamp(14px,1.6vw,20px); right: clamp(14px,1.6vw,20px); opacity: 0; transform: translate(-4px,4px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); color: var(--sig-b); }
.bt__go svg { width: 17px; height: 17px; }
a.bt:hover .bt__go { opacity: 1; transform: translate(0,0); }

/* ============================================================
   FOUNDER
   ============================================================ */
.fdr { display: grid; gap: clamp(24px, 3.4vw, 52px); align-items: center; }
@media (min-width: 900px) { .fdr { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); } }
.fdr__pic { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.fdr__pic img { width: 100%; height: auto; display: block; }
.fdr__tag { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 9999px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: rgba(10,10,18,.66); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; }

/* Track record: a spine with entries hanging off it */
.track { display: grid; gap: 0; position: relative; }
.track__i { position: relative; padding: 20px 0 20px 30px; border-left: 1px solid var(--line); }
.track__i:last-child { border-left-color: transparent; }
.track__i::before {
  content: ''; position: absolute; left: -5px; top: 26px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--violet); box-shadow: 0 0 0 4px rgba(159,139,255,.16), 0 0 14px var(--violet);
}
.track__k { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16.5px; margin-bottom: 7px; }
.track__v { font-size: 14.5px; color: var(--t2); line-height: 1.6; max-width: 56ch; }
.paper .track__i { border-left-color: rgba(19,19,32,.14); }
.paper .track__v { color: var(--ink-2); }

/* Applied principles */
.appl { display: grid; gap: clamp(12px, 1.5vw, 18px); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.appl__i { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.appl__t { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.appl__b { font-size: 14px; color: var(--t2); line-height: 1.55; }
.paper .appl__i { border-color: rgba(19,19,32,.12); background: rgba(255,255,255,.7); }
.paper .appl__b { color: var(--ink-2); }

/* ============================================================
   SUB-NAV
   A sticky chip rail so a visitor can jump straight to their sector
   instead of scrolling past five that do not apply to them.
   ============================================================ */
.subnav {
  position: sticky; top: 74px; z-index: 40; margin-bottom: clamp(18px, 2.2vw, 28px);
}
.subnav__in {
  display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none;
  padding: 8px; border-radius: 9999px;
  background: rgba(16,16,32,.78); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(26px) saturate(160%); -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 40px rgba(0,0,0,.5);
}
.subnav__in::-webkit-scrollbar { display: none; }
/* Centre the chips only where they actually fit. Auto margins on an
   overflowing flex row push the first item outside the scrollable start,
   which clips it on a phone. */
@media (min-width: 1000px) {
  .subnav__in > :first-child { margin-inline-start: auto; }
  .subnav__in > :last-child { margin-inline-end: auto; }
}
.subnav a {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 9px 15px; border-radius: 9999px; white-space: nowrap;
  font-size: 13.5px; font-weight: 600; color: var(--t2);
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.subnav a svg { width: 16px; height: 16px; stroke-width: 1.7; color: var(--sc, var(--violet)); }
.subnav a:hover { color: var(--t1); background: rgba(255,255,255,.07); }
.subnav a.on { color: var(--t1); background: rgba(159,139,255,.2); }
@media (max-width: 960px) { .subnav { top: 78px; } }
@media (max-width: 699px) {
  .subnav { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .subnav__in { border-radius: 18px; }
}

/* Anchor offset so a jumped-to section is not hidden under the sticky bars */
[id^="sec-"] { scroll-margin-top: 150px; }

/* ============================================================
   GUIDES
   Long-form prose. The site has no other place where a reader
   stays on one column for six minutes, so it gets its own
   measure and rhythm rather than borrowing card styles.
   ============================================================ */
.guide__answer { margin-bottom: clamp(28px, 3.4vw, 44px); max-width: 72ch; border-left: 3px solid var(--violet); }
.guide__answer p { font-size: clamp(16.5px, 1.5vw, 19.5px); line-height: 1.6; color: var(--t1); margin: 10px 0 0; }

.guide { max-width: 68ch; }
.guide__s { margin-bottom: clamp(30px, 3.6vw, 48px); }
.guide__s h2 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(21px, 2.1vw, 27px); letter-spacing: -.015em; line-height: 1.18;
  margin: 0 0 14px;
}
.guide__s p { font-size: clamp(15.5px, 1.3vw, 17px); line-height: 1.72; color: var(--t2); margin: 0 0 16px; }
.guide__s p:last-child { margin-bottom: 0; }
.guide__s .blist { margin: 18px 0 18px; }
.guide__s .blist li { font-size: clamp(15px, 1.25vw, 16.5px); }
.guide__note {
  border-left: 2px solid var(--line-hi); padding: 2px 0 2px 16px;
  color: var(--sig-b) !important; font-size: 15.5px !important;
}
.paper .guide__s p { color: var(--ink-2); }
.paper .guide__note { color: var(--accent-ink) !important; }

/* Contents rail. Only appears where there is genuinely spare column, and it
   scrolls with the reader rather than sitting at the top and disappearing. */
.guide__wrap { display: grid; gap: clamp(28px, 3vw, 56px); align-items: start; }
@media (min-width: 1080px) { .guide__wrap { grid-template-columns: minmax(0, 68ch) minmax(200px, 1fr); } }
.guide__toc { display: none; }
@media (min-width: 1080px) { .guide__toc { display: block; } }
.guide__toc-in { position: sticky; top: calc(var(--hdr-h) + 22px); }
.guide__toc ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.guide__toc li { counter-increment: toc; }
.guide__toc ol a {
  display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start;
  padding: 7px 10px 7px 0; border-radius: 8px;
  font-size: 13.5px; line-height: 1.45; color: var(--t3); text-decoration: none;
  transition: color var(--t) var(--ease);
}
.guide__toc ol a::before { content: counter(toc, decimal-leading-zero); color: var(--violet); opacity: .55; font-size: 11px; padding-top: 2px; }
.guide__toc ol a:hover { color: var(--t1); }
.guide__toc ol a:hover::before { opacity: 1; }
.guide__s { scroll-margin-top: calc(var(--hdr-h) + 20px); }
.paper .guide__toc ol a { color: var(--ink-3); }
.paper .guide__toc ol a:hover { color: var(--ink); }

/* ============================================================
   LIVE DEMO AGENT
   ============================================================ */
.agent { display: grid; gap: clamp(20px, 2.4vw, 32px); align-items: start; }
@media (min-width: 940px) { .agent { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); } }
.agent__head { align-self: center; }

.agent__panel { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.agent__bar {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.agent__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(74,222,128,.16); flex: none; }
.agent__name { font-size: 13.5px; font-weight: 600; }
.agent__tag {
  margin-left: auto; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--violet); border: 1px solid var(--line-hi); border-radius: 999px; padding: 3px 9px;
}

.agent__log {
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  min-height: 260px; max-height: 420px; overflow-y: auto; scroll-behavior: smooth;
}
.agent__msg { max-width: 86%; }
.agent__msg p {
  margin: 0; padding: 10px 14px; border-radius: 14px;
  font-size: 14.5px; line-height: 1.55; white-space: pre-wrap;
}
.agent__msg--bot p { background: rgba(255,255,255,.055); border: 1px solid var(--line-soft); color: var(--t1); border-bottom-left-radius: 5px; }
.agent__msg--me { align-self: flex-end; }
.agent__msg--me p { background: linear-gradient(135deg, var(--violet-deep), var(--violet)); color: #fff; border-bottom-right-radius: 5px; }
.agent__msg--err p { background: rgba(255,106,61,.12); border: 1px solid rgba(255,106,61,.34); color: var(--t1); }

.agent__typing { display: flex; gap: 4px; padding: 12px 15px; }
.agent__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--t3); animation: agentBlink 1.2s infinite; }
.agent__typing i:nth-child(2) { animation-delay: .18s; }
.agent__typing i:nth-child(3) { animation-delay: .36s; }
@keyframes agentBlink { 0%, 60%, 100% { opacity: .25 } 30% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .agent__typing i { animation: none; opacity: .6 } }

.agent__starters { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; }
.agent__starters:empty { display: none; }
.agent__starters .chip { cursor: pointer; border: 1px solid var(--line); background: transparent; font: inherit; font-size: 12.5px; }
.agent__starters .chip:hover { border-color: var(--line-hi); color: var(--t1); }

.agent__form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.agent__input {
  flex: 1; min-width: 0; background: rgba(255,255,255,.05);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 16px; color: var(--t1); font: inherit; font-size: 14.5px;
}
.agent__input::placeholder { color: var(--t3); }
.agent__input:focus { outline: none; border-color: var(--line-hi); background: rgba(255,255,255,.075); }
.agent__send { flex: none; width: 42px; height: 42px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.agent__send svg { width: 18px; height: 18px; }
.agent__send[disabled] { opacity: .45; pointer-events: none; }
.agent__note { margin: 0; padding: 0 16px 14px; font-size: 11.5px; color: var(--t3); line-height: 1.5; }

.paper .agent__msg--bot p { background: rgba(19,19,32,.05); color: var(--ink); }
.paper .agent__input { background: rgba(19,19,32,.04); color: var(--ink); }

/* Persona picker on the demo page. Tabs, because switching resets the
   conversation and the visitor should feel that as changing channel. */
.agent__pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.agent__pick-b {
  font: inherit; font-size: 13.5px; cursor: pointer;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--t2);
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.agent__pick-b:hover { color: var(--t1); border-color: var(--line-hi); }
.agent__pick-b[aria-selected="true"] {
  color: var(--t1); border-color: transparent;
  background: linear-gradient(135deg, var(--violet-deep), var(--violet));
}
.paper .agent__pick-b { color: var(--ink-2); border-color: rgba(19,19,32,.14); }
