/* ==================================================================
   PLATINUM CIBERSEGURIDAD — Design System v4
   Art direction: technical editorial on warm near-black.
   Ink: warm cream · Accent: a single amber
   Type: Geist (display + body) · Geist Mono (data) · Instrument Serif
         italic, used exactly once, as an accent.
   Devices: hairline frames, corner brackets, dot rules, mono tickers,
            liquid-glass card, vertical grid lines.
   ================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500;600&family=Instrument+Serif:ital@1&display=swap');

:root {
  /* ---- Canvas — warm near-black, never #000 --------------------- */
  --canvas:        #0B0A09;
  --canvas-sunken: #100E0C;
  --canvas-tint:   #17130F;
  --surface:       #141210;
  --surface-2:     #1B1714;

  /* ---- Ink — one warm family ------------------------------------ */
  --ink:   #F2EBE0;
  --ink-2: #A79E93;
  --ink-3: #7C736A;
  --ink-4: #565049;

  /* ---- The single accent ---------------------------------------- */
  --accent:      #F29325;
  --accent-hot:  #FFA83F;
  --accent-deep: #C4700F;
  --accent-soft: rgba(242, 147, 37, 0.10);
  --accent-line: rgba(242, 147, 37, 0.32);
  --accent-glow: rgba(242, 147, 37, 0.20);

  /* ---- Status. Alert is the only colour outside the amber; it
          earns that by meaning something. ------------------------- */
  --alert:      #E2563A;
  --alert-soft: rgba(226, 86, 58, 0.12);

  /* ---- Hairlines. On dark, structure comes from lines, not
          shadows — shadows only anchor floating surfaces. --------- */
  --line:    rgba(242, 235, 224, 0.10);
  --line-2:  rgba(242, 235, 224, 0.19);
  --line-in: rgba(255, 255, 255, 0.055);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-2: 0 24px 52px -30px rgba(0, 0, 0, 0.9);
  --shadow-3: 0 44px 88px -40px rgba(0, 0, 0, 0.95);
  --ring:     rgba(242, 147, 37, 0.6);

  /* ---- Concentric radii ----------------------------------------- */
  --r-shell: 26px;
  --r-core:  20px;
  --r-md:    14px;
  --r-sm:    9px;

  /* ---- Rhythm ---------------------------------------------------- */
  --pad-section: 124px;
  --container-max-width: 1320px;
  --gutter: 4vw;
  --head-h: 64px;

  /* ---- Motion ---------------------------------------------------- */
  --ease:      cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.42, 0.64, 1);

  /* ---- z-scale --------------------------------------------------- */
  --z-grain:    5;
  --z-header:   1000;
  --z-dropdown: 1100;
  --z-overlay:  1200;

  /* ================================================================
     LEGACY ALIASES — the other 15 pages address these names.
     Re-pointing them flips every page to the dark direction at once.
     ================================================================ */
  --bg-deep:   var(--canvas);
  --bg-dark:   var(--canvas-sunken);
  --bg-accent: var(--canvas-tint);

  --primary:        var(--accent);
  --primary-strong: var(--accent-hot);
  --primary-dark:   var(--accent-deep);
  --primary-glow:   var(--accent-glow);
  --secondary:      var(--accent);
  --secondary-glow: var(--accent-soft);

  --text-primary:   var(--ink);
  --text-secondary: var(--ink-2);
  --text-muted:     var(--ink-3);

  --glass-bg:     rgba(20, 18, 16, 0.72);
  --glass-border: var(--line);
  --glass-shadow: var(--shadow-2);

  --section-padding: var(--pad-section) 0;
  --radius-sm: var(--r-sm);
  --radius:    var(--r-md);
  --radius-lg: var(--r-core);

  --transition-smooth: all 0.4s var(--ease);
  --ease-spring: var(--ease-out);
}

/* ==================================================================
   BASE
   ================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--canvas); }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(46% 34% at 6% -6%,  rgba(242, 147, 37, 0.09), transparent 62%),
    radial-gradient(40% 30% at 102% 8%, rgba(242, 147, 37, 0.05), transparent 58%),
    radial-gradient(70% 44% at 50% 112%, rgba(196, 112, 15, 0.08), transparent 62%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(242, 147, 37, 0.28); color: #fff; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--canvas); }
::-webkit-scrollbar-thumb { background: #2C2621; border-radius: 99px; border: 3px solid var(--canvas); }
::-webkit-scrollbar-thumb:hover { background: #3D362E; }

img, video { display: block; max-width: 100%; }
a { color: inherit; }

/* ==================================================================
   TYPOGRAPHY
   ================================================================== */
h1, h2, h3, h4, h5, .font-display {
  font-family: 'Geist', system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}
h3, h4, h5 { letter-spacing: -0.022em; line-height: 1.18; }

p { text-wrap: pretty; }

.font-mono, .mono {
  font-family: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* The single editorial accent face — italic serif, one word at a time */
.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.meta {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.665rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.display-xl { font-size: clamp(2.6rem, 6vw, 5rem); }
.display-l  { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.display-m  { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }

.lead {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 62ch;
}
.muted { color: var(--ink-2); }
.dim   { color: var(--ink-3); }

h1 em, h2 em, .accent-word { font-style: normal; color: var(--accent); }

.text-gradient {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
  color: var(--accent);
}

/* ==================================================================
   LAYOUT PRIMITIVES
   ================================================================== */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container-max-width));
  margin-inline: auto;
}

section { padding: var(--pad-section) 0 calc(var(--pad-section) + 6px); position: relative; }
section.tight { padding: 76px 0 84px; }
section.sunken { background: var(--canvas-sunken); border-block: 1px solid var(--line); }

.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-md { margin-top: 1.4rem; }
.mt-xl { margin-top: 3.5rem; }

.eyebrow, .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.665rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.eyebrow::before, .section-tag::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.eyebrow.center { justify-content: center; }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.66fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: 4.2rem;
}
.sec-head h2 { font-size: clamp(1.9rem, 3.3vw, 2.85rem); }
.sec-head .sec-aside { color: var(--ink-2); font-size: 0.96rem; padding-bottom: 0.3rem; }

h2.section-title { font-size: clamp(1.9rem, 3.3vw, 2.85rem); margin-bottom: 2.3rem; }
.section-title.text-center { margin-inline: auto; }

