@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/nunito-latin-900-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"); }

:root {
  --bg: #0D1117;
  --bg-raised: #151A2D;
  --fg: #E6E8EE;
  --muted: #9AA3B5;
  --border: #252C42;
  --vv-teal: #2DD4BF;
  --vv-violet: #8B7BFF;
  --vv-amber: #FFB547;
  --logo-word: #FFFFFF;
  --accent-text: #2DD4BF;
  --link: #2DD4BF;
  --tag-text: #8B7BFF;
  --on-accent: #0D1117;
  --danger: #FF8A80;
  --grad-start: var(--vv-teal);
  --grad-mid: var(--vv-violet);
  --grad-end: var(--vv-amber);
  --font-head: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #FFFFFF;
    --bg-raised: #F3F4F9;
    --fg: #151A2D;
    --muted: #5A6278;
    --border: #DDE0EA;
    --vv-teal: #14B8A6;
    --vv-violet: #5B3FE0;
    --vv-amber: #F59E0B;
    --logo-word: #151A2D;
    --accent-text: #0F766E;
    --link: #0F766E;
    --tag-text: #5B3FE0;
    --danger: #B42318;
    /* Headline gradient on white: AA text colours, not the (too light) logo amber. */
    --grad-start: #0F766E;
    --grad-mid: #5B3FE0;
    --grad-end: #B45309;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; }
a { color: var(--link); }
img, svg { max-width: 100%; }

:focus-visible { outline: 3px solid var(--vv-violet); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: .5rem; top: -4rem; background: var(--bg-raised); color: var(--fg); padding: .5rem 1rem; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: .5rem; }

/* Utilities */
.prompt { font-family: var(--font-mono); font-weight: 500; color: var(--accent-text); }
.prompt::before { content: "> "; }
.tag { font-family: var(--font-mono); font-weight: 500; color: var(--tag-text); }
.tag::before { content: "<"; }
.tag::after { content: " />"; }

/* Logo */
/* Brand lockup proportions (tools/brand/build-brand.mjs): mark height = 1.2 x Nunito cap height
   (0.705em) = 0.846em; gap = one mark cell (18/40 of the mark) = 0.38em. Sized in em of .logo. */
.logo { display: inline-flex; align-items: center; gap: .38em; font-size: 1.75rem; text-decoration: none; }
.logo-mark { display: block; flex: none; width: .846em; height: .846em; }
.logo-word { font-family: var(--font-head); font-weight: 900; font-size: 1em; letter-spacing: -0.5px; color: var(--logo-word); line-height: 1; }
.vv-cell-teal { fill: var(--vv-teal); }
.vv-cell-violet { fill: var(--vv-violet); }
.vv-dot { fill: var(--vv-amber); }
@keyframes vv-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }
.nav-desktop { display: none; gap: 1.75rem; }
.nav-desktop a, .nav-mobile-panel a { color: var(--fg); text-decoration: none; font-weight: 700; }
.nav-desktop a:hover, .nav-mobile-panel a:hover { color: var(--accent-text); }

.nav-mobile { position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 8px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 1.4rem; height: 2px; background: var(--fg); border-radius: 2px; content: ""; position: relative; }
.burger::before { position: absolute; top: -7px; }
.burger::after { position: absolute; top: 7px; }
.nav-mobile-panel { position: absolute; right: 0; top: 3.25rem; min-width: 13rem; display: flex; flex-direction: column; gap: .25rem; padding: .75rem; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 12px; }
.nav-mobile-panel a { padding: .6rem .75rem; border-radius: 8px; }

@media (min-width: 48rem) {
  .container { padding: 0 1.5rem; }
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
}

/* Main & footer */
main { min-height: 60vh; }
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 4rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-inner .logo { font-size: 1.25rem; }
.footer-copy { margin: 0; color: var(--muted); font-size: .9rem; }
.footer-copy a { color: inherit; }

/* Contact buttons */
[hidden] { display: none !important; }
/* Icon buttons: a row above the form on phones, a column to its left from 48rem.
   The name comes from aria-label; .cbtn-label shows the same words on hover or focus. */
