/* ==========================================================================
   SYG Software · Landing temporal
   Sistema de diseño: SYG Software (tokens v2). Tema oscuro único.
   ========================================================================== */

/* ---------- Fuentes (self-hosted, OFL) ---------- */
@font-face { font-family: "Space Grotesk"; src: url("../fonts/SpaceGrotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/SpaceGrotesk-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/IBMPlexSans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/IBMPlexSans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/IBMPlexSans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0c;
  --surface-1: #141116;
  --surface-2: #1e1824;
  --surface-3: #241d2c;
  --surface-sunken: #0f0d12;
  --border: #2a2432;
  --border-strong: #3a3244;
  --border-input: #6f5f82;
  --fg: #f4f4f6;
  --fg-muted: #a79cc0;
  --fg-subtle: #8c829d;
  --primary: #b57bff;
  --primary-fg: #1b0b2e;
  --primary-hover: #c494ff;
  --primary-active: #9e5fe8;
  --primary-tint: #241a3b;
  --accent-blue: #5b8cff;
  --accent-blue-tint: #101b33;
  --success: #3ddc97;
  --success-tint: #0e2a20;
  --warning: #f2a33d;
  --warning-tint: #332310;
  --danger: #ff6b6b;
  --danger-tint: #331414;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --glow-primary: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary), 0 0 24px rgba(181, 123, 255, .18);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;

  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(64px, 8vw, 96px);
  --maxw: 1440px;
  --header-h: 73px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); }
a:hover { color: var(--fg); }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--glow-primary); border-radius: var(--radius-sm); }
::placeholder { color: var(--fg-subtle); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 16px; background: var(--primary); color: var(--primary-fg); border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); }