.rule {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.665rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Dot rule — the reference's dot matrix, drawn with a gradient */
.dot-rule {
  height: 3px;
  background-image: radial-gradient(currentColor 1.5px, transparent 1.6px);
  background-size: 9px 3px;
  background-repeat: repeat-x;
  color: var(--ink-4);
}
.dot-rule.hot { color: var(--accent); }

/* Corner brackets */
.brackets { position: relative; }
.brackets > .bk {
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--ink-3);
  pointer-events: none;
}
.brackets > .bk.tl { top: 0; left: 0;  border-right: none; border-bottom: none; }
.brackets > .bk.tr { top: 0; right: 0; border-left: none;  border-bottom: none; }
.brackets > .bk.bl { bottom: 0; left: 0;  border-right: none; border-top: none; }
.brackets > .bk.br { bottom: 0; right: 0; border-left: none;  border-top: none; }

/* ==================================================================
   PLATE — outer tray + inner core, concentric radii
   ================================================================== */
.plate {
  position: relative;
  padding: 6px;
  border-radius: var(--r-shell);
  background: rgba(242, 235, 224, 0.035);
  border: 1px solid var(--line);
}
.plate-core {
  position: relative;
  border-radius: var(--r-core);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--line-in);
  overflow: hidden;
}

/* ==================================================================
   LIQUID GLASS — real edge refraction, not just a blur
   ================================================================== */
.glass-card-lq {
  position: relative;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.012);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(5px) saturate(120%);
  backdrop-filter: blur(5px) saturate(120%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.10), 0 26px 60px -34px rgba(0, 0, 0, 0.9);
  isolation: isolate;
}
/* The 1.4px gradient frame, masked so only the ring paints */
.glass-card-lq::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.05) 46%, rgba(255, 255, 255, 0.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* ==================================================================
   BUTTONS
   ================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: -0.008em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.42s var(--ease), background 0.42s var(--ease),
              box-shadow 0.42s var(--ease), border-color 0.42s var(--ease), color 0.3s var(--ease);
}
.btn:has(.cap) { padding: 0.7rem 0.7rem 0.7rem 1.32rem; }
.btn:active { transform: scale(0.978) translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }

.btn .cap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(11, 10, 9, 0.22);
  transition: transform 0.42s var(--ease-back), background 0.42s var(--ease);
}
.btn .cap svg { width: 13px; height: 13px; stroke-width: 1.6; }
.btn:hover .cap { transform: translate(2px, -1px) scale(1.06); }

.btn-primary {
  background: var(--accent);
  color: #17110A;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px -16px rgba(242, 147, 37, 0.9);
}
.btn-primary:hover { background: var(--accent-hot); transform: translateY(-2px); box-shadow: 0 22px 44px -18px rgba(242, 147, 37, 0.9); }

.btn-secondary { background: rgba(242, 235, 224, 0.05); color: var(--ink); border-color: var(--line-2); }
.btn-secondary .cap { background: rgba(242, 235, 224, 0.09); }
.btn-secondary:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent-line); }
.btn-outline .cap { background: var(--accent-soft); }
.btn-outline:hover { background: var(--accent-soft); border-color: var(--accent); transform: translateY(-2px); }

.btn-invert { background: var(--ink); color: var(--canvas); font-weight: 600; }
.btn-invert .cap { background: rgba(11, 10, 9, 0.12); }
.btn-invert:hover { background: #fff; transform: translateY(-2px); }

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.45rem 0;
  position: relative;
  transition: color 0.3s var(--ease);
}
.link-cta::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.22rem;
  height: 1px;
  background: currentColor;
  opacity: 0.42;
  transition: opacity 0.35s var(--ease);
}
.link-cta:hover { color: var(--accent); }
.link-cta:hover::after { opacity: 1; }
.link-cta svg { width: 14px; height: 14px; stroke-width: 1.6; transition: transform 0.42s var(--ease-back); }
.link-cta:hover svg { transform: translateX(3px); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  text-decoration: none;
  transition: transform 0.4s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-2px); }
.icon-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.icon-btn svg { width: 19px; height: 19px; }

/* ==================================================================
   HEADER — a flat instrument bar over the footage
   ================================================================== */
header.main-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
header.main-header.scrolled {
  background: rgba(11, 10, 9, 0.88);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}
header.main-header .nav-container {
  width: min(100% - (var(--gutter) * 2), var(--container-max-width));
  margin-inline: auto;
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-plate { display: inline-flex; align-items: center; transition: opacity 0.35s var(--ease); }
.logo:hover .brand-plate { opacity: 0.78; }
/* Two stacked words in the mark — under ~30px the second line dies */
.brand-plate img { height: 32px; width: auto; }
.logo .wordmark { font-weight: 600; font-size: 1.24rem; letter-spacing: -0.04em; color: var(--ink); }
.logo .wordmark span { color: var(--accent); }

.head-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: 1.6rem;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.665rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.head-meta .sep { width: 44px; height: 1px; background: var(--line-2); }
.head-meta b { color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }

nav.primary-nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 0.05rem; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  /* "Innovación y Desarrollo" es el item mas largo del menu: sin esto parte
     en dos lineas y estira la barra fija de 64px. */
  white-space: nowrap;
  padding: 0.45rem 0.72rem;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.855rem;
  font-weight: 450;
  border-radius: 999px;
  transition: color 0.28s var(--ease), background 0.28s var(--ease);
}
.nav-links > li > a:hover { color: var(--ink); background: rgba(242, 235, 224, 0.06); }
.nav-links > li > a.active { color: var(--accent); }
.nav-links .caret { font-size: 0.52rem; opacity: 0.5; transition: transform 0.4s var(--ease); }
.nav-links > li:hover .caret { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.985);
  min-width: 272px;
  padding: 0.5rem;
  list-style: none;
  background: rgba(20, 18, 16, 0.97);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: var(--shadow-3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s var(--ease), transform 0.42s var(--ease), visibility 0.32s;
  z-index: var(--z-dropdown);
}
.nav-links > li:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); }
.dropdown-menu a {
  display: block;
  padding: 0.58rem 0.72rem;
  border-radius: 11px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.855rem;
  font-weight: 500;
  transition: background 0.24s var(--ease), color 0.24s var(--ease);
}
.dropdown-menu a:hover { background: var(--accent-soft); color: var(--accent); }
.dropdown-menu a small {
  display: block;
  color: var(--ink-3);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.655rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-top: 3px;
}

