/* CQ Tecnologia. Rules live in docs/DESIGN.md; change them there first.
   Palette: change the tokens in :root only. Components never use raw colours. */

@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 400; font-display: swap; src: url('/assets/fonts/newsreader-latin.0af3d6404c.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300; font-display: swap; src: url('/assets/fonts/newsreader-italic-latin.acaa3544ae.woff2') format('woff2'); }
@font-face { font-family: 'Victor Mono'; font-style: italic; font-weight: 600; font-display: swap; src: url('/assets/fonts/victor-mono-italic-latin.8f4e29e25e.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin.4549bae4c4.woff2') format('woff2'); }

:root {
  /* surfaces */
  --bg: #16161e;
  --panel: #1f2335;
  --panel-2: #24283b;
  --band-raised: rgba(31, 35, 53, .55);
  --band-deep: rgba(9, 9, 14, .78);
  --line: #2f3449;
  --line-2: #414868;
  /* text (muted passes WCAG AA on --bg) */
  --text: #c0caf5;
  --text-2: #a9b1d6;
  --muted: #7a82ad;
  --faint: #4b5278;
  /* roles: cyan interactive, purple display emphasis, green state OK, yellow markers, pink punctuation */
  --cyan: #7dcfff;
  --blue: #7aa2f7;
  --purple: #bb9af7;
  --green: #9ece6a;
  --yellow: #e0af68;
  --pink: #f7768e;
  --cyan-rgb: 125, 207, 255;
  --purple-rgb: 187, 154, 247;
  --matrix-rgb: 86, 95, 137;

  --serif: 'Newsreader', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  /* the signature: cursive italic mono, used for one phrase only (the owner's identity mark) */
  --sig: 'Victor Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* constraint code: 8 px scale, one centre axis, three content widths, one 45 degree cut */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px; --s12: 96px; --s16: 128px;
  --frame: 1200px;
  --w-text: 680px;
  --w-list: 820px;
  --w-wide: 1104px;
  --cut: 12px;
  --cut-s: 6px;
  --top-h: 72px;
  --sl-h: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + var(--s2)); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  padding-bottom: var(--sl-h);
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--purple); color: var(--bg); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
ul, ol { list-style: none; }
kbd { font-family: var(--mono); }

.skip { position: fixed; left: var(--s2); top: -100px; z-index: 200; background: var(--cyan); color: var(--bg); padding: var(--s1) var(--s2); }
.skip:focus { top: var(--s2); }

/* ---------- background layers ---------- */
/* the dot board: painted once by CSS, no per-frame work. The cursor glow is a masked second layer that
   repaints only when the pointer moves (app.js sets --mx/--my on it, throttled to one update per frame). */
.matrix {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(var(--matrix-rgb), .45) 1px, transparent 1.6px);
  background-size: 28px 28px; background-position: 14px 14px;
}
.matrix-glow {
  /* a 380 px tile that follows the cursor by transform (compositor only); its dot pattern is offset by the same
     amount so the lit dots stay on the board's grid. Only this tile repaints on pointer moves. */
  position: absolute; left: 0; top: 0; width: 380px; height: 380px; opacity: 0; transition: opacity .4s;
  transform: translate3d(calc(var(--mx, -400px) - 190px), calc(var(--my, -400px) - 190px), 0);
  background-image: radial-gradient(circle, rgba(var(--cyan-rgb), .95) 1.5px, transparent 2.1px);
  background-size: 28px 28px;
  background-position: calc(14px - var(--mx, -400px) + 190px) calc(14px - var(--my, -400px) + 190px);
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
  will-change: transform;
}
.pointer .matrix-glow { opacity: 1; }
/* soft light without blur filters: radial gradients composite cheaply and only their transform animates */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; opacity: .2; will-change: transform; }
.aurora span:nth-child(1) { width: 60vw; height: 60vw; left: -18vw; top: -22vw; background: radial-gradient(closest-side, var(--cyan), transparent); animation: drift-a 34s var(--ease) infinite alternate; }
.aurora span:nth-child(2) { width: 70vw; height: 70vw; right: -22vw; bottom: -30vw; background: radial-gradient(closest-side, var(--purple), transparent); animation: drift-b 40s var(--ease) infinite alternate; }
@keyframes drift-a { to { transform: translate(14vw, 12vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-12vw, -16vh) scale(.9); } }