.contact-layout { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
/* Each button in its own logo colour, like the service cards (readable shades in the light theme). */
.cbtn { --c: var(--grad-start); position: relative; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border: 1px solid var(--c); border-radius: 14px; color: var(--c); text-decoration: none; }
.cbtn--email { --c: var(--grad-mid); }
.cbtn--whatsapp { --c: var(--grad-end); }
.cbtn svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cbtn:hover, .cbtn:focus-visible { background: var(--c); color: var(--bg); outline: 2px solid var(--c); outline-offset: 2px; }
.cbtn-label { position: absolute; top: calc(100% + .5rem); left: 50%; translate: -50% 0; padding: .25rem .6rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-raised); color: var(--fg); font-family: var(--font-head); font-weight: 700; font-size: .85rem; white-space: nowrap; opacity: 0; pointer-events: none; z-index: 2; }
.cbtn:hover .cbtn-label, .cbtn:focus-visible .cbtn-label { opacity: 1; }
.contact-nojs { margin: 0; max-width: 14rem; font-family: var(--font-body); opacity: 0.8; }
@media (min-width: 48rem) {
  .contact-layout { grid-template-columns: max-content minmax(0, 40rem); justify-content: start; gap: 3.5rem; }
  .contact-buttons { flex-direction: column; }
  .cbtn-label { top: 50%; left: calc(100% + .6rem); translate: 0 -50%; }
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.section-title::before { content: "# "; font-family: var(--font-mono); font-weight: 500; color: var(--accent-text); }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 3rem 0 4rem; }
.hero-inner { display: grid; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); max-width: 18ch; }
.hero-grad { background: linear-gradient(90deg, var(--grad-start), var(--grad-mid) 55%, var(--grad-end)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-prompt { margin: 0 0 1rem; font-size: .95rem; }
.hero-sub { font-size: 1.15rem; max-width: 38rem; color: var(--muted); margin: 0 0 1.75rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.hero-ctas .btn--primary { box-shadow: 0 8px 30px -10px color-mix(in srgb, var(--accent-text) 70%, transparent); }
.caret { display: inline-block; width: .55em; height: 1.05em; margin-left: .2em; vertical-align: -.2em; background: var(--accent-text); }

/* Hero background: two soft glows and seven drifting blocks. Drift distances live in custom properties. */
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hb-glow { position: absolute; border-radius: 50%; }
.hb-glow--amber { width: 34rem; height: 34rem; right: -6rem; top: -3rem; background: radial-gradient(circle, color-mix(in srgb, var(--vv-amber) 30%, transparent), transparent 65%); }
.hb-glow--violet { width: 38rem; height: 38rem; left: -16rem; top: -18rem; background: radial-gradient(circle, color-mix(in srgb, var(--vv-violet) 22%, transparent), transparent 65%); }
.hb-float { position: absolute; border-radius: 28%; opacity: .22; --d: 18s; --dx: 20px; --dy: -40px; --dr: 25deg; }
.hb-float-1 { width: 2.9rem; height: 2.9rem; left: 4%; top: 80%; background: var(--vv-violet); --d: 19s; --dx: 30px; --dy: -60px; --dr: 40deg; }
.hb-float-2 { width: 1.4rem; height: 1.4rem; left: 46%; top: 8%; border-radius: 50%; background: var(--vv-amber); opacity: .35; --d: 15s; --dx: -40px; --dy: 30px; }
.hb-float-3 { width: 1.75rem; height: 1.75rem; left: 40%; top: 88%; background: var(--vv-teal); opacity: .3; --d: 22s; --dx: 50px; --dy: -30px; --dr: -30deg; }
.hb-float-4 { width: 4rem; height: 4rem; left: 90%; top: 4%; background: var(--vv-teal); opacity: .12; --d: 24s; --dx: -30px; --dy: 50px; }
.hb-float-5 { width: 2.25rem; height: 2.25rem; left: 60%; top: 90%; border-radius: 50%; background: var(--vv-violet); opacity: .2; --d: 17s; --dx: -20px; --dy: -50px; }
.hb-float-6 { width: 1rem; height: 1rem; left: 2%; top: 20%; background: var(--vv-amber); opacity: .4; --d: 13s; --dx: 25px; --dy: 35px; --dr: 90deg; }
.hb-float-7 { width: 1.25rem; height: 1.25rem; left: 95%; top: 78%; background: var(--vv-violet); opacity: .3; --d: 16s; --dx: -35px; --dy: -25px; }

/* The big logo mark, in the brand proportions: cell 18/40 = 45%, corner 5/18 of a cell. */
.hero-mark { --s: 7.5rem; position: relative; width: var(--s); height: var(--s); }
.hm-cell, .hm-ring { position: absolute; width: 45%; height: 45%; }
.hm-cell { border-radius: 27.8%; }
.hm-tl { left: 0; top: 0; background: var(--vv-teal); --fx: -.8; --fy: -.6; --fr: -70deg; }
.hm-tr { right: 0; top: 0; background: var(--vv-violet); --fx: .8; --fy: -.7; --fr: 60deg; }
.hm-bl { left: 0; bottom: 0; background: var(--vv-violet); --fx: -.7; --fy: .75; --fr: 45deg; }
.hm-dot { right: 0; bottom: 0; border-radius: 50%; background: var(--vv-amber); --fx: .9; --fy: .7; --fr: 0deg; }
.hm-ring { right: 0; bottom: 0; border-radius: 50%; border: 2px solid var(--vv-amber); opacity: 0; }

@media (min-width: 56rem) {
  .hero { padding: 4rem 0 5rem; }
  .hero-inner { grid-template-columns: 1.15fr 1fr; }
  .hero-mark { --s: 17rem; order: 2; justify-self: center; }
}

@media (forced-colors: active) {
  .hero-grad { background: none; color: CanvasText; }
}

/* Services */
.card-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; }
.card h3 { font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
/* Hover: lift (motion block) and a border in one of the logo colours. */
.card { --c: var(--vv-teal); }
.card:nth-child(3n+2) { --c: var(--vv-violet); }
.card:nth-child(3n) { --c: var(--vv-amber); }
.card:hover { border-color: var(--c); }
.tech { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.75rem; }
.tech-title { margin: 0; font-family: var(--font-mono); font-size: .85rem; font-weight: 500; color: var(--muted); }
.tech-title::before { content: "> "; content: "> " / ""; color: var(--accent-text); }
.tech-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tech-list li { padding: .3rem .7rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-raised); font-family: var(--font-mono); font-size: .8rem; }

/* Process: step cards beside the pipeline terminal. Cards are lit by default (no JS);
   while terminal.js waits, unlit badges go neutral. Text keeps its contrast throughout. */
.section-lead { color: var(--muted); font-size: 1.05rem; margin: -.25rem 0 2rem; }
.process-grid { display: grid; gap: 1.5rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-raised); }
.step h3 { font-size: 1.1rem; margin: 0 0 .15rem; }
.step p { margin: 0; color: var(--muted); }
.step-n { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 10px; background: var(--accent-text); color: var(--bg); font-family: var(--font-mono); font-weight: 500; font-size: .85rem; }
.step:last-child .step-n { border-radius: 50%; background: var(--vv-amber); color: #2B1A00; }
.steps.is-armed .step:not(.is-on) .step-n { background: var(--border); color: var(--muted); }
.steps.is-armed .step.is-on { border-color: color-mix(in srgb, var(--vv-teal) 55%, var(--border)); box-shadow: 0 14px 40px -24px color-mix(in srgb, var(--vv-teal) 70%, transparent); }

/* Terminal window: always dark, in both themes, so it carries its own colours. */
.term {
  --t-bg: #0F1420; --t-fg: #E6E8EE; --t-muted: #9AA3B5; --t-line: #1E2433;
  --t-teal: #2DD4BF; --t-violet: #8B7BFF; --t-amber: #FFB547; --t-err: #FF8A80;
  min-width: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--vv-violet) 40%, transparent); border-radius: 16px;
  background: var(--t-bg); color: var(--t-fg); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
}
.term-bar { display: flex; align-items: center; gap: .45rem; padding: .75rem .9rem; border-bottom: 1px solid var(--t-line); }
.term-bar i { display: block; width: .7rem; height: .7rem; border-radius: .25rem; background: var(--t-teal); }
.term-bar i:nth-child(2) { background: var(--t-violet); }
.term-bar i:nth-child(3) { background: var(--t-amber); border-radius: 50%; }
.term-bar span { margin-left: .6rem; font-family: var(--font-mono); font-size: .78rem; color: var(--t-muted); }
.term-body { padding: 1.1rem 1.25rem; overflow-x: auto; font-family: var(--font-mono); font-weight: 500; font-size: .9rem; line-height: 1.85; }
.tl { display: block; white-space: pre-wrap; }
.tl--ok, .tl--dim, .tl--err, .tl--run { padding-left: 2ch; }
/* Decorative glyphs: the second declaration gives them empty alt text where supported. */
.tl--cmd::before { content: "> "; content: "> " / ""; color: var(--t-amber); }
.tl--ok::before { content: "✓ "; content: "✓ " / ""; color: var(--t-teal); }
.tl-pfx { color: var(--t-err); }
/* Commands are short; keeping them unwrapped in every state means arming never reflows the lines. */
.tl-cmd { display: inline-block; vertical-align: bottom; white-space: pre; }
.tl--dim, .tl--run { color: var(--t-muted); }
.tl--run::before { content: ""; display: inline-block; width: .6em; height: .6em; margin-right: .5em; border-radius: 50%; background: var(--t-amber); }
.tl.is-current::after, .term:not([data-term-state]) .tl:last-child::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: .25em; vertical-align: -.2em; background: var(--t-teal); }
/* Armed by terminal.js: lines wait unseen (still in the DOM), commands type out by width. */
[data-term-state] .tl:not(.is-shown) { opacity: 0; }
[data-term-state] .tl-cmd { max-width: calc(var(--shown, 999) * 1ch); overflow: hidden; }