/* Selector de idioma: tres siglas en mono sobre una hairline */
.lang-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 1.1rem;
  padding: 0.18rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 0.26rem 0.44rem;
  border-radius: 999px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.635rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--ink-3);
  transition: color 0.28s var(--ease), background 0.28s var(--ease);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.on { color: #17110A; background: var(--accent); }
.mobile-nav .lang-switch { margin: 1.6rem 0 0; }

.header-ctas { display: flex; align-items: center; gap: 0.7rem; margin-left: 1.2rem; }
.header-ctas .link-cta {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.665rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(11, 10, 9, 0.4);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.5s var(--ease-back), opacity 0.24s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(11, 10, 9, 0.975);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  padding: calc(var(--head-h) + 2.2rem) var(--gutter) 3rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.42s var(--ease), visibility 0.42s;
}
body.nav-open { overflow: hidden; }
body.nav-open .mobile-nav { opacity: 1; visibility: visible; }
body.nav-open header.main-header { z-index: calc(var(--z-overlay) + 1); background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mobile-nav > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
}
body.nav-open .mobile-nav > * { opacity: 1; transform: none; }
body.nav-open .mobile-nav > *:nth-child(1)  { transition-delay: 0.06s; }
body.nav-open .mobile-nav > *:nth-child(2)  { transition-delay: 0.09s; }
body.nav-open .mobile-nav > *:nth-child(3)  { transition-delay: 0.12s; }
body.nav-open .mobile-nav > *:nth-child(4)  { transition-delay: 0.15s; }
body.nav-open .mobile-nav > *:nth-child(5)  { transition-delay: 0.18s; }
body.nav-open .mobile-nav > *:nth-child(6)  { transition-delay: 0.21s; }
body.nav-open .mobile-nav > *:nth-child(7)  { transition-delay: 0.24s; }
body.nav-open .mobile-nav > *:nth-child(8)  { transition-delay: 0.27s; }
body.nav-open .mobile-nav > *:nth-child(9)  { transition-delay: 0.30s; }
body.nav-open .mobile-nav > *:nth-child(n+10) { transition-delay: 0.33s; }
.mobile-nav a {
  display: block;
  padding: 0.78rem 0;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .group-label {
  margin-top: 1.7rem;
  margin-bottom: 0.2rem;
  font-family: 'Geist Mono', ui-monospace, monospace;
  color: var(--accent);
  font-size: 0.665rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.mobile-nav .sub a { font-size: 1.05rem; color: var(--ink-2); border-bottom: none; padding: 0.4rem 0; }
.mobile-nav .btn { width: 100%; margin-top: 2.2rem; justify-content: center; }

/* ==================================================================
   TICKER
   ================================================================== */
.ticker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.6rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: rgba(242, 235, 224, 0.04);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ticker .claim {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.695rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

/* ==================================================================
   HOME · HERO — full-bleed footage, grid lines, glow, glass card
   ================================================================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--head-h) + 40px) 0 40px;
  overflow: hidden;
  isolation: isolate;
}

/* -- the presentation video ------------------------------------- */
.hero-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.44;
}
/* Left wash, bottom wash and a centre vignette — the headline has to
   land on darkness no matter which frame of the film is showing. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 46% at 50% 52%, rgba(11, 10, 9, 0.82), transparent 72%),
    linear-gradient(90deg, var(--canvas) 0%, rgba(11, 10, 9, 0.78) 32%, rgba(11, 10, 9, 0.28) 70%, rgba(11, 10, 9, 0.66) 100%),
    linear-gradient(0deg, var(--canvas) 1%, rgba(11, 10, 9, 0.55) 26%, transparent 58%);
}

/* -- three grid lines at 25 / 50 / 75 % ------------------------- */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent 0, transparent calc(25% - 0.5px), rgba(242, 235, 224, 0.10) calc(25% - 0.5px), rgba(242, 235, 224, 0.10) calc(25% + 0.5px), transparent calc(25% + 0.5px)),
    linear-gradient(90deg, transparent 0, transparent calc(50% - 0.5px), rgba(242, 235, 224, 0.10) calc(50% - 0.5px), rgba(242, 235, 224, 0.10) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(90deg, transparent 0, transparent calc(75% - 0.5px), rgba(242, 235, 224, 0.10) calc(75% - 0.5px), rgba(242, 235, 224, 0.10) calc(75% + 0.5px), transparent calc(75% + 0.5px));
}

/* -- the wide ellipse of amber light --------------------------- */
.hero-glow {
  position: absolute;
  top: -8%;
  left: 50%;
  width: 120%;
  height: 62%;
  transform: translateX(-50%);
  z-index: -2;
  pointer-events: none;
  opacity: 0.75;
}
.hero-glow svg { width: 100%; height: 100%; display: block; }

.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }

/* -- the liquid-glass card floating over the headline ----------- */
.hero-chip {
  width: 210px;
  min-height: 200px;
  padding: 1.15rem 1.25rem;
  margin-bottom: -50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}
.hero-chip .tag {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.hero-chip h2 { font-size: 1.06rem; line-height: 1.25; letter-spacing: -0.03em; font-weight: 500; }
.hero-chip h2 .serif { color: var(--accent); font-size: 1.2em; }
.hero-chip p { font-size: 0.685rem; line-height: 1.55; color: var(--ink-2); }

/* -- the headline ---------------------------------------------- */
.hero-head { text-align: center; padding-top: 64px; }
.hero-head .eyebrow { margin-bottom: 1.2rem; }
.hero-head h1 {
  font-size: clamp(2.35rem, 6.6vw, 4.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  max-width: 17ch;
  margin-inline: auto;
}
.hero-head h1 .stop { color: var(--accent); }
.hero-head h1 .line-2 { display: block; }
.hero-head h1 .glyph {
  display: inline-block;
  margin-right: 0.16em;
  color: var(--accent);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.hero-head .lead { margin: 1.35rem auto 0; max-width: 512px; color: rgba(242, 235, 224, 0.72); font-size: 0.94rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem; align-items: center; justify-content: center; margin-top: 2.2rem; }
.hero-actions.left { justify-content: flex-start; }
.hero-underscore { width: min(58%, 520px); margin: 1.5rem auto 0; }

/* -- the bottom instrument row --------------------------------- */
.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 2.4rem;
  margin-top: clamp(2.2rem, 4.4vw, 3.6rem);
}
.hero-insights { max-width: 340px; }
.hero-insights .meta { display: block; margin-bottom: 0.9rem; }
.hero-insights a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.78rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  transition: color 0.3s var(--ease), padding-left 0.45s var(--ease);
}
.hero-insights a:first-of-type { border-top: 1px solid var(--line); }
.hero-insights a svg { width: 15px; height: 15px; stroke-width: 1.5; flex-shrink: 0; transition: transform 0.42s var(--ease-back); }
.hero-insights a:hover { color: var(--accent); padding-left: 0.5rem; }
.hero-insights a:hover svg { transform: translateX(3px); }

.hero-claim {
  position: relative;
  justify-self: end;
  max-width: 290px;
  padding: 1.3rem 1.5rem;
  text-align: right;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.735rem;
  line-height: 1.85;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Staggered, blurred entrance — nothing mounts statically */
.hero-inner > *, .hero-foot > * {
  opacity: 0;
  filter: blur(9px);
  transform: translateY(24px);
  animation: riseIn 1.05s var(--ease) forwards;
}
.hero-inner > *:nth-child(1) { animation-delay: 0.10s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.20s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.30s; }
.hero-foot > *:nth-child(1) { animation-delay: 0.44s; }
.hero-foot > *:nth-child(2) { animation-delay: 0.50s; }
.hero-foot > *:nth-child(3) { animation-delay: 0.56s; }
@keyframes riseIn { to { opacity: 1; filter: blur(0); transform: none; } }

/* Y2Q instrument */
.q-clock {
  padding: 1rem 1.15rem;
  border-radius: 15px;
  background: rgba(11, 10, 9, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line-2);
}
.q-clock-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.61rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.7rem;
}
.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: breathe 2.6s var(--ease) infinite;
}
@keyframes breathe {
  0%   { box-shadow: 0 0 0 0 rgba(242, 147, 37, 0.6); opacity: 1; }
  70%  { box-shadow: 0 0 0 7px rgba(242, 147, 37, 0); opacity: 0.72; }
  100% { box-shadow: 0 0 0 0 rgba(242, 147, 37, 0); opacity: 1; }
}
/* flex, not a fixed column count: the block carries three units now and
   could carry four again without touching the CSS */
.q-units { display: flex; justify-content: space-between; gap: 1.15rem; }
.q-unit b {
  display: block;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.q-unit span {
  display: block;
  margin-top: 0.32rem;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.555rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ==================================================================
   LOCKUP BAND — oversized wordmark cropped by the viewport
   ================================================================== */
.lockup {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--accent-line);
  background: linear-gradient(180deg, var(--canvas-sunken), var(--canvas));
  padding-top: clamp(2rem, 5vw, 4rem);
}
.lockup-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-inline: var(--gutter);
  margin-bottom: -0.16em;
}
.lockup .word {
  font-size: clamp(3.4rem, 14.5vw, 12.5rem);
  font-weight: 700;
  letter-spacing: -0.062em;
  line-height: 0.78;
  color: var(--ink);
  white-space: nowrap;
}
.lockup .year {
  font-size: clamp(2.6rem, 10.5vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.78;
  color: var(--ink);
}
.lockup .tag {
  align-self: flex-end;
  margin-bottom: clamp(0.8rem, 2.6vw, 2.4rem);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.655rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  white-space: nowrap;
}

/* ==================================================================
   STAT RAIL
   ================================================================== */
.stat-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 2.5rem 2rem 2.5rem 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat:not(:first-child) { padding-left: 2rem; }
.stat b {
  display: block;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.stat p { margin-top: 0.9rem; font-size: 0.85rem; line-height: 1.5; color: var(--ink-2); max-width: 26ch; }

/* ==================================================================
   BENTO
   ================================================================== */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.1rem; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.2rem;
  border-radius: var(--r-shell);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.6s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.tile::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(242, 147, 37, 0.8), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.tile:hover { transform: translateY(-4px); background: var(--surface-2); }
.tile:hover::before { opacity: 1; }
.tile-lg { grid-column: span 7; }
.tile-sm { grid-column: span 5; }
.tile h3 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.tile p  { color: var(--ink-2); font-size: 0.94rem; max-width: 44ch; }
.tile .tile-foot { margin-top: auto; padding-top: 1.8rem; }

.tile-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 1.6rem;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.tile-ico svg { width: 24px; height: 24px; stroke-width: 1.4; fill: none; }

.cbom { margin-top: 1.8rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--canvas); overflow: hidden; }
.cbom-head, .cbom-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.9fr;
  gap: 0.6rem;
  padding: 0.62rem 1rem;
  font-family: 'Geist Mono', ui-monospace, monospace;
  border-bottom: 1px solid var(--line);
}
.cbom-head { font-size: 0.585rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.cbom-row { align-items: center; font-size: 0.745rem; color: var(--ink-2); transition: background 0.6s var(--ease), color 0.6s var(--ease); }
.cbom-row:last-child { border-bottom: none; }
.cbom-row.hot { background: rgba(242, 147, 37, 0.07); color: var(--ink); }
.cbom-row .tag {
  justify-self: start;
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  background: var(--alert-soft);
  color: var(--alert);
}
.cbom-row.ok .tag { background: rgba(242, 235, 224, 0.07); color: var(--ink-3); }

.console {
  margin-top: 1.7rem;
  padding: 1rem 1.05rem;
  border-radius: var(--r-md);
  background: var(--canvas);
  border: 1px solid var(--line);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.745rem;
  line-height: 1.78;
  min-height: 132px;
}
.console .cin  { color: var(--ink-2); }
.console .cin::before { content: "› "; color: var(--ink-4); }
.console .cout { color: var(--alert); }
.console .cok  { color: var(--accent); }
.caret-blink {
  display: inline-block;
  width: 7px; height: 1em;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.mini-index { list-style: none; margin-top: 1.7rem; flex: 1 1 auto; }
.mini-index li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.66rem 0;
  border-top: 1px solid var(--line);
}
.mini-index li:last-child { border-bottom: 1px solid var(--line); }
.mini-index li > span:first-child,
.mini-index li > a { font-size: 0.94rem; font-weight: 500; letter-spacing: -0.015em; text-decoration: none; }
.mini-index li > a { color: var(--ink); transition: color 0.3s var(--ease); }
.mini-index li > a:hover { color: var(--accent); }
.mini-index li > span:last-child {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.665rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}

.telemetry { margin-top: 1.7rem; display: flex; align-items: flex-end; gap: 4px; height: 78px; }
.telemetry i {
  flex: 1;
  height: 100%;
  min-width: 2px;
  border-radius: 3px 3px 0 0;
  background: rgba(242, 147, 37, 0.26);
  transform-origin: bottom;
  animation: pump 2.4s var(--ease) infinite alternate;
}
.telemetry i:nth-child(3n) { background: rgba(242, 147, 37, 0.48); }
.telemetry i.spike         { background: var(--accent-hot); }
@keyframes pump { from { transform: scaleY(0.32); } to { transform: scaleY(1); } }

/* ==================================================================
   SERVICE INDEX
   ================================================================== */
.svc { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 4rem; align-items: start; }
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1.6rem;
  padding: 1.8rem 0.6rem 1.8rem 0.2rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: padding-left 0.6s var(--ease);
}
.svc-row::before {
  content: "";
  position: absolute;
  left: -1.4rem; right: -1.4rem; top: 0; bottom: 0;
  border-radius: var(--r-md);
  background: rgba(242, 147, 37, 0.055);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: -1;
}
.svc-row:hover { padding-left: 1.2rem; }
.svc-row:hover::before { opacity: 1; }
.svc-row .n { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 0.7rem; letter-spacing: 0.1em; color: var(--ink-4); transition: color 0.4s var(--ease); }
.svc-row:hover .n { color: var(--accent); }
.svc-row .t { display: block; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.svc-row .d { display: block; font-size: 0.885rem; color: var(--ink-2); margin-top: 0.5rem; max-width: 46ch; }
.svc-row .go {
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  align-self: center;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease-back), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.svc-row .go svg { width: 13px; height: 13px; stroke-width: 1.6; }
.svc-row:hover .go { background: var(--accent); border-color: var(--accent); color: #17110A; transform: translate(3px, -2px); }

.svc-stage { position: sticky; top: calc(var(--head-h) + 26px); aspect-ratio: 1 / 1; }
.svc-stage .plate { height: 100%; }
.svc-stage .plate-core { height: 100%; background: var(--canvas); }
.svc-stage img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s var(--ease), transform 1.1s var(--ease);
}
.svc-stage img.on { opacity: 1; transform: scale(1); }
.svc-stage-cap {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 0.68rem 0.9rem;
  border-radius: 12px;
  background: rgba(11, 10, 9, 0.62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.635rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ==================================================================
   PRODUCT BAND
   ================================================================== */
.prod-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
.prod {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.85rem 1.8rem;
  border-radius: var(--r-shell);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.6s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.prod:nth-child(2) { margin-top: 3rem; }
.prod:nth-child(3) { margin-top: 6rem; }
.prod:hover { transform: translateY(-5px); border-color: var(--accent-line); background: var(--surface-2); }
.prod .code {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.5rem;
}
.prod h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.prod p { color: var(--ink-2); font-size: 0.9rem; margin-bottom: 1.7rem; }
.prod .meta-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.645rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.35s var(--ease);
}
.prod:hover .meta-row { color: var(--accent); }

/* ==================================================================
   HOT CHAPTER — the one amber slab in the whole page
   ================================================================== */
.chapter-hot .slab {
  position: relative;
  border-radius: var(--r-shell);
  overflow: hidden;
  padding: clamp(2.4rem, 5vw, 4.6rem);
  background: radial-gradient(80% 130% at 12% 0%, #F7A63A 0%, #E07C15 42%, #B75A08 100%);
  color: #190E03;
  isolation: isolate;
}
.chapter-hot .slab::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.13;
  background-image: radial-gradient(#190E03 1.4px, transparent 1.5px);
  background-size: 12px 12px;
}
.chapter-hot h2 { color: #190E03; font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 1.2rem; }
.chapter-hot .lead { color: rgba(25, 14, 3, 0.84); }
.chapter-hot .lead b { color: #190E03; }
.chapter-hot .eyebrow { color: #190E03; opacity: 0.75; }
.chapter-hot .eyebrow::before { background: #190E03; }
.chapter-hot .rule { border-color: rgba(25, 14, 3, 0.28); color: rgba(25, 14, 3, 0.74); }
.chapter-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3.4rem; align-items: center; }

.q-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0.7rem; }
.q-big .cell {
  padding: 1.1rem 0.9rem;
  border-radius: 14px;
  background: rgba(25, 14, 3, 0.13);
  border: 1px solid rgba(25, 14, 3, 0.18);
  text-align: center;
}
.q-big b {
  display: block;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.4rem, 2.9vw, 2.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #190E03;
}
.q-big span {
  display: block;
  margin-top: 0.55rem;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.565rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(25, 14, 3, 0.68);
}
.chapter-hot .btn-invert { background: #190E03; color: #F7E3C6; }
.chapter-hot .btn-invert .cap { background: rgba(247, 227, 198, 0.14); }
.chapter-hot .btn-invert:hover { background: #000; }

/* ==================================================================
   PEOPLE
   ================================================================== */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.person {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), background 0.5s var(--ease);
}
.person:hover { border-color: var(--accent-line); transform: translateY(-2px); background: var(--surface-2); }
.person img { width: 62px; height: 62px; border-radius: 17px; object-fit: cover; flex-shrink: 0; background: var(--canvas); }
.person b { display: block; font-family: 'Geist', sans-serif; font-weight: 500; font-size: 1rem; letter-spacing: -0.025em; }
.person > span > span {
  display: block;
  margin-top: 0.2rem;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.685rem;
  color: var(--ink-3);
  word-break: break-all;
  transition: color 0.35s var(--ease);
}
.person:hover > span > span { color: var(--accent); }

/* ==================================================================
   FORMS
   ================================================================== */
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.1rem; }
.field > label { font-size: 0.78rem; font-weight: 500; color: var(--ink-2); }
.field .hint { font-size: 0.72rem; color: var(--ink-3); }

input, textarea, select {
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 0.78rem 0.9rem;
  width: 100%;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(242, 147, 37, 0.16);
}
select option { background: var(--surface); color: var(--ink); }
.field-error { border-color: var(--alert) !important; box-shadow: 0 0 0 3px rgba(226, 86, 58, 0.16) !important; }

.form-msg { margin-top: 1rem; padding: 0.8rem 1rem; border-radius: var(--r-sm); font-size: 0.87rem; display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.form-msg.error   { background: var(--alert-soft); border: 1px solid rgba(226, 86, 58, 0.4); color: var(--alert); }

.close-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 4.2rem; align-items: center; }
.close-cta .plate-core { padding: 2.1rem; }

/* ---- Contact panel -------------------------------------------------
   Reemplaza a los formularios de captación: el contacto es directo
   (WhatsApp y correo por país), sin campos que cosechar. */
.contact-panel .eyebrow { margin-bottom: 1rem; }
.contact-panel h3 { font-size: 1.22rem; margin-bottom: 1.5rem; }
.contact-panel .btn { margin-bottom: 0.4rem; }
.contact-list { list-style: none; margin-top: 1.6rem; }
.contact-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.72rem 0;
  border-top: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list li > span {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.645rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-list li > a {
  font-size: 0.885rem;
  color: var(--ink);
  text-decoration: none;
  word-break: break-all;
  transition: color 0.3s var(--ease);
}
.contact-list li > a:hover { color: var(--accent); }

/* ==================================================================
   FOOTER
   ================================================================== */
footer.main-footer { position: relative; background: var(--canvas-sunken); border-top: 1px solid var(--line); padding: 88px 0 32px; }
/* Cinco columnas: marca, soluciones, servicios, empleo y las tres oficinas
   con su direccion y telefono. La de oficinas es la que mas texto lleva. */
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.85fr 0.85fr 0.95fr 1.5fr; gap: 2.4rem; margin-bottom: 58px; }
.footer-col h4 {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.64rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  color: var(--ink-3);
  margin-bottom: 1.4rem;
}
.footer-brand .brand-plate { margin-bottom: 1.4rem; }
.footer-brand .brand-plate img { height: 32px; }
.footer-brand p { color: var(--ink-2); font-size: 0.885rem; max-width: 36ch; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.55rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.4s var(--ease);
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-2px); }
.footer-social a svg { width: 17px; height: 17px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.62rem; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: 0.875rem; transition: color 0.28s var(--ease); }
.footer-links a:hover { color: var(--accent); }
.footer-contact li { list-style: none; font-size: 0.855rem; color: var(--ink-2); margin-bottom: 0.4rem; }
.footer-contact .region {
  color: var(--ink);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 1rem;
}
.footer-contact .region:first-child { margin-top: 0; }
.footer-contact a { color: var(--ink-2); text-decoration: none; transition: color 0.28s var(--ease); }
.footer-contact a:hover { color: var(--accent); }
/* La direccion es dato de apoyo: no compite con el correo ni el telefono */
.footer-contact .addr { color: var(--ink-3); font-size: 0.8rem; line-height: 1.45; margin-bottom: 0.3rem; }

/* ==================================================================
   PLATINUM TALENT
   La unidad de búsqueda vive dentro del mismo sistema visual que el
   resto del sitio: mismos tokens, mismas piezas, ningún color nuevo.
   ================================================================== */
.talent-hero { padding-top: calc(var(--head-h) + 104px); }
.talent-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 3.4rem;
  align-items: end;
}
.talent-hero h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.06; }
.talent-hero h1 .serif { display: block; color: var(--accent); font-size: 1.05em; margin-top: 0.12em; }
.talent-hero .lead { margin-top: 1.4rem; }
.talent-hero .hero-actions { margin-top: 2rem; }
.talent-claim { padding: 1.8rem; }
.talent-claim:hover { transform: none; border-color: var(--line); background: var(--surface); }
.talent-claim .post-chip { margin-bottom: 1.4rem; }

/* Lista con tilde: el mismo ámbar, dibujado en CSS y no como carácter */
.tick-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.tick-list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem; top: 0.42em;
  width: 9px; height: 5px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}

.trust-bar { background: var(--canvas-sunken); border-block: 1px solid var(--line); padding: 1.9rem 0; }
.trust-bar p { text-align: center; font-size: 0.9rem; color: var(--ink-3); }
.trust-bar b { color: var(--ink-2); font-weight: 500; }

/* -- El hueco entre demanda y oferta, dibujado a escala -------------- */
.gap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr); gap: 4rem; align-items: center; }
.gap-grid .lead + .lead { margin-top: 1.2rem; }
.gap-viz { padding: 2.4rem 1.5rem 3rem; border: 1px solid var(--line); border-radius: var(--r-shell); background: var(--surface); }
.gap-bars { display: flex; align-items: flex-end; gap: 2.2rem; height: 240px; }
.gap-bar {
  position: relative;
  flex: 1;
  height: var(--h);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.gap-bar.demand { background: linear-gradient(180deg, var(--surface-2), #2C2621); border: 1px solid var(--line-2); border-bottom: none; }
.gap-bar.supply { background: linear-gradient(180deg, var(--accent), var(--accent-deep)); }
.gap-bar .val {
  position: absolute;
  top: -1.7rem; left: 0; right: 0;
  text-align: center;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.gap-bar .lbl {
  position: absolute;
  bottom: -1.9rem; left: -0.5rem; right: -0.5rem;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--ink-3);
}

.tile .code {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.3rem;
}
/* Una tarjeta que no es enlace no debe levantarse al pasar el cursor */
div.tile:hover { transform: none; background: var(--surface); }
div.tile:hover::before { opacity: 0; }
.tile .tick-list { margin-top: 1.5rem; }
.price-tag {
  display: block;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

/* -- Perfiles ------------------------------------------------------- */
.pill-row { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.68rem 1.15rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--ink-2);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.pill:hover { border-color: var(--accent-line); color: var(--ink); }

/* -- Proceso -------------------------------------------------------- */
.steps { list-style: none; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1.8rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}
.step .n {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.step h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.step p { font-size: 0.9rem; color: var(--ink-2); max-width: 62ch; }

@media (max-width: 900px) {
  .talent-hero { padding-top: calc(var(--head-h) + 64px); }
  .talent-hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .gap-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .step { grid-template-columns: 52px minmax(0, 1fr); gap: 1.1rem; }
}

/* ---- Nota del equipo, bajo los socios fundadores -------------------- */
.team-note {
  max-width: 78ch;
  margin: 3.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: left;
}
.team-note h3 { font-size: 1.22rem; margin-bottom: 1.1rem; }
.team-note p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.72; }
.team-note p + p { margin-top: 1rem; }
.team-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Fichas de oficina (página de contacto) ------------------------- */
.offices { align-items: start; }
.office h4 {
  color: var(--accent);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.office ul { list-style: none; }
.office li { padding: 0.5rem 0; border-top: 1px solid var(--line); }
.office li:first-of-type { border-top: none; padding-top: 0; }
.office a { color: var(--ink); text-decoration: none; font-size: 0.9rem; word-break: break-word; transition: color 0.28s var(--ease); }
.office a:hover { color: var(--accent); }
.office .addr { color: var(--ink-2); font-size: 0.855rem; line-height: 1.5; }
.office .tel a { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 0.85rem; letter-spacing: 0.02em; }

/* ---- Trabaja con nosotros ------------------------------------------ */
.footer-jobs p { color: var(--ink-2); font-size: 0.855rem; margin-bottom: 0.35rem; }
.footer-jobs .mail {
  color: var(--ink);
  font-size: 0.875rem;
  text-decoration: none;
  word-break: break-all;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color 0.28s var(--ease), border-color 0.28s var(--ease);
}
.footer-jobs .mail:hover { color: var(--accent); border-color: var(--accent-line); }
.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-3);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.655rem;
  letter-spacing: 0.1em;
}
.footer-bottom a { color: var(--ink-3); text-decoration: none; transition: color 0.28s var(--ease); }
.footer-bottom a:hover { color: var(--accent); }
.footer-legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ==================================================================
   SCROLL REVEAL
   ================================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(5px);
  transition: opacity 0.85s var(--ease), transform 0.9s var(--ease), filter 0.85s var(--ease);
  will-change: opacity, transform;
}
.animate-on-scroll.visible { opacity: 1; transform: none; filter: blur(0); will-change: auto; }
.grid-3 > .animate-on-scroll:nth-child(2), .bento > .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.grid-3 > .animate-on-scroll:nth-child(3), .bento > .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.grid-3 > .animate-on-scroll:nth-child(4) { transition-delay: 0.08s; }
.grid-3 > .animate-on-scroll:nth-child(5) { transition-delay: 0.16s; }
.grid-3 > .animate-on-scroll:nth-child(6) { transition-delay: 0.24s; }

/* ==================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   Va por debajo del menú móvil (--z-overlay) para que la hamburguesa
   abierta lo tape en vez de flotar encima.
   ================================================================== */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.85),
              inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.42s var(--ease), box-shadow 0.42s var(--ease),
              opacity 0.3s var(--ease), visibility 0.3s;
}
.wa-float svg { width: 30px; height: 30px; display: block; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.wa-float:active { transform: translateY(-1px) scale(0.99); }
.wa-float:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; }
/* Con el menú móvil abierto el botón estorba y duplica el mismo enlace */
body.nav-open .wa-float { opacity: 0; visibility: hidden; }

.skip-link {
  position: absolute;
  left: -999px; top: 0;
  z-index: var(--z-overlay);
  background: var(--accent);
  color: #17110A;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 11px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ==================================================================
   LEGACY COMPONENTS — still used by the other 15 pages
   ================================================================== */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.glass-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2.1rem;
  border-radius: var(--r-shell);
  transition: transform 0.6s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.glass-card:hover { transform: translateY(-4px); border-color: var(--accent-line); background: var(--surface-2); }
.glass-card h3, .glass-card h4 { letter-spacing: -0.025em; }
.glass-card p { color: var(--ink-2); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.2rem; }

.feature-card { text-align: left; }
.feature-card h3 { font-size: 1.28rem; margin-bottom: 0.85rem; }
.feature-card p { color: var(--ink-2); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 1.4rem;
  font-size: 1.2rem;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.feature-icon svg { width: 21px; height: 21px; stroke-width: 1.5; fill: none; }

.y2q-badge {
  position: relative;
  padding: 1.8rem 1.7rem;
  border-radius: var(--r-shell);
  text-align: center;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.y2q-title {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.y2q-date {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.35rem;
}

/* ---- Blog ------------------------------------------------------- */
.post-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.26rem 0.64rem;
  border-radius: 5px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-family: 'Geist Mono', ui-monospace, monospace;
  color: var(--ink-3);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
}
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); display: inline-block; }

.post-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-core);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(150deg, #140D06 4%, #6B3407 52%, var(--accent) 128%);
  isolation: isolate;
}
.post-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 74% at 82% 8%, rgba(255, 190, 110, 0.32), transparent 60%),
    radial-gradient(70% 86% at 0% 100%, rgba(0, 0, 0, 0.42), transparent 58%);
}
/* Now an SVG from the shared set, not an emoji: it inherits the palette
   instead of importing its own. */