header.top, main, .foot { position: relative; z-index: 1; }

/* ---------- frame ---------- */
.frame {
  max-width: var(--frame);
  margin: 0 auto;
  padding-inline: var(--s4);
  border-inline: 1px solid var(--line);
}

/* ---------- header ---------- */
header.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 22, 30, .94);
  border-bottom: 1px solid var(--line);
}
.top-inner { height: var(--top-h); display: flex; align-items: center; gap: var(--s4); }
.mark { display: inline-flex; align-items: center; gap: 12px; }
.mark-glyph {
  display: grid; place-items: center; width: 32px; height: 32px;
  font: 700 13px/1 var(--mono); color: var(--bg); background: var(--cyan);
  clip-path: polygon(0 0, calc(100% - var(--cut-s)) 0, 100% var(--cut-s), 100% 100%, var(--cut-s) 100%, 0 calc(100% - var(--cut-s)));
}
.mark-name { font: 400 24px/1 var(--serif); letter-spacing: -.02em; color: var(--text); }
.mark-dot { font: 400 24px/1 var(--serif); color: var(--pink); margin-left: -10px; }
.nav { display: flex; gap: var(--s4); margin-left: auto; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.nav a { color: var(--text-2); transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--cyan); }
.top-actions { display: flex; align-items: center; gap: var(--s3); }
.langs { display: inline-flex; gap: 2px; font-size: 11px; letter-spacing: .08em; }
.langs a { padding: 4px 6px; color: var(--muted); border-bottom: 1px solid transparent; }
.langs a:hover { color: var(--text); }
.langs a[aria-current] { color: var(--text); border-bottom-color: var(--cyan); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 44px; padding: 0 var(--s3);
  font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--cut-s)) 0, 100% var(--cut-s), 100% 100%, var(--cut-s) 100%, 0 calc(100% - var(--cut-s)));
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn kbd { font-size: 11px; letter-spacing: 0; text-transform: none; padding: 3px 6px; border: 1px solid currentColor; opacity: .7; }
.btn-lg { height: 56px; padding: 0 var(--s4); font-size: 13px; }
.btn-primary { background: var(--cyan); border-color: var(--cyan); color: var(--bg); font-weight: 700; }
.btn-primary:hover { box-shadow: 0 0 0 1px var(--cyan), 0 0 36px rgba(var(--cyan-rgb), .45); }
.btn-ghost {
  --bc: var(--line-2);
  /* draw the 45 degree edges the clip-path cut out of the border */
  background-image: linear-gradient(225deg, transparent 3.4px, var(--bc) 3.4px 4.8px, transparent 4.8px),
    linear-gradient(45deg, transparent 3.4px, var(--bc) 3.4px 4.8px, transparent 4.8px);
}
.btn-ghost:hover { --bc: var(--cyan); border-color: var(--cyan); color: var(--cyan); }
.btn-top { height: 36px; padding: 0 var(--s2); }

/* ---------- sections: one centre axis, stepped widths ---------- */
.band { position: relative; }
/* skip rendering and animating sections far off screen; the reserved size keeps the scrollbar stable */
.sec:not(.hero) { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.band-raised { background: var(--band-raised); border-block: 1px solid var(--line); }
.band-deep { background: var(--band-deep); border-block: 1px solid var(--line); }
.band-close { background: radial-gradient(60% 80% at 50% 100%, rgba(var(--purple-rgb), .16), transparent 70%), var(--band-deep); border-top: 1px solid var(--line); }
.sec-grid {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding-block: var(--s12);
}
.sec-head { max-width: var(--w-text); text-align: center; margin-bottom: var(--s8); }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; color: var(--pink); margin-bottom: var(--s3); }
.sec-head h2 { font: 300 clamp(36px, 4.6vw, 60px)/1.05 var(--serif); letter-spacing: -.03em; color: var(--text); text-wrap: balance; }
.sec-intro { margin: var(--s3) auto 0; max-width: 56ch; color: var(--text-2); text-wrap: pretty; }

