/* ============================================================
   AutomatX Labs — calibrated precision, cinematic dark
   One-page site. Type identity self-hosted (SIL OFL). No runtime
   external requests. Grounded in the AutomatX Labs knowledge base.
   ============================================================ */

/* ---- Self-hosted fonts (SIL OFL 1.1 — see fonts/OFL-*.txt) ---- */
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('fonts/hanken-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('fonts/hanken-grotesk-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('fonts/jetbrains-mono-latin-600-normal.woff2') format('woff2');
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ---- Tokens ---- */
:root {
  /* canvas — cool near-black */
  --bg:        #090b0e;
  --bg-1:      #0d1014;
  --bg-2:      #11151b;
  --bg-3:      #161b22;

  /* ink — all three meet WCAG AA (>=4.5:1) on the dark surfaces */
  --text:      #e7eaef;
  --text-dim:  #99a2ae;
  --text-faint:#7d8794;

  /* hairlines */
  --line:        rgba(159, 178, 199, 0.10);
  --line-soft:   rgba(159, 178, 199, 0.06);
  --line-strong: rgba(159, 178, 199, 0.18);

  /* accent — steel cyan */
  --accent:      #3aa0c8;
  --accent-ink:  #0a0c0f;          /* text on solid accent */
  --accent-soft: color-mix(in oklab, var(--accent) 14%, transparent);
  --accent-line: color-mix(in oklab, var(--accent) 38%, transparent);
  --accent-glow: color-mix(in oklab, var(--accent) 22%, transparent);

  /* type */
  --sans: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  /* engineering grid motif */
  --grid-opacity: 1;
  --grid-size: 64px;
  --grid-line: rgba(159, 178, 199, 0.07);
  --grid-tick: rgba(159, 178, 199, 0.20);

  /* rhythm */
  --pad: clamp(20px, 5vw, 56px);
  --maxw: 1240px;
  --section-y: clamp(80px, 11vw, 168px);
}

/* ---- Base ---- */
html, body { background: var(--bg); }
body {
  font-family: var(--sans);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent-glow); color: #fff; }

/* Visible, accessible focus ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Skip link for keyboard/AT users */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 14px;
  transition: top 0.2s ease;
}
.skip:focus { top: 12px; }

/* Engineering grid behind everything. Two stacked layers:
   (1) a fine ruling grid, (2) brighter crosshair ticks at major intersections. */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grid-opacity);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
}
body::before {
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}
body::after {
  background-image:
    radial-gradient(circle, var(--grid-tick) 1.4px, transparent 1.6px);
  background-size: calc(var(--grid-size) * 4) calc(var(--grid-size) * 4);
  background-position: calc(var(--grid-size) * -0.5) calc(var(--grid-size) * -0.5);
  opacity: calc(var(--grid-opacity) * 0.9);
}

/* ---- Layout primitives ---- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 1; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 100px); }
/* keep anchored sections clear of the sticky nav */
[id] { scroll-margin-top: 84px; }