.post-cover .glyph {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -54%);
  z-index: -1;
  display: block;
  color: rgba(247, 232, 209, 0.34);
}
.post-cover .glyph svg {
  width: 68px; height: 68px;
  stroke-width: 1.05;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}
.featured-post .post-cover .glyph svg { width: 96px; height: 96px; }
.post-cover .post-chip { color: #17110A; background: rgba(247, 227, 198, 0.9); border-color: transparent; }
.cat-ia        { background: linear-gradient(150deg, #140D06 4%, #6B3407 52%, var(--accent) 128%); }
.cat-quantum   { background: linear-gradient(150deg, #140D06 4%, #55290B 52%, #E8873A 128%); }
.cat-endpoints { background: linear-gradient(150deg, #140D06 4%, #7A400A 52%, #FFB055 128%); }
.cat-defensiva { background: linear-gradient(150deg, #140D06 4%, #4A2A0E 52%, #D08A3C 128%); }

.featured-post {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  color: inherit;
}
.featured-post .post-cover { border-radius: 0; aspect-ratio: auto; min-height: 340px; }
.featured-post .fp-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.featured-post h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 1rem 0 0.9rem; }
.featured-post p { color: var(--ink-2); margin-bottom: 1.6rem; }
.featured-flag {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.7rem; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post-card .post-cover { margin-bottom: 1.2rem; transition: transform 0.6s var(--ease); }
.post-card:hover .post-cover { transform: translateY(-5px); }
.post-card h3 { font-size: 1.14rem; margin: 0.6rem 0 0.55rem; transition: color 0.3s var(--ease); }
.post-card:hover h3 { color: var(--accent); }
.post-card p { color: var(--ink-2); font-size: 0.885rem; margin-bottom: 1rem; }
.post-card .read {
  margin-top: auto;
  color: var(--accent);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.685rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.post-hero { padding-top: calc(var(--head-h) + 80px); padding-bottom: 0; }
.post-hero .container { max-width: 820px; }
.post-title { font-size: clamp(2rem, 4.2vw, 3rem); margin: 1rem 0 1.3rem; }
.post-lead { font-size: 1.14rem; color: var(--ink-2); margin-bottom: 1.8rem; }
.post-byline {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.post-byline .avatar {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #17110A;
  font-weight: 600; font-size: 0.9rem;
}
.post-byline .who { font-weight: 500; color: var(--ink); font-size: 0.9rem; }

.post-cover-full { max-width: 980px; margin: 2.4rem auto 0; border-radius: var(--r-shell); min-height: 300px; aspect-ratio: 21 / 9; }

.post-body { max-width: 700px; margin: 0 auto; font-size: 1.03rem; color: var(--ink-2); }
.post-body > * + * { margin-top: 1.3rem; }
.post-body h2 { font-size: 1.6rem; color: var(--ink); margin-top: 2.8rem; }
.post-body h3 { font-size: 1.18rem; color: var(--ink); margin-top: 2rem; }
.post-body p { line-height: 1.78; }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 1.3rem; }
.post-body li { margin-top: 0.6rem; line-height: 1.72; }
.post-body li::marker { color: var(--accent); }
.post-body blockquote {
  margin: 2rem 0;
  padding: 1.1rem 1.5rem;
  border-left: 2px solid var(--accent);
  background: var(--canvas-tint);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
  font-size: 1.08rem;
}
.post-body code {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.88em;
  background: var(--canvas-tint);
  padding: 0.14em 0.44em;
  border-radius: 5px;
  color: var(--accent);
}
.post-cta { max-width: 700px; margin: 3.4rem auto 0; text-align: center; padding: 2.4rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* ==================================================================
   RESPONSIVE
   ================================================================== */
/* ---- Cabecera ------------------------------------------------------
   Los dos cortes de abajo son de la barra fija, no del contenido: con
   "Innovación y Desarrollo" en el menu la fila mide ~970px, asi que el
   reloj se retira antes y el menu pasa a hamburguesa antes de que la
   fila empiece a empujar al CTA fuera de pantalla. */
@media (max-width: 1480px) {
  .head-meta { display: none; }
}

@media (max-width: 1200px) {
  nav.primary-nav, .header-ctas { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 1180px) {
  .svc { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2.4rem; }
  /* La marca ocupa la fila; las cuatro columnas de enlaces caen debajo */
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: span 4; }
}

@media (max-width: 900px) {
  :root { --pad-section: 82px; --gutter: 20px; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: span 2; }
  .wa-float { right: 18px; bottom: 18px; }

  .hero { min-height: auto; padding: calc(var(--head-h) + 46px) 0 46px; }
  .hero-grid-lines { display: none; }
  .hero-head { padding-top: 62px; }
  .hero-foot { grid-template-columns: 1fr; gap: 1.8rem; margin-top: 3rem; }
  .hero-insights { max-width: none; }
  .hero-claim { justify-self: start; text-align: left; max-width: none; padding: 1.2rem 1.3rem; }
  .q-clock { justify-self: start; width: 100%; }

  .lockup-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .lockup .tag { display: none; }

  .sec-head { grid-template-columns: 1fr; gap: 1.1rem; margin-bottom: 2.8rem; }

  .stat-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 1.8rem 1.2rem 1.8rem 0; }
  .stat:nth-child(2n) { border-right: none; padding-left: 1.2rem; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .stat:nth-child(3) { padding-left: 0; }

  .bento { grid-template-columns: 1fr; gap: 1rem; }
  .tile-lg, .tile-sm { grid-column: span 1; }
  .tile { padding: 1.7rem; }

  .svc { grid-template-columns: 1fr; gap: 2rem; }
  .svc-stage { display: none; }
  .svc-row:hover { padding-left: 0.2rem; }
  .svc-row::before { display: none; }

  .prod-band { grid-template-columns: 1fr; gap: 1rem; }
  .prod:nth-child(2), .prod:nth-child(3) { margin-top: 0; }

  .chapter-body { grid-template-columns: 1fr; gap: 2.2rem; }
  .close-cta { grid-template-columns: 1fr; gap: 2.2rem; }
  .people { grid-template-columns: 1fr; }

  .featured-post { grid-template-columns: 1fr; }
  .featured-post .post-cover { min-height: 220px; }
  .featured-post .fp-body { padding: 1.8rem; }
  .about-brief .container { grid-template-columns: 1fr !important; gap: 2rem !important; }
}

@media (max-width: 560px) {
  .ticker { grid-template-columns: 1fr; gap: 0; padding: 0.6rem 1rem; }
  .ticker .dot-rule { display: none; }
  .ticker .claim { white-space: normal; text-align: center; font-size: 0.625rem; letter-spacing: 0.14em; }
  .hero-head h1 { font-size: clamp(2rem, 9.6vw, 2.9rem); max-width: none; }
  .hero-chip { width: 100%; max-width: 260px; }
  .q-units { gap: 0.6rem; }
  .q-big { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .glass-card, .tile { padding: 1.55rem; }
  .chapter-hot .slab { padding: 1.7rem; }
  .close-cta .plate-core { padding: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stat-rail { grid-template-columns: 1fr; }
  .stat { border-right: none; padding: 1.5rem 0; }
  .stat:not(:first-child) { padding-left: 0; border-top: 1px solid var(--line); }
  .mobile-nav a { font-size: 1.3rem; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 27px; height: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .animate-on-scroll { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-inner > *, .hero-foot > * { opacity: 1 !important; filter: none !important; transform: none !important; animation: none !important; }
  .hero-media video { display: none; }
  .telemetry i, .pulse-dot, .caret-blink { animation: none !important; }
  .wa-float { transition: none !important; }
  .wa-float:hover { transform: none !important; }
  .telemetry i { transform: scaleY(0.7); }
}