/* ---------- hero ---------- */
.hero .sec-grid { padding-block: var(--s16) var(--s6); }
.hero-copy { max-width: 900px; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* signature: "software crafter" as a Visual-mode selection, the one thing selected on the page */
.signature { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s1) var(--s2); margin-bottom: var(--s4); }
.signature .mode, .signature .sig { white-space: nowrap; }
.signature .mode { font: 700 12px/1 var(--mono); letter-spacing: .1em; color: var(--purple); }
.signature .sig {
  font: italic 600 clamp(22px, 2.4vw, 30px)/1.25 var(--sig); letter-spacing: .01em; color: var(--bg);
  padding: 2px 14px 4px;
  background: linear-gradient(100deg, var(--purple), var(--cyan)) 0 0 / 100% 100% no-repeat;
  box-shadow: 0 0 32px rgba(var(--purple-rgb), .35);
  animation: select-sweep .7s var(--ease) .25s both;
}
.booting .signature .sig { animation-delay: 1.25s; }
@keyframes select-sweep { from { background-size: 0% 100%; color: var(--text); box-shadow: none; } to { background-size: 100% 100%; } }
.display {
  font: 300 clamp(52px, 7.4vw, 112px)/.95 var(--serif);
  letter-spacing: -.04em;
  color: var(--text);
  text-wrap: balance;
}
.display em {
  font-style: italic; font-weight: 300;
  background: linear-gradient(100deg, var(--purple) 0%, var(--cyan) 45%, var(--blue) 70%, var(--purple) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.display-sub { font-size: clamp(48px, 6.6vw, 104px); }
.display-legal { font-size: clamp(44px, 5.4vw, 80px); margin-bottom: var(--s2); }
.caret {
  display: inline-block; width: .3em; height: .7em; margin-left: .1em; vertical-align: -.02em;
  background: var(--cyan); box-shadow: 0 0 24px rgba(var(--cyan-rgb), .6);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.lead { margin-top: var(--s4); max-width: 60ch; font-size: 17px; line-height: 1.75; color: var(--text-2); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin-top: var(--s6); }
.trust { margin-top: var(--s2); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.trust::before { content: "\2713  "; color: var(--green); }

/* hero anchor: the five services on one ruled row, each a link to its card */
.svc-strip { margin-top: var(--s12); width: 100%; max-width: var(--w-wide); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line-2); background: rgba(22, 22, 30, .55); }
.svc-strip a { display: flex; flex-direction: column; gap: 10px; padding: var(--s3) var(--s3) var(--s4); text-align: left; position: relative; transition: background .2s; }
.svc-strip a + a { border-left: 1px solid var(--line-2); }
.svc-strip a::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.svc-strip a:hover { background: rgba(var(--cyan-rgb), .05); }
.svc-strip a:hover::after, .svc-strip a:focus-visible::after { transform: scaleX(1); }
.svc-strip .num { font: 500 12px/1 var(--mono); color: var(--pink); }
.svc-strip .name { font: 400 22px/1.15 var(--serif); letter-spacing: -.01em; color: var(--text); }
.svc-strip .what { font-size: 13px; line-height: 1.5; color: var(--text-2); }

/* ---------- cut frames ---------- */
.frame-cut {
  position: relative;
  --edge: var(--line-2);
  border: 1px solid transparent;
  background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(var(--edge), var(--edge)) border-box;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.frame-cut::before, .frame-cut::after {
  content: ""; position: absolute; width: calc(var(--cut) * 1.4142); height: 2px; background: var(--edge);
  transform-origin: 0 50%; transform: rotate(45deg); z-index: 2; pointer-events: none;
}
.frame-cut::before { left: calc(100% - var(--cut)); top: -1px; }
.frame-cut::after { left: -1px; top: calc(100% - var(--cut) - 1px); }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* ---------- problems: a numbered list on the text axis ---------- */
.problems { width: 100%; max-width: var(--w-list); }
.problems li {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: var(--s3);
  padding: var(--s3) 0; border-top: 1px solid var(--line);
}
.problems li:last-child { border-bottom: 1px solid var(--line); }
.problems .num { font: 400 13px/1 var(--mono); color: var(--pink); }
.problem { font: 400 clamp(19px, 2vw, 24px)/1.35 var(--serif); letter-spacing: -.01em; color: var(--text); }
.chip {
  align-self: flex-start; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-2); border: 1px solid var(--line-2); padding: 6px 10px;
}
.chip-link { align-self: center; color: var(--cyan); border-color: rgba(var(--cyan-rgb), .35); white-space: nowrap; transition: border-color .2s, background .2s; }
.chip-link::after { content: " \2193"; }
.chip-link:hover { border-color: var(--cyan); background: rgba(var(--cyan-rgb), .08); }

/* ---------- statement band: the craft, not the language ---------- */
.sec-head-statement { max-width: 960px; margin-bottom: var(--s6); }
.sec-head h2.statement { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; }
.statement em { font-style: italic; background: linear-gradient(100deg, var(--purple), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.langs-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1); max-width: var(--w-list); }
.langs-row li { font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--text); border: 1px solid var(--line-2); padding: 10px 14px; background: rgba(22, 22, 30, .5); }
.langs-row .more { color: var(--cyan); border-style: dashed; border-color: rgba(var(--cyan-rgb), .45); }

/* ---------- service cards ---------- */
.cards { width: 100%; max-width: var(--w-wide); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
@property --spin { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.card { display: flex; flex-direction: column; }
.card:hover {
  --edge: var(--cyan);
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
    conic-gradient(from var(--spin), var(--cyan), var(--purple), var(--pink), var(--cyan)) border-box;
  animation: spin 4s linear infinite;
  box-shadow: 0 0 48px rgba(var(--cyan-rgb), .12);
}
@keyframes spin { to { --spin: 360deg; } }
.card-body { padding: var(--s4); display: flex; flex-direction: column; flex: 1; }
.card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.card-wide .viz { height: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
.viz-clean { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: var(--s2); }
.viz-clean li { min-height: 28px; display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.viz-clean b { color: var(--green); }
.viz-clean .wall { position: relative; width: 28px; display: flex; justify-content: center; }
.viz-clean .wall::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dashed var(--pink); opacity: .7; }
.viz-clean .wall span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); background: rgba(22, 22, 30, .95); padding: 8px 2px; align-self: center; position: relative; }
.card h3 { font: 400 40px/1.05 var(--serif); letter-spacing: -.025em; margin-top: var(--s3); }
.card-line { margin-top: var(--s2); color: var(--text); font-size: 15px; }
.ticks { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px dashed var(--line); display: grid; gap: var(--s1); font-size: 13px; color: var(--text-2); }
.ticks li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.ticks li::before { content: "+"; color: var(--green); font-weight: 700; }

.viz { height: 184px; border-bottom: 1px solid var(--line); background: rgba(22, 22, 30, .7); font-size: 12px; overflow: hidden; position: relative; padding: var(--s2) var(--s3); }
.viz .k, .viz .kw { color: var(--purple); }
.viz .s { color: var(--green); }
.vz-cmd { color: var(--text-2); padding-bottom: 12px; border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
.viz-run li { height: 30px; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; color: var(--text-2); }
.viz-run .tag { color: var(--muted); }
.viz-run b { font-weight: 700; color: var(--green); }
/* the run types itself in, line by line, then holds; every line resets together at the cycle start */
.viz-run li:nth-child(1) { animation: run-1 7s steps(1) infinite; }
.viz-run li:nth-child(2) { animation: run-2 7s steps(1) infinite; }
.viz-run li:nth-child(3) { animation: run-3 7s steps(1) infinite; }
.viz-run li:nth-child(4) { animation: run-4 7s steps(1) infinite; }
@keyframes run-1 { 0% { opacity: 0; } 8%, 100% { opacity: 1; } }
@keyframes run-2 { 0% { opacity: 0; } 18%, 100% { opacity: 1; } }
@keyframes run-3 { 0% { opacity: 0; } 30%, 100% { opacity: 1; } }
@keyframes run-4 { 0% { opacity: 0; } 42%, 100% { opacity: 1; } }
.viz-doc li { height: 28px; display: flex; align-items: center; gap: 12px; color: var(--text-2); }
.viz-doc .box { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--green); font-size: 11px; font-weight: 700; flex: none; }
.viz-doc .box:not(.on) { border-color: var(--cyan); animation: caret 1s steps(1) infinite; }
.viz-api pre { font: inherit; color: var(--text-2); white-space: pre-wrap; margin-top: 8px; }
.viz-api .res { animation: run-2 6s steps(1) infinite; }
.viz-api .arrow { color: var(--pink); }
.vz-check { margin-top: 12px; color: var(--muted); animation: run-3 6s steps(1) infinite; }
.vz-check b { color: var(--green); margin-right: 8px; }
.viz-code ol { counter-reset: cl; }
.viz-code li { counter-increment: cl; height: 28px; display: flex; align-items: center; white-space: pre; color: var(--text-2); }
.viz-code li::before { content: counter(cl); width: 32px; flex: none; color: var(--faint); }
.viz-code li:nth-child(4) { background: rgba(var(--cyan-rgb), .1); box-shadow: inset 2px 0 0 var(--cyan); margin-inline: calc(-1 * var(--s3)); padding-inline: var(--s3); }

/* ---------- process: four cells on one ruled row ---------- */
.steps { width: 100%; max-width: var(--w-wide); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-2); position: relative; }
.steps li { padding: var(--s6) var(--s4); text-align: center; display: flex; flex-direction: column; align-items: center; }
.steps li + li { border-left: 1px solid var(--line-2); }
.steps::after {
  content: ""; position: absolute; top: -1px; left: 0; width: 25%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  filter: drop-shadow(0 0 6px var(--cyan));
  animation: flow 6s var(--ease) infinite;
}
@keyframes flow { from { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateX(300%); opacity: 0; } }
.node { display: grid; place-items: center; width: 44px; height: 44px; font: 300 26px/1 var(--serif); color: var(--text); border: 1px solid var(--line-2); }
.node-ok { color: var(--green); border-color: var(--green); box-shadow: 0 0 18px rgba(158, 206, 106, .3); }
.steps h3 { margin-top: var(--s3); font: 700 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.steps p { margin-top: var(--s1); font-size: 14px; color: var(--text-2); }

/* ---------- faq ---------- */
.faq { width: 100%; max-width: var(--w-list); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: center; gap: var(--s2);
  padding: var(--s3) 0; font: 400 clamp(19px, 2vw, 24px)/1.35 var(--serif); color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--mono); color: var(--pink); text-align: right; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--cyan); }
.faq details p { padding: 0 0 var(--s3); max-width: 64ch; color: var(--text-2); }

/* ---------- closing call to action ---------- */
.sec-head:has(.close-title) { max-width: 960px; }
.sec-head h2.close-title { font-size: clamp(40px, 5.4vw, 72px); }
.contact { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s2); margin-top: var(--s6); }
.email {
  font: 300 clamp(22px, 2.6vw, 32px)/1.2 var(--serif); letter-spacing: -.02em; color: var(--text-2);
  background: linear-gradient(var(--cyan), var(--cyan)) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease), color .2s;
  overflow-wrap: anywhere;
}
.email:hover { color: var(--cyan); background-size: 100% 1px; }
.contact-line .btn { height: 36px; padding: 0 var(--s2); }

