/* ============================================================
   BreakoutAI Studios — premium one-page experience
   ============================================================ */

:root {
  --ink: #0a0a0b;
  --ink-2: #15151a;
  --ink-3: #1f1f26;
  --paper: #f4f2ee;
  --paper-2: #ebe7df;
  --white: #ffffff;
  --signal: #e11d2e;
  --teal: #1ec5a5;
  --purple: #8b3df6;
  --steel: #1f4e79;
  --green: #0f5132;
  --muted: rgba(10, 10, 11, 0.56);
  --muted-d: rgba(255, 255, 255, 0.58);
  --line-d: rgba(255, 255, 255, 0.10);
  --line-l: rgba(10, 10, 11, 0.10);

  --display: "Bricolage Grotesque", "Söhne", "Helvetica Neue", Arial, sans-serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--body);
  background: var(--ink);
  color: #f6f4ef;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}
/* media never overflows its container */
img, svg, video, canvas, table { max-width: 100%; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* --------- selection --------- */
::selection { background: var(--signal); color: var(--white); }

/* --------- grain overlay --------- */
.grain {
  pointer-events: none;
  position: fixed; inset: 0;
  z-index: 9999;
  opacity: 0.05;
  /* Pinned to its own compositor layer. (Previously mix-blend-mode: overlay,
     which forced a full-page re-blend on every scroll repaint — the main
     cause of the site-wide scroll shimmer.) */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.85'/></svg>");
}

/* --------- nav --------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  /* Snap the backdrop-filter in at .solid rather than ramping it none→blur,
     which flickers on scroll. Only background/border animate. */
  transition: background .3s, border-color .3s;
  transform: translateZ(0);
  will-change: transform;
}
.nav.solid {
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(10,10,11,0.55);
  border-bottom: 1px solid var(--line-d);
}
.nav.solid.light {
  background: rgba(244, 242, 238, 0.78);
  border-bottom: 1px solid var(--line-l);
}
.nav > * { pointer-events: auto; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand .logo-wrap { width: 32px; height: 32px; display: grid; place-items: center; }
.brand .wm { display: flex; flex-direction: column; line-height: 1.05; }
.brand .wm small { font-family: var(--body); font-weight: 500; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }

.nav-right { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  position: relative;
  opacity: 0.7;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.lang-toggle {
  display: inline-flex;
  border: 1px solid currentColor;
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.lang-toggle button {
  padding: 5px 10px;
  transition: background .2s, color .2s;
}
.lang-toggle button.active {
  background: currentColor;
}
.lang-toggle button.active span { color: var(--ink); mix-blend-mode: difference; }
.nav.solid.light .lang-toggle button.active { background: var(--ink); color: var(--paper); }
.nav.solid.light .lang-toggle button.active span { color: var(--paper); }

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 18px;
  border-radius: 999px;
  background: var(--signal);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 20px rgba(225, 29, 46, 0.25);
}
.cta-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 14px 30px rgba(225, 29, 46, 0.35);
}
.cta-pill .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--white);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
}

/* --------- section base --------- */
section {
  position: relative;
  padding: 120px 40px;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

/* Root-cause guard: `1fr` grid tracks default to a min-content floor, so a
   child with wide intrinsic content (mono tables, stat rows, clamp headings)
   blows the track past the viewport. Letting grid/flex items shrink to 0
   makes every `1fr` behave like `minmax(0, 1fr)`. Harmless on desktop where
   content already fits; essential on mobile. */
.hero-sub-row, .hero-actions, .enemy-head, .cost-row, .work-head, .case-inner,
.stat-row, .metrics, .method-grid, .boundary-grid, .voice, .sig-grid,
.founder-grid, .timeline, .cta-row, .foot-grid, .doc-viewer, .flow-row,
.flow-map, .product-cards, .marquee-row {
  min-width: 0;
}
.hero-sub-row > *, .enemy-head > *, .cost-row > *, .work-head > *,
.case-inner > *, .stat-row > *, .metrics > *, .method-grid > *,
.boundary-grid > *, .voice > *, .sig-grid > *, .founder-grid > *,
.timeline > *, .cta-row > *, .foot-grid > *, .doc-viewer > *,
.flow-row > *, .flow-map > *, .product-cards > * {
  min-width: 0;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px; background: currentColor; opacity: 0.6;
}

/* --------- hero --------- */
.hero {
  min-height: 100vh;
  padding: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 140px 40px 60px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  align-self: center;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-d) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-d) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

