/* Cogless AI — site styles. Palette from the current owner site; see docs/DESIGN.md.
   Red marks action and current selection only. */
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-latin-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Questrial";
  src: url("../fonts/Questrial-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --field: #f4f4f4;
  --paper: #ffffff;
  --line: #d8d8d8;
  --line-soft: #e6e6e6;
  --ink: #0e0e0e;
  --ink-2: #232322;
  --muted: #5a5f66;
  --red: #d32f2f;
  --red-ink: #b42222;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --brand: "Questrial", "Instrument Sans", Arial, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --header: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
  scrollbar-width: thin;
  scrollbar-color: #b9b9b9 transparent;
}
body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 400 12.5px/1.2 var(--brand); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--ink); }
.eyebrow-tag { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--paper); }
.eyebrow-tag::before { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.h-section { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.04; letter-spacing: -0.028em; }
.lede { font-size: clamp(1.06rem, 1rem + .3vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.lede-lg { font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); line-height: 1.4; max-width: 30em; }
.prose { max-width: 40em; color: var(--ink-2); }
.direct-k { font: 400 12.5px/1.2 var(--brand); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* Buttons, chips, links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15.5px/1.1 var(--sans); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16.5px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-top: 4px;
  font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; align-self: start;
}
.link-arrow span { transition: transform .16s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.link-light { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); font-size: 15px; font-weight: 500;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(244 244 244 / .92); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand .mark { width: 42px; height: auto; flex: none; fill: currentColor; }
.wordmark { font: 400 17px/1 var(--brand); letter-spacing: .2em; white-space: nowrap; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-size: 15.5px; font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.menu-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; font-weight: 600; cursor: pointer;
}
.menu-lines, .menu-lines::before { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; }
.menu-lines { top: -2.5px; }
.menu-lines::before { content: ""; position: absolute; top: 5px; }
.menu {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border: 0; padding: 0 var(--pad) 32px;
  background: var(--field); color: var(--ink);
}
.menu[open] { display: flex; flex-direction: column; gap: 28px; }
.menu::backdrop { background: rgb(0 0 0 / .3); }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header); }
.menu-close {
  min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent;
  font-weight: 600; cursor: pointer;
}
.menu nav a {
  display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line);
  font-size: 1.6rem; font-weight: 500; text-decoration: none; letter-spacing: -0.02em;
}
.menu > .btn { align-self: flex-start; }
.menu-contact { color: var(--muted); line-height: 1.4; }
.menu-contact a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1024px) { .menu-btn { display: none; } }
@media (max-width: 1023px) {
  .js .nav, .js .header-cta { display: none; }
  .no-js .site-header { position: static; }
  .no-js .header-row { flex-wrap: wrap; padding-block: 8px; gap: 8px 20px; }
  .no-js .nav { margin-left: 0; width: 100%; }
  .no-js .nav ul { flex-wrap: wrap; }
  .no-js .nav a { padding: 0 10px 0 0; }
}

/* Sections */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4.5vw, 56px); max-width: 52rem; }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: end; gap: 18px 56px; }
.section-head.split > div { display: grid; gap: 18px; justify-items: start; }
.rule-base { height: 7px; background: linear-gradient(var(--ink) 0 3px, transparent 3px 6px, var(--ink) 6px 7px); }

