/* ============================================================
   COMPUPART — Editorial Design System
   See ../DESIGN.md for tokens and rationale.
   ============================================================ */

:root {
  /* Color */
  --ink: #0A0A0A;
  --ink-soft: #1A1A1A;
  --paper: #FAFAF7;
  --paper-2: #F2EFE8;
  --paper-3: #ECE8DF;
  --blue: #0A3D8F;
  --blue-ink: #062357;
  --mute: #6B6B6B;
  --mute-2: #9A9A95;
  --line: #E8E5DE;
  --line-strong: #D4D0C5;
  --surface: #1A1A1A;
  --surface-2: #0E0E0E;

  /* Type */
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* Layout */
  --container: 1400px;
  --gutter: clamp(24px, 5vw, 80px);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-snap: cubic-bezier(0.5, 0, 0, 1);
  --t-micro: 180ms;
  --t-short: 400ms;
  --t-medium: 700ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity var(--t-micro) var(--ease-out); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- Typography primitives ---------- */
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; font-variation-settings: 'opsz' 48, 'SOFT' 30; }
.mono { font-family: var(--mono); font-weight: 500; }
.label {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
}
.italic { font-style: italic; }

h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 700; line-height: 1.06; letter-spacing: -0.015em; color: var(--ink); font-variation-settings: 'opsz' 96, 'SOFT' 0; }
h1 { font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.018em; line-height: 1.02; }
h2 { font-size: clamp(30px, 4.6vw, 58px); letter-spacing: -0.018em; line-height: 1.04; }
h3 { font-size: clamp(22px, 2.5vw, 30px); line-height: 1.15; font-variation-settings: 'opsz' 60, 'SOFT' 0; font-weight: 600; }
h4 { font-size: clamp(18px, 1.6vw, 22px); font-variation-settings: 'opsz' 48, 'SOFT' 0; font-weight: 600; }
p { color: var(--ink); }

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 980px; }
.container--text { max-width: 760px; }

.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--paper); }
.section--dark .label { color: var(--mute-2); }
.section--tight { padding: clamp(60px, 8vw, 96px) 0; }

.section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(48px, 8vw, 96px);
  max-width: 980px;
}
.section__head--split {
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: none;
  align-items: end;
}
@media (max-width: 900px) {
  .section__head--split { grid-template-columns: 1fr; gap: 24px; }
}
.section__eyebrow { font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: 10px; }
.section__eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--blue); display: inline-block; }
.section--dark .section__eyebrow { color: #8AB4F0; }
.section--dark .section__eyebrow::before { background: #8AB4F0; }
.section__title { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 6vw, 80px); line-height: 1; letter-spacing: -0.025em; color: inherit; font-variation-settings: 'opsz' 144, 'SOFT' 30; }
.section__subtitle { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--mute); max-width: 60ch; }

.section--dark .section__subtitle { color: var(--mute-2); }

.text-center { text-align: center; }
.mt-2 { margin-top: 2.5rem; }

