/* =================================================================
   KENIUS — Design System
   A bespoke stylesheet. No framework, no utility soup.
   Tokens first, then components. Edit tokens to re-skin the site.
   ================================================================= */

/* -----------------------------------------------------------------
   0. Tokens
   Warm paper + warm ink + a single amber accent used *semantically*.
   Deliberately avoids the AI-slop defaults (no blue→purple gradients,
   no Inter, no uniform 16px radius everywhere).
   ----------------------------------------------------------------- */
:root {
  /* Neutrals — warm, slightly desaturated (paper & ink) */
  --paper-0:   #FBF8F2;   /* page background (light)            */
  --paper-50:  #F5F0E6;   /* raised surface                     */
  --paper-100: #ECE4D5;   /* sunken / wash                      */
  --paper-200: #E2D8C5;   /* hairline on light                  */

  --ink-900: #16130D;     /* near-black, warm (dark bg / text)  */
  --ink-800: #201C14;     /* dark surface                       */
  --ink-700: #2B261C;     /* dark surface raised                */
  --ink-600: #4A4234;     /* muted ink                          */
  --ink-500: #6F6553;     /* body-muted on light                */
  --ink-400: #938876;     /* faint                              */

  /* Accent — amber "north light". Used for action + emphasis only. */
  --amber-700: #B5621F;
  --amber-600: #CF7327;
  --amber-500: #E5862F;   /* primary accent                     */
  --amber-400: #F0A155;
  --amber-300: #F6C796;
  --amber-100: #F8E6CF;
  --amber-50:  #FBF1E2;

  /* Support — muted pine, used *sparingly* for data/positive only. */
  --pine-600: #2F6E60;
  --pine-300: #8FBDB2;

  /* Semantic feedback */
  --good: #2F6E60;
  --warn: #C7892B;

  /* ---- Semantic, theme-aware roles (light is default) ---- */
  --bg:        var(--paper-0);
  --surface:   var(--paper-50);
  --surface-2: #FFFDF8;
  --sunken:    var(--paper-100);
  --text:      var(--ink-900);
  --text-soft: #423B2F;
  --text-muted:var(--ink-500);
  --line:      var(--paper-200);
  --line-soft: #EDE6D8;
  --accent:    var(--amber-700);
  --accent-strong: #9A5418;
  --accent-ink: #2A1404;          /* text that sits on amber */
  --accent-wash: var(--amber-50);
  --on-bg-card-shadow: 16, 19, 13;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Fluid type scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.36rem + 0.7vw, 1.95rem);
  --step-3:  clamp(1.9rem, 1.66rem + 1.2vw, 2.7rem);
  --step-4:  clamp(2.4rem, 2rem + 2vw, 3.7rem);
  --step-5:  clamp(2.9rem, 2.2rem + 3.5vw, 5rem);

  /* Spacing scale (varied, not uniform) */
  --sp-1: 0.375rem;
  --sp-2: 0.75rem;
  --sp-3: 1.25rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 7rem;

  /* Radii — intentionally varied */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Elevation — one consistent recipe, scaled by level */
  --shadow-1: 0 1px 2px rgba(22,19,13,.05), 0 2px 6px rgba(22,19,13,.04);
  --shadow-2: 0 4px 14px rgba(22,19,13,.07), 0 12px 30px rgba(22,19,13,.06);
  --shadow-3: 0 10px 30px rgba(22,19,13,.10), 0 30px 60px rgba(22,19,13,.10);
  --ring: 0 0 0 3px var(--amber-100);

  --container: 1180px;
  --container-narrow: 760px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Dark band — apply to a <section> to flip it to ink.
   Depth via luminance, not heavy shadows. */
.band--ink {
  --bg: var(--ink-900);
  --surface: var(--ink-800);
  --surface-2: #241F16;
  --sunken: #100D08;
  --text: #F4EEE2;
  --text-soft: #E4DBCB;
  --text-muted: #A99C86;
  --line: rgba(244,238,226,.12);
  --line-soft: rgba(244,238,226,.07);
  --accent: var(--amber-400);
  --accent-strong: var(--amber-300);
  --accent-ink: #2A1404;
  --accent-wash: rgba(229,134,47,.12);
  background: var(--bg);
  color: var(--text);
}

