/* Codellipsis — sitio web
   Paleta tomada del logo: azul marino #0B203C, cian #02C1F9, azul #00A0FD, azul intenso #0078FD */

:root {
  --navy: #0b203c;
  --navy-deep: #061427;
  --navy-soft: #13294a;
  --ink: #0b203c;
  --muted: #4a5b72;
  --faint: #6b7c93;
  --line: #dde5ef;
  --bg: #f4f7fb;
  --surface: #ffffff;

  --cyan: #02c1f9;
  --blue-mid: #00a0fd;
  --blue: #0078fd;
  --action: #0066d9;          /* botones: contraste AA con texto blanco */
  --action-hover: #0054b3;
  --brand-gradient: linear-gradient(90deg, #02c1f9, #00a0fd 50%, #0078fd);

  --on-dark: #ffffff;
  --on-dark-muted: #9fb0c8;
  --on-dark-dim: #7f93b0;

  --term-bg: #050e1d;
  --term-ink: #e6edf7;
  --term-muted: #7c8ba3;
  --term-ok: #3ddc97;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 14px;
  --maxw: 1120px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  display: block;
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 6px 0;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav a:hover { color: var(--ink); }

.nav a[aria-current="page"] { color: var(--ink); }

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
}

/* Menú móvil (sin JavaScript) */
.menu-mobile { display: none; margin-left: auto; position: relative; }

.menu-mobile summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--ink);
}

.menu-mobile summary::-webkit-details-marker { display: none; }

.menu-mobile summary svg { width: 22px; height: 22px; }

.menu-mobile nav {
  position: absolute;
  right: 0;
  top: 54px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(11, 32, 60, 0.35);
}

.menu-mobile nav a {
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.menu-mobile nav a:hover,
.menu-mobile nav a[aria-current="page"] { background: var(--bg); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--action);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--action);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn:active { transform: translateY(1px); }

.btn-small { padding: 9px 18px; font-size: 0.92rem; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }

.on-dark .btn-ghost {
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.28);
}

.on-dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }

/* ---------- Tipografía común ---------- */

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--action);
}

.on-dark .eyebrow { color: var(--cyan); }

h1 {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 750;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h3 { letter-spacing: -0.015em; }

.lead {
  margin: 0 0 36px;
  max-width: 34em;
  font-size: 1.18rem;
  color: var(--muted);
}

.on-dark .lead { color: var(--on-dark-muted); }

/* ---------- Portada ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
  background:
    radial-gradient(900px 480px at 88% 10%, rgba(0, 160, 253, 0.16), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(2, 193, 249, 0.08), transparent 60%),
    var(--navy-deep);
  color: var(--on-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero h1 .dim { color: var(--on-dark-dim); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Terminal */

.terminal {
  background: var(--term-bg);
  color: var(--term-ink);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 40px 80px -40px rgba(0, 120, 253, 0.45);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2a3a55;
}

.terminal-bar em {
  margin-left: 10px;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--term-muted);
}

.terminal pre {
  margin: 0;
  padding: 22px 22px 26px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.terminal .ln {
  display: block;
  opacity: 0;
  animation: reveal 0.35s ease forwards;
}

.terminal .ln:nth-child(1) { animation-delay: 0.2s; }
.terminal .ln:nth-child(2) { animation-delay: 0.9s; }
.terminal .ln:nth-child(3) { animation-delay: 1.3s; }
.terminal .ln:nth-child(4) { animation-delay: 1.7s; }
.terminal .ln:nth-child(5) { animation-delay: 2.1s; }
.terminal .ln:nth-child(6) { animation-delay: 2.7s; }
.terminal .ln:nth-child(7) { animation-delay: 3.2s; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.t-prompt { color: var(--cyan); }
.t-muted { color: var(--term-muted); }
.t-ok { color: var(--term-ok); }
.t-strong { color: #fff; font-weight: 600; }

.cursor {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  vertical-align: -0.2em;
  background: var(--cyan);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Cabecera de páginas interiores */

.page-hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(800px 380px at 90% 0%, rgba(0, 160, 253, 0.16), transparent 60%),
    var(--navy-deep);
  color: var(--on-dark);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  margin-bottom: 16px;
}

.page-hero .lead { margin-bottom: 0; }

/* ---------- Datos clave ---------- */

.facts {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.facts-grid > div {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.facts-grid > div + div { border-left: 1px solid var(--line); }

.facts-grid strong {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.facts-grid span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Secciones ---------- */

.section { padding: 104px 0; }

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 660px;
  margin-bottom: 52px;
}

.section-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Tarjetas */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  padding: 32px 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -26px rgba(0, 120, 253, 0.45);
}

.card-num {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--action);
  background: #e8f3ff;
  padding: 3px 9px;
  border-radius: 6px;
}

.card h3 { margin: 0 0 10px; font-size: 1.22rem; }

.card p { margin: 0; color: var(--muted); }

/* Proceso */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 24px;
  border-top: 2px solid var(--line);
  position: relative;
}

.steps li::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--brand-gradient);
}