/* ---------- Skip link & focus ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 1.5rem;
  z-index: 9999;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 2px; }

/* ============================================================
   NAVBAR — full-width hairline → centered pill on scroll
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px var(--gutter);
  pointer-events: none;
  transition: padding var(--t-medium) var(--ease-out);
}
.nav__inner {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 6px 24px 6px 18px;
  min-height: 124px;
  background: rgba(250, 250, 247, 0.78);
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  border-radius: 0;
  transition:
    max-width var(--t-medium) var(--ease-out),
    padding var(--t-medium) var(--ease-out),
    border-radius var(--t-medium) var(--ease-out),
    border-color var(--t-medium) var(--ease-out),
    background var(--t-medium) var(--ease-out);
}
.nav__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  z-index: -1;
  pointer-events: none;
}
.nav.is-scrolled {
  padding: 14px var(--gutter);
}
.nav.is-scrolled .nav__inner {
  max-width: 1080px;
  padding: 6px 22px 6px 14px;
  min-height: 96px;
  border-radius: 999px;
  border-color: var(--line);
  background: rgba(250, 250, 247, 0.94);
  box-shadow: 0 1px 0 rgba(10,10,10,0.02);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  line-height: 0;
}
.nav__brand img {
  height: 110px;
  width: auto;
  margin-right: 8px;
  transition: height var(--t-medium) var(--ease-out);
}
.nav.is-scrolled .nav__brand img { height: 84px; }
.nav__brand-text { display: none; }

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.nav__link {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
  transition: color var(--t-micro) var(--ease-out);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-short) var(--ease-out);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); background: var(--blue); }
.nav__link.is-active { color: var(--blue); }
.nav__link:hover { color: var(--blue); }
.nav__link:hover::after { background: var(--blue); }

.nav__cta {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--paper);
  background: var(--blue);
  transition: background var(--t-short) var(--ease-out), color var(--t-short) var(--ease-out), border-color var(--t-short) var(--ease-out);
  white-space: nowrap;
}
.nav__cta:hover { background: var(--blue-ink); border-color: var(--blue-ink); }

.nav__toggle { display: none; padding: 8px; color: var(--ink); }
.nav__toggle svg { width: 26px; height: 26px; }

/* Mobile nav */
@media (max-width: 980px) {
  .nav__inner { grid-template-columns: auto 1fr auto; padding: 10px 18px; min-height: 72px; }
  .nav.is-scrolled .nav__inner { max-width: none; border-radius: 999px; padding: 8px 14px 8px 16px; min-height: 64px; }
  .nav__brand img { height: 56px; }
  .nav.is-scrolled .nav__brand img { height: 48px; }
  .nav__links {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px var(--gutter);
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--t-medium) var(--ease-snap), visibility var(--t-medium) var(--ease-snap);
    z-index: 200;
  }
  .nav__link {
    font-family: var(--serif);
    font-size: clamp(36px, 8vw, 64px);
    font-weight: 400;
    text-transform: none;
    letter-spacing: -0.03em;
    line-height: 1.1;
  }
  .nav__link::after { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; z-index: 201; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav.is-open .nav__toggle svg path { stroke-dasharray: 24; stroke-dashoffset: -8; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--paper);
  transition: background var(--t-short) var(--ease-out), color var(--t-short) var(--ease-out), border-color var(--t-short) var(--ease-out), transform var(--t-short) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.btn svg { width: 14px; height: 14px; transition: transform var(--t-short) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--accent { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.btn--accent:hover { background: var(--blue-ink); border-color: var(--blue-ink); }

.btn--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--dark:hover { background: var(--blue); border-color: var(--blue); }

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

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

.section--dark .btn--ghost-light { color: var(--paper); border-color: var(--paper); }
.section--dark .btn--ghost-light:hover { background: var(--paper); color: var(--ink); }

/* ============================================================
   HERO — editorial typographic hero
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(140px, 22vh, 220px) 0 clamp(80px, 14vw, 160px);
  overflow: hidden;
  background: var(--paper);
}
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 48px;
}
.hero__eyebrow-dot {
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2.6s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 16ch;
  margin-bottom: 56px;
  font-variation-settings: 'opsz' 144, 'SOFT' 0;
}
.hero h1 .accent { font-style: italic; color: var(--blue); font-weight: 500; }

.hero__lead {
  font-family: var(--sans);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--mute);
  max-width: 56ch;
  margin-bottom: 56px;
}

.hero__bullets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 40px;
  max-width: 760px;
  margin-bottom: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero__bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
}
.hero__bullet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  color: var(--blue);
}
.hero__bullet-icon svg { width: 16px; height: 16px; }

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* hide legacy decoration */
.hero__canvas, .hero__glow { display: none !important; }

@media (max-width: 700px) {
  .hero__bullets { grid-template-columns: 1fr; gap: 10px; }
}

/* Hero marquee strip */
.hero-marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--paper);
}
.hero-marquee__track {
  display: flex;
  gap: 64px;
  animation: marquee 38s linear infinite;
  width: max-content;
  white-space: nowrap;
}
.hero-marquee__item {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.hero-marquee__item::after {
  content: '✦';
  color: var(--blue);
  font-size: 10px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   VALUE PROPS — minimal hairline strip
   ============================================================ */
.value-props {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.value-prop {
  padding: 56px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.value-prop:last-child { border-right: 0; }
.value-prop__icon {
  width: 28px; height: 28px;
  color: var(--blue);
}
.value-prop__icon svg { width: 28px; height: 28px; }
.value-prop h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
  max-width: 22ch;
}
.value-prop p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--mute);
  max-width: 32ch;
}
@media (max-width: 1024px) {
  .value-props { grid-template-columns: repeat(2, 1fr); }
  .value-prop:nth-child(2n) { border-right: 0; }
  .value-prop:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .value-props { grid-template-columns: 1fr; }
  .value-prop { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .value-prop:last-child { border-bottom: 0 !important; }
}

/* ============================================================
   SERVICES — editorial numbered cards
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 800px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 48px 32px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: relative;
  transition: background var(--t-short) var(--ease-out);
  background: var(--paper);
}
.service-card:nth-child(2n) { border-right: 0; }
@media (max-width: 800px) {
  .service-card { border-right: 0; grid-template-columns: 60px 1fr; gap: 20px; padding: 36px 0; }
}
.service-card:hover { background: var(--paper-2); }
.service-card:hover .service-card__cta svg { transform: translateX(6px); }

.service-card__num {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--blue);
  padding-top: 12px;
}
.service-card__body { display: flex; flex-direction: column; gap: 16px; }
.service-card__body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 18ch;
}
.service-card__body p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--mute);
  max-width: 52ch;
}
.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 8px;
  align-self: flex-start;
  position: relative;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
}
.service-card__cta svg { width: 12px; height: 12px; transition: transform var(--t-short) var(--ease-out); }

/* hide legacy gradient visual */
.service-card__visual { display: none !important; }
.service-card__icon { display: none !important; }

/* ============================================================
   PROJECTS — adaptive grid (1 / 2 / N)
   ============================================================ */
.projects-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.projects-filter__chip {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--mute);
  cursor: pointer;
  transition: background var(--t-short) var(--ease-out), color var(--t-short) var(--ease-out), border-color var(--t-short) var(--ease-out);
}
.projects-filter__chip:hover { color: var(--ink); border-color: var(--ink); }
.projects-filter__chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.projects-grid[data-visible="1"] { grid-template-columns: 1fr; }
.projects-grid[data-visible="1"] .project-card { max-width: 520px; margin: 0 auto; }
.projects-grid[data-visible="1"] .project-card .project-card__img { aspect-ratio: 4 / 3; }
.projects-grid[data-visible="2"] { grid-template-columns: repeat(2, 1fr); }
.projects-grid[data-visible="3"],
.projects-grid[data-visible="4"],
.projects-grid[data-visible="5"],
.projects-grid[data-visible="6"] { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) {
  .projects-grid,
  .projects-grid[data-visible] { grid-template-columns: 1fr; }
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
}
.project-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-2);
  filter: grayscale(0.05);
  transition: transform var(--t-medium) var(--ease-out), filter var(--t-medium) var(--ease-out);
}
.project-card__media {
  overflow: hidden;
  position: relative;
  background: var(--paper-2);
}
.project-card:hover .project-card__img { transform: scale(1.04); filter: grayscale(0); }