/* hero background layer — static, no blur() (soft edge comes from the gradient) */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-glow {
  position: absolute;
  width: 760px; height: 760px;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow.a { background: radial-gradient(circle at center, rgba(139,61,246,0.40), rgba(139,61,246,0) 60%); top: -260px; right: -160px; }
.hero-glow.b { background: radial-gradient(circle at center, rgba(30,197,165,0.32), rgba(30,197,165,0) 62%); bottom: -280px; left: -160px; }

.hero-eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0;
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
}
.hero h1 .stroke {
  -webkit-text-stroke: 1.4px rgba(255,255,255,0.78);
  color: transparent;
  paint-order: stroke fill;
}
.hero h1 .hero-line {
  display: block;
  white-space: nowrap;
}
.hero h1 .fill {
  font-style: italic;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--teal);
}

.hero-sub-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  margin-top: 60px;
  align-items: end;
}
.hero-sub {
  max-width: 480px;
  font-size: 17px;
  line-height: 1.5;
  opacity: 0.75;
}
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 13px;
  font-weight: 500;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.35);
}

/* hero ticker at bottom */
.hero-foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-d);
  padding: 22px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}
.hero-foot .live { color: var(--teal); display: inline-flex; align-items: center; gap: 8px; }
.hero-foot .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }

/* --------- typography helpers --------- */
.h-display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.h-1 { font-size: clamp(40px, 6vw, 84px); }
.h-2 { font-size: clamp(32px, 4.4vw, 60px); }
.h-3 { font-size: clamp(24px, 2.4vw, 34px); }
.italic-em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* --------- enemy / cost section --------- */
.enemy {
  background: var(--ink);
  border-top: 1px solid var(--line-d);
  overflow: hidden;
}
.enemy-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}
.enemy-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0;
}
.enemy-head .right {
  align-self: end;
  font-size: 16px;
  line-height: 1.55;
  max-width: 420px;
  opacity: 0.7;
}

.cost-list {
  border-top: 1px solid var(--line-d);
}
.cost-row {
  display: grid;
  grid-template-columns: 60px 1.2fr 1fr 1.3fr 180px;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-d);
  align-items: center;
  font-size: 16px;
  position: relative;
}
.cost-row .idx { font-family: var(--mono); opacity: 0.45; font-size: 12px; }
.cost-row .label { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.cost-row .micro { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; }
.cost-row .desc { opacity: 0.7; font-size: 15px; line-height: 1.5; }
.cost-row .impact {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  text-align: right;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}

/* --------- proof strip --------- */
.proof {
  background: var(--paper);
  color: var(--ink);
  padding: 80px 40px;
  border-top: 1px solid var(--line-l);
  border-bottom: 1px solid var(--line-l);
}
.proof-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 48px;
}
.proof-head h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 36px);
  margin: 0;
  letter-spacing: -0.02em;
  max-width: 720px;
  line-height: 1.1;
}
.proof-head .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55;
}

.logo-marquee {
  position: relative;
  margin: 36px 0 48px;
  padding: 18px 0;
  border-top: 1px solid var(--line-l);
  border-bottom: 1px solid var(--line-l);
  overflow: hidden;
}
.logo-marquee::before, .logo-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.logo-marquee::before { left: 0; background: linear-gradient(to right, var(--paper), transparent); }
.logo-marquee::after { right: 0; background: linear-gradient(to left, var(--paper), transparent); }

.logo-track {
  display: flex;
  gap: 64px;
  animation: scroll-x 40s linear infinite;
  width: max-content;
  will-change: transform;
}
@keyframes scroll-x {
  to { transform: translateX(-50%); }
}
.logo-track .lg {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  opacity: 0.78;
  white-space: nowrap;
}
.logo-track .lg small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.5;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line-l);
  display: inline-block;
}
/* real company logos (experience marquee) — monochrome glyph + wordmark */
.logo-track .lg-company { gap: 12px; opacity: 0.7; }
.logo-track .lg-glyph { width: 26px; height: 26px; flex: none; }
.logo-track .lg-name { font-family: var(--display); font-weight: 600; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.metric {
  padding: 22px 0;
  border-right: 1px solid var(--line-l);
}
.metric:last-child { border-right: 0; }
.metric:not(:first-child) { padding-left: 28px; }
.metric .n {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric .n .plus { color: var(--signal); }
.metric .lbl {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.65;
  max-width: 220px;
}
.metric .src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.4;
}

/* --------- work / case studies --------- */
.work {
  background: var(--ink);
  padding: 140px 0 60px;
  border-top: 1px solid var(--line-d);
}
.work-head {
  max-width: 1280px;
  margin: 0 auto 80px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.work-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 6vw, 84px); line-height: 0.96; letter-spacing: -0.03em; margin: 0;}