.steps li::after {
  content: "0" counter(step);
  position: absolute;
  top: 22px;
  right: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint);
}

.steps h3 { margin: 0 0 8px; font-size: 1.12rem; }

.steps p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Trayectoria (sectores) */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.sector-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.sector-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.sector-list li::before {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-gradient);
  transform: translateY(-1px);
}

.sector-list strong { display: block; }

.sector-list span { color: var(--muted); font-size: 0.95rem; }

/* Premio */

.award {
  position: relative;
  padding: 32px 30px;
  border-radius: var(--radius);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(2, 193, 249, 0.18), transparent 70%),
    var(--navy);
  color: var(--on-dark);
  overflow: hidden;
}

.award .eyebrow { color: var(--cyan); }

.award h3 { margin: 0 0 12px; font-size: 1.35rem; }

.award p { margin: 0 0 12px; color: var(--on-dark-muted); }

.award p:last-child { margin-bottom: 0; }

.award .medal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(205, 127, 50, 0.16);
  color: #f0b27a;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Placa de circuito con clientes */

.board {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  background:
    radial-gradient(520px 300px at 50% 50%, rgba(0, 160, 253, 0.14), transparent 70%),
    var(--navy-deep);
  border: 1px solid rgba(2, 193, 249, 0.18);
  overflow: hidden;
}

.board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  pointer-events: none;
}

.board svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.board .trace {
  fill: none;
  stroke: #1d4f86;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.board .trace.faint { stroke: #173d68; stroke-width: 2; }

.board .flow {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 14 540;
  stroke-dashoffset: 554;
  filter: drop-shadow(0 0 4px rgba(2, 193, 249, 0.85));
  animation: flow 5s linear infinite;
}

@keyframes flow {
  from { stroke-dashoffset: 554; }
  to { stroke-dashoffset: 0; }
}

.board .via { fill: var(--navy-deep); stroke: var(--cyan); stroke-width: 2; }
.board .via.faint { stroke: #2a6fb0; }

.board .pin { fill: #2a6fb0; }

.board .chip-body {
  fill: #0b1f3a;
  stroke: rgba(2, 193, 249, 0.6);
  stroke-width: 1.5;
}

.board .chip-label {
  fill: #e6edf7;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.board .pad rect {
  fill: #0e2747;
  stroke: rgba(2, 193, 249, 0.38);
  stroke-width: 1.2;
}

.board .pad .name {
  fill: #ffffff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
}

.board .pad .sector {
  fill: #8ea3c0;
  font-family: var(--mono);
  font-size: 11px;
}

/* Versión móvil de la placa: circuito vertical */
.board-chip-mobile { display: none; }

.circuit-list {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.board-note {
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 0.88rem;
}

.trust-line {
  max-width: 46em;
  margin: 44px auto 0;
  text-align: center;
  font-size: 1.12rem;
  color: var(--muted);
}

.trust-line strong { color: var(--ink); }

/* Perfil */

.profile {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}

.profile-card {
  position: sticky;
  top: 108px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.profile-card img { display: block; width: 96px; margin-bottom: 18px; }

.profile-card h3 { margin: 0 0 4px; font-size: 1.2rem; }

.profile-card .role { margin: 0 0 18px; color: var(--muted); }

.profile-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
  font-size: 0.95rem;
}

.profile-card dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
}

.profile-card dd { margin: 0 0 6px; }

.prose p { margin: 0 0 18px; color: var(--muted); font-size: 1.05rem; }

.prose p:first-child { color: var(--ink); font-size: 1.18rem; }

.prose h3 { margin: 36px 0 12px; font-size: 1.25rem; }

/* Línea temporal */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 26px 18px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--blue-mid);
}

.timeline .period {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--action);
}

.timeline strong { display: block; margin: 2px 0 4px; }

.timeline span.desc { color: var(--muted); font-size: 0.97rem; }

/* Tecnologías */

.tech-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tech-group {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tech-group h3 { margin: 0 0 14px; font-size: 1.05rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink);
}