/* ---------- legal ---------- */
.legal-body { width: 100%; max-width: var(--w-text); }
.crumbs { display: flex; justify-content: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: var(--s3); }
.crumbs a { color: var(--cyan); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-body .eyebrow, .legal-body .display, .legal-body .updated { text-align: center; }
.legal-body .updated { color: var(--muted); font-size: 12px; margin-bottom: var(--s6); }
.legal-body h2 { font: 700 13px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-top: var(--s4); }
.legal-body h2::before { content: "## "; color: var(--pink); }
.legal-body p:not(.eyebrow) { margin-top: var(--s1); color: var(--text-2); }
.legal-body a { color: var(--cyan); }
.hero-sub .hero-copy { padding-block: var(--s8); }

/* ---------- footer + statusline ---------- */
.foot-inner { display: flex; align-items: center; gap: var(--s4); padding-block: var(--s4); font-size: 12px; color: var(--muted); }
.foot-links { display: flex; gap: var(--s3); margin-left: auto; }
.foot-links a:hover { color: var(--cyan); }
.vimtoggle { font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--muted); background: none; border: 1px solid var(--line-2); padding: 5px 8px; cursor: pointer; }
.vimtoggle::before { content: "\25CF  "; color: var(--green); }
.vimtoggle[aria-pressed="false"]::before { color: var(--faint); }
.vimtoggle:hover { color: var(--text); }
.statusline {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--sl-h);
  display: flex; align-items: stretch; font-size: 12px; line-height: var(--sl-h);
  background: var(--panel); border-top: 1px solid var(--line); color: var(--muted);
}
.statusline > span { padding: 0 12px; white-space: nowrap; }
.sl-mode { background: var(--blue); color: var(--bg); font-weight: 700; letter-spacing: .06em; }
.sl-file { background: var(--panel-2); color: var(--text); }
.sl-fill { flex: 1; }
.sl-pos { color: var(--text-2); min-width: 56px; text-align: right; }