/* ---------- Tipografía ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; line-height: 1.3; color: var(--primary); text-transform: uppercase; }
.eyebrow--muted { color: var(--fg-subtle); }
.h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); line-height: 1.15; font-weight: 600; }
.h2 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 36px); line-height: 1.3; font-weight: 600; }
.h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.3; font-weight: 600; }
.lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--fg-muted); }
.body-sm { font-size: 14px; line-height: 1.6; color: var(--fg-muted); }

/* ---------- Componentes base ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.btn--lg { min-height: 52px; padding: 14px 22px; font-size: 16px; }
.btn--sm { font-size: 14px; padding: 10px 16px; }
.btn--primary { background: var(--primary); color: var(--primary-fg); }
.btn--primary:hover { background: var(--primary-hover); color: var(--primary-fg); }
.btn--primary:active { background: var(--primary-active); }
.btn--outline { border-color: var(--border-input); color: var(--fg); background: transparent; }
.btn--outline:hover { border-color: var(--primary); color: var(--fg); }
.btn--ghost { min-height: 44px; padding: 0 4px; border: none; background: none; color: var(--fg-muted); font-family: var(--font-mono); font-size: 12px; font-weight: 400; }
.btn--ghost:hover { color: var(--fg); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .02em; line-height: 1.3; white-space: nowrap; }
.badge--primary { background: var(--primary-tint); color: var(--primary); }
.badge--warning { background: var(--warning-tint); color: var(--warning); }
.badge--blue { background: var(--accent-blue-tint); color: var(--accent-blue); }
.badge--success { background: var(--success-tint); color: var(--success); }
.badge__dot { width: 6px; height: 6px; border-radius: var(--radius-pill); background: currentColor; }

.tag { display: inline-block; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); color: var(--fg-muted); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }

.card { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); }
.icon { flex-shrink: 0; color: var(--primary); }

.codeblock { padding: 20px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 13px; line-height: 1.8; color: var(--fg-subtle); overflow-x: auto; }
.codeblock__cmd { color: var(--accent-blue); }
.codeblock__row { display: flex; justify-content: space-between; gap: 16px; }
.codeblock__row > span:last-child { color: var(--fg-muted); text-align: right; }
.ok { color: var(--success); }
.warn { color: var(--warning); }

/* ---------- Barra superior + header ---------- */
.topbar { display: flex; align-items: flex-start; justify-content: center; gap: 12px; padding: 10px var(--gutter); background: var(--surface-1); border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--fg-muted); }
.topbar .warn { flex-shrink: 0; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 12, .92); border-bottom: 1px solid var(--border); backdrop-filter: saturate(140%) blur(6px); -webkit-backdrop-filter: saturate(140%) blur(6px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.header__logo img { height: 32px; width: auto; }
.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { color: var(--fg-muted); text-decoration: none; }
.nav a:hover { color: var(--fg); }
.header__actions { display: flex; align-items: center; gap: 16px; }

.lang { display: flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.lang a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 42px; padding: 0 10px; color: var(--fg-muted); text-decoration: none; }
.lang a + a { border-left: 1px solid var(--border-strong); }
.lang a[aria-current="page"] { background: var(--primary-tint); color: var(--primary); }
.lang a:hover { color: var(--fg); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding-block: var(--section-y) calc(var(--section-y) - 8px); }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .h1 { max-width: 720px; }
.hero .lead { max-width: 620px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.build { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); }
.build__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Franja de datos ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--border); }
.fact { display: flex; flex-direction: column; gap: 8px; padding: 32px 24px; border-right: 1px solid var(--border); }
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: none; padding-right: 0; }
.fact__value { font-family: var(--font-display); font-size: 22px; line-height: 1.3; font-weight: 600; }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }
.section--flush-top { padding-top: 0; }
.section--rule { border-top: 1px solid var(--border); }
.section--band { background: var(--surface-1); border-top: 1px solid var(--border); }
.section__head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.section__head--split { max-width: none; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; }
.section__head--split > div { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.section__aside { font-family: var(--font-mono); font-size: 12px; color: var(--fg-subtle); white-space: nowrap; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.services .card { padding: 28px; }

/* ---------- Proceso ---------- */
.process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.stage { display: flex; flex-direction: column; }
.stage__rail { display: flex; align-items: center; }
.rail-part { flex: 1 1 0; display: flex; align-items: center; gap: 10px; }
.rail-line { flex-grow: 1; height: 1px; background: var(--border-input); }
.rail-line--in { height: 0; background: none; border-top: 1px dashed var(--warning); }
.rail-line--out { background: var(--success); }
.node { flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); border: 1px solid var(--primary); background: var(--primary-tint); color: var(--primary); font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.stage__body { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px 0; }
.stage__title { font-family: var(--font-display); font-size: 28px; line-height: 1.3; font-weight: 600; }
.stage__desc { font-size: 14px; line-height: 1.6; color: var(--fg-muted); min-height: 68px; }
.stage__figure { margin: 14px 0 0; }
.stage__deliv { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--fg-muted); }
.stage__deliv span { color: var(--primary); }
.process__loop { margin-top: 32px; }
.process__cap, .process__loop-m { display: none; }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.team__head { display: flex; flex-direction: column; gap: 12px; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.role { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); }
.role__title { font-family: var(--font-display); font-size: 18px; line-height: 1.3; font-weight: 600; }
.role > div { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Seguridad ---------- */
.security { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.security__copy { display: flex; flex-direction: column; gap: 20px; }
.security__figure { max-width: 540px; width: 100%; justify-self: end; margin: 0; }

/* ---------- Proyectos ---------- */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.project__cat { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--accent-blue); }
.project__desc { flex-grow: 1; }
.project__meta { font-family: var(--font-mono); font-size: 12px; color: var(--fg-subtle); }
.project__link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; text-decoration: none; min-height: 24px; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact__copy { display: flex; flex-direction: column; gap: 24px; }
.contact__copy .lead { max-width: 520px; }
.channels { display: flex; flex-direction: column; margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.channel { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); color: var(--fg); text-decoration: none; }
a.channel:hover .channel__value { color: var(--primary); }
.channel__text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.channel__label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--fg-subtle); }
.channel__value { font-size: 16px; font-weight: 500; font-style: normal; transition: color var(--dur-fast) var(--ease-out); }
.channel__arrow { color: var(--fg-subtle); }

