*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:      #F3F0E8;
  --bg-2:    #EAE6DB;
  --card:    #FBFAF6;
  --ink:     #171612;
  --ink-2:   #4A473E;
  --ink-3:   #7D796D;
  --line:    rgba(23,22,18,.12);
  --line-2:  rgba(23,22,18,.22);
  --accent:  #E4531B;
  --accent-soft: rgba(228,83,27,.12);
  --ok:      #2E7D4F;
  --ok-soft: rgba(46,125,79,.12);
  --hum:     #B7791F;
  --hum-soft: rgba(183,121,31,.14);
  --route:   #3D5BA9;
  --route-soft: rgba(61,91,169,.12);
  --shadow:  0 1px 0 rgba(23,22,18,.04), 0 18px 50px -20px rgba(23,22,18,.25);
  --pad:     clamp(1rem, 5vw, 4rem);
  --max:     76rem;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --serif:   'Instrument Serif', Georgia, serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #121210;
    --bg-2:    #1A1A17;
    --card:    #1D1D1A;
    --ink:     #EEEBE2;
    --ink-2:   #BDB9AD;
    --ink-3:   #8A867B;
    --line:    rgba(238,235,226,.10);
    --line-2:  rgba(238,235,226,.20);
    --accent:  #FF6B35;
    --accent-soft: rgba(255,107,53,.14);
    --ok:      #5CC08A;
    --ok-soft: rgba(92,192,138,.14);
    --hum:     #E3AE55;
    --hum-soft: rgba(227,174,85,.15);
    --route:   #8FA8F0;
    --route-soft: rgba(143,168,240,.14);
    --shadow:  0 1px 0 rgba(0,0,0,.2), 0 24px 60px -24px rgba(0,0,0,.7);
  }
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; flex: none; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 4.2rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; }
.brand-mark svg { width: 14px; height: 14px; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: var(--bg); }
.clock { color: var(--ink-3); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.15rem; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  text-decoration: none; font-weight: 500; font-size: 15px;
  border: 1px solid var(--ink); cursor: pointer; font-family: inherit;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vh, 6rem) 0 clamp(3.5rem, 9vh, 6rem); }