/* shared eyebrow: 01 / Capabilities  with a tick rule */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
}
.eyebrow .idx { color: var(--accent); }
.eyebrow .label { color: var(--text-dim); }
.eyebrow .rule {
  flex: 1;
  height: 1px;
  background:
    repeating-linear-gradient(to right, var(--line-strong) 0 1px, transparent 1px 9px);
  -webkit-mask-image: linear-gradient(to right, #000, transparent);
          mask-image: linear-gradient(to right, #000, transparent);
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; }
.balance { text-wrap: balance; }
.pretty  { text-wrap: pretty; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav[data-scrolled="1"] { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 15px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 9px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.brand .mark { display: inline-flex; align-items: baseline; }
.brand .x { color: var(--accent); }
.brand .labs {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  transform: translateY(-1px);
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__cta { display: flex; align-items: center; gap: 16px; }

/* ---- Buttons ---- */
.btn {
  --bh: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: var(--bh);
  padding: 0 20px;
  border-radius: 7px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--accent-line), 0 8px 30px -12px var(--accent-glow);
}
.btn--primary:hover { box-shadow: 0 0 0 1px var(--accent), 0 10px 34px -10px var(--accent-glow); filter: brightness(1.06); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
/* compact CTA label swaps in on very narrow viewports */
.btn__short { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(56px, 9vw, 116px); padding-bottom: clamp(64px, 9vw, 128px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.88fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-1);
  margin-bottom: 30px;
}
.hero__kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 82px);
  letter-spacing: -0.032em;
  line-height: 0.98;
}
.hero h1 .accent { color: var(--accent); }
.hero__sub {
  margin-top: 30px;
  max-width: 40ch;
  font-size: clamp(16.5px, 1.5vw, 19.5px);
  line-height: 1.62;
  color: var(--text-dim);
}
.hero__sub strong { color: var(--text); font-weight: 500; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); }

/* hero system spine — the thesis, drawn as a layered stack */
.spine {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, var(--bg-1), var(--bg));
  padding: 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), 0 30px 80px -50px #000;
}
.spine__cap {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint); padding-bottom: 18px; margin-bottom: 4px;
  border-bottom: 1px dashed var(--line);
}
.spine__cap b { color: var(--text-dim); font-weight: 500; }
.layers { position: relative; }
.layer {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 4px;
}
.layer + .layer { border-top: 1px solid var(--line-soft); }
.layer__node {
  position: relative;
  z-index: 1;
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: var(--accent-soft);
  font-family: var(--mono); font-size: 12px; color: var(--accent);
}
/* connecting spine line through nodes */
.layers::before {
  content: "";
  position: absolute;
  left: 39px; top: 30px; bottom: 30px;
  width: 1px;
  background: var(--accent-line);
  opacity: 0.7;
  z-index: 0;
}
.layer__title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.layer__body p { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.01em; margin-top: 3px; }
.spine__foot {
  margin-top: 6px; padding-top: 16px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); letter-spacing: 0.02em;
}
.spine__foot .tick { color: var(--accent); }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.caps__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 32px; align-items: end; margin-bottom: 52px; }
.caps__head h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.028em; }
.caps__head p { color: var(--text-dim); font-size: 16.5px; max-width: 46ch; }
.caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.cap {
  position: relative;
  background: var(--bg);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: background 0.25s ease;
}
.cap:hover { background: var(--bg-1); }
.cap::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 0 var(--accent);
  transition: box-shadow 0.25s ease;
}
.cap:hover::after { box-shadow: inset 0 -2px 0 0 var(--accent); }
.cap__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.cap__idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent); }
.cap__glyph {
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: color 0.25s, border-color 0.25s;
}
.cap:hover .cap__glyph { color: var(--accent); border-color: var(--accent-line); }
.cap h3 { font-size: 21px; letter-spacing: -0.018em; margin-bottom: 12px; }
.cap__desc { color: var(--text-dim); font-size: 15px; line-height: 1.58; margin-bottom: 22px; }
.cap__list { margin-top: auto; display: flex; flex-direction: column; gap: 0; border-top: 1px dashed var(--line); }
.cap__list li {
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--text-faint);
  padding: 9px 0;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px dashed var(--line-soft);
}
.cap__list li:last-child { border-bottom: 0; }
.cap__list li::before { content: ""; width: 4px; height: 4px; flex: none; background: var(--accent); transform: rotate(45deg); opacity: 0.8; }

/* ============================================================
   WHY — seams
   ============================================================ */