.work-head .right { align-self: end; font-size: 16px; line-height: 1.55; max-width: 420px; opacity: 0.7;}

.case {
  border-top: 1px solid var(--line-d);
  padding: 80px 40px;
}
.case-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.case-meta { position: sticky; top: 100px; }
.case-meta .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.45;
  margin-bottom: 18px;
}
.case-meta .tag {
  display: inline-block;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  opacity: 0.75;
  margin-bottom: 24px;
}
.case-meta h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.case-meta .one-liner {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  opacity: 0.85;
  margin-bottom: 28px;
}
.case-meta .stat-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin: 28px 0;
}
.case-meta .stat .n {
  font-family: var(--display);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.case-meta .stat .n .plus { color: var(--teal); }
.case-meta .stat .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; margin-top: 4px;}

.case-meta .link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.case-meta .link:hover { color: var(--teal); }

/* case visual area — bespoke per case but with common helpers */
.case-art {
  background: var(--ink-2);
  border: 1px solid var(--line-d);
  border-radius: 18px;
  padding: 28px;
  min-height: 460px;
  position: relative;
  overflow: hidden;
}
.art-eyebrow {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55;
  margin-bottom: 18px;
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #f7c43c; }
.dots i:nth-child(3) { background: #28c93f; }

/* invoice match table */
.inv-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
.inv-table th, .inv-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-d); }
.inv-table th { font-weight: 500; opacity: 0.5; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.inv-table td .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 999px; font-size: 10px;
}
.inv-table td .pill.match { background: rgba(30, 197, 165, 0.12); color: var(--teal); }
.inv-table td .pill.review { background: rgba(225, 29, 46, 0.13); color: #f08896; }
.inv-table td .pill.flag { background: rgba(247, 196, 60, 0.13); color: #f7c43c; }
.inv-table .bar {
  display: block; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.06); position: relative; overflow: hidden;
}
.inv-table .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--teal); border-radius: 999px; }

/* legal doc viewer */
.doc-viewer {
  display: grid; grid-template-columns: 1fr 0.85fr; gap: 18px; height: 100%;
}
.doc-page {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-d);
  border-radius: 10px;
  padding: 18px;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  position: relative;
  overflow: hidden;
}
.doc-page .doc-title { font-family: var(--display); font-size: 13px; opacity: 0.7; margin-bottom: 14px; letter-spacing: 0.02em; }
.doc-page .line { height: 8px; background: rgba(255,255,255,0.06); border-radius: 3px; margin-bottom: 10px; }
.doc-page .line.short { width: 60%; }
.doc-page .line.med { width: 80%; }
.doc-page mark { background: rgba(225,29,46,0.18); color: #ffb1bb; padding: 1px 4px; border-radius: 3px; }
.doc-page mark.flag { background: rgba(247,196,60,0.18); color: #ffd58b; }
.doc-page mark.ok { background: rgba(30,197,165,0.15); color: #8ee9d5; }

.doc-side { display: flex; flex-direction: column; gap: 10px; }
.doc-card {
  background: var(--ink-3);
  border: 1px solid var(--line-d);
  border-radius: 10px;
  padding: 14px;
}
.doc-card .head {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55;
  margin-bottom: 8px;
}
.doc-card .body { font-size: 12px; line-height: 1.5; opacity: 0.85; }
.doc-card.flag { border-color: rgba(247,196,60,0.4); }
.doc-card.flag .head { color: #f7c43c; opacity: 1; }
.doc-card.ok { border-color: rgba(30,197,165,0.3); }
.doc-card.ok .head { color: var(--teal); opacity: 1; }

/* hiring system map */
.flow-map { display: grid; gap: 12px; }
.flow-row { display: grid; grid-template-columns: 28px 1fr 1fr 1fr; gap: 10px; align-items: stretch; }
.flow-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-d);
  border-radius: 12px;
  padding: 14px;
  font-size: 12px;
  line-height: 1.4;
  position: relative;
}
.flow-step .t { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; margin-bottom: 6px;}
.flow-step .v { font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.flow-step .v small { font-family: var(--mono); font-size: 10px; opacity: 0.5; margin-left: 4px; }
.flow-step.accent { background: linear-gradient(135deg, rgba(139, 61, 246, 0.16), rgba(30, 197, 165, 0.12)); border-color: rgba(139, 61, 246, 0.35); }
.flow-arrow { display: grid; place-items: center; color: rgba(255,255,255,0.3); font-family: var(--mono); font-size: 16px; }

/* product card */
.product-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.product-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-d);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.product-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.product-card .head .name { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.product-card .head .url { font-family: var(--mono); font-size: 10px; opacity: 0.5; }
.product-card .big { font-family: var(--display); font-weight: 500; font-size: 30px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 4px;}
.product-card .sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; }
.product-card .sparkline { margin-top: 14px; height: 36px; }
.product-card .row { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; font-family: var(--mono); opacity: 0.65; }

/* --------- method --------- */
.method {
  background: var(--paper);
  color: var(--ink);
  padding: 140px 40px;
  border-top: 1px solid var(--line-l);
}
.method h2 { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 5.4vw, 80px); line-height: 0.96; letter-spacing: -0.03em; margin: 0 0 30px; max-width: 900px;}
.method h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--signal); }
.method-sub { max-width: 540px; font-size: 17px; line-height: 1.55; opacity: 0.7; margin-bottom: 64px;}

