:root {
  --bg: #faf9f7; --bg-glass: rgba(250,249,247,.82); --ink: #2a2b2f; --muted: #5c5a5b;
  --line: #e4e1dc; --line-strong: #2a2b2f; --btn-bg: #2a2b2f; --btn-fg: #faf9f7;
  --band-bg: #1e1e21; --band-ink: #f4f2ee; --band-muted: #b8b5b2; --band-line: #4a4a4a;
  --band-accent: #b8b5b2; --input-line: #8f8b86; --accent: #5c5a5b; --sel-ring: #5c5a5b;
  --tbtn-off: #5c5a5b; --green: var(--accent); --band-green: var(--band-accent); --mark: color-mix(in srgb, var(--ink) 86%, var(--bg)); --on: var(--ink); --band-on: var(--band-ink); --term-bg: #ffffff; --term-ink: #2a2b2f;  --term-dim: #5c5a5b; --term-line: #e4e1dc; --term-border: #8f8b86; --term-cmd: #1c1a1b; --term-err: #b4232c; --term-shadow: rgba(0,0,0,.18); --term-back: rgba(0,0,0,.35);
  --font: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 56px);
  color-scheme: only light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #282c34; --bg-glass: rgba(40,44,52,.82); --ink: #dcdfe4; --muted: #abb2bf;
    --line: #4b5263; --line-strong: #dcdfe4; --btn-bg: #dcdfe4; --btn-fg: #282c34;
    --band-bg: #21252b; --band-ink: #dcdfe4; --band-muted: #abb2bf; --band-line: #4b5263;
    --band-accent: #abb2bf; --input-line: #7a8191; --accent: #abb2bf; --sel-ring: #dcdfe4;
    --tbtn-off: #abb2bf; --green: #98c379; --band-green: #98c379; --mark: var(--ink); --on: #98c379; --band-on: #98c379; --term-bg: #1d1f23; --term-ink: #dcdfe4; --term-dim: #abb2bf; --term-line: #3a3f4b; --term-border: #abb2bf; --term-cmd: #98c379; --term-err: #e06c75; --term-shadow: rgba(0,0,0,.5); --term-back: rgba(0,0,0,.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #282c34; --bg-glass: rgba(40,44,52,.82); --ink: #dcdfe4; --muted: #abb2bf;
  --line: #4b5263; --line-strong: #dcdfe4; --btn-bg: #dcdfe4; --btn-fg: #282c34;
  --band-bg: #21252b; --band-ink: #dcdfe4; --band-muted: #abb2bf; --band-line: #4b5263;
  --band-accent: #abb2bf; --input-line: #7a8191; --accent: #abb2bf; --sel-ring: #dcdfe4;
  --tbtn-off: #abb2bf; --green: #98c379; --band-green: #98c379; --mark: var(--ink); --on: #98c379; --band-on: #98c379; --term-bg: #1d1f23; --term-ink: #dcdfe4; --term-dim: #abb2bf; --term-line: #3a3f4b; --term-border: #abb2bf; --term-cmd: #98c379; --term-err: #e06c75; --term-shadow: rgba(0,0,0,.5); --term-back: rgba(0,0,0,.55);
  color-scheme: dark;
}