/* Closing band: a window onto the logo in 3D, faded in and out so it has no hard edges.
   The art is absolutely placed by default; the motion block pins it (position: fixed),
   and clip-path keeps the pinned layer inside the window (which also works on iPhones). */
.band { position: relative; display: flex; align-items: center; min-height: 26rem; height: 78vh; max-height: 46rem; overflow: hidden; clip-path: inset(0);
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.band-art, .page-art { position: absolute; inset: 0; }
.blocks-art { position: absolute; inset: 0; background: radial-gradient(40% 50% at 70% 50%, color-mix(in srgb, var(--vv-amber) 22%, transparent), transparent 70%), radial-gradient(60% 55% at 25% 30%, color-mix(in srgb, var(--vv-violet) 16%, transparent), transparent 70%); }
.ba-iso { --size: 21rem; position: absolute; left: 70%; top: 50%; width: var(--size); height: var(--size); margin: calc(var(--size) / -2); display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; transform: rotateX(50deg) rotateZ(-45deg); }
.ba-cell { --lip: color-mix(in srgb, var(--top) 62%, #000); border-radius: 1.6rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--top) 70%, #fff), var(--top) 55%, color-mix(in srgb, var(--top) 85%, #000));
  box-shadow: 1px 1px 0 var(--lip), 2px 2px 0 var(--lip), 3px 3px 0 var(--lip), 4px 4px 0 var(--lip), 6px 6px 0 var(--lip), 8px 8px 0 var(--lip), 10px 10px 0 var(--lip), 12px 12px 0 color-mix(in srgb, var(--top) 40%, #000), 30px 40px 60px rgba(0, 0, 0, .45); }
.ba-cell:nth-child(1) { --top: var(--vv-teal); }
.ba-cell:nth-child(2), .ba-cell:nth-child(3) { --top: var(--vv-violet); }
.ba-dot { --top: var(--vv-amber); border-radius: 50%; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--top) 45%, #fff), var(--top) 45%, color-mix(in srgb, var(--top) 80%, #000)); }
.ba-orbit { position: absolute; left: 62%; top: 50%; width: min(70rem, 150vw); height: 16rem; translate: -50% -25%; rotate: -8deg; border: 1px solid color-mix(in srgb, var(--vv-teal) 35%, transparent); border-radius: 50%; }
.ba-orbit::after { content: ""; position: absolute; right: 12%; bottom: 1.1rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--vv-teal); box-shadow: 0 0 1.1rem var(--vv-teal); }
.band-text { position: relative; }
.band-line { max-width: 30rem; margin: 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; }
@media (max-width: 47.99rem) {
  .band { align-items: flex-start; padding-top: 7rem; }
  .ba-iso { --size: 12rem; left: 50%; top: 66%; gap: 1rem; }
  .ba-orbit { top: 66%; }
}
/* Page backdrop: off unless motion is welcome (the motion block pins it and fades it in). */
.page-art { display: none; z-index: -1; pointer-events: none; }
@media (forced-colors: active) { .band-art, .page-art { display: none; } }

.contact { padding-bottom: 1rem; }

@media (min-width: 48rem) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .section { padding: 4.5rem 0; }
}
@media (min-width: 64rem) {
  .process-grid { grid-template-columns: 1fr 1.2fr; align-items: start; gap: 2.5rem; }
}
@media (min-width: 64rem) {
  .card-grid { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 2; }
  .card:nth-child(4), .card:last-child:nth-child(odd) { grid-column: span 3; }
}

/* FocusOnNavigate moves programmatic focus to the h1; it is not interactive, so no ring. */
h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible { outline: none; }

@media (max-width: 55.99rem) {
  .hb-glow--amber { width: 22rem; height: 22rem; left: -7rem; right: auto; top: -5rem; }
  .hb-float-4, .hb-float-5, .hb-float-7 { display: none; }
}

/* Contact form */
.contact-form, .form-panel { max-width: 40rem; }
.contact-main > .form-panel:first-child { margin-top: 0; }
.contact-main > .form-panel + .contact-form { margin-top: 1.5rem; }
.contact-form { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.contact-form .field { --c: var(--grad-start); display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
/* Focus colour rotates through the logo colours, like the cards: teal, violet, amber. */
.contact-form .field:nth-of-type(3n+2) { --c: var(--grad-mid); }
.contact-form .field:nth-of-type(3n) { --c: var(--grad-end); }
.contact-form label { font-weight: 700; }
.contact-form input:not([type="hidden"]), .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: 10px; padding: .7rem .9rem;
}
.contact-form textarea { min-height: 8rem; resize: vertical; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible {
  outline: 3px solid var(--c); outline-offset: 2px; border-color: var(--c);
}
.contact-form .invalid { border-color: var(--danger); }
.validation-message { color: var(--danger); font-size: .9rem; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; font-size: 1rem; }
.contact-form .btn--primary { background: var(--grad-mid); color: var(--bg); }
.contact-form .btn:disabled { opacity: .75; cursor: progress; filter: none; }
/* Primary button: used by the hero/404 links and the form submit. */
.btn--primary { display: inline-block; padding: .8rem 1.5rem; border-radius: 10px; background: var(--accent-text); color: var(--bg); font-family: var(--font-head); font-weight: 800; text-decoration: none; }
.btn--primary:hover { filter: brightness(1.1); }
.btn--ghost { display: inline-block; padding: .8rem 1.5rem; border: 1px solid var(--border); border-radius: 10px; color: var(--fg); font-family: var(--font-head); font-weight: 800; text-decoration: none; }
.btn--ghost:hover { border-color: var(--accent-text); color: var(--accent-text); }
.form-panel { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: 12px; border: 1px solid var(--border); border-left-width: 4px; background: var(--bg-raised); }
.form-panel p { margin: 0; }
.form-panel--sent { border-color: var(--accent-text); }
.form-panel--error { border-color: var(--danger); color: var(--danger); }
.form-panel--expired { border-color: var(--vv-amber); }

@media (min-width: 48rem) {
  .contact-form { grid-template-columns: 1fr 1fr; }
  .contact-form > .field:nth-of-type(n+3), .contact-form > .btn, .contact-form > .visually-hidden { grid-column: 1 / -1; }
}

/* Long-form text (privacy page) */
.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2rem, 6vw, 3rem); }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .5rem; }

/* 404 / error pages */
.notice { padding-top: 2rem; padding-bottom: 2rem; }
.notice h1 { font-size: clamp(2rem, 6vw, 3rem); }
.notice-text { color: var(--muted); max-width: 36rem; margin: 0 0 1.5rem; }
.notice--split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) {
  .notice--split { grid-template-columns: 1.2fr 1fr; }
}