.project-card__overlay {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.project-card__tag {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
}
.project-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.project-card__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--mute);
  max-width: 56ch;
}

/* ============================================================
   WHY — cinematic feature image + pull quote
   ============================================================ */
.why-feature {
  position: relative;
  margin: 0 0 clamp(64px, 9vw, 120px);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0;
  border: 1px solid rgba(250,250,247,0.12);
  overflow: hidden;
  background: #121212;
}
@media (max-width: 900px) { .why-feature { grid-template-columns: 1fr; } }
.why-feature img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}
.why-feature__caption {
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  border-left: 1px solid rgba(250,250,247,0.12);
}
@media (max-width: 900px) { .why-feature__caption { border-left: 0; border-top: 1px solid rgba(250,250,247,0.12); } }
.why-feature__meta {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8AB4F0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.why-feature__meta::before { content: ''; width: 28px; height: 1px; background: #8AB4F0; }
.why-feature__quote {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: 28ch;
}

/* ============================================================
   WHY / DIFFERENTIATORS — editorial numbered list
   ============================================================ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(250,250,247,0.12);
}
@media (max-width: 1024px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-card {
  padding: 56px 36px;
  border-right: 1px solid rgba(250,250,247,0.12);
  border-bottom: 1px solid rgba(250,250,247,0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.diff-card:nth-child(3n) { border-right: 0; }
@media (max-width: 1024px) {
  .diff-card { border-right: 1px solid rgba(250,250,247,0.12); }
  .diff-card:nth-child(3n) { border-right: 1px solid rgba(250,250,247,0.12); }
  .diff-card:nth-child(2n) { border-right: 0; }
}
@media (max-width: 640px) {
  .diff-card { border-right: 0 !important; }
}
.diff-card__num {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #8AB4F0;
}
.diff-card__icon {
  display: none;
}
.diff-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin-top: 12px;
}
.diff-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mute-2);
  max-width: 38ch;
}

/* Light-context overrides — when diff-grid is used inside light sections */
.section--muted .diff-grid,
.section:not(.section--dark):not(.section--alt) .diff-grid { border-top-color: var(--line); }
.section--muted .diff-card,
.section:not(.section--dark):not(.section--alt) .diff-card {
  border-right-color: var(--line) !important;
  border-bottom-color: var(--line) !important;
}
.section--muted .diff-card h3,
.section:not(.section--dark):not(.section--alt) .diff-card h3 { color: var(--ink); }
.section--muted .diff-card p,
.section:not(.section--dark):not(.section--alt) .diff-card p { color: var(--mute); }
.section--muted .diff-card__num,
.section:not(.section--dark):not(.section--alt) .diff-card__num { color: var(--blue); }
.section--muted .diff-card:nth-child(3n),
.section:not(.section--dark):not(.section--alt) .diff-card:nth-child(3n) { border-right: 0 !important; }
@media (max-width: 1024px) {
  .section--muted .diff-card:nth-child(3n),
  .section:not(.section--dark):not(.section--alt) .diff-card:nth-child(3n) { border-right: 1px solid var(--line) !important; }
  .section--muted .diff-card:nth-child(2n),
  .section:not(.section--dark):not(.section--alt) .diff-card:nth-child(2n) { border-right: 0 !important; }
}
@media (max-width: 640px) {
  .section--muted .diff-card,
  .section:not(.section--dark):not(.section--alt) .diff-card { border-right: 0 !important; }
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(250,250,247,0.12);
  margin-top: 0;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats > div {
  padding: 56px 24px;
  border-right: 1px solid rgba(250,250,247,0.12);
}
.stats > div:last-child { border-right: 0; }
@media (max-width: 720px) {
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid rgba(250,250,247,0.12); }
}
.stat__num {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: #8AB4F0;
  margin-bottom: 12px;
  font-variation-settings: 'opsz' 144, 'SOFT' 0;
}
.stat__label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute-2);
}