.method-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-l);
  border-left: 1px solid var(--line-l);
}
.step {
  border-right: 1px solid var(--line-l);
  border-bottom: 1px solid var(--line-l);
  padding: 26px 22px 28px;
  position: relative;
  min-height: 320px;
  display: flex; flex-direction: column;
  transition: background .3s;
}
.step:hover { background: rgba(10,10,11,0.04); }
.step .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.5;}
.step .glyph {
  margin: 14px 0 18px;
  width: 56px; height: 56px;
  border: 1px solid var(--line-l);
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--paper-2);
}
.step .title { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 8px;}
.step .desc { font-size: 13.5px; line-height: 1.5; opacity: 0.72; margin-bottom: 14px;}
.step .out {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.5;
  margin-top: auto;
}
.step .out span { display: block; font-family: var(--display); font-weight: 500; font-size: 14px; letter-spacing: -0.01em; opacity: 1; text-transform: none; letter-spacing: -0.01em; color: var(--signal); margin-top: 4px;}

/* --------- boundary --------- */
.boundary {
  background: var(--ink);
  padding: 140px 40px;
  border-top: 1px solid var(--line-d);
}
.boundary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.b-col h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 36px;
}
.b-col h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.b-col.human h3 em { color: var(--teal); }
.b-col.not h3 em { color: var(--signal); }
.b-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-d); }
.b-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-d);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
}
.b-list li .ic { font-family: var(--mono); opacity: 0.4; font-size: 14px;}
.b-list li .t { font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 4px;}
.b-list li .d { font-size: 14px; line-height: 1.5; opacity: 0.65; }
.b-col.human .b-list li .ic { color: var(--teal); }
.b-col.not .b-list li .ic { color: var(--signal); }

/* --------- founder --------- */
.founder {
  background: var(--paper);
  color: var(--ink);
  padding: 140px 40px;
  border-top: 1px solid var(--line-l);
}
.founder-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
}
.founder-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(139, 61, 246, 0.3), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(30, 197, 165, 0.3), transparent 60%),
    var(--ink);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-l);
}
.founder-photo .ph-label {
  position: absolute; bottom: 20px; left: 22px; right: 22px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55);
  display: flex; justify-content: space-between;
}
.founder-photo .ph-mono {
  position: absolute; top: 22px; left: 22px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.founder-photo .kapil-mark {
  font-family: var(--display); font-weight: 500; font-size: 120px; letter-spacing: -0.04em; color: var(--paper); opacity: 0.95;
}
.founder-photo .kapil-mark em { font-family: var(--serif); font-style: italic; color: var(--teal); font-weight: 400;}

.founder-body .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 36px;
}
.founder-body .quote span { color: var(--signal); }
.founder-body h4 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 0; letter-spacing: -0.01em;}
.founder-body .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; margin-top: 4px;}
.founder-bio { margin-top: 26px; font-size: 15px; line-height: 1.6; opacity: 0.75; max-width: 540px;}