/* Contacto */

.contact-band {
  padding: 96px 0;
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(0, 160, 253, 0.18), transparent 70%),
    var(--navy-deep);
  color: var(--on-dark);
}

.contact-band .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-band h2 { max-width: 16em; }

.contact-text {
  margin: 0 0 32px;
  color: var(--on-dark-muted);
  font-size: 1.12rem;
  max-width: 32em;
}

.contact-mail {
  font-size: clamp(1.4rem, 4.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: #fff;
  border-bottom: 3px solid rgba(2, 193, 249, 0.45);
  padding-bottom: 4px;
  transition: border-color 0.2s;
  overflow-wrap: anywhere;
}

.contact-mail:hover { border-color: var(--cyan); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-box {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-box h2 { font-size: 1.5rem; }

.contact-box .contact-mail {
  display: inline-block;
  margin: 4px 0 18px;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--action);
  border-bottom-color: #cfe6ff;
}

.contact-box .contact-mail:hover { border-color: var(--action); }

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e8f3ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230066d9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.info-list {
  margin: 0;
  display: grid;
  gap: 18px;
}

.info-list dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
}

.info-list dd { margin: 2px 0 0; }

/* ---------- Pie ---------- */

.site-footer {
  padding: 56px 0 40px;
  background: var(--navy-deep);
  color: var(--on-dark-muted);
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img { display: block; height: 36px; width: auto; margin-bottom: 14px; }

.footer-brand p { margin: 0; max-width: 26em; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 40px;
  align-content: start;
}

.footer-nav a { text-decoration: none; color: var(--on-dark); }
.footer-nav a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
}

.footer-bottom a { color: var(--on-dark); text-decoration: none; }
.footer-bottom a:hover { color: var(--cyan); }

/* ---------- Páginas legales ---------- */

.legal { padding: 64px 0 96px; }

.legal .wrap { max-width: 780px; }

.legal .updated {
  margin: 0 0 40px;
  color: var(--faint);
  font-size: 0.92rem;
}

.legal h2 {
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  margin: 44px 0 12px;
}

.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); }
.legal a { color: var(--action); }

.legal dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  margin: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal dt { font-weight: 600; }
.legal dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }

/* 404 */

.notfound {
  padding: 120px 0;
  text-align: center;
}

.notfound .code {
  font-family: var(--mono);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

/* ---------- Adaptación a pantallas ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .profile { grid-template-columns: 1fr; gap: 40px; }
  .profile-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { height: 66px; gap: 12px; }
  .brand img { height: 34px; }
  .nav, .header-cta { display: none; }
  .menu-mobile { display: block; }
  .hero { padding: 56px 0 64px; }
  .lead { font-size: 1.08rem; }
  .terminal { font-size: 0.78rem; }
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid > div { padding: 20px 0; }
  .facts-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }
  .steps { grid-template-columns: 1fr; }
  .tech-groups { grid-template-columns: 1fr; }
  .page-hero { padding: 52px 0 48px; }
  .contact-box { padding: 24px 20px; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 10px 24px; }

  .board { padding: 22px 18px; }
  .board svg { display: none; }

  .board-chip-mobile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #0b1f3a;
    border: 1px solid rgba(2, 193, 249, 0.6);
    color: #e6edf7;
    font-family: var(--mono);
    font-size: 0.95rem;
  }

  .board-chip-mobile img { width: 44px; height: auto; }

  .circuit-list {
    position: relative;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    list-style: none;
    margin: 0;
    padding: 18px 0 0 30px;
  }

  .circuit-list::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 30px;
    width: 2px;
    background: #1d4f86;
  }

  .circuit-list li {
    position: relative;
    margin-bottom: 12px;
    padding: 11px 14px;
    background: #0e2747;
    border: 1px solid rgba(2, 193, 249, 0.38);
    border-radius: 10px;
  }

  .circuit-list li::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 50%;
    width: 20px;
    height: 2px;
    background: #1d4f86;
  }

  .circuit-list li::after {
    content: "";
    position: absolute;
    left: -25px;
    top: calc(50% - 5px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--navy-deep);
    border: 2px solid var(--cyan);
  }

  .circuit-list strong { display: block; color: #fff; font-size: 0.95rem; }
  .circuit-list span { color: #8ea3c0; font-family: var(--mono); font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .terminal .ln { animation: none; opacity: 1; }
  .cursor { animation: none; }
  .card { transition: none; }
  .board .flow { display: none; }
}