/* ============================================================
   TESTIMONIALS — 3D Scroll Card Stack
   ============================================================ */
.testimonials-3d-section { overflow: visible; }

.testimonials-3d {
  position: relative;
  height: 280vh;
  margin-top: 48px;
}
.testimonials-3d__viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1800px;
  perspective-origin: 50% 45%;
}
.testimonials-3d__stage {
  position: relative;
  width: min(960px, 92vw);
  aspect-ratio: 16 / 9;
  transform-style: preserve-3d;
}
.t3d-card {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--paper);
  box-shadow:
    0 40px 90px -24px rgba(10, 31, 68, 0.28),
    0 14px 34px -14px rgba(10, 31, 68, 0.18),
    0 0 0 1px rgba(10, 31, 68, 0.04);
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  backface-visibility: hidden;
  contain: layout paint;
}
.t3d-card picture {
  display: block;
  width: 100%;
  height: 100%;
}
.t3d-card__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.testimonials-3d__indicator {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
  pointer-events: none;
}
.testimonials-3d__dot {
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  transition: background var(--t-short) var(--ease-out), width var(--t-short) var(--ease-out);
}
.testimonials-3d__dot.is-active {
  background: var(--blue);
  width: 56px;
}

/* Mobile fallback: stacked vertically, no 3D */
@media (max-width: 768px) {
  .testimonials-3d {
    height: auto;
    margin-top: 32px;
    padding: 0 20px;
  }
  .testimonials-3d__viewport {
    position: static;
    height: auto;
    display: block;
    perspective: none;
    padding: 24px 0 48px;
  }
  .testimonials-3d__stage {
    position: static;
    width: 100%;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform-style: flat;
  }
  .t3d-card {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 9;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    border-radius: 16px;
  }
  .testimonials-3d__indicator { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-3d { height: auto; }
  .testimonials-3d__viewport {
    position: static;
    height: auto;
    perspective: none;
    padding: 24px 0 48px;
  }
  .testimonials-3d__stage {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 24px;
    aspect-ratio: auto;
  }
  .t3d-card {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 9;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
  .testimonials-3d__indicator { display: none; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  border-top: 1px solid var(--line);
  max-width: 980px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  position: relative;
  transition: color var(--t-micro) var(--ease-out);
}
.faq__item summary:hover { color: var(--blue); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  transition: transform var(--t-short) var(--ease-out), color var(--t-short) var(--ease-out);
  flex-shrink: 0;
  margin-top: -4px;
}
.faq__item[open] summary::after { transform: rotate(45deg); color: var(--blue); }
.faq__body {
  padding: 0 0 32px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mute);
  max-width: 70ch;
}

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  background: var(--blue);
  color: var(--paper);
  padding: clamp(80px, 14vw, 160px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.cta-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 64px;
  position: relative;
}
@media (max-width: 800px) {
  .cta-banner__inner { grid-template-columns: 1fr; gap: 32px; align-items: start; }
}
.cta-banner h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
  max-width: 14ch;
  font-variation-settings: 'opsz' 144, 'SOFT' 0;
}
.cta-banner p { display: none; }
.cta-banner .btn {
  background: var(--paper);
  color: var(--blue-ink);
  border-color: var(--paper);
}
.cta-banner .btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 12vw, 140px) 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(250,250,247,0.12);
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__brand img {
  height: 140px;
  width: auto;
  margin-bottom: 32px;
  background: var(--paper);
  padding: 18px 22px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(250,250,247,0.08);
}
@media (max-width: 600px) { .footer__brand img { height: 112px; } }
.footer__tagline {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  color: var(--paper);
  max-width: 32ch;
  margin-bottom: 32px;
}
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250,250,247,0.2);
  border-radius: 50%;
  color: var(--paper);
  transition: background var(--t-short) var(--ease-out), color var(--t-short) var(--ease-out);
}
.footer__social svg { width: 16px; height: 16px; }
.footer__social a:hover { background: var(--paper); color: var(--ink); }