* { transition: background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease, opacity .3s ease; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
.mono { font-family: var(--mono); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); box-sizing: border-box; }
.section { border-top: 1px solid var(--line); }
.section > .wrap { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.eyebrow { margin-bottom: 20px; font-size: 12px; color: var(--accent); }
.h2 { max-width: 720px; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.1; font-weight: 400; letter-spacing: -0.03em; }
.lead { margin-top: 24px; max-width: 560px; color: var(--muted); }
.muted { color: var(--muted); }

/* Animations */
@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes blurin { from { opacity: 0; filter: blur(10px); transform: translateY(10px); } to { opacity: 1; filter: none; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes dashx { to { background-position: 12px 0; } }
.cursor { display: inline-block; width: .55em; height: 1em; background: currentColor; margin-left: 6px; vertical-align: -0.15em; animation: blink 1s steps(2) infinite; }
.rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.blurin { animation: blurin 1.1s cubic-bezier(.2,.7,.2,1) .08s both; }
.d2 { animation-delay: .22s; } .d3 { animation-delay: .36s; }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .mark { height: 32px; width: auto; aspect-ratio: 192.59 / 229.10; display: block; color: var(--mark); }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font-size: 13px; font-weight: 500; letter-spacing: .3em; }
.wordmark small { font-size: 9px; font-weight: 400; letter-spacing: .5em; margin-top: 5px; color: var(--muted); }
.nav nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 12px; }
.link-quiet { opacity: .72; display: inline-flex; align-items: center; min-height: 32px; }
.link-quiet:hover { opacity: 1; }
.theme { display: inline-flex; gap: 1px; padding: 2px; border: 1px solid var(--line); border-radius: 4px; }
.theme button { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 2px; cursor: pointer; background: transparent; color: var(--tbtn-off); }
.theme button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.theme button:hover { opacity: .85; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 3px; font-weight: 500; }
.btn-dark { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; background: var(--btn-bg); color: var(--btn-fg); border-radius: 4px; font-weight: 500; }
.btn-dark:hover, .btn-outline:hover { opacity: .82; }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: .55; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 20% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 20% 0%, #000 20%, transparent 75%); }
.hero .wrap { position: relative; padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(56px, 7vw, 104px); }
.hero-copy { max-width: 960px; }
.kicker { margin-bottom: 24px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.04; font-weight: 400; letter-spacing: -0.035em; }
.hero-sub { margin-top: 24px; max-width: 480px; font-size: clamp(14px, 1.1vw, 16px); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.cta .link-quiet { min-height: 44px; font-weight: 500; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding: 0; list-style: none; }
.tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); opacity: .8; cursor: default; transition: opacity .25s, transform .25s, color .25s; }
.tip svg { width: 18px; height: 18px; display: block; fill: currentColor; }
.tip:hover, .tip:focus-visible { opacity: 1; transform: translateY(-2px); }
.tip::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); padding: 3px 8px; border-radius: 3px; background: var(--btn-bg); color: var(--btn-fg); font-family: var(--mono); font-size: 11px; line-height: 1.4; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 5; }
.tip:hover::after, .tip:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* Numbers */
.numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers .wrap { display: flex; flex-wrap: wrap; }
.numbers .wrap > div { flex: 1 1 200px; min-width: 0; padding: 22px clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.numbers .wrap > div:last-child { border-right: 1px solid var(--line); }
.numbers strong { font-size: clamp(22px, 2.4vw, 30px); line-height: 1; font-weight: 400; letter-spacing: -0.03em; }
.numbers span { font-size: 11px; color: var(--muted); }

/* Grid cells */
.cells { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cell { position: relative; }
.cell::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.cell:hover::after { transform: scaleX(1); }
.service { flex: 1 1 280px; min-width: 0; background: var(--bg); padding: 24px; box-sizing: border-box; display: flex; flex-direction: column; }
.service .num { margin-bottom: 40px; font-size: 12px; color: var(--accent); }
.service h3 { margin-bottom: 12px; font-size: 17px; line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; }
.service p { margin-bottom: 28px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag { font-family: var(--mono); font-size: 12px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); }

/* Approach */
.approach .wrap { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.approach .eyebrow { font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.principle { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 18px 0; border-top: 1px solid var(--line); }
.principle:first-child { border-top-color: var(--line-strong); }
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle h3 { flex: 0 0 200px; font-size: 15px; font-weight: 500; letter-spacing: -0.02em; }
.principle p { flex: 1 1 260px; color: var(--muted); }

/* Contact + footer */
.band { background: var(--band-bg); color: var(--band-ink); }
.contact .wrap { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "head steps" "map compose" "avail avail"; gap: 56px 80px; align-items: stretch; }
.contact-head { grid-area: head; }
.contact-steps { grid-area: steps; align-self: start; border-top: 1px solid var(--band-ink); }
.contact-avail { grid-area: avail; }
.contact .eyebrow { margin-bottom: 24px; color: var(--band-accent); }
.contact h2 { text-wrap: balance; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.05; font-weight: 400; letter-spacing: -0.035em; }
.contact .intro { margin-top: 28px; max-width: 460px; color: var(--band-muted); }
.avail-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 11px; color: var(--band-accent); }
.tz { position: relative; margin-top: 16px; }
.tz-hours { display: flex; justify-content: space-between; margin-left: 96px; font-size: 10px; color: var(--band-muted); }
.tz-rows { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.tz-row { display: flex; align-items: center; }
.tz-row > span:first-child { flex: 0 0 96px; font-size: 11px; color: var(--band-muted); }
.tz-row.me > span:first-child { color: var(--band-ink); }
.tz-cells { flex: 1 1 auto; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; }
.tz-cells i, .tz-key i { display: block; height: 10px; border-radius: 1px; background: color-mix(in srgb, var(--band-line) 60%, var(--band-bg)); }
.tz-cells i.on, .tz-key i.on { background: var(--band-ink); }
.tz-cells i.theirs, .tz-key i.theirs { background: repeating-linear-gradient(135deg, var(--band-muted) 0 2px, color-mix(in srgb, var(--band-muted) 24%, var(--band-bg)) 2px 4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--band-muted) 75%, transparent); }
.tz-now { position: absolute; top: 14px; bottom: -4px; width: 0; border-left: 1px dashed var(--band-ink); pointer-events: none; }
.tz-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 14px; font-size: 11px; color: var(--band-muted); }
.tz-key { display: inline-flex; align-items: center; gap: 8px; }
.tz-key i { width: 16px; flex: 0 0 16px; }
.map { grid-area: map; margin: 0; display: flex; flex-direction: column; min-width: 0; }
.map-frame { position: relative; flex: 1 0 auto; aspect-ratio: 4 / 3; border: 1px solid var(--band-line); border-radius: 6px; overflow: hidden; }
.map-frame::after { content: ""; position: absolute; inset: 0; background: var(--band-bg); mix-blend-mode: color; pointer-events: none; }
.map-note { margin-top: 12px; font-size: 11px; color: var(--band-muted); }
.map iframe { position: absolute; top: -130px; left: 0; width: 100%; height: calc(100% + 130px); border: 0; filter: grayscale(1) invert(.86) brightness(.8) contrast(.9); }
footer { border-top: 1px solid var(--band-line); }
footer .wrap { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
footer .brand .mark { color: var(--band-ink); }
footer .wordmark b { font-size: 14px; }
footer .wordmark small, footer .link-quiet, footer p { color: var(--band-muted); }
footer .link-quiet { width: 30px; height: 44px; justify-content: center; }
footer p { font-size: 12px; }

/* Technologies */
.tech { margin-top: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: flex-start; }
.steps { flex: 1 1 220px; max-width: 300px; border-left: 1px solid var(--line); }
.step { display: flex; align-items: baseline; gap: 12px; width: 100%; box-sizing: border-box; text-align: left; cursor: pointer; background: transparent; border: 0; border-left: 2px solid transparent; margin-left: -1px; padding: 9px 0 9px 16px; min-height: 44px; color: var(--muted); }
.step[aria-pressed="true"] { border-left-color: var(--line-strong); color: var(--ink); }
.step[aria-pressed="true"] .step-name { font-weight: 500; }
.step .mono { font-size: 11px; opacity: .6; }
.step .step-name { font-size: 15px; letter-spacing: -0.01em; }
.step .cat { margin-left: auto; }
.panel { flex: 3 1 520px; min-width: 0; border: 1px solid var(--line); border-radius: 6px; }
.panel-inner { display: flex; flex-direction: column; gap: 28px; padding: clamp(20px, 3vw, 32px); }
.panel h3 { margin-bottom: 10px; font-size: 17px; line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; }
.points { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.points li { display: flex; gap: 10px; align-items: baseline; font-size: 12px; }
.points li::before { content: "–"; color: var(--accent); }
.diagram { border: 1px solid var(--line); border-radius: 6px; padding: clamp(16px, 2vw, 24px); }
.diagram-label { margin-bottom: 22px; font-size: 12px; color: var(--muted); }
.scroll-x { overflow-x: auto; }
.arrow { display: flex; align-items: center; }
.arrow > span:first-child { flex: 1; height: 2px; background: var(--input-line); }
.arrow > span:last-child { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid var(--input-line); }
.arrow.flow > span:first-child { background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px); background-size: 12px 2px; animation: dashx .7s linear infinite; }
.arrow.flow > span:last-child, .arrow.done > span:last-child { border-left-color: var(--ink); }
.arrow.done > span:first-child { background: var(--ink); }
@keyframes dashy { to { background-position: 0 12px; } }
.arrow.v { flex-direction: column; justify-self: center; }
.arrow.v > span:first-child { flex: 1; width: 2px; height: auto; min-height: 14px; }
.arrow.v > span:last-child { border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 0; border-top: 7px solid var(--input-line); }
.arrow.v.flow > span:first-child { background: repeating-linear-gradient(180deg, var(--ink) 0 6px, transparent 6px 12px); background-size: 2px 12px; animation-name: dashy; }
.arrow.v.flow > span:last-child, .arrow.v.done > span:last-child { border-top-color: var(--ink); border-left-color: transparent; }
.zone { position: relative; border: 1px dashed var(--input-line); border-radius: 6px; }
.zone-label { position: absolute; top: -9px; left: 12px; padding: 0 6px; background: var(--bg); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tree { display: flex; align-items: center; min-width: 760px; padding: 12px 0; }
.root-node { flex: 0 0 auto; background: var(--btn-bg); color: var(--btn-fg); border-radius: 4px; padding: 8px 12px; }
.root-node b { display: block; font-weight: 500; font-size: 14px; }
.root-node span { font-size: 11px; opacity: .8; }
.tree > .arrow { flex: 0 0 36px; }
.groups { flex: 1; min-width: 0; display: flex; gap: 22px; }
.groups .zone { flex: 1 1 0; min-width: 0; padding: 18px 10px 10px; }
.procs { display: flex; gap: 8px; }
.proc { flex: 1 1 0; min-width: 0; text-align: left; cursor: pointer; color: var(--ink); background: var(--bg); border: 1px solid var(--input-line); border-radius: 4px; padding: 8px 10px; min-height: 44px; }
.proc b { display: block; font-weight: 500; font-size: 13px; }
.proc span { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.proc.down { border-color: var(--ink); }
.proc.down span { color: var(--ink); }
.note { margin-top: 18px; font-size: 12px; color: var(--muted); }
.code { margin-top: 16px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.code p { padding: 5px 12px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.code pre { margin: 0; padding: 12px; font-size: 12px; line-height: 1.65; overflow-x: auto; white-space: pre; tab-size: 2; }
.flow-grid { display: grid; grid-template-rows: auto; min-width: 640px; padding: 14px 10px; box-sizing: border-box; }
.flow-grid.vert { min-width: 0; grid-template-columns: minmax(0, 1fr); padding: 14px 10px; }
.flow-grid .zone { margin: -10px; pointer-events: none; }
.node { position: relative; text-align: left; cursor: pointer; color: var(--ink); background: var(--bg); border: 1px solid var(--input-line); box-shadow: inset 0 0 0 2px transparent; border-radius: 4px; padding: 8px 12px; min-height: 44px; }
.node.sel { box-shadow: inset 0 0 0 2px var(--sel-ring); }
.node.ring { box-shadow: inset 0 0 0 2px var(--ink); }
.node.filled { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.node.pulse { animation: breathe 1.2s ease-in-out infinite; }
.node b { display: block; font-weight: 500; font-size: 14px; }
.node .sub { display: block; font-family: var(--mono); font-size: 11px; opacity: .8; }
.node .status { display: block; font-family: var(--mono); font-size: 11px; margin-top: 6px; }
.chips, .bars { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.chips span { font-family: var(--mono); font-size: 10px; padding: 1px 6px; border: 1px solid currentColor; border-radius: 3px; opacity: .7; }
.bars span { width: 10px; height: 10px; border-radius: 2px; border: 1px solid currentColor; background: currentColor; box-sizing: border-box; }
.bars span.off { background: transparent; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
.run { font-weight: 500; font-size: 14px; cursor: pointer; min-height: 44px; padding: 0 20px; border-radius: 4px; background: var(--btn-bg); color: var(--btn-fg); border: 0; }
.run:disabled { opacity: .5; cursor: default; }
.ctl { font-family: var(--mono); font-size: 12px; min-height: 44px; padding: 0 14px; border-radius: 4px; cursor: pointer; background: transparent; color: var(--ink); border: 1px solid var(--input-line); }
.ctl[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.ctl-label { font-size: 12px; color: var(--muted); margin-left: 6px; }
.detail { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.detail .mono:first-child { margin-bottom: 6px; font-size: 12px; color: var(--accent); }
.detail > p:nth-child(2) { max-width: 620px; color: var(--muted); }

/* Ecosystem */
.eco-label { margin-top: clamp(48px, 6vw, 80px); font-size: 12px; color: var(--accent); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 16px; border-bottom: 1px solid var(--line); }
.tab { font-family: var(--mono); font-size: 12px; min-height: 34px; padding: 0; margin-bottom: -1px; cursor: pointer; background: transparent; border: 0; border-bottom: 1px solid transparent; color: var(--muted); }
.tab:hover { opacity: .75; }
.tab[aria-selected="true"] { color: var(--on); border-bottom-color: var(--on); }
.eco { margin-top: 20px; }
.tool { flex: 1 1 260px; min-width: 0; background: var(--bg); padding: 20px 20px 24px; box-sizing: border-box; }
.tool h3 { margin-bottom: 8px; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.tool p { font-size: 13px; line-height: 1.55; color: var(--muted); }

/* Phones */
@media (max-width: 640px) {
  .nav header { gap: 10px 12px; }
  .nav nav { gap: 8px 12px; }
  .brand { gap: 10px; }
}
@media (max-width: 640px) {
  .numbers .wrap { padding: 0; }
  .numbers .wrap > div { flex-basis: 100%; border-left: 0; border-right: 0 !important; border-top: 1px solid var(--line); padding: 18px var(--gutter); }
  .numbers .wrap > div:first-child { border-top: 0; }
  .steps { max-width: none; }
  .step .cat { display: none; }
  .panel { border: 0; border-radius: 0; }
  .panel-inner { padding: 0; }
  .diagram { padding: 16px 12px; }
  .scroll-x { overflow-x: visible; }
  .tree { flex-direction: column; align-items: stretch; min-width: 0; gap: 0; padding: 4px 0; }
  .tree > .arrow { flex: 0 0 34px; flex-direction: column; align-self: center; }
  .tree > .arrow > span:first-child { width: 2px; height: auto; }
  .tree > .arrow > span:last-child { border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 0; border-top: 7px solid var(--input-line); }
  .root-node { align-self: center; text-align: center; }
  .groups { flex-direction: column; gap: 22px; }
  .controls .run { flex: 1 1 100%; }
  .principle h3 { flex-basis: 100%; }
  .contact .wrap { gap: 40px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* Burger menu */
.burger { display: none; position: relative; width: 40px; height: 40px; padding: 0; margin-right: -8px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform .25s ease, opacity .2s ease; }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19.25px; }
.burger span:nth-child(3) { top: 24.5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }
@media (max-width: 900px) {
  .burger { display: inline-block; }
  .nav nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 16px; font-size: 14px; }
  .nav.open nav { display: flex; animation: rise .3s cubic-bezier(.2,.7,.2,1) both; }
  .nav nav .nav-link { min-height: 48px; border-bottom: 1px solid var(--line); opacity: .85; }
  .nav nav .theme { align-self: flex-start; margin-top: 16px; }
  .nav nav .theme button { width: 36px; height: 32px; }
  .nav nav .btn-outline { margin-top: 12px; min-height: 44px; font-size: 13px; }
}
.nav.open { background: var(--bg); }

/* Client carousel */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.clients { margin-top: clamp(48px, 6vw, 72px); }
.clients-label { margin-bottom: 18px; font-size: 11px; color: var(--muted); }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent); }
.marquee-track { flex: 0 0 auto; display: flex; align-items: center; gap: clamp(40px, 6vw, 72px); margin: 0; padding: 0 clamp(20px, 3vw, 36px); list-style: none; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: 0 0 auto; font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; color: var(--muted); opacity: .7; transition: opacity .25s; }
.marquee-track li:hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; row-gap: 12px; padding: 0; }
  .marquee-track[aria-hidden="true"] { display: none; }
}
.marquee-track img { display: block; width: 112px; height: 35px; object-fit: contain; filter: var(--logo-filter); opacity: .6; transition: opacity .25s; }
.marquee-track li:hover img { opacity: .9; }
:root { --logo-filter: grayscale(1) brightness(0) invert(.17); }
:root[data-theme="dark"] { --logo-filter: grayscale(1) brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --logo-filter: grayscale(1) brightness(0) invert(1); } }
.marquee-track a { display: block; padding: 4px 0; border-radius: 3px; }
.marquee-track a:hover img, .marquee-track a:focus-visible img { opacity: .95; }
.marquee:focus-within .marquee-track { animation-play-state: paused; }
/* Optical balancing: Truckstop's strokes are thin, Tellus is dense */
.marquee-track .logo-truckstop { opacity: .85; }
.marquee-track .logo-tellus { width: 100px; }
.marquee-track .logo-static { display: block; padding: 4px 0; }
.marquee-track .logo-splitpass { width: 32px; height: 32px; }
.marquee-track .logo-itsfound { width: 104px; }
.marquee-track .logo-starfish { width: 34px; height: 33px; }
/* Company name on hover/focus */
.clients-label { margin-bottom: 0; }
.marquee { padding-top: 30px; }
.marquee-track li { position: relative; }
.marquee-track li::after { content: attr(data-name); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translate(-50%, 4px); padding: 3px 8px; border-radius: 3px; background: var(--btn-bg); color: var(--btn-fg); font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0; line-height: 1.4; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.marquee-track li:hover::after, .marquee-track li:focus-within::after { opacity: 1; transform: translate(-50%, 0); }
.marquee { padding-bottom: 6px; }
.marquee-track .logo-legends { --logo-filter: grayscale(1) contrast(1.4); }
:root[data-theme="dark"] .marquee-track .logo-legends { --logo-filter: grayscale(1) invert(1) contrast(1.2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .marquee-track .logo-legends { --logo-filter: grayscale(1) invert(1) contrast(1.2); } }
.marquee-track .logo-nutripad { width: 98px; }

/* AI workflow */
.aiflow { margin-top: clamp(32px, 5vw, 56px); }
.aiflow-row > li:not(.aiflow-arrow) { flex: 1 1 0; min-width: 0; display: flex; }
.aiflow-row > li > .aiflow-node { flex: 1 1 auto; width: 100%; }
.aiflow-row { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.aiflow-node { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--input-line); border-radius: 4px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.aiflow-node .mono { font-size: 10px; font-weight: 400; color: var(--muted); }
.aiflow-node.active { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.aiflow-node.active .mono { color: inherit; opacity: .7; }
.aiflow-arrow { flex: 0 0 22px; display: flex; align-items: center; }
.aiflow-arrow span:first-child { flex: 1; height: 2px; background: var(--input-line); }
.aiflow-arrow span:last-child { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid var(--input-line); }
.aiflow-loop { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--input-line); font-size: 11px; color: var(--muted); }
.aiflow-loop span { font-size: 13px; }
.aisteps { margin-top: clamp(24px, 4vw, 40px); }
.aistep { flex: 1 1 240px; min-width: 0; background: var(--bg); padding: 22px; box-sizing: border-box; display: flex; flex-direction: column; }
.aistep .num { margin-bottom: 24px; font-size: 12px; color: var(--accent); }
.aistep h3 { margin-bottom: 10px; font-size: 16px; font-weight: 500; letter-spacing: -0.02em; }
.aistep p { color: var(--muted); }
.aistep .tags { margin-top: 18px; }
.aistep.active { background: var(--btn-bg); color: var(--btn-fg); }
.aistep.active p, .aistep.active .num { color: inherit; opacity: .8; }
.tag-link { transition: color .2s, border-color .2s; }
.tag-link:hover { color: var(--ink); border-color: var(--line-strong); }
.stackline { margin-top: clamp(28px, 4vw, 40px); padding-top: 18px; border-top: 1px solid var(--line); max-width: 720px; color: var(--muted); }
@media (max-width: 900px) {
  .aiflow-row { flex-direction: column; align-items: stretch; }
  .aiflow-node { flex-direction: row; align-items: baseline; gap: 10px; }
  .aiflow-arrow { flex: 0 0 20px; flex-direction: column; align-self: center; }
  .aiflow-arrow span:first-child { width: 2px; height: auto; }
  .aiflow-arrow span:last-child { border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 0; border-top: 7px solid var(--input-line); }
}
.inline-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--input-line); text-underline-offset: 3px; }
.inline-link:hover { text-decoration-color: currentColor; }
.aistep.active .inline-link { color: inherit; }
@media (max-width: 640px) { .aiflow { display: none; } .aisteps { margin-top: 28px; } }
.inline-link { white-space: nowrap; }
.aiflow-node { font: inherit; font-size: 14px; font-weight: 500; text-align: left; color: var(--ink); background: transparent; cursor: pointer; }
.aiflow-node:not(.active):hover { border-color: var(--line-strong); }
.aistep { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.who { display: inline-flex; gap: 3px; align-items: center; }
.who-ico { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.node-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.node-head .who { opacity: .75; }
.aistep .num { display: flex; align-items: center; justify-content: space-between; }
.aistep .num .who-ico { width: 15px; height: 15px; }
.aiflow-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--input-line); font-size: 11px; color: var(--muted); }
.aiflow-foot .legend { display: inline-flex; align-items: center; gap: 5px; }
.aiflow-foot .legend .sep { width: 10px; }

.iex { width: min(680px, 92vw); max-height: min(580px, 88vh); padding: 0; border: 1px solid var(--term-border); border-radius: 6px; background: var(--term-bg); color: var(--term-ink); box-shadow: 0 24px 60px var(--term-shadow); }
.iex[open] { display: flex; flex-direction: column; }
.iex::backdrop { background: var(--term-back); }
.iex-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 11px; color: var(--term-dim); border-bottom: 1px solid var(--term-line); }
.iex-x { font: inherit; color: inherit; background: none; border: 1px solid var(--term-line); border-radius: 3px; padding: 2px 6px; cursor: pointer; }
.iex-out { flex: 1 1 auto; min-height: 140px; overflow-y: auto; padding: 12px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.iex-out .cmd { color: var(--term-cmd); }
.iex-out .err { color: var(--term-err); }
.iex-out .dim { color: var(--term-dim); }
.iex-line { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--term-line); font-size: 13px; }
.iex-line label { color: var(--term-cmd); white-space: nowrap; }
.iex-line input { flex: 1 1 auto; min-width: 0; font: inherit; color: inherit; background: none; border: 0; outline: 0; caret-color: var(--term-ink); }
.keyhint { display: inline-flex; align-items: center; gap: 6px; padding: 0; font: inherit; color: var(--muted); background: none; border: 0; cursor: pointer; opacity: .8; }
.keyhint:hover, .keyhint:focus-visible { color: var(--ink); opacity: 1; }
.keyhint kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; font: inherit; font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; }
@media (max-width: 900px), (hover: none) { .keyhint { display: none; } }
.g { color: var(--green); }
.band .g, .avail-head #tz-now-text { color: var(--band-green); }
.kicker .cursor { background: var(--green); }
.keyhint kbd { color: var(--green); }
.service .num { color: var(--green); }
.tz-row.me > span:first-child { color: var(--band-on); }
.compose { grid-area: compose; display: flex; flex-direction: column; min-width: 0; background: color-mix(in srgb, var(--band-ink) 5%, var(--band-bg)); border: 1px solid var(--band-line); border-radius: 6px; overflow: hidden; }
.compose-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 16px; font-size: 11px; color: var(--band-muted); border-bottom: 1px solid var(--band-line); }
.compose-row { display: flex; align-items: center; gap: 0; padding: 0 16px; min-height: 44px; border-bottom: 1px solid var(--band-line); }
.compose-label { flex: 0 0 64px; font-size: 11px; color: var(--band-green); }
.compose-to { padding-left: 12px; color: var(--band-ink); font-size: 14px; text-decoration: none; }
.compose-to:hover, .compose-to:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.compose input, .compose textarea { font: inherit; color: var(--band-ink); background: transparent; border: 0; outline: 0; }
.compose input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 12px; font-size: 14px; }
.compose textarea { display: block; flex: 1 1 auto; width: 100%; box-sizing: border-box; min-height: 120px; padding: 16px; font-size: 15px; line-height: 1.55; resize: vertical; }
.compose input::placeholder, .compose textarea::placeholder { color: var(--band-muted); opacity: .8; }
.compose input:focus-visible, .compose textarea:focus-visible { outline: 2px solid var(--band-on); outline-offset: -2px; }
.compose-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--band-line); }
.compose-send, .compose-copy { font: inherit; font-size: 13px; font-weight: 500; min-height: 40px; padding: 0 16px; border-radius: 4px; cursor: pointer; }
.compose-send { color: var(--band-bg); background: var(--band-ink); border: 1px solid var(--band-ink); }
.compose-copy { color: var(--band-ink); background: transparent; border: 1px solid var(--band-line); }
.compose-send:hover, .compose-copy:hover { opacity: .85; }
.compose-send:focus-visible, .compose-copy:focus-visible { outline: 2px solid var(--band-on); outline-offset: 2px; }
.compose-status { flex: 1 1 200px; font-size: 11px; color: var(--band-muted); }
.compose-status.err { color: #e06c75; }
.step > .mono:first-child { color: var(--green); opacity: 1; }
.aiflow-node:not(.active) .node-head > .mono { color: var(--green); }
.aistep:not(.active) .num { color: var(--green); }
.aistep:not(.active) .num .who { color: var(--accent); }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: 1fr; grid-template-areas: "head" "steps" "map" "compose" "avail"; gap: 40px; } .map-frame { min-height: 260px; aspect-ratio: 4 / 3; flex: 0 0 auto; } }
.compose { transition: border-color .2s; }
.compose:focus-within { border-color: var(--band-muted); }
.steps-next { list-style: none; margin: 0; padding: 0; }
.steps-next li { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--band-line); }
.steps-next .n { flex: 0 0 28px; font-size: 12px; color: var(--band-green); }
.steps-next b { margin-right: 10px; font-size: 15px; font-weight: 500; color: var(--band-ink); }
.steps-next .d { font-size: 14px; color: var(--band-muted); }
.nda { margin: 14px 0 0; font-size: 11px; color: var(--band-muted); }
.compose-topic { align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
.compose-topic .compose-label { padding-top: 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 12px; }
.chip { font: inherit; font-size: 12px; min-height: 30px; padding: 0 10px; color: var(--band-muted); background: transparent; border: 1px solid var(--band-line); border-radius: 4px; cursor: pointer; transition: color .2s, border-color .2s; }
.chip:hover { color: var(--band-ink); border-color: var(--band-muted); }
.chip[aria-pressed="true"] { color: var(--band-on); border-color: var(--band-on); }
.chip:focus-visible { outline: 2px solid var(--band-on); outline-offset: 2px; }
.iex-banner { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px 28px; margin-bottom: 8px; white-space: normal; }
.iex-logo { margin: 0; font: inherit; font-size: 11px; line-height: 12px; letter-spacing: 0; color: var(--term-cmd); white-space: pre; }
.iex-info { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; padding-top: 6px; }
.iex-info .iex-title { font-weight: 700; color: var(--term-cmd); margin-bottom: 4px; }
.iex-info .dim { color: var(--term-dim); white-space: pre; }
.tz-tip { position: absolute; z-index: 5; transform: translate(-50%, -100%); padding: 5px 9px; font-size: 11px; white-space: nowrap; color: var(--band-bg); background: var(--band-ink); border-radius: 4px; pointer-events: none; }
.tz-tip[hidden] { display: none; }
.tz-cells i[data-h] { cursor: default; }
.iex-info .iex-note { margin-top: auto; padding-top: 12px; font-size: 12px; line-height: 1.5; color: var(--term-dim); white-space: normal; }