.hero .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 {
  font-size: clamp(2.9rem, 7vw, 6rem);
  line-height: .95; letter-spacing: -.045em; font-weight: 600;
  margin: 1.4rem 0 1.6rem;
}
.hero h1 em { color: var(--accent); font-size: 1.08em; letter-spacing: -.02em; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 2.6rem; color: var(--ink-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70%,100% { box-shadow: 0 0 0 8px transparent; } }

/* Triage demo console */
.console {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.console-head { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); gap: 1rem; }
.console-title { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.lights { display: flex; gap: 5px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.live { display: inline-flex; align-items: center; gap: .4rem; color: var(--ok); }
.picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; padding: .75rem 1.1rem .9rem; border-bottom: 1px solid var(--line); }
.picker-label { grid-column: 1 / -1; color: var(--ink-3); }
.tk {
  font: inherit; font-size: 13.5px; font-weight: 500; line-height: 1.25; text-align: left;
  padding: .55rem .75rem; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.tk:hover { border-color: var(--ink); color: var(--ink); }
.tk[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stage { padding: .5rem .4rem; text-align: center; color: var(--ink-3); font-family: var(--mono); font-size: 11px; transition: color .3s, background .3s; }
.stage + .stage { border-left: 1px solid var(--line); }
.stage.on { color: var(--accent); background: var(--accent-soft); }
.demo-body { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .85rem; }
.msg { min-height: 4.9rem; padding: .75rem .95rem; border-radius: 14px 14px 14px 4px; background: var(--bg-2); animation: drop .5s cubic-bezier(.2,.9,.3,1.2); }
.msg.empty { display: grid; place-items: center; text-align: center; color: var(--ink-3); background: transparent; border: 1px dashed var(--line-2); border-radius: 14px; animation: none; font-size: 15px; }
.msg-meta { display: block; color: var(--ink-3); margin-bottom: .2rem; }
.msg-body { font-size: 15.5px; line-height: 1.45; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.cls { display: flex; flex-wrap: wrap; gap: .35rem; min-height: 24px; align-items: center; }
.chip { font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--bg-2); color: var(--ink-2); animation: pop .35s ease backwards; }
.chip.hot { background: var(--accent-soft); color: var(--accent); }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
.thinking { font-family: var(--mono); font-size: 11px; color: var(--ink-3); display: inline-flex; gap: .4rem; align-items: center; }
.thinking b { width: 44px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--bg-2) 0%, var(--line-2) 50%, var(--bg-2) 100%); background-size: 200% 100%; animation: shimmer 1s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.lane { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; transition: opacity .35s, border-color .35s, background .35s; }
.lane b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; transition: color .35s; }
.lane span { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); line-height: 1.35; margin-top: .1rem; }
.console.chosen .lane:not(.on) { opacity: .4; }
.lane.on[data-lane="ai"]     { border-color: var(--ok);     background: var(--ok-soft); }
.lane.on[data-lane="policy"] { border-color: var(--route);  background: var(--route-soft); }
.lane.on[data-lane="human"]  { border-color: var(--accent); background: var(--accent-soft); }
.lane.on[data-lane="ai"] b     { color: var(--ok); }
.lane.on[data-lane="policy"] b { color: var(--route); }
.lane.on[data-lane="human"] b  { color: var(--accent); }
.acts { list-style: none; display: grid; gap: .3rem; min-height: 5.6rem; align-content: start; }
.act { font-size: 14px; line-height: 1.4; color: var(--ink-2); display: grid; grid-template-columns: 1.1rem 1fr; gap: .35rem; animation: pop .35s ease backwards; }
.act::before { content: '→'; font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: .1rem; }
.result { min-height: 28px; }
.outcome { font-family: var(--mono); font-size: 12px; display: inline-flex; align-items: center; gap: .45rem; padding: 5px 10px; border-radius: 7px; animation: pop .35s ease backwards; }
.outcome.ai     { color: var(--ok);     background: var(--ok-soft); }
.outcome.policy { color: var(--route);  background: var(--route-soft); }
.outcome.human  { color: var(--accent); background: var(--accent-soft); }
.console-note { margin-top: .8rem; color: var(--ink-3); text-align: center; }

/* ---------- Sections ---------- */
section { padding: clamp(4.5rem, 12vh, 8rem) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.04em; font-weight: 600; margin-top: 1rem; }
h2 em { color: var(--accent); font-size: 1.06em; }
.sec-head p { color: var(--ink-2); max-width: 30rem; font-size: 1.08rem; }

/* ---------- Proof ---------- */
.proof { padding: 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-grid li { padding: clamp(1.5rem, 3.4vw, 2.4rem) clamp(1rem, 2vw, 1.75rem); display: flex; flex-direction: column; gap: .55rem; }
.proof-grid li:first-child { padding-left: 0; }
.proof-grid li + li { border-left: 1px solid var(--line); }
.proof-grid b { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.proof-grid b.word { font-size: clamp(1.7rem, 2.9vw, 2.5rem); letter-spacing: -.04em; line-height: 1.12; }
.proof-grid b i { font-style: normal; color: var(--accent); font-size: .78em; margin-right: .08em; }
.proof-grid span { color: var(--ink-2); font-size: 15px; line-height: 1.4; max-width: 15rem; }
.proof-note { color: var(--ink-3); padding: .85rem 0 1rem; border-top: 1px solid var(--line); }

/* ---------- Status pills ---------- */
.status { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px 3px 7px; border-radius: 6px; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; line-height: 1.5; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-live     { color: var(--ok);    background: var(--ok-soft); }
.s-internal { color: var(--route); background: var(--route-soft); }

/* ---------- Selected work ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.25rem, 3vw, 2.5rem);
}
.work-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--ink-3); }
.feature h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; margin: 1rem 0 .6rem; }
.work-lede { color: var(--ink-2); font-size: 1.06rem; line-height: 1.5; }
.pbr { margin: 1.3rem 0 1.2rem; border-top: 1px solid var(--line); }
.pbr > div { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.pbr dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding-top: .22rem; }
.pbr dd { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.pbr .res dt { color: var(--accent); }
.pbr .res dd { color: var(--ink); font-weight: 500; }
.stack { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; }
.stack li { font-family: var(--mono); font-size: 11.5px; padding: 3px 9px; border-radius: 6px; background: var(--bg-2); color: var(--ink-2); }
.feature .btn { margin-top: 1.6rem; }
.feature + .feature { margin-top: 1rem; }
.feature.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.feature.flip .mock { font-size: 15px; font-size: 2.8cqi; }
.work-note { color: var(--ink-3); margin-top: 1rem; }

/* Screenshot frames */
.shot { margin: 0; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); overflow: hidden; box-shadow: var(--shadow); container-type: inline-size; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: .5rem .8rem; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.shot-bar span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-left: .45rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding: .5rem .8rem; border-top: 1px solid var(--line); background: var(--bg-2); }

/* Illustrative UI mocks: sized in em, scaled by container width like an image */
.mock { aspect-ratio: 16 / 10; font-size: 12px; font-size: 2.1cqi; line-height: 1.35; color: var(--ink); background: var(--card); overflow: hidden; position: relative; }
.mock.auto { aspect-ratio: auto; }
.cs-shot .mock { aspect-ratio: 16 / 7.6; font-size: 1.6cqi; }
.chapter .mock { font-size: 13px; font-size: min(2.5cqi, 16px); }
.chapter .mock .m-pad { padding: 1.3em 1.4em 1.5em; gap: .8em; }
.mock p { margin: 0; }
.m-app { display: grid; grid-template-columns: 11.5em minmax(0, 1fr); height: 100%; }
.m-side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 1.1em .8em; display: flex; flex-direction: column; gap: .2em; }
.m-logo { display: flex; align-items: center; gap: .5em; font-weight: 600; font-size: 1.05em; margin: 0 0 .9em .4em; }
.m-logo::before { content: ''; width: 1.05em; height: 1.05em; border-radius: .3em; background: var(--accent); }
.m-nav { padding: .45em .6em; border-radius: .5em; color: var(--ink-2); display: flex; justify-content: space-between; gap: .4em; white-space: nowrap; }
.m-nav.on { background: var(--card); color: var(--ink); font-weight: 500; box-shadow: 0 1px 0 var(--line); }
.m-count { font-family: var(--mono); font-size: .85em; color: var(--accent); }
.m-main, .m-pad { padding: 1.1em 1.3em; display: flex; flex-direction: column; gap: .65em; min-width: 0; height: 100%; }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.m-head b { font-size: 1.3em; letter-spacing: -.02em; font-weight: 600; white-space: nowrap; }
.m-pill { font-family: var(--mono); font-size: .8em; padding: .25em .6em; border-radius: .4em; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.m-tabs { display: flex; gap: 1.3em; font-size: .9em; color: var(--ink-3); border-bottom: 1px solid var(--line); padding-bottom: .45em; }
.m-tabs b { color: var(--ink); font-weight: 500; }
.m-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8em; align-items: center; padding: .65em .8em; border: 1px solid var(--line); border-radius: .6em; background: var(--card); }
.m-row > div { min-width: 0; }
.m-row p, .m-ellip { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-meta { font-family: var(--mono); font-size: .78em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.m-actions { display: flex; gap: .35em; }
.m-btn { font-size: .8em; padding: .3em .7em; border-radius: .4em; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.m-btn.ok { background: var(--ok); border-color: var(--ok); color: var(--card); }
.m-tag { font-family: var(--mono); font-size: .76em; padding: .2em .55em; border-radius: .35em; white-space: nowrap; background: var(--bg-2); color: var(--ink-3); }
.m-tag.hold  { background: var(--hum-soft);    color: var(--hum); }
.m-tag.ok    { background: var(--ok-soft);     color: var(--ok); }
.m-tag.route { background: var(--route-soft);  color: var(--route); }
.m-tag.acc   { background: var(--accent-soft); color: var(--accent); }
/* agent trace */
.m-bubble { background: var(--bg-2); border-radius: .8em .8em .8em .2em; padding: .6em .85em; max-width: 86%; }
.m-reply { align-self: flex-end; background: var(--ok-soft); border-radius: .8em .8em .2em .8em; padding: .6em .85em; max-width: 82%; }
.m-steps { display: grid; gap: .3em; }
.m-step { display: grid; grid-template-columns: 6.8em minmax(0, 1fr); gap: .8em; align-items: center; padding: .35em .7em; border-left: .18em solid var(--line-2); }
.m-step span { font-family: var(--mono); font-size: .8em; color: var(--ink-3); }
.m-step b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-step.ok { border-color: var(--ok); }
.m-step.ok b { color: var(--ok); }
/* bar charts */
.m-bars { display: grid; gap: .45em; }
.m-bar-row { display: grid; grid-template-columns: 11.5em minmax(0, 1fr) 2.4em; gap: .8em; align-items: center; font-size: .95em; }
.m-bar-row > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-bar-row > span:last-child { font-family: var(--mono); font-size: .8em; color: var(--ink-3); text-align: right; }
.m-bar { height: .7em; background: var(--bg-2); border-radius: 1em; overflow: hidden; }
.m-bar i { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 1em; }
.m-bar.route i { background: var(--route); }
/* review detail + families (case study) */
.m-answer { background: var(--bg-2); border-radius: .6em; padding: .75em .9em; color: var(--ink-2); }
.m-answer b { display: block; font-family: var(--mono); font-size: .75em; font-weight: 400; color: var(--ink-3); margin-bottom: .3em; }
.m-q { font-size: 1.15em; font-weight: 600; letter-spacing: -.01em; }
.m-src { display: flex; flex-wrap: wrap; gap: .3em; align-items: center; }
.m-tree { display: grid; gap: .35em; padding-left: 1.2em; border-left: 1px dashed var(--line-2); margin-left: .6em; }
.m-tree > div { position: relative; padding: .45em .7em; border: 1px solid var(--line); border-radius: .5em; color: var(--ink-2); display: flex; justify-content: space-between; gap: .8em; }
.m-tree > div::before { content: ''; position: absolute; left: -1.2em; top: 50%; width: 1.1em; border-top: 1px dashed var(--line-2); }
.m-canon { border: 1px solid var(--ok); background: var(--ok-soft); border-radius: .6em; padding: .65em .85em; display: flex; justify-content: space-between; align-items: center; gap: .8em; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.svc {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem;
  display: flex; flex-direction: column; gap: 1rem; position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
}
.svc:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.svc-top { display: flex; justify-content: space-between; align-items: center; }
.svc-num { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.svc-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.svc-icon svg { width: 22px; height: 22px; }
.svc h3 { font-size: 1.55rem; line-height: 1.1; letter-spacing: -.03em; font-weight: 600; margin-top: .6rem; }
.svc > p { color: var(--ink-2); }
.svc ul { list-style: none; margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--line-2); display: grid; gap: .45rem; }
.svc li { display: flex; gap: .6rem; align-items: baseline; font-size: 15px; color: var(--ink-2); }
.svc li::before { content: '→'; color: var(--accent); font-family: var(--mono); font-size: 13px; }

/* ---------- Process ---------- */
.process { background: var(--ink); color: var(--bg); border-radius: clamp(20px, 3vw, 36px); margin: 0 clamp(.5rem, 1.5vw, 1.25rem); }
.process .eyebrow { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.process .sec-head p { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; position: relative; }
.steps::before { content: ''; position: absolute; top: 1.1rem; left: 0; right: 0; height: 1px; background: color-mix(in srgb, var(--bg) 25%, transparent); }
.steps::after { content: ''; position: absolute; top: 1.1rem; left: 0; height: 1px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }
.step { padding-right: 2rem; position: relative; }
.step-dot { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ink); border: 1px solid color-mix(in srgb, var(--bg) 35%, transparent); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; position: relative; z-index: 1; transition: background .4s, border-color .4s, color .4s; }
.step.lit .step-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.step h3 { font-size: 1.5rem; letter-spacing: -.03em; font-weight: 600; margin: 1.4rem 0 .5rem; }
.step p { color: color-mix(in srgb, var(--bg) 70%, transparent); font-size: 15.5px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about-lead { font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 500; margin-top: 1.4rem; }
.about-lead em { color: var(--accent); }
.about-body { color: var(--ink-2); margin-top: 1.6rem; max-width: 34rem; }
.about-body p + p { margin-top: 1rem; }
.about-body strong { color: var(--ink); font-weight: 500; }
.principles { list-style: none; border-top: 1px solid var(--line); }
.principle { border-bottom: 1px solid var(--line); }
.principle button {
  width: 100%; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: .6rem; padding: 1.2rem 0;
}
.principle .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.principle .t { font-size: 1.2rem; font-weight: 500; letter-spacing: -.02em; }
.principle .plus { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .3s, background .3s, color .3s, border-color .3s; }
.principle .plus::before { content: '+'; font-family: var(--mono); font-size: 14px; line-height: 1; }
.principle.open .plus { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.principle .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.principle.open .body { grid-template-rows: 1fr; }
.principle .body > div { overflow: hidden; }
.principle .body p { padding: 0 0 1.3rem 3rem; color: var(--ink-2); }

.build-with { margin-top: clamp(3.5rem, 9vh, 6rem); padding-top: clamp(2rem, 5vh, 3rem); border-top: 1px solid var(--line); }
.bw-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .6rem 2rem; margin-bottom: 1.6rem; }
.bw-head p:last-child { color: var(--ink-3); font-size: 15px; max-width: 30rem; }
.bw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
.bw-col h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: .8rem; display: flex; align-items: baseline; gap: .5rem; }
.bw-col h3 span { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink-3); }
.tools { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.tools li { font-size: 14px; padding: .32rem .75rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(3rem, 8vh, 5rem); }
.contact-card { background: var(--accent); color: #fff; border-radius: clamp(20px, 3vw, 36px); padding: clamp(2rem, 6vw, 5rem); position: relative; overflow: hidden; }
.contact-card::after { content: ''; position: absolute; right: -8rem; bottom: -10rem; width: 28rem; height: 28rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); box-shadow: 0 0 0 4rem rgba(255,255,255,.05), 0 0 0 8rem rgba(255,255,255,.04); pointer-events: none; }
.contact-card .eyebrow { color: rgba(255,255,255,.8); }
.contact-card .eyebrow::before { background: #fff; }
.contact-card h2 { font-size: clamp(2.6rem, 7.5vw, 6rem); max-width: 14ch; }
.contact-card h2 em { color: #fff; }
.contact-sub { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34rem; color: rgba(255,255,255,.92); position: relative; z-index: 1; }
.topics { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; position: relative; z-index: 1; }
.topics li { font-family: var(--mono); font-size: 12.5px; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-top: 2.2rem; position: relative; z-index: 1; }
.mail { font-size: clamp(1.25rem, 3.4vw, 2.2rem); font-weight: 500; letter-spacing: -.03em; color: #fff; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.4); transition: border-color .2s; overflow-wrap: anywhere; }
.mail:hover { border-color: #fff; }
.copy { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.copy:hover { background: #fff; color: var(--accent); border-color: #fff; }
.contact-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; position: relative; z-index: 1; }
.contact-links a { color: #fff; font-size: 15px; text-decoration: none; padding: .45rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); transition: background .2s, color .2s; }
.contact-links a:hover { background: #fff; color: var(--accent); }
.contact-meta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .4rem 2rem; color: rgba(255,255,255,.85); position: relative; z-index: 1; }

footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1.6rem; padding-top: 1.6rem; padding-bottom: 2.4rem; color: var(--ink-3); }
footer nav { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- Case study ---------- */
.back { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--ink-3); margin-bottom: 1.8rem; transition: color .2s; }
.back:hover { color: var(--ink); }
.cs-hero { padding: clamp(2.5rem, 7vh, 5rem) 0 clamp(3rem, 8vh, 5rem); }
.cs-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: .98; letter-spacing: -.045em; font-weight: 600; margin: 1.2rem 0 1.4rem; max-width: 15ch; }
.cs-hero h1 em { color: var(--accent); font-size: 1.06em; }
.cs-hero .hero-sub { max-width: 42rem; }
.cs-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 2.6rem; }
.cs-meta > div { padding: 1rem 1.4rem 0 0; }
.cs-meta dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.cs-meta dd { font-size: 15px; color: var(--ink-2); margin-top: .35rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.cs-shot { margin-top: clamp(2.5rem, 6vh, 4rem); }
.cs-sec { border-top: 1px solid var(--line); padding: clamp(3.5rem, 10vh, 6.5rem) 0; }
.cs-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.cs-side { position: sticky; top: 6rem; }
.cs-side h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.prose > * + * { margin-top: 1.1rem; }
.prose p { color: var(--ink-2); font-size: 1.08rem; max-width: 40rem; }
.prose strong { color: var(--ink); font-weight: 500; }
.frag { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.frag li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; font-size: 15px; color: var(--ink-2); }
.frag b { display: block; color: var(--ink); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: .2rem; }

.flow { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; margin-top: clamp(2rem, 5vh, 3rem); }
.flow-node { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; }
.flow-node + .flow-node::before { content: '→'; position: absolute; left: -1.25rem; top: 50%; transform: translateY(-50%); font-family: var(--mono); color: var(--accent); }
.flow-node .mono { color: var(--ink-3); }
.flow-node b { display: block; font-size: 1.2rem; letter-spacing: -.02em; font-weight: 600; margin: .5rem 0 .3rem; }
.flow-node p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.flow-node.hl { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.flow-out { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: 1.1rem 1.2rem; border: 1px dashed var(--line-2); border-radius: 16px; }
.flow-out > span { color: var(--accent); }
.flow-out ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.flow-out li { font-size: 14px; padding: .32rem .75rem; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }

.chapters { display: grid; gap: clamp(3rem, 8vh, 5rem); margin-top: clamp(2rem, 5vh, 3rem); }
.chapter { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.chapter:nth-child(even) .chapter-text { order: 2; }
.chapter-text .mono { color: var(--accent); }
.chapter-text h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; margin: .6rem 0 .8rem; }
.chapter-text p { color: var(--ink-2); }
.chapter-text p + p { margin-top: .8rem; }

.decisions { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.decision { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; }
.decision .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.decision h3 { font-size: 1.4rem; line-height: 1.12; letter-spacing: -.03em; font-weight: 600; }
.decision p { color: var(--ink-2); font-size: 15.5px; }
.decision .ties { margin-top: auto; padding-top: .8rem; border-top: 1px dashed var(--line-2); color: var(--ink-3); }

.ba { border-top: 1px solid var(--line); }
.ba-row { display: grid; grid-template-columns: minmax(0, 1fr) 2.5rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.ba-row.head { padding: .7rem 0; color: var(--ink-3); }
.ba-before { color: var(--ink-3); }
.ba-arrow { color: var(--accent); font-family: var(--mono); text-align: center; }
.ba-after { font-weight: 500; font-size: 1.08rem; letter-spacing: -.01em; }
.skills { margin-top: 2.4rem; }
.skills .eyebrow { margin-bottom: .9rem; }

/* Reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }
.hero .rv { transition-duration: 1s; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.6rem; }
}
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .services, .decisions { grid-template-columns: 1fr; }
    .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature .shot { order: -1; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 0; }
  .steps::before, .steps::after { display: none; }
  .about-grid, .sec-head, .cs-grid, .chapter { grid-template-columns: 1fr; }
  .chapter:nth-child(even) .chapter-text { order: 0; }
  .cs-side { position: static; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-grid li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .proof-grid li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: 1fr; gap: 1.8rem; }
  .flow-node + .flow-node::before { content: '↓'; left: 1.2rem; top: -1.45rem; transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links li:not(:last-child) { display: none; }
  .clock { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { padding-right: 0; }
  .picker { padding: .7rem .9rem .8rem; gap: .35rem; }
  .tk { font-size: 13px; padding: .5rem .6rem; }
  .demo-body { padding: .9rem; }
  .lanes { gap: .35rem; }
  .lane { padding: .5rem .55rem; }
  .lane b { font-size: 13px; }
  .lane span { display: none; }
  .acts { min-height: 7.4rem; }
  .pipeline .stage { font-size: 10px; padding: .5rem .2rem; }
  .principle .body p { padding-left: 0; }
  .pbr > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .bw-grid { grid-template-columns: 1fr; }
  .frag { grid-template-columns: 1fr; }
  .cs-meta { grid-template-columns: 1fr; }
  .ba-row { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .ba-row.head { display: none; }
  .ba-arrow { display: none; }
  .ba-before::after { content: ' →'; color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .msg, .chip, .act, .outcome { animation: none; }
  .dot { animation: none; }
  .steps::after { transform: scaleX(1); }
  }
