/* 51/Summit — site.css
   The calm version: one accent, one layout pattern per section
   (label, heading, one line of context, then the content, all visible at once).
   Grid, square corners, pale tiles and dotted bands carry over from the Baseten study. */

:root {
  --ink: #08090B;
  --ink-2: #4A505B;
  --ink-3: #8D95A3;
  --paper: #FFFFFF;
  --tile: #F2F4F7;
  --tile-2: #E4E8EE;
  --rule: rgba(8, 9, 11, 0.12);
  --dot: #CBD0DA;
  --accent: #2546F5;
  --accent-pale: #E3E8FF;

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

  --gap: 12px;
  --pad: clamp(16px, 3vw, 40px);
  --gutter: clamp(6px, 1vw, 12px);
  --header: 68px;
  --ease: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0; color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  background-color: #FAFBFC;
  background-image: radial-gradient(var(--dot) 0.7px, transparent 0.8px);
  background-size: 4px 4px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote, table { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-weight: 400; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 12px; }

/* ---------- Frame ---------- */
.page { margin: 0 var(--gutter); }
.sec { background: var(--paper); padding: clamp(56px, 7vw, 104px) var(--pad); }
.in { max-width: 1280px; margin: 0 auto; }
.band { height: clamp(24px, 3.5vw, 48px); }

/* ---------- Type ---------- */
.h1 { font-size: clamp(2.5rem, 1rem + 5.2vw, 5rem); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.028em; text-wrap: balance; }
.h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.25; letter-spacing: -0.012em; }
.lede { font-size: clamp(1.06rem, 1rem + 0.35vw, 1.25rem); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--ink-2); }
.mono { font: 400 12.5px/1.3 var(--mono); letter-spacing: 0.02em; text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; gap: 8px; min-height: 26px; padding: 5px 10px; background: var(--ink); color: #fff; font: 400 12.5px/1.2 var(--mono); letter-spacing: 0.02em; text-transform: uppercase; }
.tag.soft { background: var(--tile); color: var(--ink); }
.head { display: grid; gap: 18px; justify-items: start; margin-bottom: clamp(32px, 4vw, 52px); }
.head .h2 { max-width: 22ch; }
.head .lede { max-width: 62ch; }
.sub { display: flex; align-items: center; gap: 12px; margin: clamp(48px, 6vw, 80px) 0 20px; color: var(--ink-2); }
.sub::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 48px; padding: 0 18px; min-width: 220px;
  font-size: 16px; line-height: 1; white-space: nowrap;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.btn::after { content: ""; border-left: 6px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:hover::after { transform: translateX(3px); }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--tile-2); }
.btn.ghost:hover { background: var(--paper); border-color: var(--ink); }
.btn.fit { min-width: 0; min-height: 44px; gap: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--gap); }
@media (max-width: 560px) { .actions .btn:not(.fit) { width: 100%; } }
.link { text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; transition: text-decoration-color var(--ease); }
.link:hover { text-decoration-color: var(--ink); }

