/* GoDevs — sistema visual
   Noche: el azul profundo de fondo del logo. Papel: un gris frío y limpio para leer.
   Turquesa y azul: los dos extremos del degradé del triángulo "play", que solo vive en la marca.
   Anybody es de ancho variable: el título principal se estira con el scroll ("ampliado"). */
:root {
  --night: #081827;
  --ink: #0c2236;
  --ink-2: #13304b;
  --paper: #eef2f4;
  --paper-2: #dfe7ec;
  --white: #ffffff;
  --teal: #1ed6b4;
  --blue: #2b7fff;
  --blue-ink: #1658d0;
  --slate: #50606f;
  --mist: #a9b9c8;

  --display: "Anybody", "Arial Narrow", sans-serif;
  --text: "Instrument Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 72px;
  --radius: 6px;

  /* Colores del contexto (se redefinen en secciones oscuras) */
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--slate);
  --accent: var(--blue-ink);
  --line: rgba(12, 34, 54, 0.14);
}

.hero, .services, .work, .contact, .footer, .page-hero, .block--dark, .header, .nav {
  --bg: var(--night);
  --fg: var(--paper);
  --muted: var(--mist);
  --accent: var(--teal);
  --line: rgba(238, 242, 244, 0.14);
}
.services, .block--dark { --bg: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Marca ---------- */
.mark { overflow: visible; }
.mark path { fill: none; stroke: url(#gd-grad); stroke-width: 11; stroke-linejoin: round; stroke-linecap: round; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand__mark { width: 30px; height: 32px; }
.brand__mark path { stroke-width: 13; }
.brand__word { font-family: var(--display); font-weight: 700; font-stretch: 112%; font-size: 1.35rem; letter-spacing: -0.01em; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 1rem/1 var(--text); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--teal); color: var(--night); }
.btn--primary:hover { background: #5ae6cc; }
.btn--ghost { background: transparent; color: var(--fg); border-color: color-mix(in srgb, var(--fg) 35%, transparent); }
.btn--ghost:hover { border-color: var(--fg); }
.link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.link:hover { text-decoration-thickness: 3px; }

/* ---------- Encabezado ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--fg); transition: background-color .25s, box-shadow .25s; }
.header.is-solid, .header.menu-open { background: rgba(8, 24, 39, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header.menu-open { background: var(--night); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header__bar { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.header .brand { margin-right: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__list a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--muted); border-radius: 999px; }
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--fg); }
.nav__list a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.lang { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-size: .9rem; color: var(--muted); }
.lang b { color: var(--fg); font-weight: 700; }
.lang__sep { margin: 0 6px; opacity: .5; }
.lang:hover { border-color: var(--teal); }
.nav-toggle { display: none; }

@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
    background: none; border: 0; color: var(--fg); font: 600 .95rem var(--text); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
  .nav-toggle__bars::before { content: ""; position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: translateY(3px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(-7px) rotate(-90deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; background: var(--night);
    padding: 32px var(--gutter); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { font-family: var(--display); font-size: 2rem; font-weight: 700; font-stretch: 110%; color: var(--fg); padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__list a[aria-current="page"] { box-shadow: none; color: var(--teal); }
}
@media (max-width: 480px) { .nav-toggle__label { display: none; } }

/* ---------- Hero (escena fija) ---------- */
.hero { position: relative; background: var(--night); color: var(--fg); }
.hero__stage { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; overflow: hidden; padding: calc(var(--header-h) + 24px) 0 64px; }
.motion .hero { height: 250vh; }
.motion .hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; }

.hero__mark {
  position: absolute; right: 4vw; top: calc(50% + var(--header-h) / 2);
  width: min(36vw, 460px, calc((100svh - var(--header-h) - 160px) * 0.92)); height: auto;
  translate: 0 -50%; opacity: calc(1 - var(--p, 1) * 0.8); pointer-events: none;
}
.hero__mark .mark__outer { transform-origin: 40% 40%; transform: scale(calc(1 + var(--p, 0) * 0.12)); }
.hero__mark .mark__inner { transform: translate(calc(var(--p, 0) * 46px), calc(var(--p, 0) * -6px)); }

.hero__content { position: relative; z-index: 1; min-width: 0; }
.hero__title {
  font-weight: 800;
  font-stretch: calc(var(--w, 100) * 1%);
  font-size: min(calc(92vw / (var(--chars) * 0.6)), 9rem);
  line-height: .9; letter-spacing: -0.02em; text-wrap: initial;
}
.hero__line { display: block; white-space: nowrap; }
.br-m { display: none; }
@media (max-width: 760px) { .br-m { display: inline; } }
.hero__line + .hero__line {
  background: linear-gradient(100deg, var(--teal), var(--blue) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__after { margin-top: clamp(24px, 4vh, 40px); max-width: 40rem; opacity: var(--a, 1); translate: 0 calc((1 - var(--a, 1)) * 24px); }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__hint { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; font-size: .85rem; color: var(--muted); opacity: var(--h, 0); }
.hero__hint::after { content: ""; display: block; width: 1.5px; height: 36px; margin: 10px auto 0; background: linear-gradient(var(--teal), transparent); }

/* ---------- Intro ---------- */
.intro { padding: clamp(80px, 14vh, 160px) 0; }
.intro__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.intro__title { font-size: clamp(2rem, 4.6vw, 3.6rem); font-stretch: 108%; font-weight: 700; letter-spacing: -0.015em; }
.intro__text { font-size: 1.15rem; color: var(--slate); max-width: 34rem; }
@media (max-width: 800px) { .intro__inner { grid-template-columns: 1fr; } }

/* ---------- Encabezados de sección ---------- */
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 6vh, 56px); }
.section-title { font-size: clamp(2rem, 4.2vw, 3.25rem); font-stretch: 110%; letter-spacing: -0.015em; }
.section-lead { margin-top: 16px; font-size: 1.12rem; color: var(--muted); }

/* ---------- Servicios (escena fija por pasos) ---------- */
.services { background: var(--ink); color: var(--fg); }
.services__stage { padding: clamp(80px, 12vh, 140px) 0; }
.motion .services { height: calc(var(--steps) * 85vh + 100vh); }
.motion .services__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; padding: var(--header-h) 0 0; }
.services__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.services__title { font-size: clamp(2rem, 4vw, 3.25rem); font-stretch: 110%; letter-spacing: -0.015em; margin-bottom: 32px; }
.services__index { display: grid; gap: 4px; }
.services__index button {
  display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 16px; width: 100%;
  padding: 12px 0; background: none; border: 0; text-align: left; cursor: pointer;
  font: 500 1.05rem/1.3 var(--text); color: var(--muted);
}
.services__index button[aria-current="true"] { color: var(--fg); }
.services__bar { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.services__bar::after { content: ""; position: absolute; inset: 0; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.services__index button[aria-current="true"] .services__bar::after { transform: scaleX(1); }

.services__panels { display: grid; }
.service { grid-area: 1 / 1; }
.service__tagline { color: var(--teal); font-weight: 600; font-size: 1.05rem; }
.service__name { margin-top: 12px; font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 800; font-stretch: 115%; letter-spacing: -0.02em; }
.service__summary { margin-top: 20px; font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.service .link { display: inline-block; margin-top: 28px; }

.motion .service { opacity: 0; translate: 0 32px; visibility: hidden; transition: opacity .45s, translate .45s, visibility .45s; }
.motion .service.is-past { translate: 0 -32px; }
.motion .service.is-active { opacity: 1; translate: 0 0; visibility: visible; }
html:not(.motion) .services__panels { gap: 56px; }
html:not(.motion) .service { grid-area: auto; }
html:not(.motion) .services__index { display: none; }

@media (max-width: 800px) {
  .services__grid { grid-template-columns: 1fr; align-items: start; }
  .motion .services__stage { align-items: start; padding-top: calc(var(--header-h) + 32px); }
  .services__title { margin-bottom: 16px; }
  .services__index button { padding: 8px 0; font-size: .95rem; }
}

/* ---------- Por qué GoDevs ---------- */
.why { padding: clamp(80px, 14vh, 150px) 0; }
.why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); }
.why__item { display: grid; grid-template-columns: minmax(9rem, 0.8fr) 1.6fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.why__item dt { font-family: var(--display); font-weight: 700; font-stretch: 105%; font-size: 1.3rem; line-height: 1.2; }
.why__item dd { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .why__list { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .why__item { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Casos (carrusel con desplazamiento propio) ---------- */
.work { background: var(--night); color: var(--fg); }
.work__stage { padding: clamp(80px, 12vh, 140px) 0; }
.work__head { margin-bottom: 40px; }
.work__head .section-lead { max-width: 40rem; }
.work__viewport {
  position: relative; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), (100vw - 1200px) / 2);
  scrollbar-width: none; padding-bottom: 8px; cursor: grab;
}
.work__viewport::-webkit-scrollbar { display: none; }
.work__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.work__viewport:focus-visible { outline-offset: -3px; }
.work__track { display: flex; gap: 20px; padding-inline: max(var(--gutter), (100vw - 1200px) / 2); width: max-content; }
.work__track .case { width: min(82vw, 400px); scroll-snap-align: start; }
.work__controls { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.work__progress { flex: 1; height: 2px; background: var(--line); margin-right: 12px; }
.work__progress span { display: block; height: 100%; background: var(--teal); transform-origin: left; transform: scaleX(var(--p, 0.1)); transition: transform .15s; }
.work__arrow {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: transparent; border: 1.5px solid color-mix(in srgb, var(--fg) 35%, transparent); color: var(--fg); cursor: pointer;
}
.work__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.work__arrow:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.work__arrow:disabled { opacity: .3; cursor: default; }

/* Tarjeta de caso (sirve en fondo claro y oscuro) */
.case {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--fg) 4%, transparent);
}
.case__logo { height: 72px; display: flex; align-items: center; margin-bottom: 12px; }
/* Los logos van sobre un recuadro claro, para que se lean igual en el carrusel oscuro y en la grilla clara */
.case__logo:has(img) { align-self: flex-start; padding: 10px 16px; background: var(--white); border-radius: 12px; }
.cases-grid .case__logo:has(img) { border: 1px solid var(--line); }
.case__logo-img { max-height: 52px; max-width: 170px; width: auto; height: auto; object-fit: contain; }
.case__monogram {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 14px;
  font-family: var(--display); font-weight: 800; font-stretch: 120%; font-size: 1.35rem; color: var(--fg);
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(140deg, var(--teal), var(--blue)) border-box;
}
.case__client { font-weight: 600; color: var(--fg); }
.case__country { color: var(--muted); font-weight: 400; }
.case__country::before { content: "/"; margin: 0 8px; opacity: .5; }
.case__title { font-size: 1.55rem; font-stretch: 105%; line-height: 1.12; }
.case__text { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.chips li { font-size: .8rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.case--more { justify-content: center; align-items: flex-start; background: none; border-style: dashed; }
.case--more a { font-family: var(--display); font-size: 1.8rem; font-weight: 700; font-stretch: 112%; color: var(--teal); text-underline-offset: 6px; }

/* ---------- Tecnologías ---------- */
.tech { padding: clamp(80px, 14vh, 150px) 0; }
.tech__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); }
.layers { margin: 0; }
.layers__row { display: grid; grid-template-columns: minmax(10rem, 0.8fr) 2fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); align-items: baseline; }
.layers__row dt { color: var(--slate); font-weight: 500; font-size: .98rem; }
.layers__row dd { margin: 0; }
.layers__row ul { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.layers__row li { font-family: var(--display); font-weight: 700; font-stretch: 108%; font-size: 1.35rem; line-height: 1.2; }
@media (max-width: 900px) { .tech__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .layers__row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- IA (resumen en Inicio) ---------- */
.ai-teaser { padding: clamp(80px, 14vh, 150px) 0; background: var(--white); }
.ai-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px); margin-bottom: 40px; }
.ai-list__item { display: grid; grid-template-columns: 34px 1fr; column-gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.ai-list__mark { width: 30px; height: 32px; grid-row: span 2; margin-top: 2px; }
.ai-list__item h3 { font-size: 1.35rem; font-stretch: 105%; }
.ai-list__item p { margin-top: 8px; color: var(--muted); }
@media (max-width: 800px) { .ai-list { grid-template-columns: 1fr; } }

/* ---------- Partners (resumen) ---------- */
.partners-teaser { padding: clamp(80px, 14vh, 150px) 0; background: var(--white); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 clamp(48px, 8vh, 72px); }
.stats__item { padding-top: 18px; border-top: 2px solid var(--fg); }
.stats__value { font-family: var(--display); font-weight: 800; font-stretch: 120%; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; }
.stats__label { margin: 10px 0 0; color: var(--muted); font-size: .95rem; max-width: 16rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; row-gap: 28px; } }

.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.path { padding: 32px; border-radius: var(--radius); background: var(--paper); display: flex; flex-direction: column; gap: 14px; }
.path__name { font-size: 1.7rem; font-stretch: 110%; }
.path__pitch { font-size: 1.1rem; }
.path .link { margin-top: auto; padding-top: 8px; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }

.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 12px;
  background: linear-gradient(140deg, var(--teal), var(--blue));
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.ticks--long { gap: 16px; margin-top: 20px; }

/* ---------- Contacto ---------- */
.contact { background: var(--night); color: var(--fg); padding: clamp(96px, 16vh, 180px) 0; overflow: hidden; }
.contact__title { font-size: clamp(2.2rem, 5vw, 4rem); font-stretch: 112%; letter-spacing: -0.015em; }
.contact__lead { margin-top: 16px; font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.contact__email {
  display: block; margin-top: clamp(32px, 6vh, 56px);
  font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  font-size: min(calc(92vw / 11.5), 8.5rem);
  font-stretch: calc(var(--w, 100) * 1%);
  color: var(--fg); text-decoration: none; white-space: nowrap;
}
.contact__email:hover { color: var(--teal); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact__place { margin-top: 28px; color: var(--muted); }

/* ---------- Pie ---------- */
.footer { background: var(--night); color: var(--fg); border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 32px 0; font-size: .92rem; }
.brand--small .brand__word { font-size: 1.15rem; }
.brand--small .brand__mark { width: 24px; height: 26px; }
.footer__formerly { color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--fg); }
.footer__copy { color: var(--muted); width: 100%; }

/* ---------- Página de IA ---------- */
.ai-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.ai-block { display: flex; flex-direction: column; gap: 14px; padding: 36px 32px; background: var(--white); border-radius: var(--radius); }
.ai-block__mark { width: 36px; height: 38px; margin-bottom: 6px; }
.ai-block__title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-stretch: 110%; }
.ai-block__text { color: var(--muted); }
.ai-block__example { margin-top: auto; padding: 16px 18px; border-left: 3px solid var(--teal); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; font-size: .97rem; }
.ai-block__example span { display: block; font-weight: 700; color: var(--blue-ink); margin-bottom: 4px; }
@media (max-width: 860px) { .ai-blocks { grid-template-columns: 1fr; } }
.wordmarks { display: flex; flex-wrap: wrap; gap: 12px 44px; margin-top: 40px; }
.wordmarks li { font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.015em; }

/* ---------- Páginas internas ---------- */
.page-hero { background: var(--night); color: var(--fg); padding: calc(var(--header-h) + clamp(56px, 12vh, 120px)) 0 clamp(56px, 10vh, 100px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--blue)); }
.page-hero__title { font-size: clamp(2.8rem, 8vw, 6.5rem); font-weight: 800; font-stretch: 125%; letter-spacing: -0.025em; }
.page-hero__lead { margin-top: 24px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 42rem; }

.subnav { padding: 24px 0 0; }
.subnav ul { display: flex; flex-wrap: wrap; gap: 8px; }
.subnav a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: .95rem; }
.subnav a:hover { border-color: var(--accent); color: var(--accent); }