/* ---------- boot (once per session, never under reduced motion) ---------- */
.boot { display: none; }
.booting .boot {
  display: flex; position: fixed; inset: 0; z-index: 100; align-items: center; justify-content: center;
  background: var(--bg); font-size: 14px;
  animation: boot-out .3s ease-out .85s forwards;
}
.boot-inner { width: min(520px, 86vw); }
.boot-line { opacity: 0; color: var(--text-2); animation: boot-in .01s linear forwards; }
.boot-line .ok { color: var(--green); }
.boot-line:nth-child(1) { animation-delay: .05s; }
.boot-line:nth-child(2) { animation-delay: .22s; }
.boot-line:nth-child(3) { animation-delay: .4s; }
.boot-gauge { display: flex; align-items: center; gap: 12px; margin-top: var(--s3); font-size: 12px; }
.boot-label { color: var(--pink); font-weight: 700; letter-spacing: .1em; }
.boot-track { flex: 1; height: 10px; border: 1px solid var(--line-2); padding: 1px; }
.boot-fill {
  display: block; height: 100%; width: 0;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 8px, transparent 8px 11px);
  box-shadow: 0 0 14px rgba(var(--cyan-rgb), .5);
  animation: boot-fill .75s var(--ease) .05s forwards;
}
@keyframes boot-in { to { opacity: 1; } }
@keyframes boot-fill { to { width: 100%; } }
@keyframes boot-out { to { opacity: 0; visibility: hidden; } }

