/* ==========================================================================
   ScalrAI — design tokens
   ========================================================================== */
:root {
  --paper: #f3f3ef;
  --paper-2: #e8e8e2;
  --white: #ffffff;
  --ink: #0a0e1a;
  --ink-2: #0f1526;
  --ink-3: #1a2236;
  --muted: #646a78;
  --muted-dark: #8d93a3;
  --rule: rgba(10, 14, 26, 0.12);
  --rule-dark: rgba(243, 243, 239, 0.14);
  /* Accent is graphite on light surfaces and flips to paper on dark ones. */
  --signal: #0a0e1a;
  --signal-ink: #000000;
  --on-signal: #f3f3ef;
  --signal-soft: #e6e8de;
  --olive: #566246;
  --olive-soft: #b9c49f;
  --mist: #c9cdd8;
  --slate: #2a3142;
  --ok: #2fbf71;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-display: clamp(2.75rem, 1.2rem + 6.4vw, 8.25rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 4.2vw, 5.5rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 4rem);
  --fs-h3: clamp(1.375rem, 1.1rem + 0.9vw, 2rem);
  --fs-h4: clamp(1.125rem, 1rem + 0.45vw, 1.5rem);
  --fs-lg: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  --fs-body: clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  --margin: clamp(1rem, 0.5rem + 2.2vw, 2.75rem);
  --max: 1440px;
  --section: clamp(5rem, 3rem + 7vw, 10rem);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--mono); letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--signal); color: var(--white); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: .75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--margin); }
.section { padding: var(--section) 0; position: relative; }
main { overflow-x: clip; }
.theme-dark { background: var(--ink); color: var(--paper); --signal: var(--paper); --signal-ink: #ffffff; --on-signal: var(--ink); --signal-soft: rgba(243, 243, 239, 0.12); }

/* Preloader: shown once on first paint, wiped away by the intro timeline. */
@property --hole { syntax: "<length>"; inherits: false; initial-value: 0px; }
.preloader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; perspective: 900px; }
/* Dark sheet with the logo mark cut out of it (mask-composite: exclude). Scaling the sheet up = the cutout grows until it swallows the screen. */
.preloader__sheet { position: absolute; inset: 0; background: var(--ink);
  -webkit-mask-image: linear-gradient(#000, #000), url(assets/scalrai-mark.png); -webkit-mask-size: 100% 100%, var(--hole, 0px) auto; -webkit-mask-position: 0 0, center; -webkit-mask-repeat: no-repeat; -webkit-mask-composite: xor;
  mask-image: linear-gradient(#000, #000), url(assets/scalrai-mark.png); mask-size: 100% 100%, var(--hole, 0px) auto; mask-position: 0 0, center; mask-repeat: no-repeat; mask-composite: exclude; }
.preloader__logo { position: relative; display: inline-flex; align-items: center; gap: .75rem; color: var(--paper); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; letter-spacing: -0.03em; opacity: 0; will-change: transform, opacity; }
.preloader__logo .mark { height: 1.05em; width: .64em; }
.preloader__logo span { display: inline-block; }
.preloader__logo .char { display: inline-block; will-change: transform, opacity; }

/* Logo mark: the PNG is used as a mask so it takes the current text colour. */
.mark { display: inline-block; height: .95em; width: .58em; background: currentColor; -webkit-mask: url(assets/scalrai-mark.png) center / contain no-repeat; mask: url(assets/scalrai-mark.png) center / contain no-repeat; }
html:not(.js) .preloader, .preloader.is-done { display: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.5rem;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--olive); border-radius: 50%; }
.theme-dark .eyebrow::before { background: var(--olive-soft); }
.theme-dark .eyebrow { color: var(--muted-dark); }

.section-head { max-width: 52rem; margin-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head__lede { margin-top: 1.5rem; font-size: var(--fs-lg); color: var(--muted); max-width: 36rem; }
.theme-dark .section-head__lede { color: var(--muted-dark); }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }

/* Buttons */
/* Flow button: arrow slides in from the left, text shifts right, a circle swells to fill the pill,
   corners square off, and the right arrow exits. Ported from a React/Tailwind component to plain CSS. */
.btn {
  --btn-fg: var(--ink); --btn-fill: var(--ink); --btn-fg-hover: var(--paper); --btn-border: rgba(10,14,26,.4);
  position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate;
  height: 44px; padding: 0 2rem; border-radius: 100px;
  font-size: var(--fs-body); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  color: var(--btn-fg); background: transparent; border: 1.5px solid var(--btn-border); cursor: pointer;
  transition: border-color .6s cubic-bezier(.23,1,.32,1), color .6s cubic-bezier(.23,1,.32,1), border-radius .6s cubic-bezier(.23,1,.32,1), transform .3s var(--ease);
}
.btn > .btn__label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .5rem; transform: translateX(-.75rem); transition: transform .8s ease-out; }
.btn::before, .btn::after {
  /* the two arrows */
  content: ""; position: absolute; top: 50%; width: 1rem; height: 1rem; margin-top: -.5rem; z-index: 2; pointer-events: none;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: left .8s cubic-bezier(.34,1.56,.64,1), right .8s cubic-bezier(.34,1.56,.64,1);
}
.btn::before { left: -25%; }
.btn::after { right: 1rem; }
.btn > .btn__fill {
  /* the swelling circle */
  position: absolute; left: 50%; top: 50%; width: 1rem; height: 1rem; border-radius: 50%; background: var(--btn-fill); opacity: 0; z-index: 0; pointer-events: none;
  transform: translate(-50%, -50%); transition: width .8s cubic-bezier(.19,1,.22,1), height .8s cubic-bezier(.19,1,.22,1), opacity .8s cubic-bezier(.19,1,.22,1);
}
.btn:hover { border-color: transparent; color: var(--btn-fg-hover); border-radius: 12px; }
.btn:hover > .btn__label { transform: translateX(.75rem); }
.btn:hover::before { left: 1rem; }
.btn:hover::after { right: -25%; }
.btn:hover > .btn__fill { width: max(260px, 240%); height: max(260px, 240%); aspect-ratio: 1; opacity: 1; }
.btn:active { transform: scale(.95); }
.btn--lg { height: 56px; padding: 0 2.5rem; font-size: var(--fs-lg); }
/* Variants: ghost = outline (default). accent = starts filled, swells to olive. */
.btn--accent { --btn-fg: var(--on-signal); --btn-fill: var(--olive); --btn-fg-hover: var(--paper); --btn-border: transparent; background: var(--signal); }
.btn--accent:hover { background: var(--olive); }
.btn--ink:hover { background: var(--olive); }
.theme-dark .btn--ghost { --btn-fg: var(--paper); --btn-fill: var(--paper); --btn-fg-hover: var(--ink); --btn-border: rgba(243,243,239,.4); }
.btn--ink { --btn-fg: var(--paper); --btn-fill: var(--olive); --btn-border: transparent; background: var(--ink); }

.link-arrow { display: inline-flex; gap: .5rem; align-items: center; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; margin-top: 2rem; }
.link-arrow:hover { color: var(--olive); }

/* Decorative marks */
.cross { position: absolute; width: 30px; height: 30px; pointer-events: none; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--signal); }
.cross::before { left: calc(50% - 1px); top: 0; width: 2px; height: 100%; }
.cross::after { top: calc(50% - 1px); left: 0; height: 2px; width: 100%; }

.plus { position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; transform: translate(-50%, -50%); pointer-events: none; }
.plus::before, .plus::after { content: ""; position: absolute; background: var(--muted-dark); }
.plus::before { left: 50%; top: 0; width: 1px; height: 100%; }
.plus::after { top: 50%; left: 0; height: 1px; width: 100%; }
.plus--accent::before, .plus--accent::after { background: var(--signal); }

.corner { position: absolute; width: 7px; height: 7px; background: var(--ink); }
.corner--tl { left: -3px; top: -3px; } .corner--tr { right: -3px; top: -3px; }
.corner--bl { left: -3px; bottom: -3px; } .corner--br { right: -3px; bottom: -3px; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 1.25rem var(--margin) 0; pointer-events: none; transition: transform .5s var(--ease); }
.nav.is-hidden { transform: translateY(-120%); }
.nav__bar {
  pointer-events: auto;
  max-width: calc(var(--max) - 2 * var(--margin)); margin: 0 auto;
  display: flex; align-items: center; gap: 2.5rem;
  background: var(--white); border-radius: 4px;
  padding: .85rem .85rem .85rem 1.5rem;
  box-shadow: 0 1px 0 var(--rule);
}
.nav__logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 1.35rem; letter-spacing: -0.03em; }
.nav__logo { color: var(--ink); }
.nav__logo--light { color: var(--paper); }
.nav__links { display: flex; gap: 2rem; font-weight: 500; }
.nav__links a { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--rule); background: none; border-radius: 6px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
.nav__toggle span:first-child { top: 17px; } .nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__mobile { pointer-events: auto; background: var(--white); margin-top: 4px; border-radius: 4px; padding: .5rem 1.5rem 1rem; display: grid; }
.nav__mobile[hidden] { display: none; }
.nav__mobile a { padding: .9rem 0; border-bottom: 1px solid var(--rule); font-size: 1.25rem; font-weight: 500; }
.nav__mobile a:last-child { border-bottom: 0; }

/* ==========================================================================
   Hero
   ========================================================================== */
/* The hero is 3 screens tall; the inner frame sticks while scroll drives the stages. */
.hero { position: relative; height: 300svh; }
.hero__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--paper); }
.hero__bg { position: absolute; inset: 0; will-change: transform; overflow: hidden; }

/* Topographic contour layers (generated in main.js). Oversized so parallax never shows an edge. */
.topo { position: absolute; inset: -12%; }
.hero__bg .topo[data-parallax] { will-change: transform; }
.topo svg { display: block; width: 100%; height: 100%; shape-rendering: optimizeSpeed; }
.topo path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.topo path.f { stroke: rgba(10, 14, 26, 0.11); stroke-width: 1; }
.topo path.b { stroke: var(--olive); stroke-width: 4; }
.topo path.m { stroke: var(--olive); stroke-width: 1.5; }
.topo path.d { stroke: var(--signal); stroke-width: 1.5; stroke-dasharray: 4 10; opacity: .8; }

.hero__grid { position: relative; height: 100%; display: grid; grid-template-columns: 9fr 5fr; grid-template-rows: 1fr auto; }
.hero__art { grid-area: 1 / 1; }
.hero__side { grid-area: 1 / 2; position: relative; background: var(--paper); padding: 7rem var(--margin) 2.5rem 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; gap: 2rem; }
.hero__dots { display: grid; gap: 14px; margin-bottom: auto; }
.hero__dots li { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .45; position: relative; transition: transform 1s cubic-bezier(.69, .306, .006, 1.002), opacity 1s; }
.hero__dots li::after { content: ""; position: absolute; inset: -7px; border: 1px dashed var(--ink); border-radius: 50%; transform: scale(0); transition: transform 1s cubic-bezier(.684, .219, 0, 1.002); }
.hero__dots li.is-active { opacity: 1; transform: scale(1.25); }
.hero__dots li.is-active::after { transform: scale(1); }
.hero__lines { display: grid; gap: .5em; max-width: 26ch; font-size: var(--fs-h4); letter-spacing: -0.02em; line-height: 1.25; }
.hero__cta { align-self: flex-start; }
.hero__title { grid-area: 2 / 1; position: relative; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) var(--margin); }
.hero__title-bg { position: absolute; inset: 0; background: var(--paper); }
.hero__title h1 { position: relative; font-size: clamp(2.5rem, 1.2rem + 4vw, 5rem); font-weight: 400; line-height: .98; letter-spacing: -0.04em; text-wrap: pretty; }
.hero__fill { grid-area: 2 / 2; }
.hero__hline { position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--rule); z-index: 1; }
.hero__vline { position: absolute; right: 0; bottom: 0; width: 1px; height: 100vh; background: var(--rule); z-index: 1; }
.cross--hero { position: absolute; top: 0; right: 0; transform: translate(50%, -50%); z-index: 2; }
.hero__line { display: block; }
.hero__word { display: inline-block; white-space: nowrap; }
.hero__char { display: inline-block; }