/* Terminal del brief */
.term { display: flex; flex-direction: column; min-height: 600px; background: var(--surface-1); border: 1px solid var(--border-strong); border-radius: var(--radius-md); overflow: hidden; }
.term__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.term__title { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--fg-subtle); }
.term__dot { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--border-strong); }
.term__title span:last-child { margin-left: 6px; }
.term__bar .badge { font-size: 10px; padding: 3px 8px; }
.tabs { display: flex; border-bottom: 1px solid var(--border); }
.tab { flex: 1 1 0; min-height: 48px; border: none; background: var(--surface-sunken); color: var(--fg-subtle); font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--surface-1); color: var(--fg); box-shadow: inset 0 -2px 0 var(--primary); }
.term__body { flex-grow: 1; display: flex; flex-direction: column; padding: 24px; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--fg-subtle); }
.panel { display: flex; flex-direction: column; gap: 16px; flex-grow: 1; }
.term__cmd { color: var(--accent-blue); }
.brief__log { display: flex; flex-direction: column; }
.brief__log strong { color: var(--fg); font-weight: 400; }
.brief__step { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; border: none; min-width: 0; }
.brief__q { padding: 0; color: var(--fg); font-family: var(--font-body); font-size: 16px; font-weight: 600; }
.brief__q::before { content: "› "; color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-input); background: transparent; color: var(--fg); font-family: var(--font-body); font-size: 14px; cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-tint); color: var(--primary); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-body); font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--fg-muted); }
.input { width: 100%; min-height: 44px; padding: 0 12px; background: var(--bg); border: 1px solid var(--border-input); border-radius: var(--radius-sm); color: var(--fg); font-family: var(--font-body); font-size: 16px; }
textarea.input { min-height: 88px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-family: var(--font-body); font-size: 13px; line-height: 1.5; color: var(--fg-muted); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--danger-tint); color: var(--danger); font-size: 12px; }
.brief__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brief__sent { color: var(--success); }
.reply { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); }
.reply__who { font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--primary); }
.reply__text { font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--fg); }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.agent__soon { color: var(--warning); }
.agent__input { display: flex; gap: 8px; margin-top: auto; opacity: .45; }
.agent__input .input { flex-grow: 1; min-width: 0; cursor: not-allowed; }
.term__foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--fg-subtle); }
.term__foot svg { color: var(--success); flex-shrink: 0; }
.term__foot a { color: var(--fg-muted); }
.turnstile:empty { display: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 40px; }
.footer__brand { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__brand img { height: 24px; width: auto; opacity: .7; }
.footer__legal, .footer__nav { font-family: var(--font-mono); font-size: 12px; color: var(--fg-subtle); }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__nav a { color: var(--fg-muted); text-decoration: none; }
.footer__nav a:hover { color: var(--fg); }

/* ---------- Consentimiento de cookies ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin-left: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); font-size: 14px; color: var(--fg-muted); }
.consent__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Páginas legales ---------- */
.legal { max-width: 760px; padding-block: var(--section-y); }
.legal h1 { margin-bottom: 16px; }
.legal h2 { margin: 32px 0 8px; font-family: var(--font-display); font-size: 22px; }
.legal p, .legal li { color: var(--fg-muted); }
.legal .note { margin: 16px 0; padding: 12px 16px; background: var(--warning-tint); color: var(--warning); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 12px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav { display: none; }
}
@media (max-width: 1024px) {
  .hero, .team, .security, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 40px; }
  .security__figure { justify-self: start; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section__head--split { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 20px; border-bottom: 1px solid var(--border); }
  .fact:first-child { padding-left: 20px; }
  .fact:last-child { padding-right: 20px; }
  .fact:nth-child(2n) { border-right: none; }
  .fact:nth-child(n + 3) { border-bottom: none; }
  .fact__value { font-size: 18px; }
  .facts-wrap { padding-inline: 0; }

  /* Proceso en vertical */
  .process { grid-template-columns: minmax(0, 1fr); }
  .stage { flex-direction: row; gap: 16px; }
  .stage__rail { flex-direction: column; width: 44px; flex-shrink: 0; }
  .stage__rail .rail-part:first-child { display: none; }
  .stage__rail .rail-part:last-child { flex-direction: column; width: 1px; }
  .stage__rail .rail-part:last-child .badge { display: none; }
  .stage__rail .rail-line { width: 1px; height: auto; flex-grow: 1; }
  .stage__rail .rail-line--out { background: var(--success); }
  .stage__body { padding: 8px 0 36px; }
  .stage__title { font-size: 22px; }
  .stage__desc { min-height: 0; }
  .process__cap { display: flex; align-items: center; gap: 16px; }
  .process__cap-mark { width: 44px; display: flex; justify-content: center; }
  .process__cap-mark--in span { height: 28px; border-left: 1px dashed var(--warning); }
  .process__cap-mark--out span { width: 9px; height: 9px; border-radius: var(--radius-pill); background: var(--success); }
  .process__loop { display: none; }
  .process__loop-m { display: flex; gap: 10px; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--border-strong); font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); }
  .process__loop-m span:first-child { color: var(--primary); }
}
@media (max-width: 800px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .services .card { padding: 20px; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .header__logo img { height: 28px; }
  .header__actions { gap: 8px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .build { padding: 16px; }
  .codeblock { padding: 16px; font-size: 12px; }
  .roles, .projects { grid-template-columns: minmax(0, 1fr); }
  .role { padding: 16px; }
  .role__title { font-size: 17px; }
  .card { padding: 20px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .term { min-height: 540px; }
  .term__body { padding: 18px; }
  .row-btns { flex-direction: column; }
  .row-btns .btn { width: 100%; }
  .security__audit .codeblock__row > span:last-child { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .term__bar .badge { display: none; }
}