.footer__col h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin-bottom: 24px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a, .footer__col li {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--paper);
  opacity: 0.85;
  line-height: 1.45;
  transition: opacity var(--t-micro) var(--ease-out);
}
.footer__col a:hover { opacity: 1; }

.footer__bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute-2);
}
@media (max-width: 600px) {
  .footer__bottom { flex-direction: column; gap: 12px; }
}

/* ============================================================
   FORMS — rounded card, blue CTA
   ============================================================ */
.form-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  box-shadow: 0 1px 0 rgba(10,10,10,0.02);
}
.form-wrap h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px !important;
  font-variation-settings: 'opsz' 72, 'SOFT' 30;
}
.form-wrap > p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--mute);
  margin-bottom: 28px !important;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-field label,
.form__label {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}
.form-field .req,
.form__required { color: var(--blue); margin-left: 2px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"],
.form-field textarea,
.form-field select,
.form__input,
.form__textarea,
.form__select {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  width: 100%;
  outline: none;
  transition: border-color var(--t-short) var(--ease-out), background var(--t-short) var(--ease-out), box-shadow var(--t-short) var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder,
.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--mute);
  opacity: 0.8;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--blue);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(10, 61, 143, 0.12);
}
.form-field textarea,
.form__textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.form-field select,
.form__select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A3D8F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 48px;
}