/* -----------------------------------------------------------------
   1. Reset & base
   ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
svg { fill: currentColor; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

::selection { background: var(--amber-300); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--amber-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -----------------------------------------------------------------
   2. Typography
   ----------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 460;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text);
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.12; }
h4 { font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.01em; }

p { color: var(--text-soft); }
strong { font-weight: 600; color: var(--text); }

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text-soft);
  font-weight: 400;
  max-width: 46ch;
  text-wrap: pretty;
}

/* Eyebrow / kicker — mono, small caps feel */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 400;
}
.eyebrow::before {
  content: "";
  width: 1.6em; height: 1px;
  background: currentColor;
  opacity: .6;
}
.eyebrow--plain::before { display: none; }

.display-accent { color: var(--accent); font-style: italic; }
.display-accent--em { font-variation-settings: "opsz" 144, "WONK" 1; }

.text-muted { color: var(--text-muted); }
.balance { text-wrap: balance; }

/* -----------------------------------------------------------------
   3. Layout
   ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.5rem, 7vw, var(--sp-7)); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--flush-top { padding-top: 0; }

.stack > * + * { margin-top: var(--flow, 1rem); }
.grid { display: grid; gap: var(--gap, var(--sp-3)); }

.section-head { max-width: 60ch; }
.section-head .lead { margin-top: 1.1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--text-first { grid-template-columns: 0.95fr 1.05fr; }
}

/* -----------------------------------------------------------------
   4. Buttons
   ----------------------------------------------------------------- */
.btn {
  --btn-bg: var(--text);
  --btn-fg: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.4em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: -0.01em;
  line-height: 1;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform .18s var(--ease-out), box-shadow .25s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--amber-500); --btn-fg: var(--accent-ink); }
.btn--primary:hover { --btn-bg: var(--amber-400); }

.btn--ink { --btn-bg: var(--text); --btn-fg: var(--bg); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--text); box-shadow: none; }

.btn--lg { padding: 1.05em 1.7em; font-size: var(--step-1); }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: gap .2s var(--ease-out), border-color .2s;
  padding-bottom: 1px;
}
.link-arrow:hover { gap: 0.7em; border-color: currentColor; }