/* ==========================================================================
   Stack
   ========================================================================== */
.stack .frame { position: relative; max-width: calc(var(--max) - 2 * var(--margin)); margin: 0 auto; border: 1px solid var(--rule); border-bottom: 0; margin-inline: var(--margin); }
@media (min-width: 1440px) { .stack .frame { margin-inline: auto; } }
.stack__title { font-size: var(--fs-h2); text-align: center; padding: clamp(3rem, 2rem + 4vw, 6rem) 1.5rem; border-bottom: 1px solid var(--rule); }
.stack__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stack__grid li {
  display: flex; align-items: center; justify-content: center; gap: .8rem; min-height: 120px; padding: 1rem;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-size: var(--fs-body); font-weight: 500; letter-spacing: -0.01em; color: var(--muted);
  transition: color .4s var(--ease), background-color .4s var(--ease);
}
.stack__grid li:nth-child(5n) { border-right: 0; }
.stack__grid li { position: relative; isolation: isolate; }
.stack__grid li > img, .stack__grid li > span { position: relative; z-index: 1; }
.pixels { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pixels canvas { display: block; }
.stack__grid img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; filter: grayscale(1); opacity: .55; transition: filter .4s var(--ease), opacity .4s var(--ease), transform .4s var(--ease); }
.stack__grid li:hover { color: var(--ink); background: var(--white); }
.stack__grid li:hover img { filter: none; opacity: 1; transform: scale(1.06); }
.stack__more { font-family: var(--mono); font-weight: 400; font-size: var(--fs-sm); letter-spacing: 0; }

/* ==========================================================================
   Statement (scroll scrub)
   ========================================================================== */
.statement { padding-top: calc(var(--section) * .6); }
.statement__text { font-size: var(--fs-h1); text-align: center; max-width: 18ch; margin: 0 auto; padding: 0 var(--margin); line-height: 1.02; }
.js .statement__text .w { color: rgba(10, 14, 26, 0.16); transition: color .2s linear; }
.statement__text .w.is-on { color: var(--ink); }

/* ==========================================================================
   Engine (sticky steps)
   ========================================================================== */