.timeline {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-l);
}
.timeline .t {
  padding: 22px 18px 22px 0;
  border-right: 1px solid var(--line-l);
}
.timeline .t:last-child { border-right: 0; }
.timeline .t .yr { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.5; }
.timeline .t .nm { font-family: var(--display); font-weight: 600; font-size: 16px; margin-top: 6px; letter-spacing: -0.01em; }
.timeline .t .role-mini { font-size: 12px; opacity: 0.62; margin-top: 2px; line-height: 1.35;}

/* --------- press / signals strip --------- */
.signals {
  background: var(--ink);
  padding: 80px 40px;
  border-top: 1px solid var(--line-d);
}
.sig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.sig-card {
  border: 1px solid var(--line-d);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.sig-card .src { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px;}
.sig-card .src::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.sig-card .n { font-family: var(--display); font-weight: 500; font-size: 44px; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 8px;}
.sig-card .l { font-size: 13px; opacity: 0.72; line-height: 1.4; }
.sig-card .ln { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.5;}

/* --------- testimonial / one-liner sequence --------- */
.voices {
  background: var(--ink);
  padding: 120px 40px;
  border-top: 1px solid var(--line-d);
}
.voice {
  max-width: 1100px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 0.4fr 1.6fr;
  gap: 60px;
  align-items: start;
}
.voice:last-child { margin-bottom: 0; }
.voice .who { position: sticky; top: 100px;}
.voice .who .who-name { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em;}
.voice .who .who-role { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.5; margin-top: 6px;}
.voice .who .who-tag { display: inline-block; margin-top: 18px; padding: 4px 10px; border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--line-d); opacity: 0.7;}
.voice .quote-big {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.voice .quote-big::before { content: "“"; margin-right: 4px; color: var(--signal); }
.voice .quote-big::after  { content: "”"; margin-left: 4px; color: var(--signal); }

/* --------- final CTA --------- */
.cta {
  background: var(--paper);
  color: var(--ink);
  padding: 160px 40px 120px;
  border-top: 1px solid var(--line-l);
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(139, 61, 246, 0.18), transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(30, 197, 165, 0.18), transparent 55%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 1100px; margin: 0 auto; }
.cta h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 50px;
}
.cta h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--signal); }
.cta h2 .stroke { -webkit-text-stroke: 1px rgba(10,10,11,0.75); color: transparent; }
.cta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.cta-card {
  border: 1px solid var(--line-l);
  border-radius: 18px;
  padding: 28px;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  transition: transform .25s, border-color .25s, background .25s;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 220px;
}
.cta-card:hover { transform: translateY(-3px); border-color: var(--ink); background: var(--white);}
.cta-card .ic-wrap {
  width: 38px; height: 38px;
  border: 1px solid var(--line-l);
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  background: var(--white);
}
.cta-card .t { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 6px;}
.cta-card .d { font-size: 14px; line-height: 1.5; opacity: 0.7; }
.cta-card .go {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.cta-card .go .arrow { transition: transform .2s; display: inline-block;}
.cta-card:hover .go .arrow { transform: translateX(4px); }
.cta-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;}
.cta-bottom .meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.5;}

/* --------- footer --------- */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 40px 40px;
  border-top: 1px solid var(--line-d);
}
.foot-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-d);
}
.foot-col h5 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.45; margin: 0 0 20px;}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px;}
.foot-col ul li a { opacity: 0.78; font-size: 14px;}
.foot-col ul li a:hover { opacity: 1; color: var(--teal); }
.foot-brand .promise { font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; margin-top: 20px; max-width: 360px;}
.foot-brand .promise em { font-family: var(--serif); font-style: italic; color: var(--teal); }
.foot-bottom {
  max-width: 1280px; margin: 24px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.5;
  flex-wrap: wrap; gap: 16px;
}

/* --------- reveal targets (static — content is always visible) --------- */
/* Site-wide entrance/scroll motion was removed; the logo marquee is the only
   animation on the page. `.reveal` / `.magnetic` remain as passive markers on
   elements but carry no hidden state or animation. */
.reveal { opacity: 1; transform: none; }

/* responsive */
/* ============================================================
   Responsive layer
   ============================================================ */