/* File input (careers CV) */
.file-input {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--paper-2);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color var(--t-short) var(--ease-out), background var(--t-short) var(--ease-out);
}
.file-input:hover { border-color: var(--blue); background: var(--paper); }
.file-input input[type="file"] { display: none; }
.file-input__icon {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--paper);
  flex-shrink: 0;
}
.file-input__icon svg { width: 16px; height: 16px; }
.file-input__label {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--mute);
  line-height: 1.4;
}
.file-input[data-has-file] { border-color: var(--blue); border-style: solid; }
.file-input[data-has-file] .file-input__label { color: var(--blue-ink); font-weight: 600; }
.form-hint {
  font-size: 12px;
  color: var(--mute);
  margin-top: 8px;
  line-height: 1.4;
}
.form-legal, .form-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--mute);
  text-align: center;
  margin-top: 14px;
}

/* Primary submit */
.btn--primary {
  width: 100%;
  padding: 20px 28px;
  background: var(--blue);
  color: var(--paper);
  border: 0;
  border-radius: 14px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 12px;
  transition: background var(--t-short) var(--ease-out), transform var(--t-short) var(--ease-out);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn--primary:hover { background: var(--blue-ink); }
.btn--primary[data-submitting] { opacity: 0.8; cursor: wait; }
.btn--block { width: 100%; }

.form-success {
  padding: 18px 20px;
  border: 1px solid var(--blue);
  background: rgba(10, 61, 143, 0.05);
  border-radius: 14px;
  color: var(--blue-ink);
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}
.form-error {
  padding: 18px 20px;
  border: 1px solid #B00020;
  background: rgba(176, 0, 32, 0.05);
  border-radius: 14px;
  color: #B00020;
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}

/* ============================================================
   CONTACT / CAREERS LAYOUT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-grid > div > h2 {
  font-family: var(--serif) !important;
  font-weight: 600 !important;
  font-size: clamp(26px, 3vw, 36px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
  color: var(--ink);
  margin-bottom: 24px !important;
  font-variation-settings: 'opsz' 72, 'SOFT' 30;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}
.contact-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  transition: border-color var(--t-short) var(--ease-out);
}
.contact-item:hover { border-color: var(--blue); }
.contact-item__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-item__icon svg { width: 18px; height: 18px; }
.contact-item h3 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
}
.contact-item__value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: 'opsz' 48, 'SOFT' 30;
}
.contact-item__value a { color: var(--ink); border-bottom: 1px solid var(--line); transition: color var(--t-short) var(--ease-out), border-color var(--t-short) var(--ease-out); }
.contact-item__value a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.contact-item__meta {
  font-size: 13px;
  line-height: 1.4;
  color: var(--mute);
  margin-top: 6px;
}
.contact-map {
  width: 100%;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: 16px;
  filter: grayscale(0.25);
  margin-top: 8px;
}

.breadcrumb {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 32px;
  display: inline-flex;
  gap: 10px;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { color: var(--blue-ink); }
.breadcrumb span:last-child { color: var(--ink); }

.page-header__inner { max-width: var(--container); }

/* Info cards (careers sidebar) */
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.info-card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--blue) !important;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.info-card__icon svg { width: 20px; height: 20px; }
.info-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: 'opsz' 48, 'SOFT' 30;
}
.info-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mute);
}
.info-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.info-card__list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
}
.info-card__list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue);
  position: absolute;
  left: 0;
  top: 9px;
}
.info-card__note {
  margin-top: 8px;
  font-style: italic;
  color: var(--mute);
}
.info-card__link {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 2px;
  align-self: flex-start;
}
.info-card__link:hover { color: var(--blue-ink); border-color: var(--blue-ink); }