.engine { position: relative; overflow-x: clip; }
.engine__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--margin); display: grid; grid-template-columns: 5fr 7fr; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.engine__copy { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-right: clamp(1.5rem, 4vw, 4rem); padding-left: clamp(0rem, 2vw, 2rem); border-right: 1px solid var(--rule); }
.engine__steps { position: relative; min-height: 18rem; }
.engine__steps li { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.engine__steps li.is-active { opacity: 1; transform: none; pointer-events: auto; }
.engine__num { font-family: var(--mono); font-size: var(--fs-sm); color: var(--olive); display: block; margin-bottom: 1rem; }
.engine__steps h3 { font-size: var(--fs-h2); margin-bottom: 1.25rem; }
.engine__steps p { font-size: var(--fs-lg); color: var(--muted); max-width: 28rem; }
.engine__panels { padding-left: clamp(1.5rem, 4vw, 4rem); }
.panel__caption { display: none; }
.panel__caption .engine__num { margin-bottom: .5rem; }
.panel { min-height: 100svh; display: flex; align-items: center; }
.panel__frame {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 78svh; container-type: inline-size;
  border-radius: 28px; overflow: hidden; isolation: isolate; display: grid; place-items: center; padding: 0;
  background: var(--st-bg); box-shadow: inset 0 0 0 1px var(--st-edge);
  /* Stage palette: default "paper" theme. */
  --st-bg: #f7f7f3; --st-edge: rgba(10,14,26,.08);
  --st-card: #fff; --st-card-fg: var(--ink); --st-card-edge: rgba(10,14,26,.08); --st-card-shadow: 0 24px 50px -28px rgba(10,14,26,.35);
  --st-soft: #f1f1ec; --st-muted: #6b6f7a; --st-line: rgba(10,14,26,.09);
  --st-accent: var(--ink); --st-accent-fg: var(--paper); --st-hi: var(--olive); --st-hi-soft: rgba(86,98,70,.14);
  --st-ok: #2f8f5b; --st-bad: #c8453d; --st-ring-track: rgba(10,14,26,.1);
}
.panel__frame::before, .panel__frame::after { content: ""; position: absolute; inset: -25%; z-index: -1; pointer-events: none; opacity: var(--st-glow, 1); }
.panel__frame::before { background: radial-gradient(40% 40% at 24% 26%, var(--st-g1, rgba(185,196,159,.5)) 0%, transparent 75%), radial-gradient(36% 36% at 78% 22%, var(--st-g2, rgba(232,220,195,.55)) 0%, transparent 75%); }
.panel__frame::after { background: radial-gradient(38% 38% at 74% 76%, var(--st-g3, rgba(201,205,216,.55)) 0%, transparent 75%), radial-gradient(32% 32% at 30% 80%, var(--st-g4, rgba(185,196,159,.38)) 0%, transparent 75%); }
@keyframes drift { from { transform: translate(-6%, -5%) rotate(0deg); } to { transform: translate(6%, 5%) rotate(8deg); } }
.topo--stage { inset: 0; z-index: -1; opacity: var(--st-topo, 1); }
.topo--stage path.f { stroke: var(--st-topo-line, rgba(10,14,26,.09)); }

/* Theme: glass — soft blurred colour fields in the brand hues, no contours. */
[data-stage="glass"] .panel__frame { --st-bg: #f3f3ef; --st-topo: 0; --st-g1: rgba(185,196,159,.9); --st-g2: rgba(236,214,170,.85); --st-g3: rgba(176,186,210,.85); --st-g4: rgba(150,170,120,.6); --st-card: rgba(255,255,255,.86); }
[data-stage="glass"] .g { backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
/* Theme: graphite — dark slab with light cards, olive accents. */
[data-stage="graphite"] .panel__frame { --st-bg: radial-gradient(120% 90% at 50% 0%, #1b2030 0%, #0a0e1a 62%); --st-edge: rgba(243,243,239,.08); --st-topo: 1; --st-topo-line: rgba(243,243,239,.08); --st-glow: .5; --st-g1: rgba(185,196,159,.35); --st-g2: transparent; --st-g3: rgba(86,98,70,.35); --st-g4: transparent; --st-card: rgba(255,255,255,.96); --st-card-shadow: 0 40px 80px -30px rgba(0,0,0,.85); --st-soft: rgba(243,243,239,.08); --st-ok: #3ec27a; }
[data-stage="graphite"] .g--dark { background: rgba(40,46,64,.72); color: var(--paper); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.08), var(--st-card-shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
[data-stage="graphite"] .g--dark small, [data-stage="graphite"] .g--dark .g__label, [data-stage="graphite"] .g--dark .g__state { color: rgba(243,243,239,.6); }
[data-stage="graphite"] .g--dark .steps li { border-color: rgba(243,243,239,.1); color: rgba(243,243,239,.6); }
[data-stage="graphite"] .g--dark .steps li.is-run, [data-stage="graphite"] .g--dark .steps li.is-ok { color: var(--paper); }
[data-stage="graphite"] .g--dark .g--signals li, [data-stage="graphite"] .g--signals li { border-color: rgba(243,243,239,.1); }
[data-stage="graphite"] .ring::before { background: #2a3042; }
[data-stage="graphite"] .wires path { stroke: rgba(243,243,239,.22); }
[data-stage="graphite"] .cursor { fill: #000; stroke: #fff; }
.panel .plus { display: none; }
.panel .plus { width: 12px; height: 12px; }
.panel .plus::before, .panel .plus::after { background: var(--olive-soft); }
.plus--tl { left: 6%; top: 6%; } .plus--tr { left: 94%; top: 6%; } .plus--bl { left: 6%; top: 94%; }

.ui { background: #f7f7f4; color: var(--ink); border-radius: 10px; padding: 1.25rem; box-shadow: 0 0 0 6px rgba(185, 196, 159, .22), 0 30px 60px rgba(0,0,0,.35); font-size: var(--fs-sm); }
.ui--wide { width: 100%; max-width: 560px; }
.ui__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-weight: 500; }
.ui__label { display: block; font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.pill { font-family: var(--mono); font-size: 11px; padding: .25rem .55rem; border-radius: 99px; background: var(--signal-soft); color: var(--signal-ink); }
.pill--live { background: rgba(47, 191, 113, .15); color: #138a4c; display: inline-flex; align-items: center; gap: .4rem; }
.pill--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.ui__query { background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: .6rem .75rem; font-size: 12px; margin-bottom: 1rem; overflow-wrap: anywhere; }
.ui__table { width: 100%; border-collapse: collapse; }
.ui__table th { text-align: left; font-weight: 500; font-size: 11px; color: var(--muted); font-family: var(--mono); text-transform: uppercase; padding: 0 0 .5rem; }
.ui__table td { padding: .55rem 0; border-top: 1px solid var(--rule); }
.tag { font-size: 11px; padding: .2rem .45rem; border-radius: 4px; background: var(--signal-soft); color: var(--signal-ink); white-space: nowrap; }
.tag--muted { background: var(--paper-2); color: var(--muted); }
.ui--float { position: absolute; right: 7%; bottom: 9%; width: min(240px, 46%); background: var(--ink-3); color: var(--paper); box-shadow: 0 0 0 1px rgba(243,243,239,.12), 0 20px 40px rgba(0,0,0,.4); }
.ui--float .ui__label { color: var(--muted-dark); }
.ui--float pre { margin: 0; font-size: 11px; line-height: 1.6; white-space: pre-wrap; }
.ui--float b { color: var(--olive-soft); font-weight: 500; }
.ui__person { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.ui__person small { display: block; color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: var(--white); font-size: 12px; font-weight: 600; }
.ui__template { font-size: 12px; color: var(--muted); padding: .75rem; border: 1px dashed var(--rule); border-radius: 6px; margin-bottom: .75rem; line-height: 1.6; }
.ui__template em { font-style: normal; color: var(--signal); }
.ui__email { font-size: var(--fs-body); line-height: 1.55; padding: .75rem; background: var(--white); border-radius: 6px; border: 1px solid var(--rule); }
.ui__email mark { background: var(--signal-soft); color: var(--ink); padding: 0 .2em; border-radius: 3px; }
.ui__variants { display: flex; gap: .4rem; margin-top: 1rem; }
.ui__variants span { font-family: var(--mono); font-size: 11px; padding: .3rem .6rem; border: 1px solid var(--rule); border-radius: 4px; }
.ui__variants .is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ui-grid { width: 100%; max-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ui--span { grid-column: 1 / -1; }
.ui__big { display: block; font-size: var(--fs-h3); letter-spacing: -0.03em; font-weight: 500; }
.ui small { color: var(--muted); }
.bar { height: 8px; background: var(--paper-2); border-radius: 99px; margin-top: .9rem; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--signal); border-radius: inherit; }
.ui__inbox li { display: flex; gap: .75rem; align-items: baseline; padding: .6rem 0; border-top: 1px solid var(--rule); }
.ui__inbox li:first-child { border-top: 0; }
.ui__inbox b { font-weight: 500; font-size: 11px; font-family: var(--mono); color: #138a4c; white-space: nowrap; }
.ui__inbox time { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.ui--term { background: var(--ink-3); color: var(--paper); box-shadow: 0 0 0 1px rgba(243,243,239,.12), 0 30px 60px rgba(0,0,0,.4); }
.ui__prompt { color: var(--olive-soft); margin-bottom: 1rem; }
.ui__log li { padding: .55rem 0; border-top: 1px solid var(--rule-dark); display: flex; gap: .75rem; }
.ui__log span { color: var(--ok); }
.ui__log .is-done { color: var(--ok); }

/* Engine panel scenes: free-floating cards on a stage; colours come from the stage palette above. */
.win { position: absolute; inset: 7%; font-size: clamp(11px, 2.45cqw, 15px); color: var(--st-card-fg); letter-spacing: -0.01em; }
.scene { position: absolute; inset: 0; perspective: 1600px; }
.scene__tilt { position: absolute; inset: 0; transform-style: preserve-3d; }
.g { position: absolute; background: var(--st-card); color: var(--st-card-fg); border-radius: 1.1em; padding: 1.05em 1.2em; box-shadow: 0 0 0 1px var(--st-card-edge), var(--st-card-shadow); overflow: hidden; }
.g::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, transparent 38%, rgba(255,255,255,.7) 50%, transparent 62%); transform: translateX(var(--sheen, -130%)); }
.g--dark { background: var(--st-soft); }
.g__head { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: .8em; }
.g__title { font-weight: 600; font-size: 1em; display: inline-flex; align-items: center; gap: .5em; letter-spacing: -0.02em; }
.g__title em { font-style: normal; font-weight: 400; color: var(--st-muted); }
.g__label { display: block; font-size: .72em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--st-muted); margin-bottom: .55em; }
.g__btn { font: inherit; font-size: .85em; font-weight: 600; padding: .55em 1em; border: 0; border-radius: 99px; background: var(--st-accent); color: var(--st-accent-fg); cursor: default; letter-spacing: -0.01em; }
.g__query { font-family: var(--mono); font-size: .78em; background: var(--st-soft); border-radius: .6em; padding: .6em .8em; margin-bottom: .6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--st-muted); }
.g__state { font-size: .78em; font-weight: 500; color: var(--st-muted); }
.av { width: 2.2em; height: 2.2em; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink); color: var(--paper); font-size: .8em; font-weight: 600; flex: none; }
.av--lg { width: 3em; height: 3em; font-size: .95em; }
.leadlist li:nth-child(3n+2) .av, .g--toast:nth-child(2) .av { background: var(--olive); }
.leadlist li:nth-child(3n) .av, .g--toast:nth-child(3) .av { background: var(--slate); }
.g small { display: block; color: var(--st-muted); font-size: .8em; line-height: 1.35; }
.g b { font-weight: 600; letter-spacing: -0.015em; }
.g--badge { padding: .65em 1.05em; border-radius: 99px; background: var(--st-accent); color: var(--st-accent-fg); font-size: .95em; font-weight: 600; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); white-space: nowrap; display: inline-flex; align-items: center; gap: .45em; }
.g--badge::before { content: ""; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--st-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 62% no-repeat; }
.cursor { position: absolute; left: 0; top: 0; width: 1.6em; height: 1.6em; transform-origin: 20% 15%; fill: #000; stroke: #fff; stroke-width: 1.6; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); z-index: 5; pointer-events: none; }
.ripple { position: absolute; left: 0; top: 0; width: 2.4em; height: 2.4em; margin: -1.2em 0 0 -1.2em; border-radius: 50%; border: 2px solid var(--st-accent); opacity: 0; z-index: 4; pointer-events: none; }

/* 01 */
.g--main { left: 0; top: 2%; width: 68%; }
.leadlist { position: relative; display: grid; }
.leadlist li { display: flex; align-items: center; gap: .7em; padding: .6em 0; border-top: 1px solid var(--st-line); font-size: .95em; overflow: hidden; }
.leadlist li > div { flex: 1; min-width: 0; }
.leadlist li small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fit { width: .6em; height: .6em; border-radius: 50%; background: var(--st-ring-track); flex: none; transition: background-color .3s, box-shadow .3s; }
.leadlist li.is-ok .fit { background: var(--st-ok); box-shadow: 0 0 0 3px rgba(47,143,91,.18); }
.leadlist li.is-out { color: var(--st-muted); opacity: .7; }
.leadlist li.is-out .fit { background: var(--st-bad); }
.scanline { position: absolute; left: -1.15em; right: -1.15em; top: 0; height: 2.4em; background: linear-gradient(180deg, transparent, var(--st-hi-soft)); border-bottom: 1px solid var(--st-hi); opacity: 0; pointer-events: none; }
.g--ring { right: 0; top: 16%; width: 27%; text-align: center; padding-bottom: 1.2em; }
.ring { --p: 0; width: 5.6em; height: 5.6em; margin: .4em auto .5em; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--st-accent) calc(var(--p) * 1%), var(--st-ring-track) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: .5em; border-radius: 50%; background: var(--st-soft); }
.ring b, .ring span { position: relative; }
.ring b { font-size: 1.7em; letter-spacing: -0.04em; font-weight: 600; }
.ring span { font-size: .8em; color: var(--st-muted); margin-left: .1em; }
[data-anim="leads"] .g--badge { right: 2%; bottom: 8%; }

/* 02 */
.g--prospect { left: 0; top: 4%; width: 42%; display: flex; align-items: center; gap: .8em; }
.g--signals { left: 0; top: 34%; width: 42%; }
.g--signals ul { display: grid; }
.g--signals li { font-size: .85em; padding: .5em 0; border-top: 1px solid var(--st-line); display: flex; align-items: center; gap: .55em; }
.g--signals li::before { content: ""; width: .45em; height: .45em; border-radius: 50%; background: var(--st-hi); flex: none; }
.g--email { right: 0; top: 18%; width: 54%; padding-bottom: 2.8em; }
.email { font-size: 1em; line-height: 1.55; }
.email mark { display: inline-block; background: var(--st-hi-soft); color: inherit; padding: 0 .3em; border-radius: .35em; }
.email mark.is-var { background: transparent; color: var(--st-muted); border: 1px dashed var(--st-line); font-family: var(--mono); font-size: .85em; }
.email mark.is-hot { background: var(--st-hi-soft); box-shadow: 0 0 0 2px var(--st-hi-soft); }
.stamp { position: absolute; right: 1.1em; bottom: .9em; font-size: .72em; font-weight: 600; color: var(--st-ok); background: rgba(47,143,91,.12); border-radius: 99px; padding: .35em .7em; }
.stamp::before { content: "✓ "; }

/* 03 */
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wires path { fill: none; stroke: var(--st-line); stroke-width: 1.5; }
.g--seq { left: 0; top: 24%; width: 30%; }
.g--chan { right: 0; width: 34%; display: flex; align-items: center; gap: .7em; }
.g--chan[data-i="0"] { top: 2%; } .g--chan[data-i="1"] { top: 27%; } .g--chan[data-i="2"] { top: 52%; }
.chan__ic { width: 2.3em; height: 2.3em; border-radius: .65em; display: grid; place-items: center; color: #fff; font-size: .9em; font-weight: 700; flex: none; }
.g--chan[data-i="0"] .chan__ic { background: var(--ink); }
.g--chan[data-i="1"] .chan__ic { background: #0a66c2; }
.g--chan[data-i="2"] .chan__ic { background: var(--olive); }
.g--chan.is-sent { box-shadow: 0 0 0 1.5px var(--st-hi), var(--st-card-shadow); }
.g--chan.is-sent small { color: var(--st-ok); font-weight: 500; }
.packet { position: absolute; left: 0; top: 0; width: .65em; height: .65em; margin: -.325em 0 0 -.325em; border-radius: 50%; background: var(--st-hi); box-shadow: 0 0 10px var(--st-hi), 0 0 22px var(--st-hi-soft); opacity: 0; pointer-events: none; }
.toasts { position: absolute; left: 0; bottom: 0; width: 60%; height: 40%; }
.g--toast { left: 0; bottom: 0; width: 100%; display: flex; align-items: center; gap: .7em; }
.g--toast em { font-style: normal; font-size: .72em; font-weight: 500; color: var(--st-muted); margin-left: auto; }

/* 04 */
.g--msg { left: 0; top: 2%; width: 62%; display: flex; align-items: center; gap: .7em; }
.g--msg em { font-style: normal; font-size: .72em; color: var(--st-muted); margin-left: auto; white-space: nowrap; }
.g--agent { left: 0; top: 30%; width: 56%; }
.dot { width: .55em; height: .55em; border-radius: 50%; background: var(--st-muted); display: inline-block; }
.dot.is-live { background: var(--st-ok); box-shadow: 0 0 8px rgba(47,143,91,.7); animation: pulse 1.2s ease-in-out infinite; }
.steps { display: grid; }
.steps li { position: relative; font-size: .9em; padding: .55em 0 .55em 1.5em; border-top: 1px solid var(--st-line); color: var(--st-muted); }
.steps li::before { content: ""; position: absolute; left: .1em; top: 50%; width: .7em; height: .7em; margin-top: -.35em; border-radius: 50%; border: 1.5px solid currentColor; }
.steps li.is-run { color: inherit; }
.steps li.is-run::before { border-color: var(--st-hi); border-top-color: transparent; animation: spinner .8s linear infinite; }
.steps li.is-ok { color: inherit; }
.steps li.is-ok::before { border: 0; background: var(--st-ok); }
@keyframes spinner { to { transform: rotate(360deg); } }
.g--doc { right: 0; width: 38%; display: flex; align-items: center; gap: .7em; }
.g--doc[data-i="0"] { top: 28%; } .g--doc[data-i="1"] { top: 52%; }
.doc__ic { width: 2.4em; height: 2.4em; border-radius: .6em; display: grid; place-items: center; color: #fff; font-size: .68em; font-weight: 700; letter-spacing: .04em; flex: none; }
.g--doc[data-i="0"] .doc__ic { background: var(--st-bad); }
.g--doc[data-i="1"] .doc__ic { background: var(--ink); }
[data-anim="agent"] .g--badge { right: 2%; bottom: 4%; }


@media (max-width: 1024px), (max-height: 640px) {
  .win { inset: 5%; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-dark); }
.services__grid > li { padding: 2.5rem 2.5rem 2.5rem 0; border-bottom: 1px solid var(--rule-dark); position: relative; display: flex; flex-direction: column; }
.services__grid > li:not(:nth-child(3n + 1)) { padding-left: 2rem; border-left: 1px solid var(--rule-dark); }
.services__num { color: var(--olive-soft); font-size: var(--fs-sm); padding-bottom: 1.25rem; }
/* Service mockups: small dark app windows. Sized in em so they scale with the cell. */
.svc__shot { margin: 0 0 2rem; font-size: clamp(7px, .62vw, 9px); container-type: inline-size; }
.shot { position: relative; height: 24em; border-radius: 1em 1em 0 0; background: #11141e; box-shadow: inset 0 0 0 1px rgba(243,243,239,.1); overflow: hidden; color: var(--paper); font-family: var(--font); letter-spacing: 0;
  /* Dissolve into the section at the bottom and right edge, like a screenshot that's part of the page. */
  }
.shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: linear-gradient(180deg, transparent 40%, var(--ink) 96%), linear-gradient(90deg, transparent 70%, var(--ink) 100%); }
.svc__shot { margin-bottom: 1rem; }
.shot .av { width: 2.2em; height: 2.2em; border-radius: 50%; background: rgba(243,243,239,.12); display: inline-grid; place-items: center; font-size: .85em; font-style: normal; font-weight: 600; flex: none; color: var(--paper); }
.shot b { font-weight: 600; } .shot small { display: block; color: rgba(243,243,239,.5); font-size: .85em; }
/* gmail */
.mail { display: flex; height: 100%; }
.mail aside { width: 24%; padding: 1.2em 1em; border-right: 1px solid rgba(243,243,239,.08); display: grid; align-content: start; gap: .6em; font-size: 1.1em; color: rgba(243,243,239,.6); }
.mail__compose { display: inline-block; justify-self: start; background: rgba(243,243,239,.12); color: var(--paper); padding: .5em .9em; border-radius: 99px; margin-bottom: .4em; }
.mail aside b { color: var(--paper); display: flex; justify-content: space-between; } .mail aside em { font-style: normal; font-size: .85em; background: var(--olive); color: var(--paper); padding: 0 .5em; border-radius: 99px; }
.mail ul { flex: 1; display: grid; align-content: start; }
.mail li { display: grid; grid-template-columns: 1em 9em minmax(0, 1fr) auto; align-items: center; gap: .8em; padding: .8em 1em; border-bottom: 1px solid rgba(243,243,239,.06); font-size: 1.05em; white-space: nowrap; }
.mail li b, .mail li span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mail li:first-child { background: rgba(185,196,159,.08); }
.mail li span { overflow: hidden; text-overflow: ellipsis; color: rgba(243,243,239,.55); } .mail li strong { color: var(--paper); font-weight: 600; }
.mail time { color: rgba(243,243,239,.4); font-size: .85em; }
.star { width: 1em; height: 1em; flex: none; background: #e9b949; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
/* crm */
.crm { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8em; padding: 1.2em 1em; height: 100%; }
.crm__col { background: rgba(243,243,239,.04); border-radius: .7em; padding: .7em; display: grid; align-content: start; gap: .6em; }
.crm__col > span { font-size: .9em; font-weight: 600; color: var(--c); display: flex; align-items: center; gap: .4em; margin-bottom: .2em; white-space: nowrap; overflow: hidden; }
.crm__col > span::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--c); }
.crm__card { background: #1a1e2c; border-radius: .5em; padding: .7em; box-shadow: inset 0 0 0 1px rgba(243,243,239,.08); font-size: 1.05em; }
/* code + dashboard */
.split { display: grid; grid-template-columns: 1.15fr 1fr; height: 100%; }
.code { margin: 0; padding: 1.1em; font-family: var(--mono); font-size: 1.05em; line-height: 1.6; color: rgba(243,243,239,.75); border-right: 1px solid rgba(243,243,239,.08); overflow: hidden; white-space: pre; }
.code .k { color: #c792ea; } .code .f { color: #82aaff; } .code .t { color: #ffcb6b; } .code .s { color: #c3e88d; }
.dash { padding: 1em; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: .7em; }
.dash__stat { background: #1a1e2c; border-radius: .6em; padding: .7em; box-shadow: inset 0 0 0 1px rgba(243,243,239,.08); }
.dash__stat b { display: block; font-size: 1.7em; letter-spacing: -0.03em; font-weight: 500; }
.dash__chart { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: .5em; padding: .6em; background: #1a1e2c; border-radius: .6em; box-shadow: inset 0 0 0 1px rgba(243,243,239,.08); }
.dash__chart i { flex: 1; height: var(--h); background: var(--olive-soft); border-radius: .25em .25em 0 0; opacity: .85; }
.dash__chart i:last-child { background: var(--paper); opacity: 1; }
/* hiring */
.hire { padding: 1.2em 1.1em; height: 100%; }
.hire header { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .95em; letter-spacing: .08em; text-transform: uppercase; color: rgba(243,243,239,.5); margin-bottom: .8em; }
.hire header em { font-style: normal; color: #3ec27a; } .hire header em::before { content: "● "; }
.hire ul { display: grid; gap: .5em; }
.hire li { display: flex; flex-direction: row; align-items: center; gap: .8em; padding: .6em .9em; background: #1a1e2c; border-radius: .6em; box-shadow: inset 0 0 0 1px rgba(243,243,239,.08); font-size: 1.05em; }
.hire li > div { text-align: left; }
.hire li.is-top { box-shadow: inset 0 0 0 1.5px var(--olive-soft); }
.hire li > div { flex: 1; }
.hire .av { width: 2.4em; height: 2.4em; border-radius: 50%; background: rgba(243,243,239,.12); display: grid; place-items: center; font-size: .85em; font-style: normal; font-weight: 600; }
.score { font-family: var(--mono); font-size: .95em; padding: .3em .6em; border-radius: .4em; }
.score--hi { background: rgba(62,194,122,.18); color: #3ec27a; } .score--mid { background: rgba(233,185,73,.18); color: #e9b949; } .score--lo { background: rgba(255,95,87,.18); color: #ff5f57; }
/* n8n-style flow */
.flow { position: relative; height: 100%; background-image: radial-gradient(rgba(243,243,239,.12) 1px, transparent 1px); background-size: 1.4em 1.4em; }
.flow svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow path { fill: none; stroke: rgba(243,243,239,.35); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.node { position: absolute; width: 22%; background: #1a1e2c; border-radius: .7em; padding: .7em; box-shadow: inset 0 0 0 1px rgba(243,243,239,.12), 0 10px 20px -10px rgba(0,0,0,.8); text-align: center; font-size: 1em; }
.node i { display: grid; place-items: center; width: 2.6em; height: 2.6em; margin: 0 auto .5em; border-radius: .6em; background: #e9b949; color: #11141e; font-style: normal; font-weight: 700; font-size: 1em; }
.node .n-ai { background: var(--olive-soft); } .node .n-sheet { background: #3ec27a; } .node .n-slack { background: #e01e5a; color: #fff; }
/* whiteboard (dark canvas so it dissolves like the others) */
.board { position: relative; height: 100%; background-image: radial-gradient(rgba(243,243,239,.14) 1px, transparent 1px); background-size: 1.2em 1.2em; }
.board__tools { position: absolute; left: 50%; top: .9em; transform: translateX(-50%); display: flex; gap: .4em; padding: .4em; background: #1a1e2c; border-radius: .5em; box-shadow: inset 0 0 0 1px rgba(243,243,239,.1); }
.board__tools i { width: 1.4em; height: 1.4em; border-radius: .3em; background: rgba(243,243,239,.1); } .board__tools i:first-child { background: var(--olive-soft); }
.board svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.board .wb { fill: #1a1e2c; stroke: var(--paper); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.board .wb path { fill: none; } .board .wb-dash { stroke: var(--olive-soft); stroke-dasharray: 4 4; }
.board .wb-t text { font-family: Georgia, serif; font-style: italic; font-size: 13px; text-anchor: middle; fill: var(--paper); }
.board .wb-note text { font-family: var(--mono); font-size: 7.5px; text-anchor: middle; fill: var(--olive-soft); }
.services__grid h3 { font-size: var(--fs-h3); margin-bottom: .75rem; }
.services__grid p { color: var(--muted-dark); }
.services__grid > li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--olive-soft); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.services__grid > li:hover::after { transform: scaleX(1); }

/* ==========================================================================
   Why (tilt cards)
   ========================================================================== */
.why { position: relative; height: 260svh; }
.why__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.why__head { text-align: center; position: absolute; top: 14svh; left: 0; right: 0; padding: 0 var(--margin); z-index: 2; }
.why__head h2 { font-size: var(--fs-h2); }
.why__head .eyebrow { justify-content: center; }
.why__cards { position: relative; width: min(360px, 78vw); aspect-ratio: 3 / 4; margin-top: 16svh; }
.card { position: absolute; inset: 0; border-radius: 10px; padding: 1.5rem; display: flex; flex-direction: column; box-shadow: 0 30px 60px -20px rgba(10,14,26,.35); will-change: transform; overflow: hidden; }
.card__step { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
/* Each doodle is placed by the bounds of its own artwork so nothing clips. */
.card h3 { font-size: var(--fs-h4); margin-top: auto; margin-bottom: .6rem; letter-spacing: -0.02em; line-height: 1.15; position: relative; }
.card p { font-size: var(--fs-sm); line-height: 1.5; opacity: .85; position: relative; }
.card--ink { background: var(--ink); color: var(--paper); }
.card--mist { background: var(--signal-soft); color: var(--ink); }
.card--signal { background: var(--olive); color: var(--paper); }
.card--slate { background: var(--slate); color: var(--paper); }

/* Process card scenes: glossy CSS illustrations of each step (no image assets). */
.card h3, .card p, .card__step { position: relative; z-index: 2; }
@media (min-width: 1025px) and (min-height: 641px) { .why .card:not(:last-child) h3, .why .card:not(:last-child) p { max-width: min(64%, calc(17vw - 40px)); } }
.sc { position: absolute; left: 1.4rem; right: 1.4rem; top: 3.2rem; bottom: 7.4rem; z-index: 1; pointer-events: none; font-family: var(--font); letter-spacing: 0; }
.sc i { display: block; }
.sc-tile { position: absolute; border-radius: 14px; background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.1), 0 30px 50px -24px rgba(0,0,0,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card--mist .sc-tile { background: #fff; box-shadow: inset 0 0 0 1px rgba(10,14,26,.06), 0 30px 50px -26px rgba(10,14,26,.4); }
.sc-t { position: absolute; font-family: var(--mono); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; opacity: .65; }
.sc-big { position: absolute; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.sc-line { position: absolute; height: 5px; border-radius: 99px; background: rgba(255,255,255,.22); }
.card--mist .sc-line { background: rgba(10,14,26,.12); }
.sc-lbl { position: absolute; left: 50%; top: 84%; transform: translateX(-50%); font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 99px; background: rgba(243,243,239,.14); color: var(--paper); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; z-index: 3; }
.sc-lbl i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; margin-right: .4rem; vertical-align: middle; }
.card--mist .sc-lbl { background: var(--ink); }
.sc-orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0, rgba(255,255,255,.85) 5%, var(--c1) 22%, var(--c2) 60%, var(--c3) 100%); box-shadow: 0 20px 30px -14px rgba(0,0,0,.7), inset -10px -12px 24px rgba(0,0,0,.35); }

/* 01 discovery call booked */
.sc--call .sc-tile { left: 10%; top: 6%; width: 80%; height: 70%; }
.sc--call .sc-cal { position: absolute; left: 18%; top: 10%; width: 26%; aspect-ratio: .95; border-radius: 10px; background: var(--paper); color: var(--ink); overflow: hidden; box-shadow: 0 14px 24px -12px rgba(0,0,0,.6); }
.sc--call .sc-cal b { display: block; background: #e5533d; color: #fff; font-family: var(--mono); font-size: .5rem; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: .25rem 0; }
.sc--call .sc-cal span { display: grid; place-items: center; height: calc(100% - 1.1rem); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.04em; }
.sc--call .sc-line--a { left: 50%; top: 16%; width: 34%; } .sc--call .sc-line--b { left: 50%; top: 28%; width: 24%; }
.sc--call .sc-t { left: 18%; top: 50%; } .sc--call .sc-big { left: 18%; top: 60%; font-size: 1.05rem; }
.sc--call .sc-orb--me { --c1: #ffb08a; --c2: #e35d3b; --c3: #6b2413; width: 14%; aspect-ratio: 1; left: 60%; top: 56%; }
.sc--call .sc-orb--you { --c1: #cfe4ff; --c2: #5b8def; --c3: #1b2a5c; width: 14%; aspect-ratio: 1; left: 70%; top: 56%; box-shadow: 0 20px 30px -14px rgba(0,0,0,.7), inset -10px -12px 24px rgba(0,0,0,.35), 0 0 0 3px var(--ink); }

/* 02 proposal signed */
.sc--signed .sc-tile { left: 14%; top: 4%; width: 72%; height: 78%; }
.sc--signed .sc-ttl { left: 22%; top: 11%; font-size: .8rem; width: 58%; white-space: nowrap; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.sc--signed .sc-line--a { left: 22%; top: 30%; width: 56%; } .sc--signed .sc-line--b { left: 22%; top: 38%; width: 40%; } .sc--signed .sc-line--c { left: 22%; top: 46%; width: 48%; }
.sc--signed .sc-sig { position: absolute; left: 22%; top: 58%; width: 44%; height: 14%; overflow: visible; }
.sc--signed .sc-sigline { position: absolute; left: 22%; top: 74%; width: 48%; height: 1px; background: rgba(10,14,26,.3); }
.sc--signed .sc-pen { position: absolute; left: 60%; top: 72%; width: 26%; height: 6%; border-radius: 99px 99px 4px 4px; background: linear-gradient(90deg, #1a1f2c, #3b4254 60%, #c9a86a 85%, #e8d9b0); transform: rotate(-48deg); transform-origin: left center; box-shadow: 0 20px 30px -14px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,255,255,.3); }
.sc--signed .sc-stamp { position: absolute; left: 62%; top: 38%; padding: .3rem .55rem; border: 2px solid var(--olive); color: var(--olive); border-radius: 6px; font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-12deg); }

/* 03 project board */
.sc--board .sc-tile { left: 4%; top: 6%; width: 92%; height: 70%; }
.sc--board .sc-col { position: absolute; top: 13%; width: 24%; height: 56%; border-radius: 8px; background: rgba(10,14,26,.25); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.sc--board .sc-col--a { left: 9%; } .sc--board .sc-col--b { left: 38%; } .sc--board .sc-col--c { left: 67%; }
.sc--board .sc-col .sc-t { left: 10%; top: 8%; font-size: .52rem; }
.sc--board .sc-tk { position: absolute; left: 10%; width: 80%; height: 16%; border-radius: 5px; background: linear-gradient(160deg, rgba(255,255,255,.3), rgba(255,255,255,.12)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.sc--board .sc-tk--hot { background: linear-gradient(160deg, #ffe0cf, #f09a73); box-shadow: 0 10px 20px -8px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.7); transform: rotate(-6deg) translate(28%, -10%); z-index: 2; }
.sc--board .sc-tk--done { background: linear-gradient(160deg, #e8f0a8, #8ea463); }

/* 04 live dashboard */
.sc--dash .sc-tile { left: 6%; top: 6%; width: 88%; height: 72%; }
.sc--dash .sc-kpi { position: absolute; left: 12%; top: 12%; color: var(--paper); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1; }
.sc--dash .sc-kpi small { display: block; font-size: .6rem; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .6; margin-top: .3rem; }
.sc--dash .sc-bell { position: absolute; right: 10%; top: 10%; width: 11%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, #ffd3e4 15%, #ff7fa8 60%, #7c2d5a); box-shadow: 0 10px 20px -8px rgba(0,0,0,.7); }
.sc--dash .sc-bell::after { content: "1"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: .6rem; color: #fff; }
.sc--dash .sc-chart { position: absolute; left: 12%; right: 12%; top: 36%; height: 38%; }
.sc--dash .sc-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sc--dash .sc-dot { position: absolute; right: -2%; top: -4%; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #5fc9a0 50%, #1d5a46); box-shadow: 0 0 16px #5fc9a0; }

/* ==========================================================================
   Workshop
   ========================================================================== */
.workshop__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.workshop__copy, .workshop__board { min-width: 0; }
.workshop__copy h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; line-height: 1.05; margin-top: 1.25rem; }
.workshop__lede { margin-top: 1.5rem; font-size: var(--fs-lg); color: var(--muted-dark); max-width: 38rem; line-height: 1.5; }
.workshop__facts { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2.5rem; }
.workshop__facts li { min-width: 0; }
.workshop__facts strong { display: block; white-space: nowrap; font-size: var(--fs-h4); font-weight: 500; letter-spacing: -0.02em; color: var(--paper); }
.workshop__facts span { display: block; margin-top: .35rem; font-size: var(--fs-sm); color: var(--muted-dark); }
.workshop__cta { margin-top: 2.75rem; }
.workshop__board { position: relative; padding-bottom: 3.5rem; }
.wb { position: relative; background: var(--ink-2); border-radius: 16px; padding: 1.5rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(243,243,239,.08), 0 40px 80px -30px rgba(0,0,0,.7); }
.wb { padding-top: 0; overflow: hidden; }
.wb__hero { position: relative; margin: 0 -1.5rem 1.25rem; padding: 1.75rem 1.5rem 1.5rem; background: radial-gradient(120% 100% at 50% 0%, rgba(86,98,70,.45), transparent 70%); border-bottom: 1px solid rgba(243,243,239,.08); display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.wb__hero h3 { font-size: var(--fs-h4); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; max-width: 20ch; }
.wb__hero p { margin-top: .4rem; font-size: var(--fs-sm); color: var(--muted-dark); max-width: 30ch; }
.wb__cluster { display: grid; grid-template-columns: repeat(2, 56px); gap: .6rem; }
.wb__cluster img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; box-shadow: 0 16px 30px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(243,243,239,.12); transition: transform .5s var(--ease); }
.wb__cluster img.is-light { background: #fff; padding: 8px; object-fit: contain; }
.wb__cluster img:nth-child(1) { transform: rotate(-6deg) translateY(4px); }
.wb__cluster img:nth-child(2) { transform: rotate(5deg) translateY(-3px); }
.wb__cluster img:nth-child(3) { transform: rotate(4deg) translateY(-2px); }
.wb__cluster img:nth-child(4) { transform: rotate(-5deg) translateY(5px); }
.wb:hover .wb__cluster img { transform: none; }
.wb__tabs { display: flex; gap: .35rem; padding: .3rem; background: rgba(10,14,26,.6); border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(243,243,239,.06); }
.wb__tab { flex: 1; display: grid; gap: .1rem; padding: .6rem .5rem; border: 0; border-radius: 9px; background: none; color: var(--muted-dark); font: inherit; font-size: var(--fs-sm); font-weight: 500; letter-spacing: -0.01em; text-align: center; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.wb__tab small { font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.wb__tab:hover { color: var(--paper); }
.wb__tab.is-on { background: rgba(243,243,239,.1); color: var(--paper); }
.wb__panel { animation: wb-in .4s var(--ease); }
@keyframes wb-in { from { opacity: 0; transform: translateY(6px); } }
.wb__who { margin: 1.1rem 0 .25rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(243,243,239,.08); font-size: var(--fs-sm); color: var(--muted-dark); line-height: 1.5; }
.wb__who b { color: var(--olive-soft); font-weight: 500; }
.wb__list { counter-reset: none; }
.wb__list li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid rgba(243,243,239,.06); }
.wb__list li:last-child { border-bottom: 0; }
.wb__list i { font-family: var(--mono); font-style: normal; font-size: .8rem; color: var(--muted-dark); }
.wb__list b { display: block; font-weight: 500; font-size: var(--fs-body); letter-spacing: -0.01em; color: var(--paper); }
.wb__list small { display: none; margin-top: .15rem; font-size: var(--fs-sm); color: var(--muted-dark); }
.wb__list em { font-style: normal; font-size: .8rem; color: var(--muted-dark); white-space: nowrap; }
.wb__list li.is-build { margin: .35rem -.75rem; padding: .95rem .75rem; border-radius: 10px; background: rgba(185,196,159,.08); border-bottom: 0; }
.wb__list li.is-build i, .wb__list li.is-build em { color: var(--olive-soft); }
.wb__foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-right: min(17rem, 45%); gap: 1rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid rgba(243,243,239,.08); font-size: var(--fs-sm); color: var(--muted-dark); }
.wb__foot b { display: block; font-family: var(--mono); font-weight: 400; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .3rem; color: rgba(243,243,239,.45); }
.wb__note { position: absolute; right: -1rem; bottom: 0; width: min(16rem, 70%); background: var(--paper); color: var(--ink); border-radius: 12px; padding: 1rem 1.15rem; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); transform: rotate(-1.5deg); }
.wb__note > .mono { display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.wb__note li { position: relative; padding-left: 1.25rem; font-size: var(--fs-sm); font-weight: 500; line-height: 1.6; }
.wb__note li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6rem; height: .35rem; border-left: 1.5px solid var(--olive); border-bottom: 1.5px solid var(--olive); transform: rotate(-45deg); }

/* ==========================================================================
   Case
   ========================================================================== */
.case .section-head h2 { font-size: var(--fs-h1); }
.case__meta { font-size: var(--fs-sm); color: var(--muted); }
.case__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.case__quote { margin: 0; font-size: var(--fs-h2); letter-spacing: -0.03em; line-height: 1.08; text-wrap: pretty; max-width: 20ch; }
.case__quote em { font-style: normal; color: var(--olive); }
.case__who { display: flex; align-items: center; gap: .9rem; margin-top: 2rem; }
.case__who img { width: 44px; height: 44px; object-fit: contain; background: var(--ink); border-radius: 10px; padding: 5px; }
.case__who b { display: block; font-weight: 500; }
.case__who span { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.case__stats { display: grid; }
.case__stats div { padding: 1.25rem 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; align-items: baseline; }
.case__stats div:last-child { border-bottom: 1px solid var(--rule); }
.case__stats strong { font-size: var(--fs-h1); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.case__stats span { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.case__media { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: 8fr 4fr; gap: 1.25rem; }
.case__logo { border-radius: 10px; background: var(--ink); color: var(--paper); padding: 1.75rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.case__logo img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.case__logo p { font-size: var(--fs-sm); color: var(--muted-dark); line-height: 1.5; }
.case__logo p b { display: block; color: var(--paper); font-weight: 500; margin-bottom: .25rem; font-size: var(--fs-body); }
.case__body { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.case__body > div { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.case__body h3 { font-family: var(--mono); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-size: var(--fs-xs); margin-bottom: 1rem; }
.case__body p, .case__body li { font-size: var(--fs-body); line-height: 1.55; }
/* Click-to-play video poster (loads the Loom embed on click, so no player chrome at rest). */
.poster { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; border: 0; padding: 0; display: block; width: 100%; text-align: left; font: inherit; color: var(--paper); }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.poster:hover img { transform: scale(1.03); }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,26,.1), rgba(10,14,26,.55) 100%); pointer-events: none; }
.poster__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; z-index: 1; box-shadow: 0 20px 40px -14px rgba(0,0,0,.8); transition: transform .4s var(--ease); }
.poster__play svg { width: 26px; height: 26px; fill: var(--ink); margin-left: 3px; }
.poster:hover .poster__play { transform: translate(-50%, -50%) scale(1.08); }
.poster__meta { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.1rem; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.poster__meta b { display: block; font-weight: 500; font-size: var(--fs-body); }
.poster__meta small { display: block; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: rgba(243,243,239,.7); margin-top: .2rem; }
.poster__meta em { font-style: normal; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .06em; padding: .35rem .6rem; border-radius: 99px; background: rgba(10,14,26,.55); backdrop-filter: blur(6px); white-space: nowrap; }
.poster iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster.is-playing { cursor: default; }
.poster.is-playing::after { display: none; }
.ticks { display: grid; gap: .8rem; }
.ticks li { padding-left: 1.5rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--olive); border-radius: 2px; }

/* ==========================================================================
   Process
   ========================================================================== */
.process { padding-top: 0; }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.process__grid li { padding: 1.5rem 1.5rem 0 0; }
.process__grid li + li { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.process__grid span { font-size: var(--fs-xs); color: var(--olive); text-transform: uppercase; letter-spacing: .06em; }
.process__grid h3 { font-size: var(--fs-h3); margin: 3rem 0 1rem; }
.process__grid p { color: var(--muted); }

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews { position: relative; overflow: hidden; }
.reviews::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(40% 40% at 20% 30%, rgba(86,98,70,.35), transparent 70%), radial-gradient(35% 35% at 85% 80%, rgba(185,196,159,.18), transparent 70%); pointer-events: none; }
.reviews .container { position: relative; }
.section-head--center { text-align: center; margin-inline: auto; max-width: 36rem; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .section-head__lede { margin-inline: auto; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; max-width: 72rem; margin: 0 auto; padding-bottom: 6rem; }
.review { --rule-x: rgba(243,243,239,.16); position: relative; margin: 0; padding: 2rem 2rem 1.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; background: radial-gradient(50% 80% at 25% 0%, rgba(243,243,239,.09), transparent); transform: translateY(calc(3rem * var(--i, 0))); }
/* hairlines that run 1rem past the card, like a layout grid */
.review::before, .review::after { content: ""; position: absolute; top: -1rem; bottom: -1rem; width: 1px; background: var(--rule-x); }
.review::before { left: -1px; } .review::after { right: -1px; }
.review__hl::before, .review__hl::after { content: ""; position: absolute; left: -1rem; right: -1rem; height: 1px; background: var(--rule-x); }
.review__hl::before { top: -1px; } .review__hl::after { bottom: -1px; }
.review__decor { position: absolute; left: 0; top: 0; width: 14px; height: 14px; transform: translate(calc(-50% - .5px), calc(-50% - .5px)); z-index: 1; pointer-events: none; }
.review__decor::before, .review__decor::after { content: ""; position: absolute; background: var(--muted-dark); }
.review__decor::before { left: 0; right: 0; top: 50%; height: 1px; } .review__decor::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.review blockquote { margin: 0; display: flex; gap: 1rem; align-items: flex-start; }
.review blockquote > div { display: grid; gap: .9rem; min-width: 0; }
.review__q { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--muted-dark); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; margin-top: .2rem; }
.review .review__lead { font-size: var(--fs-h4); letter-spacing: -0.02em; line-height: 1.25; font-weight: 500; color: var(--paper); text-wrap: balance; }
.review p { font-size: var(--fs-body); line-height: 1.6; color: rgba(243,243,239,.72); }
.review__more { display: grid; gap: .9rem; }
.review__more[hidden] { display: none; }
.review__toggle { justify-self: start; font: inherit; font-size: var(--fs-sm); font-weight: 500; color: var(--olive-soft); background: none; border: 0; padding: 0; cursor: pointer; border-bottom: 1px solid currentColor; }
.review__toggle:hover { color: var(--paper); }
.review__who { display: flex; align-items: center; gap: .9rem; margin: 0; }
.review__who .av--logo { overflow: hidden; background: var(--ink); }
.review__who .av--logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.review__who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--olive); color: var(--paper); display: grid; place-items: center; font-size: .8rem; font-weight: 600; box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px rgba(243,243,239,.18); transition: box-shadow .4s var(--ease); }
.review:hover .review__who .av { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px rgba(243,243,239,.4); }
.review__who cite { display: block; font-style: normal; font-weight: 500; font-size: var(--fs-sm); color: var(--paper); }
.review__who p { font-size: var(--fs-xs); color: var(--muted-dark); line-height: 1.4; }
.review__who p span { color: rgba(243,243,239,.8); }
@media (max-width: 1080px) { .reviews__grid { grid-template-columns: 1fr; gap: 3rem; padding-bottom: 0; } .review { transform: none; } }

/* ==========================================================================
   About + booking
   ========================================================================== */
.book { padding-top: 0; }
.book__inner { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.book__photo { margin: 0 0 1.5rem; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--white); }
.book__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.18); transform-origin: 50% 32%; }
.book__bio .eyebrow { margin-bottom: .75rem; }
.book__bio h2 { font-size: var(--fs-h3); letter-spacing: -0.03em; margin-bottom: 1rem; }
.book__lede { font-size: var(--fs-h4); letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 1rem; }
.book__bio p { color: var(--muted); font-size: var(--fs-body); line-height: 1.55; margin-bottom: 1.25rem; }
.book__more { display: block; }
.book__more[hidden] { display: none; }
.book__toggle { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-size: var(--fs-sm); font-weight: 500; color: var(--ink); background: none; border: 0; padding: 0; margin: -.25rem 0 1.25rem; cursor: pointer; border-bottom: 1px solid currentColor; }
.book__toggle i { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease); }
.book__toggle[aria-expanded="true"] i { transform: rotate(-135deg) translateY(-1px); }
.book__toggle:hover { color: var(--olive); }
.book__links { display: flex; gap: 1.25rem; }
.book__links a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; font-size: var(--fs-sm); }
.book__links a:hover { color: var(--olive); }
.li__ic { width: 16px; height: 16px; border-radius: 3px; background: #0a66c2; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; font-style: normal; }
.book__cal { position: relative; min-height: 640px; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.book__cal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Ghost calendar shown before the embed loads */
.cal-ghost { position: absolute; inset: clamp(1.5rem, 4%, 3rem); display: grid; grid-template-columns: 1fr 2fr; border: 1px solid var(--rule); border-radius: 8px; opacity: .55; pointer-events: none; }
.cal-ghost__side { padding: 1.5rem; border-right: 1px solid var(--rule); display: grid; align-content: start; gap: .6rem; }
.cal-ghost__av { width: 44px; height: 44px; border-radius: 50%; background: var(--paper-2); margin-bottom: .5rem; }
.cal-ghost__side span { color: var(--muted); font-size: var(--fs-sm); }
.cal-ghost__side b { font-size: var(--fs-h4); font-weight: 500; letter-spacing: -0.02em; color: var(--muted); }
.cal-ghost__line { height: 8px; width: 90%; border-radius: 99px; background: var(--paper-2); margin-top: .5rem; }
.cal-ghost__line--short { width: 60%; margin-top: 0; }
.cal-ghost__side em { font-style: normal; font-size: var(--fs-xs); color: var(--muted); border: 1px solid var(--rule); border-radius: 6px; padding: .35rem .6rem; justify-self: start; margin-top: .6rem; }
.cal-ghost__grid { padding: 1.5rem; display: grid; align-content: start; gap: 1rem; }
.cal-ghost__grid > b { font-weight: 500; font-size: var(--fs-lg); color: var(--muted); }
.cal-ghost__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.cal-ghost__cells { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; }
.cal-ghost__cells i { aspect-ratio: 1.4; border-radius: 6px; background: var(--paper); }
.cal-gate { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, 90%); background: var(--white); border-radius: 12px; padding: 2rem; text-align: center; box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -24px rgba(10,14,26,.35); display: grid; gap: 1rem; justify-items: center; }
.cal-gate .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; position: relative; z-index: 1; }
.cal-gate p { font-size: var(--fs-sm); color: var(--muted); }
.cal-gate a { text-decoration: underline; }
.book__cal.is-loaded .cal-ghost, .book__cal.is-loaded .cal-gate { display: none; }
@media (max-width: 1080px) { .book__inner { grid-template-columns: 1fr; } .book__photo { max-width: 360px; } }
@media (max-width: 1024px), (max-height: 640px) { .cal-ghost { grid-template-columns: 1fr; } .cal-ghost__side { display: none; } .book__cal { min-height: 560px; } }

/* ==========================================================================
   YouTube
   ========================================================================== */
.yt-section { padding-top: var(--section); }
.yt-section .section-head__lede { margin-top: .75rem; }
.yt__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.yt__grid .yt:first-child { grid-column: 1 / -1; }
.yt { position: relative; display: block; border-radius: 10px; overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; color: var(--paper); }
.yt__grid .yt:first-child { aspect-ratio: 21 / 9; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.yt:hover img { transform: scale(1.04); }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10,14,26,.85)); }
.yt__play { position: absolute; right: 1.25rem; bottom: 1.25rem; z-index: 1; width: 48px; height: 48px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; transition: transform .4s var(--ease); }
.yt__play svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }
.yt:hover .yt__play { transform: scale(1.1); }
.yt__meta { position: absolute; left: 1.25rem; right: 5rem; bottom: 1.25rem; z-index: 1; display: grid; gap: .5rem; }
.yt__meta b { font-weight: 500; font-size: var(--fs-lg); letter-spacing: -0.015em; line-height: 1.25; text-wrap: pretty; }
.yt__grid .yt:first-child .yt__meta b { font-size: var(--fs-h4); max-width: 30ch; }
.yt__meta small { display: inline-flex; align-items: center; gap: .45rem; justify-self: start; font-family: var(--mono); font-size: var(--fs-xs); padding: .3rem .6rem; border-radius: 99px; background: rgba(10,14,26,.45); }
.yt__ic { width: 14px; height: 10px; border-radius: 3px; background: #ff0033; position: relative; }
.yt__ic::after { content: ""; position: absolute; left: 5px; top: 2px; border: 3px solid transparent; border-left: 5px solid #fff; }
@media (max-width: 1080px) { .yt__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1024px), (max-height: 640px) { .yt__grid { grid-template-columns: 1fr; } .yt__grid .yt:first-child { grid-column: auto; aspect-ratio: 16 / 9; } .yt-section .section-head--row .btn { display: none; } }

/* ==========================================================================
   CTA + Footer
   ========================================================================== */
.cta { overflow: hidden; overflow-x: clip; text-align: center; padding: calc(var(--section) * 1.2) 0; }
.topo--cta {
  inset: 0;
  -webkit-mask-image: radial-gradient(ellipse 42% 48% at 50% 50%, transparent 35%, #000 85%);
  mask-image: radial-gradient(ellipse 42% 48% at 50% 50%, transparent 35%, #000 85%);
}
.topo--cta path.f { stroke: rgba(243, 243, 239, 0.09); }
.topo--cta path.b { stroke: var(--olive-soft); stroke-width: 2; }
.cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: var(--fs-h1); max-width: 14ch; }
.cta p { color: var(--muted-dark); font-size: var(--fs-lg); max-width: 34rem; margin: 1.75rem 0 2.5rem; }

.footer { padding: 5rem 0 2rem; border-top: 1px solid var(--rule-dark); }
.footer__top { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; padding-bottom: 4rem; }
.footer__tag { margin-top: 1rem; color: var(--muted-dark); }
.footer__cols { display: flex; gap: clamp(2rem, 6vw, 6rem); flex-wrap: wrap; }
.footer__cols h4 { font-family: var(--mono); font-weight: 400; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted-dark); margin-bottom: 1rem; }
.footer__cols a { display: block; padding: .3rem 0; }
.footer__cols a:hover { color: var(--olive-soft); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--rule-dark); padding-top: 1.5rem; font-size: var(--fs-xs); color: var(--muted-dark); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__links, .nav__secondary { display: none; }
  .nav__toggle { display: block; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid > li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .services__grid > li:nth-child(2n) { padding-left: 2rem; border-left: 1px solid var(--rule-dark); }
  .process__grid { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .process__grid li:nth-child(3) { padding-left: 0; border-left: 0; }
  .case__grid, .case__media, .case__body { grid-template-columns: 1fr; }
  .case__quote { max-width: none; }
  .case__stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .case__stats div { grid-template-columns: 1fr; border-bottom: 0 !important; }
}

@media (max-width: 1024px), (max-height: 640px) {
  /* Mobile hero: no pinning, art on top, then headline, then the three lines and CTA. */
  .hero { height: auto; }
  .hero__sticky { position: relative; height: auto; }
  .hero__bg { inset: 0 0 auto 0; }
  .hero__bg .topo { inset: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { grid-area: 1 / 1; }
  .hero__title { grid-area: 2 / 1; padding: 1.5rem var(--margin) 1rem; }
  .hero__side { grid-area: 3 / 1; padding: 0 var(--margin) 2.5rem; gap: 1.5rem; }
  .hero__lines { max-width: none; }
  .hero__dots, .hero__fill, .hero__vline, .cross--hero { display: none; }
  .hero__title h1 { font-weight: 400; }

  .stack__grid { grid-template-columns: repeat(2, 1fr); }
  .stack__grid li { min-height: 84px; justify-content: flex-start; padding-left: 1.25rem; }
  .stack__grid li:nth-child(5n) { border-right: 1px solid var(--rule); }
  .stack__grid li:nth-child(2n) { border-right: 0; }

  .engine__inner { grid-template-columns: 1fr; border: 0; }
  .engine__copy { position: static; height: auto; border-right: 0; padding: 0 0 2rem; min-width: 0; }
  .engine__inner { min-width: 0; }
  .engine__panels { min-width: 0; }
  .panel__frame { width: 100%; }
  .engine__steps { display: none; }
  .engine__panels { padding-left: 0; display: grid; gap: 3rem; }
  .panel { min-height: 0; flex-direction: column; align-items: stretch; gap: 1.25rem; }
  .panel__caption { display: block; }
  .panel__caption h3 { font-size: var(--fs-h3); margin-bottom: .6rem; }
  .panel__caption p { color: var(--muted); }
  .panel__frame { aspect-ratio: auto; max-height: none; min-height: 420px; padding: 3rem 1.25rem; }
  .ui--float { position: static; width: 100%; margin-top: 1rem; }
  .panel__frame:has(.ui--float) { place-items: stretch; align-content: center; }

  .services__grid { grid-template-columns: 1fr; }
  .services__grid > li:nth-child(n) { padding-left: 0; border-left: 0; min-height: 0; }
  .services__num { padding-bottom: 1.5rem; }

  .why { height: auto; }
  .why__sticky { position: static; height: auto; padding: var(--section) var(--margin); overflow: visible; }
  .why__head { position: static; margin-bottom: 3rem; padding: 0; }
  .why__cards { width: 100%; aspect-ratio: auto; margin: 0; display: grid; gap: 1rem; }
  .card { position: relative; inset: auto; min-height: 26rem; }
  .why .plus { display: none; }



  .workshop__inner { grid-template-columns: minmax(0, 1fr); }
  .workshop__facts { gap: 1.25rem 2rem; }
  .wb__note { right: 0; }
  .wb__hero { grid-template-columns: 1fr; }
  .wb__foot { grid-template-columns: 1fr; gap: .6rem; }

  .process__grid { grid-template-columns: 1fr; row-gap: 0; }
  .process__grid li, .process__grid li + li { padding: 1.5rem 0 2rem; border-left: 0; border-top: 1px solid var(--rule); }
  .process__grid li:first-child { border-top: 0; }
  .process__grid h3 { margin-top: 1.5rem; }

  .about__inner { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
}

@media (max-width: 480px) { .ui-grid { grid-template-columns: 1fr; } }

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


/* ---- Engine variants: switcher + extra scenes ---- */
/* Inactive variants stay in layout but invisible: GSAP measures transforms in place, so it never has to relocate nodes. */
.scene[hidden] { display: block; visibility: hidden; pointer-events: none; }
.big { display: block; font-size: 2.2em; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; margin: .15em 0 .1em; }
/* leads-b: list + rules + running tally */
.rules { display: flex; flex-wrap: wrap; gap: .4em; margin-bottom: .6em; }
.rules span { font-family: var(--mono); font-size: .7em; padding: .3em .6em; border-radius: 99px; background: var(--st-soft); color: var(--st-muted); }
.rules span.is-on { background: var(--st-hi-soft); color: var(--st-card-fg); }
.reason { font-size: .72em; color: var(--st-muted); white-space: nowrap; opacity: 0; transition: opacity .3s; }
.leadlist li.is-ok .reason, .leadlist li.is-out .reason { opacity: 1; }
.leadlist li.is-ok .reason { color: var(--st-ok); }
.leadlist li.is-out .reason { color: var(--st-bad); }
.g--tally { right: 0; top: 10%; width: 27%; text-align: center; }
.big--bad { color: var(--st-bad); }
[data-anim="leads-b"] .g--badge { right: 2%; bottom: 8%; }
/* leads-c: raw lane → gate → qualified lane, excluded bin */
.g--lane { left: 0; top: 4%; width: 36%; min-height: 60%; overflow: visible; }
.g--lane--out { left: auto; right: 0; }
.leadlist--tight li { padding: .45em 0; font-size: .85em; height: auto !important; }
.leadlist--tight .reason, .leadlist--tight .fit { display: none; }
.g--gate { left: 41%; top: 26%; width: 18%; text-align: center; padding-bottom: 1em; }
.gate__spin { display: block; width: 2em; height: 2em; margin: .4em auto .5em; border-radius: 50%; border: 2px solid var(--st-hi-soft); border-top-color: var(--st-hi); animation: spinner .9s linear infinite; }
.g--bin { left: 41%; bottom: 8%; width: 18%; text-align: center; }
.g--bin b { display: block; font-size: 1.6em; color: var(--st-bad); }
/* personal-b: research agents feed the generate step */
.g--agents { left: 0; top: 34%; width: 42%; }
.g--agents ul { display: grid; } .g--agents li { display: flex; gap: .6em; align-items: flex-start; padding: .5em 0; border-top: 1px solid var(--st-line); font-size: .85em; }
.g--agents .dot { margin-top: .45em; flex: none; }
.g--agents small { display: block; }
/* personal-c: variables card feeds packets into the email */
.g--vars { left: 0; top: 14%; width: 36%; }
.g--vars ul { display: grid; } .g--vars li { display: flex; justify-content: space-between; gap: .6em; padding: .5em 0; border-top: 1px solid var(--st-line); font-size: .85em; }
.g--vars code { font-family: var(--mono); font-size: .9em; color: var(--st-muted); }
.g--vars li.is-set code { color: var(--st-hi); }
.g--email--wide { right: 0; top: 14%; width: 58%; }
/* channels-b/c: app icons */
.appic { width: 2.3em; height: 2.3em; border-radius: .65em; display: grid; place-items: center; flex: none; font-weight: 700; color: #fff; }
.appic svg { width: 1.5em; height: 1.5em; }
.appic--gmail { background: #fff; box-shadow: 0 0 0 1px var(--st-line); }
.appic--li { background: #0a66c2; font-size: .95em; }
.appic--imsg { background: linear-gradient(180deg, #5cf27a, #27c044); }
.g--hub { left: 0; top: 4%; width: 100%; }
.hub__msg { font-size: .95em; margin: .2em 0 .4em; }
.g--chan--row { right: 0; width: 100%; align-items: flex-start; }
.g--chan--row[data-i="0"] { top: 34%; } .g--chan--row[data-i="1"] { top: 54%; } .g--chan--row[data-i="2"] { top: 74%; }
.chan__text { color: var(--st-card-fg) !important; margin: .15em 0; }
[data-anim="channels-c"] .g--badge { right: 0; bottom: 0; }
/* agent-b: ticket crosses a kanban board */
.board { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; }
.col { background: var(--st-soft); border-radius: 1em; padding: 1em; box-shadow: 0 0 0 1px var(--st-line); }
.g--ticket { left: 0; top: 16%; width: calc((100% - 1.6em) / 3); padding-bottom: 2.4em; }
.g--ticket .bar { margin-top: .6em; background: var(--st-ring-track); } .g--ticket .bar i { background: var(--st-accent); width: 0; }
.g--ticket .av { position: absolute; right: .8em; bottom: .7em; }
[data-anim="agent-b"] .g--badge { right: 0; bottom: 8%; }
/* agent-c: console + live proposal page */
.g--console { left: 0; top: 0; width: 100%; background: var(--ink); color: var(--paper); font-size: .85em; }
.g--console .g__title, .g--console .g__state { font-family: var(--mono); font-weight: 500; }
.g--console .g__state { color: var(--olive-soft); }
.log { display: grid; gap: .35em; }
.log li { display: flex; gap: .9em; color: rgba(243,243,239,.8); }
.log time { color: rgba(243,243,239,.4); flex: none; }
.log li.ok { color: #7bd49a; }
.g--paper { left: 4%; right: 4%; top: 34%; bottom: -6%; background: #fff; padding: 0; border-radius: .7em .7em 0 0; box-shadow: 0 0 0 1px var(--st-line), 0 30px 60px -30px rgba(10,14,26,.45); }
.paper__band { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: var(--paper); padding: .9em 1.6em; }
.paper__logo { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; letter-spacing: -0.02em; }
.paper__logo .mark { height: .9em; width: .55em; }
.paper__meta { font-size: .65em; letter-spacing: .1em; color: rgba(243,243,239,.6); }
.paper__body { position: relative; z-index: 1; padding: 1.3em 1.6em; }
.paper__eyebrow { font-size: .68em; letter-spacing: .06em; text-transform: uppercase; color: var(--olive); margin-bottom: .7em; }
.paper__title { font-size: 1.45em; font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 1em; max-width: 18ch; }
.paper__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--st-line); margin-bottom: 1em; }
.paper__stats div { padding: .7em 0; border-right: 1px solid var(--st-line); padding-left: .8em; }
.paper__stats div:first-child { padding-left: 0; } .paper__stats div:last-child { border-right: 0; }
.paper__stats b { display: block; font-size: 1.5em; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.paper__stats small { font-size: .7em; color: var(--st-muted); }
.paper__phases { display: grid; gap: .5em; margin-bottom: 1em; }
.paper__phases li { display: flex; gap: .8em; align-items: flex-start; font-size: .85em; }
.paper__phases .mono { color: var(--olive); font-size: .8em; padding-top: .2em; }
.paper__phases b { display: block; font-weight: 600; } .paper__phases small { font-size: .9em; }
.paper__foot { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--ink); padding-top: .8em; }
.paper__foot small { display: block; font-size: .7em; color: var(--st-muted); }
.paper__foot b { font-size: 1.5em; letter-spacing: -0.04em; font-weight: 500; }
.paper__sig { font-family: Georgia, serif; font-style: italic; font-size: 1.15em; color: var(--ink); }
.paper__topo { position: absolute; right: -10%; bottom: -10%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle at 60% 60%, transparent 0 10px, rgba(86,98,70,.09) 10px 11px); -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%); pointer-events: none; }
.g--console--short { top: 0; }

/* Service mockups: chosen variants */
.av--0 { background: #5e5ce6 !important; } .av--1 { background: #c2410c !important; } .av--2 { background: #0f766e !important; } .av--3 { background: #566246 !important; }
/* gmail B */
.gm2 { height: 100%; display: flex; flex-direction: column; } .gm2__top { display: flex; align-items: center; gap: 1em; padding: .7em 1em; border-bottom: 1px solid rgba(243,243,239,.08); }
.gm2__logo { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; } .gm2__logo i { width: 1.2em; height: .9em; background: linear-gradient(90deg,#ea4335 25%,#fbbc04 25% 50%,#34a853 50% 75%,#4285f4 75%); border-radius: .15em; }
.gm2__search { flex: 1; max-width: 40%; background: rgba(243,243,239,.08); border-radius: 99px; padding: .4em 1em; font-size: .9em; color: rgba(243,243,239,.45); }
.gm2__body { display: flex; flex: 1; } .gm2__body aside { width: 22%; padding: .8em; display: grid; align-content: start; gap: .5em; font-size: 1em; color: rgba(243,243,239,.6); } .gm2__comp { justify-self: start; background: #c2e7ff; color: #001d35; padding: .5em .9em; border-radius: 1em; font-weight: 500; margin-bottom: .3em; }
.gm2__body aside b { color: var(--paper); background: rgba(194,231,255,.15); border-radius: 0 99px 99px 0; margin-left: -.8em; padding: .3em .8em; display: flex; justify-content: space-between; } .gm2__body aside em { font-style: normal; }
.gm2__body ul { flex: 1; } .gm2__body li { display: flex; align-items: center; gap: .8em; padding: .55em 1em; border-bottom: 1px solid rgba(243,243,239,.06); font-size: 1.05em; } .gm2__body li > div { flex: 1; min-width: 0; display: grid; } .gm2__body li b { font-weight: 400; } .gm2__body li.is-un b { font-weight: 600; } .gm2__body li.is-un { background: rgba(243,243,239,.03); }
.gm2__body li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9em; } .gm2__body li span em { font-style: normal; color: rgba(243,243,239,.5); } .gm2__body time { font-size: .8em; color: rgba(243,243,239,.45); }
/* kanban B */
.kb2 { display: grid; grid-template-columns: repeat(4,1fr); gap: .7em; padding: 1em; height: 100%; } .kb2__col header { display: flex; justify-content: space-between; font-size: .9em; margin-bottom: .6em; } .kb2__col header em { font-style: normal; color: rgba(243,243,239,.4); }
.kb2__card { background: #1a1e2c; border-radius: .6em; padding: .7em; margin-bottom: .5em; border-left: 3px solid var(--c); font-size: 1em; } .kb2__meta { display: flex; justify-content: space-between; align-items: center; margin-top: .6em; font-size: .85em; color: rgba(243,243,239,.6); } .kb2__meta .av { width: 1.7em; height: 1.7em; font-size: .7em; }
/* code B */
.cd2 { height: 100%; display: flex; flex-direction: column; } .cd2__tabs { display: flex; gap: .2em; padding: .4em .6em 0; border-bottom: 1px solid rgba(243,243,239,.08); font-family: var(--mono); font-size: .85em; } .cd2__tabs span { padding: .5em .9em; color: rgba(243,243,239,.45); border-radius: .4em .4em 0 0; } .cd2__tabs .is-on { background: #1a1e2c; color: var(--paper); }
.cd2__body { display: grid; grid-template-columns: auto 1.1fr 1fr; flex: 1; } .cd2__gutter { padding: 1.1em .3em 1.1em .8em; font-family: var(--mono); font-size: 1.05em; line-height: 1.6; color: rgba(243,243,239,.25); text-align: right; } .cd2 .code { padding-left: .6em; }
.cd2__prev { border-left: 1px solid rgba(243,243,239,.08); } .cd2__prevbar { display: flex; align-items: center; gap: .5em; padding: .5em .8em; font-size: .8em; color: rgba(243,243,239,.5); border-bottom: 1px solid rgba(243,243,239,.08); } .cd2__prevbar i { width: .6em; height: .6em; border-radius: 50%; background: #3ec27a; }
.dash--lg .dash__stat { position: relative; } .dash--lg .dash__stat em { position: absolute; right: .7em; top: .7em; font-style: normal; font-size: .75em; color: #3ec27a; }
.dash__line { grid-column: 1 / -1; background: #1a1e2c; border-radius: .6em; padding: .6em; box-shadow: inset 0 0 0 1px rgba(243,243,239,.08); } .dash__line svg { width: 100%; height: 5em; } .dash__line path { fill: none; stroke: var(--olive-soft); stroke-width: 1.5; vector-effect: non-scaling-stroke; }


/* ==========================================================================
   Responsive: tablets in landscape and small laptops (1025–1280px)
   ========================================================================== */
@media (min-width: 1025px) and (max-width: 1280px) and (min-height: 641px) {
  .hero__grid { grid-template-columns: 8fr 5fr; }
  .hero__title h1 { font-size: clamp(2.5rem, 1rem + 4.2vw, 4.4rem); }
  .hero__side { padding-top: 6rem; }
  .engine__inner { grid-template-columns: 5fr 7fr; }
  .engine__steps h3 { font-size: var(--fs-h3); }
  .nav__links { gap: 1.4rem; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid > li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .services__grid > li:nth-child(2n) { padding-left: 2rem; border-left: 1px solid var(--rule-dark); }
}

/* ==========================================================================
   Responsive: compact layout refinements (phones + portrait tablets + short screens)
   ========================================================================== */
@media (max-width: 1024px), (max-height: 640px) {
  /* Hero: let the art breathe on tall portrait tablets, keep it tight on phones. */
  .hero__bg, .hero__grid { --hero-art: clamp(260px, 42svh, 520px); }
  .hero__bg { height: var(--hero-art); }
  .hero__grid { grid-template-rows: var(--hero-art) auto auto; }
  .hero__title h1 { font-size: clamp(2.4rem, 1.2rem + 5.6vw, 4.6rem); max-width: 14ch; }
  .hero__side { flex-direction: column; align-items: flex-start; }
  .hero__lines { max-width: 34ch; }
  .hero__cta { align-self: flex-start; }
  /* Engine: panels become readable cards, not full-screen slabs. */
  .panel { min-height: 0; margin-bottom: clamp(2rem, 5vw, 4rem); }
  .panel__frame { max-height: none; aspect-ratio: 1; }
  .win { inset: 6%; font-size: clamp(11px, 2.3cqw, 15px); }
  .g--badge { right: 0 !important; bottom: 4% !important; }
  .g--ring { top: 8%; }
  .g--main { width: 70%; }
  /* Fan cards: stack as a vertical list with real doodle room. */
  .why__cards { width: 100%; }
  .card { min-height: 26rem; }
  /* Case study: one column, stats in a row. */
  .case__stats strong { font-size: var(--fs-h2); }
  /* Results: numbers and labels stack. */
  /* Mock UI chrome: lift sub-11px text to a readable floor. */
  .pill, .tag, .ui__table th, .ui--float pre, .ui__variants span, .ui__inbox b, .ui__inbox time { font-size: 12px; }
  .svc__shot { font-size: clamp(9.5px, 1.3vw, 11px); }
  .shot { height: 22em; }
  .g__label, .stamp, .g--toast em, .g--msg em { font-size: .8em; }
}

/* ==========================================================================
   Responsive: phones (≤ 480px)
   ========================================================================== */
@media (max-width: 480px) {
  :root { --margin: 1rem; --section: 4rem; }
  .nav__bar { padding: .5rem .5rem .5rem .9rem; gap: .5rem; }
  .nav__actions { gap: .4rem; }
  .nav__toggle { width: 40px; height: 40px; flex: none; }
  .nav__logo { font-size: 1.15rem; }
  .nav .btn--accent { padding: 0 .9rem; height: 40px; font-size: var(--fs-sm); }
  .nav .btn--accent::before, .nav .btn--accent::after { display: none; }
  .nav .btn--accent > .btn__label { transform: none; }
  .nav .btn--accent:hover > .btn__label { transform: none; }
  .hero__bg, .hero__grid { --hero-art: clamp(220px, 36svh, 340px); }
  .hero__title { padding-top: 1.25rem; }
  .hero__title h1 { font-size: clamp(2.2rem, 1rem + 7vw, 2.9rem); }
  .hero__lines { font-size: var(--fs-lg); }
  .section-head h2 { font-size: clamp(1.9rem, 1.2rem + 4vw, 2.4rem); }
  .stack__title { font-size: clamp(1.6rem, 1rem + 3.5vw, 2rem); padding: 2rem 1rem; }
  .statement__text { font-size: clamp(1.7rem, 1rem + 4vw, 2.3rem); }
  .panel__frame { aspect-ratio: 1; border-radius: 18px; }
  .win { inset: 5%; font-size: clamp(11px, 2.9cqw, 14px); }
  .case__stats { grid-template-columns: 1fr; gap: 0; }
  .case__stats div { grid-template-columns: 1fr auto; border-bottom: 0; }
  .case__stats div:last-child { border-bottom: 1px solid var(--rule) !important; }
  .case__stats span { font-size: 10px; }
  .review__lead { font-size: var(--fs-h4); padding-right: 2rem; }
  .yt__meta b { font-size: var(--fs-body); }
  .yt__meta { right: 4rem; }
  .book__cal { min-height: 520px; }
  .btn--lg { width: 100%; white-space: normal; height: auto; min-height: 52px; padding: .7rem 2.2rem; text-align: center; font-size: var(--fs-body); }
  .footer__top { flex-direction: column; gap: 2rem; }
  .svc__shot { font-size: 10.5px; }
  .shot { height: 20em; }
}

/* ==========================================================================
   Responsive: very large screens (≥ 1800px) — cap the canvas so it doesn't go sparse
   ========================================================================== */
@media (min-width: 1800px) {
  :root { --max: 1600px; }
  .hero__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .hero__title h1 { font-size: clamp(5rem, 4vw, 6.5rem); }
  .hero__side { padding-top: 9rem; }
  .hero__lines { font-size: var(--fs-h3); max-width: 28ch; }
  .nav__bar { max-width: 1600px; }
  .engine__inner, .container, .frame { max-width: var(--max); }
  .stack .frame { margin-inline: auto; }
  .why__cards { width: min(420px, 78vw); }
  .panel__frame { max-width: 900px; }
}