/* -----------------------------------------------------------------
   5. Header / nav
   ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper-0) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper-0) 90%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.32rem;
  letter-spacing: -0.025em;
  color: var(--text);
}
.brand .mark { color: var(--amber-600); flex: none; }
.brand:hover .mark { transform: rotate(15deg); }
.brand .mark { transition: transform .4s var(--ease-out); }

.nav-links {
  display: none;
  align-items: center;
  gap: 0.35rem;
}
.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--text-soft);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--text); background: var(--sunken); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px; width: 16px;
  margin: 2px auto 0;
  background: var(--amber-500);
  border-radius: 2px;
}
.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-right: -10px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 920px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 72px 0 auto 0;
  background: var(--paper-0);
  border-bottom: 1px solid var(--line);
  padding: 1rem clamp(1.1rem, 4vw, 2.5rem) 2rem;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 55;
  box-shadow: var(--shadow-2);
}
.nav-open .mobile-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a {
  display: block;
  padding: 0.9rem 0.4rem;
  font-size: 1.15rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .btn { margin-top: 1.2rem; width: 100%; }
@media (min-width: 920px) { .mobile-menu { display: none; } }

/* -----------------------------------------------------------------
   6. Hero
   ----------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); overflow: hidden; }
.hero::before {
  /* soft warm "north light" wash — radial, not a blue blob */
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background:
    radial-gradient(60% 60% at 78% 18%, rgba(229,134,47,.16), transparent 70%),
    radial-gradient(50% 50% at 12% 8%, rgba(47,110,96,.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.04fr 0.96fr; }
}
.hero h1 { margin-top: 1.4rem; }
.hero .lead { margin-top: 1.5rem; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); max-width: 38ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.1rem;
}
.hero-trust {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.hero-trust .micro {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* -----------------------------------------------------------------
   7. Relay diagram (hero SVG)
   ----------------------------------------------------------------- */
.relay {
  position: relative;
  background: var(--ink-900);
  border-radius: var(--r-xl);
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--shadow-3);
  color: #F4EEE2;
  border: 1px solid rgba(244,238,226,.08);
  overflow: hidden;
}
.relay::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 0%, rgba(229,134,47,.16), transparent 65%);
  pointer-events: none;
}
.relay-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; position: relative; z-index: 1;
}
.relay-title {
  font-family: var(--font-mono);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: #A99C86;
}
.relay-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(47,110,96,.2); }
.relay-live { display:inline-flex; align-items:center; gap:.5em; font-family: var(--font-mono); font-size:.72rem; color:#8FBDB2; letter-spacing:.08em; }
.relay svg { width: 100%; height: auto; position: relative; z-index: 1; }

.relay-edge { stroke: rgba(244,238,226,.18); stroke-width: 1.5; fill: none; }
.relay-flow {
  stroke: var(--amber-400);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 8 220;
  filter: drop-shadow(0 0 4px rgba(240,161,85,.6));
  animation: relayFlow 3.4s linear infinite;
}
.relay-flow.f2 { animation-delay: -1.1s; }
.relay-flow.f3 { animation-delay: -2.2s; }
.relay-flow.f4 { animation-delay: -0.5s; }
@keyframes relayFlow { to { stroke-dashoffset: -228; } }

.relay-node rect, .relay-node circle { transition: fill .3s; }
.relay-chip {
  fill: #241F16;
  stroke: rgba(244,238,226,.14);
  stroke-width: 1;
}
.relay-hub { fill: var(--amber-500); }
.relay-label { fill: #E4DBCB; font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; }
.relay-label--hub { fill: #2A1404; font-weight: 700; }
.relay-sub { fill: #A99C86; font-family: var(--font-mono); font-size: 9px; }
.relay-pulse { transform-box: fill-box; transform-origin: center; animation: relayPulse 2.6s var(--ease) infinite; }
@keyframes relayPulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .relay-flow, .relay-pulse { animation: none; }
  .relay-flow { stroke-dasharray: none; opacity: .5; }
}

/* -----------------------------------------------------------------
   8. Logo strip / marquee
   ----------------------------------------------------------------- */
.logos { padding-block: clamp(2rem, 4vw, 3rem); }
.logos p {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3.4rem);
}
.logo-row span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  letter-spacing: -0.01em;
  color: var(--ink-600);
  opacity: .7;
  transition: opacity .25s, color .25s;
  white-space: nowrap;
}
.logo-row span:hover { opacity: 1; color: var(--text); }
.logo-row .lg-mark { font-style: italic; }

/* -----------------------------------------------------------------
   9. Cards & feature grids
   ----------------------------------------------------------------- */
.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), border-color .3s;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--paper-200); }
.band--ink .card--hover:hover { border-color: rgba(244,238,226,.22); }

.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent-wash);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { font-size: var(--step-1); }
.card p { margin-top: .55rem; font-size: 0.98rem; }
.card .micro-eg {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.card .micro-eg b { color: var(--accent); font-weight: 600; }

/* capability grid — varied column spans to break the uniform look */
.cap-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cap-grid { grid-template-columns: repeat(6, 1fr); } }
/* spans only kick in at the widest breakpoint */
@media (min-width: 1040px) {
  .cap-grid > .card { grid-column: span 2; }
  .cap-grid > .card.is-wide { grid-column: span 3; }
  .cap-grid > .card.is-feature { grid-column: span 3; }
}