/* ---------- entrance + scroll reveal (CSS only; content never depends on JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(n+5) { animation-delay: .3s; }
  .booting .hero-copy > * { animation-delay: 1.05s; }
  @supports (animation-timeline: view()) {
    .sec:not(.hero) .sec-head, .problems li, .langs-row, .cards > *, .steps > li, .faq details, .contact, .svc-strip {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .aurora { display: none; }
}

/* ---------- responsive ---------- */
@media (hover: none) and (pointer: coarse) {
  .btn kbd, .vimtoggle, .sl-hint { display: none; }
}
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .svc-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-strip a:nth-child(4) { border-left: 0; }
  .svc-strip a:nth-child(n+4) { border-top: 1px solid var(--line-2); }
  .svc-strip a:last-child { grid-column: span 2; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card-wide { grid-template-columns: minmax(0, 1fr); }
  .card-wide .viz { border-right: 0; border-bottom: 1px solid var(--line); }
  .sec-grid { padding-block: var(--s12); }
  .hero .sec-grid { padding-block: var(--s12) var(--s8); }
  .problems li { grid-template-columns: 32px minmax(0, 1fr); row-gap: var(--s1); }
  .problems .chip-link { grid-column: 2; justify-self: start; }
}
@media (max-width: 600px) {
  .frame { padding-inline: var(--s2); }
  .top .btn kbd, .mark-name, .mark-dot { display: none; }
  .card h3 { font-size: 34px; }
  .signature { flex-direction: column; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line-2); }
  .svc-strip { grid-template-columns: minmax(0, 1fr); }
  .svc-strip a + a { border-left: 0; border-top: 1px solid var(--line-2); }
  .svc-strip a:last-child { grid-column: auto; }
  .foot-inner { flex-wrap: wrap; }
  .sl-hint, .sl-meta { display: none; }
}