/* Hero */
.hero { padding-top: clamp(32px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero-copy { display: grid; gap: 26px; justify-items: start; padding-bottom: clamp(36px, 5vw, 64px); }
.hero h1 { font-size: clamp(2.9rem, 1.2rem + 5.6vw, 6.4rem); line-height: .96; letter-spacing: -0.04em; max-width: 9.5ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-mark { display: flex; justify-content: flex-end; align-items: flex-end; padding-bottom: clamp(16px, 2vw, 28px); }
.horizon { height: 7px; background: linear-gradient(var(--ink) 0 3px, transparent 3px 6px, var(--ink) 6px 7px); transform-origin: left center; }
/* The line draws left to right once the logo has settled; a failsafe shows it if the script never runs. */
.js .horizon:not(.is-drawn) { transform: scaleX(0); animation: horizon-failsafe 0s linear 3.5s forwards; }
.js .horizon.is-drawn { transform: scaleX(1); transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
@keyframes horizon-failsafe { to { transform: scaleX(1); } }

/* Brand motion: the exact mark is the resting state. The animation layer shows
   only while it runs; a failsafe reveals the mark if the script never starts. */
.brand-motion { display: block; width: min(100%, 360px); height: auto; overflow: visible; fill: var(--ink); shape-rendering: geometricPrecision; }
.bm-anim { display: none; }
.brand-motion.is-animating .bm-anim { display: inline; }
.js .brand-motion:not(.is-done) .bm-final { opacity: 0; animation: bm-failsafe 0s linear 3s forwards; }
.js .brand-motion.is-animating .bm-final { animation: none; opacity: 0; }
@keyframes bm-failsafe { to { opacity: 1; } }
.bm-gear { transform-box: view-box; transform-origin: 565.5px 549.5px; will-change: transform; }
.bm-bars { transform-box: view-box; transform-origin: 566px 727px; }

/* Comparison (registered reveal) */
.compare { background: var(--field); padding-top: clamp(56px, 7vw, 96px); }
.cmp { display: grid; gap: 14px; }
.cmp-stage {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
}
.cmp-view { position: relative; width: 100%; }
.cmp-tall { display: none; }
.cmp-layer { position: absolute; inset: 0; background: var(--paper);
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px; }
.cmp-layer > svg { width: 100%; height: 100%; display: block; }
.cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; border-left: 2px solid var(--ink); pointer-events: none; }
.cmp-knob {
  position: absolute; top: 50%; left: -23px; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center; box-shadow: 0 2px 10px rgb(0 0 0 / .18);
}
.cmp-knob svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cmp-stage:has(.cmp-range:focus-visible) .cmp-knob { outline: 3px solid var(--ink); outline-offset: 3px; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; }
.cmp-tag {
  position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff;
  font: 400 12px/1 var(--brand); letter-spacing: .16em; text-transform: uppercase; transition: opacity .2s;
}
.cmp-tag-before { left: 14px; }
.cmp-tag-after { right: 14px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.cmp.show-after-only .cmp-tag-before, .cmp.show-before-only .cmp-tag-after { opacity: 0; }
.cmp-ends { display: flex; justify-content: space-between; gap: 12px; }
.cmp-end {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper);
  font-weight: 600; font-size: 15px; cursor: pointer;
}
.cmp-end:hover { border-color: var(--ink); }
.no-js .cmp-ends { display: none; }
.changes { margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--ink); }
.changes li {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr) 2rem minmax(0, 1fr); gap: 8px 20px; align-items: baseline;
  padding-block: 16px; border-bottom: 1px solid var(--line);
}
.ch-name { font: 400 12.5px/1.2 var(--brand); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ch-today { color: var(--muted); }
.ch-int { font-weight: 600; }

/* Diagram drawing */
.d-svg { font-family: var(--sans); }
.d-node rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.d-node text { fill: var(--ink); font-weight: 600; }
.d-record path, .d-record ellipse { fill: var(--paper); stroke: var(--muted); stroke-width: 1.3; }
.d-arc { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 5; }
.d-end { fill: var(--ink); }
.d-tag rect { fill: var(--field); stroke: var(--ink); stroke-width: 1; }
.d-tag text { fill: var(--ink); font-weight: 500; }
.d-person circle, .d-person path { fill: var(--muted); }
.d-note { fill: var(--muted); }
.d-band rect { fill: var(--field); stroke: var(--line); }
.d-band-label { fill: var(--muted); font-family: var(--brand); letter-spacing: .14em; }
.d-chip rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.d-chip text { fill: var(--ink); font-weight: 500; }
.d-dot { fill: var(--red); }
.d-link { stroke: var(--ink); stroke-width: 1.5; }
.d-joint { fill: var(--ink); }
.d-bus rect { fill: var(--ink); }
.d-bus text { fill: #fff; font-weight: 600; }
.d-ops rect { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 2 4; }
.d-ops text { fill: var(--ink-2); font-weight: 500; }

/* Stack: passage with contours + constructed board */
.stack { background: var(--paper); }
.stack-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.stack-text { display: grid; gap: 28px; align-content: start; }
.stack-passage { font-size: clamp(1.2rem, 1.02rem + .7vw, 1.55rem); line-height: 1.55; letter-spacing: -0.01em; color: var(--ink-2); overflow-wrap: anywhere; }
.term { cursor: pointer; }
.js .term { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.js .term.is-selected { text-decoration-color: transparent; color: var(--ink); }
.layer-pick .chips { gap: 6px; }
.layer-pick .chip span { font-size: 14px; padding: 0 14px; }
.no-js .layer-pick { display: none; }
.layer-detail { border-top: 1px solid var(--ink); }
.ld { display: grid; gap: 12px; padding-top: 18px; }
.no-js .ld + .ld { margin-top: 18px; border-top: 1px solid var(--line); }
.ld h3 { font-size: 1.35rem; }
.ld p { color: var(--ink-2); }
.ld dl { display: grid; gap: 8px; }
.ld dl > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px; align-items: baseline; }
.ld dt { font: 400 12px/1.2 var(--brand); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.stack-board {
  --p: 1; position: relative; display: grid; gap: 10px; padding: 18px; border-radius: var(--radius);
  background: var(--field); border: 1px solid var(--line); container-type: inline-size;
}
.sb-layer {
  position: relative; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 10px; border-radius: 10px; cursor: pointer;
  background: rgb(255 255 255 / calc(var(--p) * 0.9)); border: 1px solid rgb(14 14 14 / calc(var(--p) * 0.14));
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.sb-label { font: 400 11.5px/1.25 var(--brand); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: calc(.35 + var(--p) * .65); }
.sb-cells { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.sb-cell {
  display: grid; place-items: center; min-height: 52px; padding: 6px 8px; border-radius: 8px; text-align: center;
  font-size: 13.5px; font-weight: 600; line-height: 1.2; background: var(--paper); color: var(--ink);
  border: 1.5px dashed #a9a9a9;
  transform: translate(calc(var(--dx) * var(--spread, 1) * (1 - var(--p))), calc(var(--dy) * var(--spread, 1) * (1 - var(--p)))) rotate(calc(var(--rot) * (1 - var(--p))));
  will-change: transform;
}
.stack-board.is-built .sb-cell { border-style: solid; border-color: var(--ink); transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.stack-board.is-built .sb-layer.is-selected { border-color: var(--red); box-shadow: inset 4px 0 0 var(--red); }
.stack-board.is-built .sb-layer.is-selected .sb-cell { background: var(--ink); color: #fff; border-color: var(--ink); }
.stack-board.is-built .sb-layer.is-selected .sb-label { color: var(--ink); }
.stack-board.is-built .sb-layer.is-linked .sb-cell { border-color: var(--ink); border-width: 2px; }
.stack-board:not(.is-built) .sb-layer { cursor: default; }
@container (max-width: 560px) {
  .sb-layer { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@container (max-width: 360px) {
  .sb-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Engagement rail */
.engagement { background: var(--field); padding-top: clamp(72px, 9vw, 128px); }
.rail-head { margin-bottom: clamp(24px, 3vw, 40px); }
.rail { padding-bottom: clamp(72px, 9vw, 128px); }
.rail-grid { display: grid; gap: 32px; }
.rail-stage { display: none; }
.rail-steps { display: none; }
.rail-panels { display: grid; border-top: 1px solid var(--ink); }
.rail-panel { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 6px 20px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.rail-panel > *:not(.rp-n) { grid-column: 2; }
.rp-n { font: 400 14px/1.6 var(--brand); letter-spacing: .14em; color: var(--muted); grid-row: span 4; }
.rail-panel h3 { font-size: 1.6rem; }
.rp-sum { font-size: 1.12rem; color: var(--ink-2); }
.rp-points { display: grid; gap: 6px; margin-top: 6px; }
.rp-points li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.rp-points li::before { content: ""; width: 6px; height: 6px; background: var(--ink); flex: none; transform: translateY(-2px); }
.rp-out { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-top: 10px; font-weight: 600; }

.rail.is-live { height: calc(var(--n) * 70vh + 100vh - var(--header)); padding-bottom: 0; }
.rail.is-live .rail-sticky { position: sticky; top: var(--header); height: calc(100vh - var(--header)); display: flex; align-items: center; }
.rail.is-live .rail-grid { width: 100%; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.rail.is-live .rail-stage { display: block; position: relative; height: min(62vh, 560px); perspective: 1500px; cursor: pointer; }
.rail-plane { position: absolute; left: 46%; top: 42%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(54deg) rotateZ(-34deg); }
.rail-card {
  --k: 0;
  position: absolute; left: -120px; top: -170px; width: 240px; height: 340px; padding: 22px 20px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  background: var(--paper); border-radius: 14px; border: 1px solid var(--line-soft);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .35), 0 2px 6px rgb(0 0 0 / .06);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.rail-card[data-i="1"] { --k: 1; } .rail-card[data-i="2"] { --k: 2; } .rail-card[data-i="3"] { --k: 3; }
.rail-card[data-i="4"] { --k: 4; } .rail-card[data-i="5"] { --k: 5; }
.rail.is-live .rail-card { transform: translate3d(calc((var(--k) - var(--a, 0)) * 110px), 0, calc((var(--k) - var(--a, 0)) * -2px)); }
.rail.is-live .rail-card.is-active { transform: translate3d(0, 150px, 30px); box-shadow: 0 40px 70px -30px rgb(0 0 0 / .45), 0 2px 6px rgb(0 0 0 / .08); }
.rc-n { font: 400 14px/1 var(--brand); letter-spacing: .14em; color: var(--muted); }
.rc-name { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.rc-sum { font-size: 14px; color: var(--muted); line-height: 1.35; }
.rail-card.is-active .rc-n { color: var(--red); }
.rail-card .rc-sum { opacity: 0; transition: opacity .3s var(--ease); }
.rail-card.is-active .rc-sum { opacity: 1; }
.rail.is-live .rail-steps { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.rail-step {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); font-weight: 600; cursor: pointer;
}
.rail-step:hover { border-color: var(--ink); }
.rail-step[aria-current="step"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.rail-step[aria-current="step"] .rs-n { color: #ff9a9a; }
.rs-n { font: 400 12px/1 var(--brand); letter-spacing: .12em; color: var(--muted); }
.rail.is-live .rail-panel { grid-area: 1 / 1; border-bottom: 0; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
.rail.is-live .rail-panel.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }

/* About band */
.about-band { background: var(--ink); color: #fff; padding-block: clamp(72px, 9vw, 128px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-copy { display: grid; gap: 22px; justify-items: start; }
.about-band .eyebrow { color: #b9b9b9; }
.about-band .eyebrow::before { background: #fff; }
.about-band .lede { color: #fff; }
.about-copy > p:not(.eyebrow):not(.lede) { color: #d4d4d4; max-width: 36em; }
.about-band .industries { color: #d4d4d4; }
.about-band .direct-k { color: #b9b9b9; }
.about-art { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--ink-2); }
.about-art img { width: 100%; height: 100%; object-fit: cover; }
.about-band :focus-visible { outline-color: #fff; }
.industries { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }

/* Contact / request */
.contact { background: var(--field); }
.request { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.req-intro { display: grid; gap: 22px; justify-items: start; }
.contact-page .req-intro h1 { font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4.2rem); line-height: 1; letter-spacing: -0.032em; }
.direct { display: grid; gap: 10px; margin-top: 10px; width: 100%; max-width: 26rem; }
.direct-h { font-weight: 600; }
.direct ul { border-top: 1px solid var(--line); }
.direct li { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); }
.direct a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.direct a:hover { text-decoration: underline; text-underline-offset: 5px; }
.req-form {
  display: grid; gap: 22px; padding: clamp(22px, 3.4vw, 44px); border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line-soft);
}
.req-embed { padding: clamp(8px, 1.4vw, 16px); overflow: hidden; }
.req-embed [data-fillout-id] { max-width: 100%; }
.req-embed iframe { display: block; width: 100% !important; border: 0; border-radius: 8px; }
.embed-fallback { padding: 10px 8px 4px; font-size: 14.5px; color: var(--muted); }
.embed-fallback a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
.req-embed.is-failed [data-fillout-id] { display: none; }
.req-embed.is-failed .embed-fallback { font-size: 16px; color: var(--ink-2); padding: 18px 12px; }

/* About page */
.page-hero { padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6vw, 88px); }
.page-hero .wrap { display: grid; gap: 24px; justify-items: start; }
.page-hero h1 { font-size: clamp(2.8rem, 1.4rem + 5vw, 6rem); line-height: .98; letter-spacing: -0.035em; }
.name-band { background: var(--red); color: #fff; padding-block: clamp(64px, 8vw, 112px); }
.name-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.name-mark .mark { width: min(100%, 300px); fill: var(--ink); }
.name-band .h-section { margin-bottom: 18px; }
.name-band .lede { color: #fff; max-width: 32em; }
.name-band :focus-visible { outline-color: #fff; }
.about-services .section-head { margin-bottom: 28px; }
.mini-services { margin-bottom: 28px; }
.mini-services li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px 32px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.mini-services a { font-size: 1.35rem; font-weight: 500; text-decoration: none; letter-spacing: -0.015em; }
.mini-services a:hover { text-decoration: underline; text-underline-offset: 6px; }
.mini-services span { color: var(--ink-2); }
.cta-band { background: var(--paper); padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }

/* Legal */
.legal { background: var(--paper); }
.legal-wrap { max-width: 820px; display: grid; gap: 14px; }
.legal h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); letter-spacing: -0.03em; margin-bottom: 18px; }
.legal h2 { font-size: 1.3rem; margin-top: 22px; }
.legal p { color: var(--ink-2); overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--paper); padding-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: grid; gap: 16px; align-content: start; justify-items: start; }
.footer-tag { font-size: 1.2rem; letter-spacing: -0.01em; }
.footer-h { font: 400 12.5px/1.2 var(--brand); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.site-footer li { min-height: 40px; display: flex; align-items: center; }
.site-footer li a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer li a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-giant {
  font: 400 clamp(3rem, 14.2vw, 15.5rem)/.82 var(--brand); letter-spacing: -0.01em; color: #e9e9e9;
  white-space: nowrap; margin-top: clamp(40px, 6vw, 80px); user-select: none;
}
.footer-base { padding-block: 22px 28px; color: var(--muted); font-size: 14px; }
.not-found { min-height: 50vh; }

/* Responsive */
@media (max-width: 1023px) {
  .hero-grid, .about-grid, .request, .name-grid, .stack-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { align-items: start; }
  .hero-mark { justify-content: flex-start; order: -1; }
  .brand-motion { width: min(42vw, 220px); }
  .hero-copy { padding-bottom: 40px; }
  .section-head.split { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .about-art { aspect-ratio: 16 / 10; }
  .name-mark .mark { width: 180px; }
}
@media (max-width: 719px) {
  .cmp-wide { display: none; }
  .cmp-tall { display: block; }
  .changes li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ch-arrow { display: none; }
  .ch-today::after { content: " →"; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wordmark { font-size: 15px; letter-spacing: .17em; }
  .brand .mark { width: 40px; }
  .actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mini-services li { grid-template-columns: minmax(0, 1fr); }
  .direct li { flex-wrap: wrap; gap: 0 16px; }
  .sb-cell { min-height: 44px; font-size: 13px; }
  .stack-board { padding: 10px; --spread: .4; }
  .ld dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rail-panel { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 6px 12px; }
}
@media (max-width: 359px) {
  .wordmark { font-size: 13.5px; letter-spacing: .14em; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  .js .brand-motion .bm-final { opacity: 1; }
}