.feature-tall {
  background: var(--ink-900);
  color: #F4EEE2;
  border: none;
}
.feature-tall .card-icon { background: rgba(229,134,47,.16); color: var(--amber-400); }
.feature-tall h3 { color: #F8F3E9; }
.feature-tall p { color: #C3B8A4; }
.feature-tall .micro-eg { border-top-color: rgba(244,238,226,.14); color: #A99C86; }

/* -----------------------------------------------------------------
   10. AI coworker cards
   ----------------------------------------------------------------- */
.crew-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .crew-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .crew-grid { grid-template-columns: repeat(4, 1fr); } }

.crew {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.3rem;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
}
.crew:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.crew-top { display: flex; align-items: center; gap: .8rem; }
.crew-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600;
  color: var(--accent-ink);
  flex: none;
}
.crew-avatar.a1 { background: var(--amber-300); }
.crew-avatar.a2 { background: var(--pine-300); }
.crew-avatar.a3 { background: #E7C2A0; }
.crew-avatar.a4 { background: #D7CDBA; }
.crew-name { font-weight: 700; line-height: 1.1; }
.crew-role { font-size: .82rem; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: .02em; }
.crew p { font-size: .94rem; margin-top: 1rem; flex: 1; }
.crew-foot {
  margin-top: 1.1rem; padding-top: .9rem;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem;
}
.crew-tools { display: flex; gap: .35rem; flex-wrap: wrap; }
.tool-chip {
  font-family: var(--font-mono);
  font-size: .68rem;
  padding: .2em .55em;
  border-radius: var(--r-xs);
  background: var(--sunken);
  color: var(--text-muted);
  letter-spacing: .02em;
}
.crew-status { display: inline-flex; align-items: center; gap: .4em; color: var(--good); font-family: var(--font-mono); font-size: .72rem; }
.crew-status::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }

/* -----------------------------------------------------------------
   11. Demo widget (chat / voice / back-office)
   ----------------------------------------------------------------- */
.demo {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.demo-tabs {
  display: flex;
  gap: .3rem;
  padding: .6rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow-x: auto;
}
.demo-tab {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .6em 1em;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.demo-tab svg { width: 17px; height: 17px; }
.demo-tab[aria-selected="true"] { background: var(--ink-900); color: #F4EEE2; }
.demo-panel { padding: clamp(1.2rem, 3vw, 2rem); min-height: 360px; }
.demo-panel[hidden] { display: none; }

.demo-meta {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em;
  color: var(--text-muted); text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.demo-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }

.chat { display: flex; flex-direction: column; gap: .8rem; }
.bubble {
  max-width: 80%;
  padding: .8em 1em;
  border-radius: var(--r-md);
  font-size: .96rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
}
.bubble.show { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.bubble.user { align-self: flex-end; background: var(--ink-900); color: #F4EEE2; border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: var(--sunken); color: var(--text); border-bottom-left-radius: 4px; border: 1px solid var(--line); }
.bubble .who { display:block; font-family: var(--font-mono); font-size:.66rem; letter-spacing:.08em; text-transform:uppercase; opacity:.6; margin-bottom:.3em; }
.bubble .act { display:block; margin-top:.5em; font-family: var(--font-mono); font-size:.74rem; color: var(--accent); }
.band--ink .bubble.bot { background: var(--ink-700); border-color: rgba(244,238,226,.1); }

.typing { display:inline-flex; gap:3px; padding:.2em 0; }
.typing span { width:6px; height:6px; border-radius:50%; background: var(--text-muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2){ animation-delay:.2s; } .typing span:nth-child(3){ animation-delay:.4s; }
@keyframes blink { 0%,60%,100%{ opacity:.25; transform: translateY(0);} 30%{ opacity:1; transform: translateY(-2px);} }

/* back-office rows */
.task-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: .8rem; align-items: center;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateX(-8px);
}
.task-row.show { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.task-check { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); display:grid; place-items:center; }
.task-check svg { width: 13px; height: 13px; }
.task-row b { font-weight: 600; }
.task-row .when { font-family: var(--font-mono); font-size: .74rem; color: var(--text-muted); }

/* -----------------------------------------------------------------
   12. Process / steps
   ----------------------------------------------------------------- */
.steps { display: grid; gap: 1.1rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding: 1.6rem 1.3rem 1.4rem;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.step-num {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .1em;
}
.step h4 { margin-top: .6rem; font-size: 1.15rem; }
.step p { margin-top: .5rem; font-size: .92rem; }
.step .when { margin-top: .9rem; font-family: var(--font-mono); font-size: .74rem; color: var(--text-muted); }

/* -----------------------------------------------------------------
   13. Case studies
   ----------------------------------------------------------------- */
.cases { display: grid; gap: 1.3rem; }
@media (min-width: 760px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .cases.cases--3 { grid-template-columns: repeat(3, 1fr); } }

.case {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
}
.case--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-3); }
.case-cover {
  aspect-ratio: 16 / 9;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.case-cover .badge-industry {
  position: absolute; top: 1rem; left: 1rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(22,19,13,.7); color: #F4EEE2; padding: .4em .7em; border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
}
.case-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.case-body h3 { font-size: 1.3rem; }
.case-body p { margin-top: .6rem; font-size: .95rem; flex: 1; }
.case-metrics { display: flex; gap: 1.4rem; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.metric .n { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; color: var(--accent); line-height: 1; }
.metric .l { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }

/* abstract generative covers (no stock photos) */
.cover-art { position: absolute; inset: 0; }
.cv1 { background: linear-gradient(135deg, #20453E, #2F6E60); }
.cv2 { background: linear-gradient(135deg, #7A3D12, #E5862F); }
.cv3 { background: linear-gradient(135deg, #2B261C, #4A4234); }
.cv4 { background: linear-gradient(135deg, #5A2E0C, #CF7327); }
.cv5 { background: linear-gradient(135deg, #1C3A45, #356074); }
.cv6 { background: linear-gradient(135deg, #3A2A14, #8A6A2E); }
.cover-art svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }

/* -----------------------------------------------------------------
   14. Stats band
   ----------------------------------------------------------------- */
.stats { display: grid; gap: 2rem 1rem; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat .n { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 500; line-height: 1; color: var(--accent); letter-spacing: -0.02em; }
.stat .l { margin-top: .7rem; color: var(--text-muted); font-size: .95rem; max-width: 22ch; margin-inline: auto; }

/* -----------------------------------------------------------------
   15. Testimonials
   ----------------------------------------------------------------- */
.quotes { display: grid; gap: 1.3rem; }
@media (min-width: 820px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.7rem;
  display: flex; flex-direction: column;
}
.quote .mark { font-family: var(--font-display); font-size: 3rem; line-height: .6; color: var(--amber-300); height: 1.4rem; }
.quote blockquote { font-size: 1.05rem; line-height: 1.5; color: var(--text-soft); flex: 1; }
.quote-by { margin-top: 1.4rem; display: flex; align-items: center; gap: .8rem; }
.quote-ava { width: 38px; height: 38px; border-radius: 50%; background: var(--sunken); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: var(--text); }
.quote-by .nm { font-weight: 700; font-size: .92rem; line-height: 1.1; }
.quote-by .ti { font-size: .8rem; color: var(--text-muted); }

/* -----------------------------------------------------------------
   16. FAQ accordion
   ----------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem 0.2rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 460;
  letter-spacing: -0.01em;
  color: var(--text);
}
.faq-q .ic { flex: none; width: 26px; height: 26px; position: relative; }
.faq-q .ic::before, .faq-q .ic::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--accent); border-radius: 2px;
}
.faq-q .ic::before { width: 14px; height: 2px; }
.faq-q .ic::after { width: 2px; height: 14px; transition: transform .3s var(--ease); }
.faq-item.open .faq-q .ic::after { transform: rotate(90deg); opacity: 0; }
.faq-a { overflow: hidden; height: 0; transition: height .35s var(--ease); }
.faq-a-inner { padding: 0 0.2rem 1.5rem; max-width: 68ch; color: var(--text-soft); }
.faq-a-inner p + p { margin-top: .8rem; }

/* -----------------------------------------------------------------
   17. CTA band
   ----------------------------------------------------------------- */
.cta {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--ink-900);
  color: #F4EEE2;
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 120% at 50% -10%, rgba(229,134,47,.26), transparent 60%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #FBF6EC; }
.cta p { color: #C9BEAA; margin: 1.1rem auto 0; max-width: 50ch; }
.cta .hero-actions { justify-content: center; }

/* -----------------------------------------------------------------
   18. Footer
   ----------------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: #C9BEAA; padding-block: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand .brand { color: #F4EEE2; }
.footer-brand p { color: #9C907B; margin-top: 1rem; max-width: 30ch; font-size: .95rem; }
.footer-col h5 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #8A7E69; margin-bottom: 1.1rem; }
.footer-col a { display: block; padding: .4rem 0; color: #C9BEAA; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--amber-400); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.8rem;
  border-top: 1px solid rgba(244,238,226,.1);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .85rem; color: #8A7E69;
}
.footer-socials { display: flex; gap: .6rem; }
.footer-socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(244,238,226,.14); display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.footer-socials a:hover { background: var(--amber-500); color: var(--accent-ink); border-color: transparent; }
.footer-socials svg { width: 17px; height: 17px; }

/* -----------------------------------------------------------------
   19. Forms
   ----------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.2rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--text-muted); font-weight: 400; }
.field input, .field textarea, .field select {
  padding: .85em 1em;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--amber-500);
  box-shadow: var(--ring);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; gap: 1.2rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .85rem; color: var(--text-muted); margin-top: .4rem; }
/* honeypot — hidden from people, catches bots that fill every field */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* contact split aside */
.contact-aside { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-point { display: flex; gap: .9rem; }
.contact-point .ic { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact-point .ic svg { width: 19px; height: 19px; }
.contact-point h4 { font-family: var(--font-sans); font-weight: 700; font-size: 1rem; }
.contact-point p, .contact-point a { font-size: .94rem; color: var(--text-muted); }
.contact-point a:hover { color: var(--accent); }

/* -----------------------------------------------------------------
   20. Misc components
   ----------------------------------------------------------------- */
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .5em .95em;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: .9rem;
  font-weight: 500;
  transition: border-color .2s, background-color .2s, transform .2s;
}
.pill:hover { border-color: var(--amber-400); transform: translateY(-2px); }
.pill .em { font-size: 1.05rem; }

.callout {
  border-left: 3px solid var(--amber-500);
  padding: .3rem 0 .3rem 1.3rem;
  margin: 1.6rem 0;
}
.callout p { font-size: 1.08rem; color: var(--text); font-family: var(--font-display); font-style: italic; }

.divider { height: 1px; background: var(--line); border: none; margin: 0; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35em .7em;
  border-radius: var(--r-xs);
  background: var(--accent-wash);
  color: var(--accent);
}

.two-col-list { display: grid; gap: .9rem 2rem; }
@media (min-width: 620px) { .two-col-list { grid-template-columns: 1fr 1fr; } }
.check-li { display: flex; gap: .7rem; align-items: flex-start; }
.check-li .ck { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; margin-top: 1px; }
.check-li .ck svg { width: 12px; height: 12px; }
.check-li span { font-size: .98rem; }

/* page hero (subpages) */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.page-hero h1 { font-size: var(--step-4); margin-top: 1.2rem; max-width: 18ch; }
.page-hero .lead { margin-top: 1.3rem; max-width: 56ch; }
.breadcrumb { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em; color: var(--text-muted); text-transform: uppercase; }
.breadcrumb a:hover { color: var(--accent); }

/* values / about */
.value-grid { display: grid; gap: 1.1rem; }
@media (min-width: 760px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
.value { padding: 1.5rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.value .n { font-family: var(--font-mono); color: var(--accent); font-size: .8rem; }
.value h4 { margin-top: .6rem; }
.value p { margin-top: .5rem; font-size: .94rem; }

/* -----------------------------------------------------------------
   21. Scroll-reveal
   ----------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .crew, .case, .pill { transition: none !important; }
}

/* utility */
.center { text-align: center; }
.mt-sm { margin-top: 1rem; } .mt-md { margin-top: 2rem; } .mt-lg { margin-top: 3rem; }
.maxw-sm { max-width: 56ch; } .mx-auto { margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink-900); color: #fff; padding: .8em 1.2em; border-radius: 0 0 var(--r-sm) 0; z-index: 100; }
.skip-link:focus { left: 0; }