.why { background: linear-gradient(180deg, var(--bg), var(--bg-1) 50%, var(--bg)); }
.why__inner { max-width: 1000px; margin-inline: auto; text-align: center; }
.why h2 {
  font-size: clamp(32px, 4.6vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.why h2 .accent { color: var(--accent); }
.seams {
  margin: 56px auto 0;
  max-width: 760px;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
}
.seam {
  background: var(--bg);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-dim);
  font-size: 16.5px;
}
.seam .seam__no {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--text-faint); flex: none; width: 30px;
}
.seam .gap {
  flex: none; width: 22px; height: 22px; position: relative;
}
.seam .gap::before, .seam .gap::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 1px; background: var(--text-faint);
}
.seam .gap::before { left: 0; }
.seam .gap::after  { right: 0; }
.why__close {
  margin-top: 34px;
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--text-dim);
  max-width: 60ch;
  margin-inline: auto;
}
.why__close strong { color: var(--text); font-weight: 500; }

/* ============================================================
   STACK
   ============================================================ */
.stack__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
}
.stack__col h3 {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  color: var(--accent); margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between;
}
.stack__col h3 span { color: var(--text-faint); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-1);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.tag:hover { border-color: var(--accent-line); color: var(--text); background: var(--accent-soft); }

/* ============================================================
   TRACK RECORD
   ============================================================ */
.track { background: var(--bg-1); border-block: 1px solid var(--line); }
.track__head { margin-bottom: 50px; max-width: 62ch; }
.track__head h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.026em; }
.track__head p { margin-top: 16px; color: var(--text-dim); font-size: 16px; }
.record {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.rec {
  background: var(--bg);
  padding: clamp(26px, 2.6vw, 38px) clamp(22px, 2vw, 30px);
  display: flex; flex-direction: column;
}
.rec__num {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.rec__num .u { color: var(--accent); }
.rec__tag { margin-top: 4px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.rec__desc { margin-top: 18px; color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }
.rec__meta { margin-top: auto; padding-top: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--text-faint); }

/* ============================================================
   APPROACH
   ============================================================ */
.approach__bar { display: flex; align-items: center; gap: 24px; }
.approach__seg {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-1);
  flex: none;
}
.approach__segbtn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: transparent;
  border: 0;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}
.approach__segbtn:hover { color: var(--text); }
.approach__segbtn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }

.approach__h--steps, .approach__h--kanban { display: none; }
body[data-approach="steps"]  .approach__h--steps  { display: inline; }
body[data-approach="kanban"] .approach__h--kanban { display: inline; }
body[data-approach="steps"]  .approach__view--kanban { display: none; }
body[data-approach="kanban"] .approach__view--steps  { display: none; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.step { background: var(--bg); padding: clamp(28px, 3vw, 42px); position: relative; }
.step__no { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.step__no .bar { flex: 1; height: 1px; background: var(--line); }
.step h3 { font-size: 22px; letter-spacing: -0.018em; margin-bottom: 12px; }
.step p { color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.approach__foot {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-family: var(--mono); font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.02em;
}
.approach__foot span { display: inline-flex; align-items: center; gap: 9px; }
.approach__foot span::before { content: "+"; color: var(--accent); }

/* ---- Kanban board ---- */
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.kcol {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 320px;
}
.kcol__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px 12px;
  border-bottom: 1px dashed var(--line);
}
.kcol__name {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text);
}
.kcol__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); flex: none; }
.kcol__dot[data-c="scope"] { background: var(--text-dim); }
.kcol__dot[data-c="eng"]   { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.kcol__dot[data-c="val"]   { background: #d8a23a; }
.kcol__dot[data-c="done"]  { background: #4fae7a; }
.kcol__count {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-faint);
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px;
  white-space: nowrap; flex: none;
}
.kcol__count--wip { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.kcard {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 14px;
  display: flex; flex-direction: column; gap: 11px;
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}
.kcard:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 10px 28px -20px #000; }
.kcard--active { border-left: 2px solid var(--accent); }
.kcard--done { opacity: 0.78; }
.kcard__title {
  font-size: 14px; line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; color: var(--text);
  display: flex; align-items: baseline; gap: 8px;
}
.kcheck { color: #4fae7a; font-size: 12px; flex: none; }
.kcard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ktag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.03em;
  color: var(--text-dim);
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg-1);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--bg-2), var(--bg) 70%),
    repeating-linear-gradient(135deg, rgba(159,178,199,0.03) 0 9px, transparent 9px 18px);
  overflow: hidden;
  display: grid; place-items: center;
}
.portrait__mono {
  font-family: var(--mono);
  font-size: clamp(56px, 9vw, 104px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.portrait__mono b { color: var(--accent); font-weight: 600; }
.portrait__cap {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line); padding: 6px 10px; border-radius: 6px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.portrait .corner { position: absolute; width: 14px; height: 14px; border: 1px solid var(--accent-line); }
.portrait .corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.portrait .corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.about__body h2 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.026em; margin-bottom: 26px; }
.about__body p { color: var(--text-dim); font-size: 16.5px; line-height: 1.66; max-width: 58ch; }
.about__body p + p { margin-top: 18px; }
.about__body strong { color: var(--text); font-weight: 500; }
.about__facts { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.fact {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em;
  color: var(--text-dim);
  padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-1);
  display: inline-flex; align-items: center; gap: 9px;
}
.fact::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { position: relative; overflow: hidden; }
.contact__inner {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 80% -10%, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg));
  padding: clamp(40px, 6vw, 84px);
  position: relative;
  overflow: hidden;
}
.contact__inner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 85% 0%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 80% 100% at 85% 0%, #000, transparent 70%);
  opacity: 0.5;
}
.contact__c { position: relative; max-width: 720px; }
.contact h2 { font-size: clamp(32px, 4.6vw, 58px); letter-spacing: -0.03em; line-height: 1.02; }
.contact h2 .accent { color: var(--accent); }
.contact p { margin-top: 24px; color: var(--text-dim); font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.6; max-width: 52ch; }
.contact__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.contact__link {
  font-family: var(--mono); font-size: 15px; letter-spacing: 0.01em; color: var(--text);
  display: inline-flex; align-items: center; gap: 10px;
  overflow-wrap: anywhere;
  transition: color 0.18s ease;
}
.contact__link:hover { color: var(--accent); }
.contact__link .at { color: var(--accent); }
.contact__link svg { width: 16px; height: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: 48px; position: relative; z-index: 1; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer .brand { font-size: 16px; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--mono); font-size: 12px; color: var(--text-faint); letter-spacing: 0.03em; }
.footer__meta a { color: var(--text-dim); }
.footer__meta a:hover { color: var(--text); }
.footer__legal { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.03em; }
.footer__legal a { color: var(--text-dim); }
.footer__legal a:hover { color: var(--text); }

/* ============================================================
   Reveal on scroll — progressive enhancement.
   Content is visible by default; JS opts in via html.reveal-on,
   then IntersectionObserver adds .is-visible. Respects reduced-motion.
   ============================================================ */
.reveal { opacity: 1; }
html.reveal-on .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
html.reveal-on .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.reveal-on .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tag, .cap, .kcard, .btn .arrow { transition: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .spine { max-width: 520px; }
  .record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .caps { grid-template-columns: 1fr; }
  .stack__grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .caps__head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .about__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
}
@media (max-width: 560px) {
  .record { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .nav__cta .btn--ghost { display: none; }
  .approach__bar { flex-wrap: wrap; gap: 16px; }
  .kcol { min-height: 0; }
  .seam { flex-wrap: wrap; }
  /* keep the nav CTA from overflowing on phones: compact label, no arrow */
  .nav__inner { gap: 12px; }
  .nav .btn__long { display: none; }
  .nav .btn__short { display: inline; }
  .nav__cta .btn--primary { padding: 0 16px; }
  .nav__cta .btn .arrow { display: none; }
  /* contact block: shrink padding so mono links/CTA don't clip */
  .contact__inner { padding: 32px 22px; }
  .contact__actions { gap: 14px 18px; }
}