/* Legacy aliases kept to avoid broken styles */
.section--muted { background: var(--paper-2); padding: clamp(80px, 12vw, 160px) 0; }
.section-header {
  max-width: 980px;
  margin-bottom: clamp(48px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section-header .eyebrow {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-header .eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--blue);
}
.section-header h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.section-header p {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--mute);
  max-width: 60ch;
}
.eyebrow { color: var(--blue); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
[data-animate].is-visible { opacity: 1; transform: none; }
[data-animate-delay="1"] { transition-delay: 80ms; }
[data-animate-delay="2"] { transition-delay: 160ms; }
[data-animate-delay="3"] { transition-delay: 240ms; }
[data-animate-delay="4"] { transition-delay: 320ms; }

/* SplitText: lines wrap & masking */
.split-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.split-line__inner { display: block; transform: translateY(110%); transition: transform 1100ms var(--ease-out); }
.split-line.is-visible .split-line__inner { transform: translateY(0); }
.split-line:nth-child(2) .split-line__inner { transition-delay: 80ms; }
.split-line:nth-child(3) .split-line__inner { transition-delay: 160ms; }
.split-line:nth-child(4) .split-line__inner { transition-delay: 240ms; }

/* Image clip reveal */
.img-reveal { overflow: hidden; }
.img-reveal img {
  transform: scale(1.08);
  transition: transform 1400ms var(--ease-out), clip-path 1100ms var(--ease-out);
  clip-path: inset(0 0 100% 0);
}
.img-reveal.is-visible img { transform: scale(1); clip-path: inset(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-animate], .img-reveal img, .split-line__inner { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-header {
  padding: clamp(160px, 22vh, 240px) 0 clamp(80px, 10vw, 120px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-header__eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.page-header__eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.page-header h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(44px, 7.5vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  color: var(--ink);
  font-variation-settings: 'opsz' 120, 'SOFT' 0;
  max-width: 16ch;
  margin-bottom: 32px;
}
.page-header__lead {
  font-family: var(--sans);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--mute);
  max-width: 60ch;
}

/* ============================================================
   SPLIT EDITORIAL (used in trabaja-con-nosotros, contacto)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 48px; } }
.split__left h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 32px;
}
.split__left p {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--mute);
  max-width: 52ch;
  margin-bottom: 24px;
}
.split__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.split__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}
.split__list li::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ============================================================
   SERVICE DETAIL PAGES
   ============================================================ */
.service-detail__hero {
  padding: clamp(160px, 22vh, 220px) 0 clamp(64px, 10vw, 120px);
  border-bottom: 1px solid var(--line);
}
.service-detail__crumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 32px;
  display: inline-flex;
  gap: 10px;
}
.service-detail__crumb a { color: var(--mute); }
.service-detail__crumb a:hover { color: var(--ink); }
.service-detail__crumb span { color: var(--ink); }

.service-detail__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 800px) { .service-detail__features { grid-template-columns: 1fr; } }
.feature {
  padding: 48px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature:nth-child(3n) { border-right: 0; }
@media (max-width: 800px) { .feature { border-right: 0 !important; } }
.feature__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mute-2);
  margin-bottom: 16px;
}
.feature h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 12px;
}
.feature p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--mute);
  max-width: 36ch;
}

/* ============================================================
   404
   ============================================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px var(--gutter) 80px;
}
.error-page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(120px, 24vw, 320px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--ink);
  margin-bottom: 16px;
}
.error-page p {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--mute);
  margin-bottom: 40px;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   EDITORIAL PROPAGATION — helpers used across interior pages
   ============================================================ */

/* Italic serif accents used inside headings (e.g., "Cableado y <em>redes</em>") */
.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-variation-settings: 'opsz' 120, 'SOFT' 30;
  letter-spacing: -0.005em;
}
.serif-accent { color: var(--blue); }
.section--dark .serif-accent,
.cta-banner .serif-accent { color: #B8D1F5; }

/* Eyebrow variants */
.eyebrow {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow--on-dark { color: #B8D1F5; }

.mono-label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 16px;
}

/* Page header actions row */
.page-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* Light CTA button (used inside dark/blue banners) */
.btn--light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--light:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ============================================================
   PROCESS GRID — editorial numbered steps
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 48px;
}
@media (max-width: 1024px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .process-grid { grid-template-columns: 1fr; } }

.process-step {
  padding: 48px 32px 56px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid transparent;
  background: transparent;
  transition: border-top-color var(--t-short) var(--ease-out), background var(--t-short) var(--ease-out);
}
.process-step:hover { border-top-color: var(--blue); background: rgba(10, 61, 143, 0.03); }
.process-step:last-child { border-right: 0; }
@media (max-width: 1024px) {
  .process-step:nth-child(2n) { border-right: 0; }
}
@media (max-width: 640px) {
  .process-step { border-right: 0 !important; }
}

.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: var(--blue);
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 24px;
}
.process-step h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 12px;
  font-variation-settings: 'opsz' 72, 'SOFT' 30;
}
.process-step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--mute);
  max-width: 36ch;
}