/* ---------- Header ---------- */
.site-header { position: fixed; z-index: 60; top: 0; left: var(--gutter); right: var(--gutter); height: var(--header); background: var(--paper); border-bottom: 1px solid transparent; transition: border-color var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-in { height: 100%; max-width: calc(1280px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; flex: 0 0 auto; }
.wordmark img { width: 128px; }
.wordmark .for { font-size: 15px; color: var(--ink-2); padding-left: 12px; border-left: 1px solid var(--tile-2); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; font-size: 16px; color: var(--ink); transition: color var(--ease); }
.nav > a:hover, .nav button:hover { color: var(--accent); }
.nav button::after { content: ""; border-top: 5px solid currentColor; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.drop { position: relative; }
.drop-list { position: absolute; top: calc(100% + 4px); left: 0; width: 280px; background: var(--paper); border: 1px solid var(--rule); padding: 6px; box-shadow: 0 18px 40px -20px rgba(8, 9, 11, 0.3); }
.drop-list[hidden] { display: none; }
.drop-list a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 16px; }
.drop-list a:hover { background: var(--tile); }
.header-end { display: flex; align-items: center; gap: var(--gap); }

.burger { display: none; }
.sheet { position: fixed; z-index: 61; top: var(--header); left: var(--gutter); right: var(--gutter); background: var(--paper); padding: 4px var(--pad) 24px; max-height: calc(100dvh - var(--header)); overflow: auto; border-top: 1px solid var(--rule); box-shadow: 0 24px 40px -24px rgba(8, 9, 11, 0.35); }
.sheet[hidden] { display: none; }
.sheet a:not(.btn) { display: flex; align-items: center; min-height: 50px; border-bottom: 1px solid var(--rule); font-size: 18px; }
.sheet .mono { display: block; padding: 22px 0 6px; color: var(--ink-2); }
.sheet .btn { margin-top: 20px; width: 100%; }
@media (max-width: 1040px) {
  .nav { display: none; }
  .burger { display: block; }
  .burger > button { width: 44px; height: 44px; display: grid; place-items: center; background: var(--tile); }
  .burger > button span, .burger > button span::before { display: block; width: 16px; height: 1.5px; background: var(--ink); content: ""; transition: transform var(--ease); }
  .burger > button span { transform: translateY(-3px); }
  .burger > button span::before { transform: translateY(6px); }
  .burger > button[aria-expanded="true"] span { transform: rotate(45deg); }
  .burger > button[aria-expanded="true"] span::before { transform: rotate(-90deg); }
}
@media (max-width: 700px) { .wordmark .for { display: none; } }
@media (max-width: 420px) { .header-end .btn { display: none; } }

/* ---------- Hero: everything a newcomer needs, above the fold ---------- */
.hero { padding-top: calc(var(--header) + clamp(24px, 4vh, 56px)); padding-bottom: clamp(24px, 3vw, 40px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: clamp(16px, 2.2vh, 24px); justify-items: start; }
.hero-copy .h1 { max-width: 13ch; }
.hero.v .hero-copy .h1 { max-width: 16ch; font-size: clamp(2.25rem, 1rem + 4.2vw, 4.25rem); }
.hero-copy .lede { max-width: 46ch; color: var(--ink); }
.proof { font-size: 16px; color: var(--ink-2); padding-top: 4px; }
.proof b { font-weight: 500; color: var(--ink); }

.visual { position: relative; background: var(--tile); min-height: clamp(360px, 52vh, 460px); display: grid; place-items: center; align-content: center; padding: 24px; overflow: hidden; }
.visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ops { position: relative; width: min(400px, 100%); background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 24px 48px -28px rgba(8, 9, 11, 0.35); }
.ops header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.ops header b { font-weight: 500; font-size: 16px; }
.ops .live { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.ops .live::before { content: ""; width: 7px; height: 7px; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.ops li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--rule); font-size: 16px; }
.state { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); white-space: nowrap; }
.state::before { content: ""; width: 7px; height: 7px; background: var(--accent); }
.state.ask { color: var(--ink); background: var(--accent-pale); padding: 4px 8px; }
.state.ask::before { background: none; border: 1.5px solid var(--ink); }
.ops footer { padding: 12px 16px; font-size: 14px; color: var(--ink-2); background: var(--tile); }
/* Home hero diagram: the architecture as an isometric stack, no backdrop. */
.visual.plain { background: none; padding: 0; overflow: visible; }
.sys { position: relative; width: min(540px, 100%); height: auto; font-family: var(--sans); }
.sys polygon { stroke: rgba(8, 9, 11, 0.16); stroke-width: 1; stroke-linejoin: round; }
.sys .plate .t { fill: #fff; } .sys .plate .l { fill: #E9ECF1; } .sys .plate .r { fill: #DCE0E8; }
.sys .gate polygon { fill: var(--accent-pale); fill-opacity: 0.55; stroke: var(--accent); stroke-dasharray: 4 3; }
.sys .hub polygon { stroke: none; } .sys .hub .t { fill: var(--accent); } .sys .hub .l { fill: #1B36CC; } .sys .hub .r { fill: #142AA6; }
.sys .tile .t { fill: var(--tile); } .sys .tile .l { fill: #DCE0E8; } .sys .tile .r { fill: #CDD2DC; }
.sys .tool .t { fill: #fff; }
.sprite { position: absolute; }
.sys .who .t { fill: var(--ink); } .sys .who .l { fill: #2A2D33; } .sys .who .r { fill: #3A3E46; } .sys .who polygon { stroke: none; }
.sys .who.ai .t { fill: var(--accent); } .sys .who.ai .l { fill: #1B36CC; } .sys .who.ai .r { fill: #142AA6; }
.sys .team .t { fill: var(--accent-pale); } .sys .team .l { fill: #CDD5FB; } .sys .team .r { fill: #B9C3F7; }
.sys .agent polygon { stroke: none; } .sys .agent .t { fill: var(--accent); } .sys .agent .l { fill: #1B36CC; } .sys .agent .r { fill: #142AA6; }
.sys .floor { fill: rgba(8, 9, 11, 0.07); filter: blur(14px); }
.sys .lead { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; }
.sys .dot { fill: var(--ink); }
.sys .name { font-size: 15px; font-weight: 500; fill: var(--ink); letter-spacing: -0.01em; }
.sys .note { font-size: 12.5px; fill: var(--ink-2); }
.sys .wire { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; }
.sys .beam { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0.35 1.35; stroke-dashoffset: 0.35; animation: beam 2.6s linear infinite; animation-delay: var(--d); }
.sys .wire.knot { stroke: var(--ink-2); stroke-width: 1.25; stroke-dasharray: none; opacity: 0.7; }
.sys .beam.slow { stroke: var(--ink-2); stroke-width: 2; animation-duration: var(--t); }
.sys .shade { fill: rgba(8, 9, 11, 0.12); filter: blur(5px); }
.sys .bob { animation: bob var(--t) ease-in-out infinite; animation-delay: var(--d); }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes beam { to { stroke-dashoffset: -1.35; } }
.photo-slot { position: relative; margin-top: 12px; width: min(400px, 100%); min-height: 64px; display: grid; place-items: center; padding: 12px; text-align: center; background: var(--paper); color: var(--ink-2); outline: 1px dashed var(--ink-3); outline-offset: -6px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy .h1 { max-width: 16ch; }
  .hero .in { display: flex; flex-direction: column; }
  .worked { order: 2; }
  .hero-grid { display: contents; }
  .hero-copy { order: 1; }
  .visual { order: 3; min-height: 0; padding: 20px 16px; margin-top: 24px; }
}

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { background: var(--tile); padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 28px; justify-content: space-between; }
.tile .n { color: var(--ink-2); }
.tile .big { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.25; letter-spacing: -0.012em; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles.three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: minmax(0, 1fr); } .tile { gap: 12px; flex-direction: row; justify-content: flex-start; align-items: baseline; } }

.fact { margin-top: var(--gap); display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; background: var(--ink); color: #fff; padding: clamp(20px, 3vw, 32px); }
.fact .fig { font-size: clamp(2.75rem, 1.6rem + 4.4vw, 5rem); line-height: 0.95; letter-spacing: -0.04em; }
.fact .cap { display: block; margin-top: 8px; color: #B9C0CC; }
.fact p.say { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); line-height: 1.3; letter-spacing: -0.01em; max-width: 34ch; }
.fact .src { color: #B9C0CC; }
.src { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.src a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) { .fact { grid-template-columns: 1fr 1fr; } .fact .text { grid-column: 1 / -1; } }

/* ---------- Three things we build ---------- */
ol.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); counter-reset: s; }
ol.three li { counter-increment: s; background: var(--tile); padding: 20px; display: grid; gap: 10px; align-content: start; }
ol.three li::before { content: counter(s); width: 32px; height: 32px; display: grid; place-items: center; background: var(--ink); color: #fff; font: 400 14px/1 var(--mono); margin-bottom: 18px; }
ol.three p { color: var(--ink-2); }
@media (max-width: 860px) { ol.three { grid-template-columns: minmax(0, 1fr); } ol.three li::before { margin-bottom: 6px; } }

/* ---------- Before / after table ---------- */
.ba { width: 100%; border-collapse: collapse; text-align: left; }
.ba th, .ba td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-weight: 400; }
.ba thead th { font: 400 12.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink-2); padding-bottom: 10px; border-bottom-color: var(--ink); }
.ba tbody th { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); letter-spacing: -0.012em; width: 26%; }
.ba td.b { color: var(--ink-2); width: 28%; }
.ba td.a { font-weight: 500; }
.ba td.a span { display: inline-flex; gap: 12px; align-items: baseline; }
.ba td.a span::before { content: ""; flex: 0 0 8px; height: 8px; background: var(--accent); transform: translateY(-1px); }
.ba td.s { width: 200px; padding-right: 0; }

/* What changes: before / after drawings */
.ba-figs { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); column-gap: 6px; align-items: center; }
.ba-figs figure { margin: 0; display: grid; gap: 14px; }
.ba-figs figcaption { color: var(--ink-2); text-align: center; }
.ba-figs figure + .to + figure figcaption { color: var(--accent); }
.ba-figs .sys { width: min(100%, 400px); justify-self: center; overflow: visible; }
.ba-figs .to { height: 2px; background: var(--ink); position: relative; margin-top: 28px; }
.ba-figs .to::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 7px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
/* Desktop: what we build on the left half, what changes on the right half */
@media (min-width: 1000px) {
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); }
  .split > div { display: flex; flex-direction: column; }
  .split ol.three { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; flex: 1; }
  .split ol.three li { grid-template-columns: 32px minmax(0, 1fr); column-gap: 20px; align-content: center; }
  .split ol.three li::before { grid-row: span 2; margin-bottom: 0; }
  .split .ba-figs { margin-block: auto; }
}
@media (max-width: 720px) { .ba-figs { grid-template-columns: 1fr; row-gap: 20px; } .ba-figs .sys { width: min(100%, 340px); } .ba-figs .to { width: 2px; height: 28px; margin: 0; justify-self: center; } .ba-figs .to::after { right: -4px; top: auto; bottom: -1px; border: 0; border-top: 7px solid var(--ink); border-left: 5px solid transparent; border-right: 5px solid transparent; } }
.chip { display: inline-block; padding: 6px 8px; background: var(--tile); color: var(--ink-2); }
@media (max-width: 760px) {
  .ba thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ba, .ba tbody, .ba tr, .ba th, .ba td { display: block; width: auto !important; }
  .ba tr { background: var(--tile); padding: 16px; margin-bottom: var(--gap); }
  .ba th, .ba td { border: 0; padding: 0; }
  .ba tbody th { margin-bottom: 4px; }
  .ba td { padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--rule); }
  .ba td::before { content: attr(data-l); display: block; font: 400 12.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink-2); margin-bottom: 4px; }
  .ba td.s::before { content: none; }
  .chip { background: var(--tile-2); }
}

/* ---------- Case cards ---------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.case { background: var(--tile); display: flex; flex-direction: column; }
.case header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px; flex-wrap: wrap; }
.logo-ph { display: grid; place-items: center; min-width: 170px; min-height: 52px; padding: 0 16px; background: var(--paper); font-size: 17px; outline: 1px dashed var(--ink-3); outline-offset: -6px; }
.logo-case { display: flex; align-items: center; gap: 10px; min-height: 52px; font-size: 17px; font-weight: 600; }
.case header p { text-align: right; }
.case header b { display: block; font-weight: 400; font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); line-height: 1; letter-spacing: -0.03em; }
.case header span { color: var(--ink-2); }
.case dl { margin: 0 18px; }
.case dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.case dt { grid-row: 1; font: 400 12.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink-2); }
.case dd { grid-row: 2; }
.case blockquote, .proofbox blockquote { margin: 8px; padding: 16px; background: var(--paper); font-size: 18px; display: grid; gap: 6px; }
cite { font: 400 12.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink-2); font-style: normal; }
@media (max-width: 860px) { .cases { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Figures in columns ---------- */
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.figs li { border-top: 2px solid var(--ink); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.figs .fig { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; }
.figs p.say { max-width: 30ch; }
@media (max-width: 760px) { .figs { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- Trust ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); }
.box { background: var(--tile); padding: clamp(18px, 2.4vw, 28px); }
.box > header { padding-bottom: 16px; border-bottom: 1px solid var(--ink); display: grid; gap: 4px; }
.box > header p { color: var(--ink-2); }
.dots li { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.dots li::before { content: ""; flex: 0 0 7px; height: 7px; background: var(--ink); transform: translateY(-2px); }
.levels li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4px 20px; padding: 13px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.levels b { font-weight: 500; }
.levels q { color: var(--ink-2); quotes: "\201C" "\201D"; }
.levels li:last-child, .dots li:last-child { border-bottom: 0; padding-bottom: 0; }
.after-duo { margin-top: var(--gap); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: stretch; }
.after-duo p { padding: clamp(18px, 2.4vw, 28px); }
.after-duo .note { color: var(--ink-2); padding-left: 0; }
.after-duo .motto { background: var(--accent); color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; display: flex; align-items: center; }
@media (max-width: 860px) { .duo, .after-duo { grid-template-columns: minmax(0, 1fr); } .levels li { grid-template-columns: minmax(0, 1fr); } .after-duo .note { padding: 8px 0; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.steps li { border-top: 2px solid var(--ink); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.steps .n { color: var(--ink-2); }
.steps h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.05; letter-spacing: -0.03em; }
.steps .price { font-weight: 500; font-size: 18px; }
.steps .d { color: var(--ink-2); }
.own { margin-top: 32px; display: flex; gap: 12px; align-items: baseline; font-size: 18px; }
.own::before { content: ""; flex: 0 0 8px; height: 8px; background: var(--accent); transform: translateY(-1px); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- AI automations ---------- */
.autos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.auto { background: var(--tile); padding: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 248px; }
.auto .when { color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; }
.auto .h3 { margin-top: 8px; }
.auto .d { color: var(--ink-2); }
.auto .ok { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule); display: flex; gap: 10px; align-items: baseline; font-weight: 500; }
.auto .ok::before { content: ""; flex: 0 0 8px; height: 8px; border: 1.5px solid var(--accent); transform: translateY(-1px); }
.auto .ok.self::before { background: var(--accent); }
.fine { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.steps.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps.three-up h3 { font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.9rem); }
@media (max-width: 1000px) { .autos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps.three-up { grid-template-columns: minmax(0, 1fr); row-gap: 28px; } }
@media (max-width: 620px) { .autos { grid-template-columns: minmax(0, 1fr); } .auto { min-height: 0; } }

/* ---------- Offers ---------- */
.tile.offer { gap: 0; justify-content: flex-start; min-height: 300px; flex-direction: column; align-items: stretch; }
.offer h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.offer .price { font-size: clamp(2rem, 1.4rem + 1.9vw, 3rem); line-height: 1; letter-spacing: -0.035em; margin-top: 20px; }
.offer .unit { color: var(--ink-2); margin-top: 10px; }
.offer .d { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--ink-2); }
@media (max-width: 560px) { .tile.offer { min-height: 0; } .offer .d { margin-top: 24px; } }
.guarantee { margin-top: var(--gap); background: var(--ink); color: #fff; padding: clamp(18px, 2.4vw, 24px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.guarantee p { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); line-height: 1.25; letter-spacing: -0.012em; }
.guarantee .tag { background: #fff; color: var(--ink); }

/* ---------- Proof (industry pages) ---------- */
.proofbox { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); }
.proofbox > div { background: var(--tile); padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 20px; align-content: space-between; }
.proofbox blockquote { margin: 0; }
.proofbox .pair { grid-template-columns: 1fr 1fr; align-content: center; }
.proofbox .fig { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; }
.proofbox .pair span { display: block; margin-top: 8px; color: var(--ink-2); }
@media (max-width: 860px) { .proofbox { grid-template-columns: minmax(0, 1fr); } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.about img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--tile); }
.about figcaption { margin-top: 10px; color: var(--ink-2); }
.about .body { display: grid; gap: 22px; justify-items: start; }
.about .body p { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.4; letter-spacing: -0.008em; max-width: 54ch; }
.about .body p.second { color: var(--ink-2); }
@media (max-width: 760px) { .about { grid-template-columns: minmax(0, 1fr); } .about figure { max-width: 280px; } }

/* ---------- Testimonials ---------- */
.tile.quote { min-height: 220px; flex-direction: column; align-items: stretch; gap: 28px; }
.quote footer { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 15px; }
.avatar { flex: 0 0 40px; height: 40px; display: grid; place-items: center; background: var(--tile-2); color: var(--ink); font: 500 14px/1 var(--mono); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.faq-grid .head { margin-bottom: 0; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 14px 0; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); letter-spacing: -0.012em; transition: color var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq .pm { flex: 0 0 28px; height: 28px; position: relative; background: var(--tile); }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 1.5px; background: var(--ink); transition: transform var(--ease); }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: none; }
.faq .a { padding: 0 52px 22px 0; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } .faq .a { padding-right: 0; } }

/* ---------- Final CTA ---------- */
.cta .in { background: var(--tile); padding: clamp(40px, 7vw, 96px) clamp(20px, 4vw, 48px); display: grid; justify-items: center; text-align: center; gap: 22px; }
.cta .lede { max-width: 44ch; }
.cta .actions { justify-content: center; margin-top: 6px; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: clamp(40px, 5vw, 64px) var(--pad) 24px; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 32px var(--gap); padding-bottom: clamp(40px, 5vw, 72px); }
.foot-cols img { width: 150px; }
.foot-cols p { margin-top: 14px; color: #B9C0CC; font-size: 15px; max-width: 28ch; }
.foot-cols h2 { color: #B9C0CC; margin-bottom: 10px; }
.foot-cols a { display: flex; align-items: center; min-height: 36px; font-size: 16px; transition: color var(--ease); }
.foot-cols a:hover { color: #B9C0CC; }
.foot-end { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 14px; color: #B9C0CC; }
@media (max-width: 860px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal: a quiet fade, nothing more ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(6px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

.head .h2 { max-width: 26ch; }
.head .h2 span { display: block; }

.head + .sub { margin-top: 0; }

#side-h { max-width: 30ch; }

/* ---------- Cobalt accents: one in every section, always the same blue ---------- */
:root { --accent-soft: #93A6FF; }
/* The main action is always blue. */
.btn:not(.ghost) { background: var(--accent); border-color: var(--accent); }
.btn:not(.ghost):hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost::after { color: var(--accent); }
.btn.ghost:hover { border-color: var(--accent); }
/* Hero */
.tag.soft { background: var(--accent-pale); }
.proof b { color: var(--accent); }
/* Problem */
.tile .n { color: var(--accent); }
.fact p + p .fig { color: var(--accent-soft); }
/* Sub-labels inside a section */
.sub::before { content: ""; flex: 0 0 7px; height: 7px; background: var(--accent); }
/* What we build */
ol.three li::before { background: var(--accent); }
/* Case cards and proof figures */
.case header b, .proofbox .fig { color: var(--accent); }
/* Research figures */
.figs li { border-top-color: var(--accent); }
/* Trust */
.box > header { border-bottom-color: var(--accent); }
/* Steps */
.steps li { border-top-color: var(--accent); }
.steps .n { color: var(--accent); }
/* Offers */
.offer .unit { color: var(--accent); }
.guarantee { background: var(--accent); }
.guarantee .tag { color: var(--accent); }
/* About */
.about figure { border-bottom: 4px solid var(--accent); padding-bottom: 0; }
.about figcaption { margin: 0; padding: 10px 0; }
/* Testimonials */
.tile.quote { border-top: 3px solid var(--accent); }
/* FAQ */
.faq details:first-child { border-top-color: var(--accent); }
.faq .pm { background: var(--accent-pale); }
.faq .pm::before, .faq .pm::after { background: var(--accent); }
.faq details[open] .pm { background: var(--accent); }
.faq details[open] .pm::before, .faq details[open] .pm::after { background: #fff; }
/* Final call */
.cta .in { border-top: 4px solid var(--accent); }
/* Footer */
.foot-cols h2 { color: var(--accent-soft); }

/* About: name and LinkedIn under the photo */
.about figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.about .li { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -12px; color: var(--accent); transition: color var(--ease); }
.about .li:hover { color: var(--ink); }
.about .body p { text-wrap: pretty; }

/* ---------- Models line (FAQ) ---------- */
.models { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: var(--ink-2); }
.models .marks { display: inline-flex; align-items: center; gap: 20px; }
.models img { width: auto; }

/* Home hero on phones: one-line tag, room between groups, logos still in the first screen */
@media (max-width: 560px) {
  .hero:not(.v) .tag { font-size: 11px; letter-spacing: 0; padding: 5px 8px; min-height: 0; }
  .hero:not(.v) .hero-copy { gap: 0; }
  .hero:not(.v) .hero-copy .h1 { margin-top: 24px; }
  .hero:not(.v) .hero-copy .lede { margin-top: 24px; }
  .hero:not(.v) .hero-copy .actions { margin-top: 32px; }
  .hero:not(.v) .hero-copy .models { margin-top: 30px; row-gap: 12px; }
  .hero:not(.v) .worked { margin-top: 56px; }
}

/* ---------- Worked with: logos stream across the page ---------- */
.worked { margin-top: clamp(20px, 3vh, 36px); display: flex; align-items: center; gap: 24px; }
.worked .label { flex: none; color: var(--ink-2); font-size: 17px; }
.worked .marquee { flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.worked .track { display: flex; width: max-content; animation: worked-stream 60s linear infinite; }
.worked .track li { flex: none; height: 68px; margin-right: 64px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.worked img { width: auto; max-width: none; object-fit: contain; }
.worked li span { white-space: nowrap; }
.worked:hover .track { animation-play-state: paused; }
@keyframes worked-stream { to { transform: translateX(-50%); } }
@media (max-width: 960px) {
  .worked { flex-direction: column; align-items: stretch; gap: 12px; }
}
@media (max-width: 560px) {
  .worked .track { animation-duration: 45s; }
  .worked .track li { height: 52px; margin-right: 40px; font-size: 17px; }
  .worked img { max-height: 28px; }
  .worked li span { font-size: 14px; }
  .worked .label { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .worked .track { animation: none; }
  .worked .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .worked .track li[aria-hidden="true"] { display: none; }
}

/* FAQ: the AI providers we build on */
.faq .ai-marks { display: flex; align-items: center; gap: 24px; padding: 0 0 24px; }
.faq .ai-marks img { width: auto; }

/* Home hero on phones: fills the screen exactly (tag to logos), the card graphic stays off phones,
   and the spare height goes into the space around the copy. */
@media (max-width: 560px) {
  .hero:not(.v) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding-bottom: 28px; }
  .hero:not(.v) .in { flex: 1; width: 100%; }
  .hero:not(.v) .hero-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-bottom: 8px; }
  .hero:not(.v) .visual { display: none; }
}
@media (max-width: 560px) {
  .hero:not(.v) .hero-copy .h1 { margin-top: clamp(20px, 4svh, 40px); }
  .hero:not(.v) .hero-copy .lede { margin-top: clamp(20px, 3.4svh, 32px); }
  .hero:not(.v) .hero-copy .actions { margin-top: clamp(28px, 5.5svh, 56px); }
}
@media (max-width: 560px) and (max-height: 600px) {
  .hero:not(.v) { padding-bottom: 16px; }
  .hero:not(.v) .hero-copy .h1, .hero:not(.v) .hero-copy .lede { margin-top: 16px; }
  .hero:not(.v) .hero-copy .actions { margin-top: 24px; }
  .hero:not(.v) .worked { margin-top: 24px; }
}

/* ---------- Home hero texture: a soft cobalt band of fine lines, set at the slash angle of the 51/S mark (20.24deg off vertical) ---------- */
.hero:not(.v) { position: relative; isolation: isolate; overflow: hidden; }
.hero:not(.v)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(110.24deg, rgba(255, 255, 255, 0) 0 3px, rgba(255, 255, 255, .55) 3px 4px),
    linear-gradient(110.24deg, rgba(227, 232, 255, 0) 52%, #E3E8FF 63%, #C9D3FF 76%, #A9B9FF 88%, #DCE3FF 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 45%, transparent 82%);
          mask-image: linear-gradient(to bottom, #000 0 45%, transparent 82%);
  opacity: .55;
}
@media (max-width: 560px) {
  .hero:not(.v)::before {
    background:
      repeating-linear-gradient(110.24deg, rgba(255, 255, 255, 0) 0 3px, rgba(255, 255, 255, .55) 3px 4px),
      linear-gradient(110.24deg, rgba(227, 232, 255, 0) 38%, #E3E8FF 54%, #C9D3FF 70%, #A9B9FF 86%, #DCE3FF 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0 35%, transparent 70%);
            mask-image: linear-gradient(to bottom, #000 0 35%, transparent 70%);
  }
}
/* Header sits clear over the hero texture until the page scrolls */
.site-header { transition: border-color var(--ease), background-color var(--ease); }
.site-header:not(.is-scrolled) { background-color: transparent; }
@media (max-width: 560px) { .hero:not(.v)::before { opacity: .75; } }