.block { padding: clamp(72px, 12vh, 130px) 0; background: var(--bg); color: var(--fg); }
.block--tight { padding-top: 40px; }
.block__kicker { color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.block__title { font-size: clamp(2rem, 4.2vw, 3.25rem); font-stretch: 110%; letter-spacing: -0.015em; max-width: 52rem; }
.block__subtitle { margin-top: 14px; font-size: 1.3rem; font-weight: 500; }
.block__text { margin-top: 18px; color: var(--muted); max-width: 40rem; }
.block__text--wide { max-width: 50rem; font-size: 1.15rem; margin-bottom: clamp(48px, 8vh, 72px); }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.trio__item { padding: 32px 28px; background: var(--white); border-radius: var(--radius); }
.trio__mark { width: 34px; height: 36px; margin-bottom: 20px; }
.trio__item h3 { font-size: 1.45rem; font-stretch: 105%; }
.trio__item p { margin-top: 12px; color: var(--muted); }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.panel { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 4%, transparent); }
.panel__title { font-size: 1.35rem; font-stretch: 105%; margin-bottom: 20px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; counter-reset: s; }
.steps__item { position: relative; padding-top: 24px; border-top: 2px solid var(--ink); }
.steps__n { display: block; font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: 3.5rem; line-height: 1; color: var(--blue-ink); margin-bottom: 16px; }
.steps__item h3 { font-size: 1.4rem; font-stretch: 105%; }
.steps__item p { margin-top: 10px; color: var(--muted); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.cta-band { background: var(--paper-2); padding: 48px 0; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band__text { font-family: var(--display); font-weight: 700; font-stretch: 108%; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; max-width: 40rem; }
.cta-band .btn--primary { background: var(--ink); color: var(--paper); }
.cta-band .btn--primary:hover { background: var(--ink-2); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font: 500 .92rem var(--text); cursor: pointer;
}
.filters button span { color: var(--slate); margin-left: 4px; font-size: .82rem; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button[aria-pressed="true"] span { color: var(--mist); }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.cases-grid .case { background: var(--white); }
.cases-grid .case[hidden] { display: none; }

.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.timeline__item { position: relative; padding-top: 32px; border-top: 2px solid var(--line); }
.timeline__item::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(140deg, var(--teal), var(--blue)); }
.timeline__year { font-family: var(--display); font-weight: 800; font-stretch: 120%; font-size: 2.2rem; line-height: 1; }
.timeline__text { margin-top: 12px; color: var(--muted); }
@media (max-width: 800px) { .timeline { grid-template-columns: 1fr; } }

.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); }
.mv__title { font-size: clamp(2rem, 4vw, 3rem); font-stretch: 115%; margin-bottom: 20px; }
.mv__item p { color: var(--muted); font-size: 1.1rem; }
@media (max-width: 800px) { .mv { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