@media print {
  [data-term-state] .tl { opacity: 1; }
  [data-term-state] .tl-cmd { max-width: none; }
  .band, .page-art { display: none; }
  /* Backgrounds are usually not printed, which would leave clipped gradient text blank. */
  .hero-grad { background: none; color: inherit; }
}

/* Motion. Everything that moves lives here, so reduced-motion visitors get the finished,
   still design. Transforms and opacity only, which stay off the main thread. */
@media (prefers-reduced-motion: no-preference) {
  .vv-breathe { animation: vv-breathe 1.6s ease-in-out infinite; }
  .caret, .tl.is-current::after, .term:not([data-term-state]) .tl:last-child::after { animation: vv-blink 1.1s steps(1) infinite; }
  .tl--run::before { animation: vv-breathe 1.6s ease-in-out infinite; }
  .tl { transition: opacity .25s; }
  .step { transition: border-color .5s, box-shadow .5s; }
  .step-n { transition: background-color .5s, color .5s; }

  .hb-glow--amber { animation: vv-glow 4.8s ease-in-out infinite; }
  .hb-float { animation: vv-drift var(--d) ease-in-out infinite alternate; }

  /* The headline and sub-line (LCP candidates on phones) are never hidden; prompt and buttons rise in. */
  .hm-cell { animation: vv-snap 1.1s cubic-bezier(.2, 1.5, .4, 1) both; }
  .hm-tl { animation-delay: .1s; }
  .hm-tr { animation-delay: .3s; }
  .hm-bl { animation-delay: .5s; }
  .hm-dot { animation: vv-snap 1.1s cubic-bezier(.2, 1.5, .4, 1) .75s both, vv-breathe 1.6s ease-in-out 2s infinite; }
  .hm-ring { animation: vv-ripple 3.2s ease-out 2s infinite; }
  .hero-prompt, .hero-ctas { animation: vv-rise .7s ease-out both; }
  .hero-prompt { animation-delay: .15s; }
  .hero-ctas { animation-delay: .35s; }

  .band-art { position: fixed; }
  /* Dimmed behind content; stronger on wide screens where the art sits right of the text. */
  .page-art { display: block; position: fixed; opacity: 0; transition: opacity .8s ease; }
  .page-art.is-on { opacity: .22; }
  @media (min-width: 56rem) { .page-art.is-on { opacity: .32; } }
  .cbtn { transition: background-color .2s, color .2s; }
  .cbtn-label { transition: opacity .15s; }
  .card { transition: transform .25s ease, border-color .25s, box-shadow .25s; }
  .card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px var(--c); }
  /* js/reveal.js: cards that start below the fold wait, then rise in, staggered along the row.
     The reveal uses `translate` so the hover lift (`transform`) still works afterwards. */
  [data-reveal="waiting"] { opacity: 0; }
  [data-reveal="in"] { animation: vv-reveal .6s cubic-bezier(.2, .8, .3, 1) both; }
  .card:nth-child(3n+2)[data-reveal="in"], .tech-list li:nth-child(3n+2)[data-reveal="in"] { animation-delay: .1s; }
  .card:nth-child(3n)[data-reveal="in"], .tech-list li:nth-child(3n)[data-reveal="in"] { animation-delay: .2s; }
}
@keyframes vv-blink { 50% { opacity: 0; } }
@keyframes vv-glow { 0%, 100% { opacity: .6; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes vv-drift { to { transform: translate(var(--dx), var(--dy)) rotate(var(--dr)); } }
@keyframes vv-snap {
  0% { opacity: 0; transform: translate(calc(var(--fx) * var(--s)), calc(var(--fy) * var(--s))) rotate(var(--fr)) scale(.5); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes vv-ripple { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.3); } }
@keyframes vv-reveal { from { opacity: 0; translate: 0 1.5rem; } to { opacity: 1; translate: none; } }
@keyframes vv-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