/* ---- Tablet / small laptop ---- */
@media (max-width: 1024px) {
  .hero-sub-row { grid-template-columns: minmax(0, 1fr); gap: 24px;}
  .enemy-head, .work-head, .boundary-grid, .founder-grid { grid-template-columns: minmax(0, 1fr); gap: 30px;}
  .founder-photo { max-width: 460px; margin: 0 auto; }
  .case-inner { grid-template-columns: minmax(0, 1fr); gap: 30px;}
  .case-meta { position: relative; top: 0;}
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding-left: 0 !important; border-right: 0; border-bottom: 1px solid var(--line-l); padding: 18px 0;}
  .cost-row { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
  .cost-row .micro, .cost-row .impact, .cost-row .desc { grid-column: 2 / -1; text-align: left;}
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr));}
  .sig-grid { grid-template-columns: repeat(2, minmax(0, 1fr));}
  .cta-row { grid-template-columns: minmax(0, 1fr);}
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr));}
  .nav-links { display: none; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr));}
  .voice { grid-template-columns: minmax(0, 1fr); gap: 20px;}
  .voice .who { position: relative; top: 0;}
}

/* ---- Large phone / small tablet ---- */
@media (max-width: 768px) {
  section { padding: 88px 24px; }
  .case { padding: 64px 24px; }
  .hero h1 { font-size: clamp(40px, 9vw, 80px); }
  .hero-eyebrow-row { margin-bottom: 48px; }
  .hero-glow { width: 520px; height: 520px; }
}

/* ---- Phone ---- */
@media (max-width: 640px) {
  section { padding: 72px 20px; }
  .case { padding: 56px 20px; }
  .nav { padding: 12px 18px;}
  .brand { font-size: 14px; gap: 8px; }
  .brand .wm span { white-space: nowrap; }
  .brand .wm small { display: none; }
  .nav-right { gap: 10px; }
  .nav .cta-pill { white-space: nowrap; }

  /* Hero: let the headline wrap, scale it to the viewport, stack the eyebrow */
  .hero-inner { padding: 104px 20px 44px;}
  .hero h1 { font-size: clamp(34px, 10.5vw, 60px); line-height: 1.0; letter-spacing: -0.02em; }
  .hero h1 .hero-line { white-space: normal; }
  .hero-eyebrow-row { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 36px; }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .cta-pill, .hero-actions .btn-ghost { justify-content: center; }
  .hero-foot { padding: 16px 20px; flex-direction: column; gap: 8px; align-items: flex-start;}
  .hero-glow { width: 420px; height: 420px; }

  /* Single-column everything dense */
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .method-grid { grid-template-columns: minmax(0, 1fr);}
  .sig-grid { grid-template-columns: minmax(0, 1fr);}
  .timeline { grid-template-columns: minmax(0, 1fr);}
  .foot-grid { grid-template-columns: minmax(0, 1fr);}
  .product-cards { grid-template-columns: minmax(0, 1fr); }
  .doc-viewer { grid-template-columns: minmax(0, 1fr); }
  .flow-row { grid-template-columns: minmax(0, 1fr); }
  .flow-arrow { display: none; }

  /* Case-study typography scales down */
  .case-meta h3 { font-size: clamp(24px, 6.6vw, 34px); }
  .case-meta .one-liner { font-size: 18px; }
  .case-meta .stat .n { font-size: 28px; }
  .case-meta .stat-row { gap: 14px; }

  /* Data-dense visuals: let them scroll inside the card instead of clipping */
  .case-art { padding: 16px; min-height: auto; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  .case-art .inv-table { min-width: 440px; }
  .case-art::-webkit-scrollbar { height: 5px; }
  .case-art::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 999px; }

  /* Comfortable touch targets */
  .cta-pill { padding: 13px 20px; }
  .lang-toggle button { padding: 11px 14px; }
  .nav .cta-pill { padding: 12px 16px; font-size: 12px; white-space: nowrap; }
  .case-meta .link { padding: 8px 0; margin-top: 12px; }
  .nav-links a, .foot-grid a { display: inline-block; padding: 6px 0; }

  .footer-cta-h, .cta-card { text-align: left; }
}

/* ---- Small phone (iPhone SE / mini) ---- */
@media (max-width: 380px) {
  section { padding: 60px 16px; }
  .case { padding: 48px 16px; }
  .nav { padding: 10px 14px; }
  .hero-inner { padding: 96px 16px 40px; }
  .hero h1 { font-size: clamp(30px, 11vw, 48px); }
  .case-art .inv-table { min-width: 380px; }
}

/* Respect reduced-motion: kill the marquee + heavy animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Never leave reveal content hidden when motion is off (or JS never runs). */
  .reveal { opacity: 1 !important; transform: none !important; }
}