/* ============================================================
   FAQ GROUPS (faq.html)
   ============================================================ */
.faq-group {
  margin-bottom: 80px;
}
.faq-group:last-of-type { margin-bottom: 0; }
.faq-group__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 2.5vw, 34px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-variation-settings: 'opsz' 72, 'SOFT' 30;
}

/* ============================================================
   404 — extras
   ============================================================ */
.error-page .eyebrow { justify-content: center; margin-left: auto; margin-right: auto; }
.error-page h1 em.serif-italic { display: inline-block; }
.error-page__lead {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--mute);
  margin: 0 auto 40px;
  max-width: 52ch;
}
.error-page__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
}
.error-page__links {
  padding-top: 48px;
  border-top: 1px solid var(--line);
  max-width: 640px;
  margin: 0 auto;
}
.error-page__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.error-page__chips a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  transition: background var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out), border-color var(--t-micro) var(--ease-out);
}
.error-page__chips a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--paper);
}

/* Override — 404 headline reduced so it reads alongside the eyebrow/lead layout */
.error-page h1 {
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.98;
  margin-bottom: 24px;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   TYPOGRAPHY HARDENING — solidify serif headings repo-wide
   so display copy reads firm rather than thin/airy.
   ============================================================ */
.section h2,
.section h3,
.split__left h2,
.split__right h2,
.faq__q,
.diff-card h3,
.process-step h3,
.scope__title,
.hero__title,
.section-header h2,
.cta-banner h2,
.faq-group__title {
  font-weight: 700;
  font-variation-settings: 'opsz' 96, 'SOFT' 0;
  letter-spacing: -0.018em;
}
.diff-card h3,
.process-step h3,
.faq__q {
  font-weight: 600;
  font-variation-settings: 'opsz' 60, 'SOFT' 0;
}

/* ============================================================
   UTIL
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   v2 — Hero rotator + grid, big blue numbers, varied whites
   ============================================================ */

/* Extra paper tones */
:root {
  --paper-cool: #EEF1F4;
  --paper-mist: #F1F2EE;
  --paper-warm: #F5F0E6;
}

/* Hero — smaller title, soft tint, no grid */
.hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.10), transparent 55%),
    radial-gradient(circle at 88% 12%, rgba(10, 61, 143, 0.06), transparent 55%),
    var(--paper);
}
.hero h1 {
  font-size: clamp(44px, 8vw, 112px);
  margin-bottom: 40px;
}

/* Word rotator */
.accent--rotator {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  text-align: left;
  white-space: nowrap;
}
.rotator__word {
  display: inline-block;
  font-style: italic;
  font-weight: 500;
  color: var(--blue);
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out), filter 600ms var(--ease-out);
  filter: blur(6px);
  pointer-events: none;
}
.rotator__word.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}
.rotator__word.is-leaving {
  opacity: 0;
  transform: translateY(-0.4em);
  filter: blur(6px);
}

/* Service card numbers — big, italic, ALL blue */
.service-card__num {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--blue);
  font-variation-settings: 'opsz' 96, 'SOFT' 0;
  padding-top: 8px;
}
.service-card__cta { color: var(--blue); border-color: var(--blue); }

/* Varied white tones across sections (only on white-bg pages) */
.value-props { background: var(--paper-mist); }
.services-grid { background: var(--paper); }
.section--alt { background: var(--paper-cool); }
.testimonials-3d-section { background: var(--paper-warm); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rotator__word { transition: none !important; }
}
