/* ==========================================================================
   Real & Asociados Arquitectos, hoja de estilos
   Orden: 1 tokens · 2 base · 3 tipografía · 4 loader y cursor · 5 header ·
          6 botones · 7 escenas · 8 responsive · 9 accesibilidad
   Regla de diseño: sin radios, sin glass, sin sombras decorativas. Filetes de
   1 px alineados a la grilla. Las fotos nunca se deforman (solo escala, clip y
   traslación).
   ========================================================================== */

/* 1 · Tokens ------------------------------------------------------------- */
:root {
  --ink: #121113;
  --graphite: #1D1A1E;
  --bone: #ECE8E3;
  --mist: #C9C4C1;
  --red: #AF2536;
  --white: #FFFFFF;

  --red-text: #EB6477;                  /* rojo para texto y foco sobre fondo oscuro (5,4:1 o más sobre grafito) */
  --text-dark: #ECE8E3;                 /* texto sobre fondos oscuros */
  --muted-dark: rgba(236, 232, 227, .72);
  --text-light: #ECE8E3;                /* texto principal del sitio (sitio oscuro: los nombres -light vienen del sitio claro anterior) */
  --muted-light: rgba(236, 232, 227, .78);
  --line-dark: rgba(255, 255, 255, .18);
  --line-light: rgba(236, 232, 227, .22);

  --font: -apple-system, system-ui, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1800px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: 1.2s;
  --dur-hover: .5s;
}

/* 2 · Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-light);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* clip no crea contenedor de scroll: position sticky funciona también en Safari */
}
body.nav-open { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
em { font-style: normal; font-weight: 300; opacity: .6; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 4px; }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: var(--white); color: var(--ink); padding: 8px 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.logo-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Fondo de grilla (canvas 2D, ver site.js). Solo se muestra cuando se dibuja. */
.scene-gl { display: none; position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.gl .scene-gl { display: block; }
.gl body { background: var(--graphite); }
.gl .statement, .gl .process, .gl .contact, .gl .work, .gl .services, .gl .marquee { background: transparent; }

/* Sin WebGL, cada escena pone su fondo sólido. */
.statement, .process { background: var(--graphite); }
.contact { background: linear-gradient(180deg, var(--graphite) 0%, var(--ink) 100%); }

/* 3 · Tipografía --------------------------------------------------------- */
.w { display: inline-block; vertical-align: top; }
.ch { display: inline-block; }
.sw { display: inline-block; }
.ln { display: block; }
.ln__in { display: inline-block; }
/* Máscara del reveal: recorta por palabra o por línea, con margen para tildes de mayúsculas y letras que bajan */
[data-split]:not([data-split="rotate"]) .w, [data-lines] .ln, .cap__texto .ln { clip-path: inset(-.25em -.1em -.2em -.1em); }
.lw { display: inline; }

.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .7;
}
.label i { display: block; width: 28px; height: 1px; background: currentColor; flex: 0 0 auto; }

.logo { display: block; width: 100%; height: auto; color: inherit; fill: currentColor; }
.logo--h { aspect-ratio: 9.44 / 1; }
.logo--s { aspect-ratio: 3.37 / 1; }

/* 4 · Loader, cursor y progreso ------------------------------------------ */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr auto; padding: 26px var(--gutter) 24px; background: var(--ink); color: var(--white); overflow: hidden; }
.no-js .intro { display: none; }
.intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.intro__top, .intro__bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 24px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.intro__count { font-variant-numeric: tabular-nums; color: var(--white); }
.intro__stage { position: relative; z-index: 1; display: grid; place-items: center; }
.intro__logo { position: relative; width: min(46vw, 520px); color: var(--white); }

.cursor { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 200; display: none; pointer-events: none; }
body.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: absolute; border-radius: 50%; color: var(--white); mix-blend-mode: difference; }
.cursor__dot { width: 6px; height: 6px; margin: -3px; background: var(--white); }
/* El tamaño de hover va por "scale" (sin layout); el JS escribe transform (giro y estiramiento) y se componen */
.cursor__ring { width: 38px; height: 38px; margin: -19px; border: 1px solid var(--white); transition: scale .45s var(--ease); }
.cursor[data-estado="enlace"] .cursor__ring { scale: 1.684; }
.cursor__label { position: absolute; left: -50px; top: -50px; width: 100px; height: 100px; display: grid; place-items: center; border-radius: 50%; background: var(--bone); color: var(--ink); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; transform: scale(0); transition: transform .5s var(--ease); }
/* Estados con disco: "ver" a 100 px; flechas del visor, pausar y reproducir a 64 px. El resto lo dibuja el anillo */
.cursor__label > * { display: none; }
.cursor[data-estado="ver"] .cursor__label { transform: scale(1); }
.cursor[data-estado="atras"] .cursor__label, .cursor[data-estado="adelante"] .cursor__label,
.cursor[data-estado="pausar"] .cursor__label, .cursor[data-estado="reproducir"] .cursor__label { transform: scale(.64); }
.cursor[data-estado="ver"] .cursor__ring, .cursor[data-estado="ver"] .cursor__dot,
.cursor[data-estado="atras"] .cursor__ring, .cursor[data-estado="atras"] .cursor__dot,
.cursor[data-estado="adelante"] .cursor__ring, .cursor[data-estado="adelante"] .cursor__dot,
.cursor[data-estado="pausar"] .cursor__ring, .cursor[data-estado="pausar"] .cursor__dot,
.cursor[data-estado="reproducir"] .cursor__ring, .cursor[data-estado="reproducir"] .cursor__dot { opacity: 0; }
.cursor[data-estado="ver"] .cursor__txt, .cursor[data-estado="ver"] .arr--ver,
.cursor[data-estado="atras"] .arr--izq, .cursor[data-estado="adelante"] .arr--der { display: inline-block; }
.cursor[data-estado="atras"] .arr, .cursor[data-estado="adelante"] .arr { width: 28px; height: 28px; margin: 0; } /* a .64 se ve de 18 px */
.cursor[data-estado="pausar"] .dplay, .cursor[data-estado="reproducir"] .dplay { display: block; }
.cursor .dplay { width: 17px; height: 20px; border-left: 5px solid currentColor; border-right: 5px solid currentColor; } /* a .64 se ve de 11 x 13 */
.cursor[data-estado="reproducir"] .dplay { width: 0; height: 0; margin-left: 5px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent currentColor; }
.cursor[data-estado="oculto"] { opacity: 0; transition: opacity .2s linear; }
.cursor.is-light .cursor__ring { border-color: var(--ink); mix-blend-mode: normal; }
.cursor.is-light .cursor__dot { background: var(--ink); mix-blend-mode: normal; }

.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 90; pointer-events: none; }
.progress span { display: block; width: 100%; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* 5 · Header ------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 84px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--gutter);
  color: var(--text-dark);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease);
}
/* Sobre el hero, sin barra. Sobre cada sección, barra sólida: grafito o hueso según el tono */
.header.is-bar { background-color: var(--graphite); border-bottom-color: var(--line-dark); }
.header.is-bar.is-light { background-color: var(--bone); color: var(--text-light); border-bottom-color: var(--line-light); }
.brand { display: block; flex: 0 0 auto; width: clamp(150px, 14vw, 200px); }
.nav { margin-left: auto; display: flex; gap: clamp(20px, 3vw, 48px); font-size: 13px; letter-spacing: .02em; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--dur-hover) var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.header__cta { display: inline-flex; align-items: center; height: auto; padding: 0 0 4px; border-bottom: 1px solid currentColor; font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
.menu { display: none; position: relative; width: 44px; height: 44px; color: inherit; }
.menu span, .menu span::before, .menu span::after { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; content: ""; transition: transform .5s var(--ease), background .3s; }
.menu span { top: 50%; }
.menu span::before { top: -7px; left: 0; right: 0; }
.menu span::after { top: 7px; left: 0; right: 0; }
.menu[aria-expanded="true"] span { background: transparent; }
.menu[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Texto que rueda (CTA del header) */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: middle; white-space: nowrap; }
.roll span { display: block; transition: transform .7s var(--ease); }
.roll::after { content: attr(data-text); position: absolute; left: 0; top: 0; transform: translateY(100%); transition: transform .7s var(--ease); }
.roll:hover span { transform: translateY(-100%); }
.roll:hover::after { transform: translateY(0); }

/* 6 · Botones ------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 10px 0 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: scale .35s var(--ease), background-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
}
/* "scale" es una propiedad aparte de "transform": el imán de GSAP escribe transform y no se pisan */
.btn:active { scale: .98; }
.btn__arr { display: inline-grid; place-items: center; width: 40px; height: 40px; transition: transform .6s var(--ease), background-color .5s var(--ease), color .5s var(--ease); }
.btn__arr .arr { width: 18px; height: 18px; }
.btn:hover .btn__arr { transform: translate(3px, -3px); }
.btn--solid { background: var(--bone); color: var(--ink); }
.btn--solid .btn__arr { background: var(--ink); color: var(--bone); }
.btn--solid:hover .btn__arr { background: var(--red); color: var(--white); }
.btn--solid:hover { background: var(--white); }
.btn--line { padding: 0 4px; color: inherit; }
/* Botón de vidrio líquido (capas: blur + highlight especular que sigue el puntero) */
.btn--glass {
  padding: 0 28px;
  border-radius: 999px;
  color: var(--text-dark);
  background: rgba(236, 232, 227, .12);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(236, 232, 227, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 32px rgba(0, 0, 0, .25);
  overflow: hidden;
  isolation: isolate;
}
.btn--glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(160px circle at var(--lx, 50%) var(--ly, 0%), rgba(255, 255, 255, .32), transparent 60%);
  transition: opacity .4s var(--ease);
}
.btn--glass:hover { background: rgba(236, 232, 227, .18); }
.btn--glass .btn__arr { background: var(--text-dark); color: var(--ink); }
@media (prefers-reduced-transparency: reduce) {
  .btn--glass { background: #1d1a1e; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.btn--line .btn__arr, .btn--line .btn__arr .arr { width: 16px; height: 16px; }
.btn--line::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 14px; height: 1px; background: currentColor; transform: scaleX(.4); transform-origin: left; transition: transform .6s var(--ease); }
.btn--line:hover::after { transform: scaleX(1); }

/* 7 · Escenas ------------------------------------------------------------ */
.section { position: relative; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }

/* Filete de sección: marca la grilla al entrar */
.sec-rule { position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; pointer-events: none; z-index: 2; }
.sec-rule i { display: block; height: 1px; background: var(--line-dark); transform-origin: left; transform: scaleX(0); }
.work .sec-rule i, .services .sec-rule i { background: var(--line-light); }

/* Hero (oscuro) */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; background: var(--graphite); color: var(--text-dark); }
.hero__media { position: absolute; inset: -12%; overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 17, 19, .55) 0%, rgba(18, 17, 19, 0) 26%, rgba(18, 17, 19, .2) 52%, rgba(18, 17, 19, .9) 100%); }
.hero__body { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(120px, 16vh, 180px); max-width: var(--max); perspective: 1400px; }
.eyebrow { margin: 0 0 24px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-dark); }
.hero__title { font-size: clamp(3.4rem, min(8vw, 17vh), 9.5rem); line-height: .9; letter-spacing: -.035em; font-weight: 300; }
.hero__title em { font-weight: 300; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 40px; margin-top: 40px; }
.hero__desc { max-width: 440px; font-size: clamp(1.125rem, 1.4vw, 1.375rem); line-height: 1.5; color: var(--muted-dark); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__bottom { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(236, 232, 227, .72); }
.scroll-cue { display: flex; align-items: center; gap: 14px; }
.scroll-cue__line { position: relative; width: 90px; height: 1px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: translateX(-100%); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* Manifiesto (oscuro) */
.statement { padding-block: clamp(140px, 16vw, 260px); color: var(--text-dark); }
.statement__kicker { grid-column: 1 / 4; align-self: start; padding-top: .6em; }
.statement__text { grid-column: 4 / 13; font-size: clamp(1.9rem, 3vw, 3.6rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 300; color: var(--text-dark); }

/* Banda (oscuro) */
.band { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); }
.band__frame { position: absolute; inset: 0; overflow: hidden; }
.band img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(18, 17, 19, .4) 0%, rgba(18, 17, 19, 0) 30%, rgba(18, 17, 19, 0) 45%, rgba(18, 17, 19, .88) 100%); }
.band__caption { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(48px, 8vw, 110px); max-width: none; font-size: clamp(2rem, 4.2vw, 4.4rem); line-height: 1; letter-spacing: -.03em; font-weight: 300; color: var(--bone); }
.band__mark { position: absolute; z-index: 2; width: 22px; height: 22px; border: 0 solid rgba(236, 232, 227, .75); pointer-events: none; }
.band__mark--tl { top: 28px; left: var(--gutter); border-top-width: 1px; border-left-width: 1px; }
.band__mark--tr { top: 28px; right: var(--gutter); border-top-width: 1px; border-right-width: 1px; }
.band__mark--bl { bottom: 28px; left: var(--gutter); border-bottom-width: 1px; border-left-width: 1px; }
.band__mark--br { bottom: 28px; right: var(--gutter); border-bottom-width: 1px; border-right-width: 1px; }

.work { padding-block: clamp(120px, 14vw, 220px) clamp(100px, 10vw, 160px); background: var(--graphite); color: var(--text-light); }
.work__head { row-gap: 32px; margin-bottom: clamp(80px, 10vw, 160px); }
.work__head .label { grid-column: 1 / 13; margin-bottom: 28px; }
.work__title { grid-column: 1 / 9; font-size: clamp(2.8rem, 5.2vw, 6.5rem); line-height: .95; letter-spacing: -.035em; font-weight: 300; }
.work__desc { grid-column: 9 / 13; align-self: end; font-size: clamp(1.125rem, 1.4vw, 1.375rem); line-height: 1.5; color: var(--muted-light); }


/* Proyectos: panel con foto, ficha en grilla y visor a pantalla completa. Al pasar sobre uno, el resto se apaga */

/* Flechas: trazo fino y cuadrado, en la misma medida que el texto que acompañan */
.arr { display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; stroke-linejoin: miter; vertical-align: -0.12em; }



.work__quote { max-width: 1200px; margin-top: clamp(120px, 14vw, 220px); font-size: clamp(1.9rem, 3.4vw, 3.6rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 300; color: var(--text-light); }

/* Proceso (oscuro) */
.process { padding-block: clamp(140px, 16vw, 240px); color: var(--text-dark); }
.process__head { row-gap: 32px; margin-bottom: clamp(80px, 10vw, 160px); }
.process__head .label { grid-column: 1 / 13; margin-bottom: 28px; }
.process__title { grid-column: 1 / 9; font-size: clamp(2.8rem, 5.2vw, 6.5rem); line-height: .95; letter-spacing: -.035em; font-weight: 300; }
.process__intro { grid-column: 9 / 13; align-self: end; font-size: clamp(1.125rem, 1.4vw, 1.375rem); line-height: 1.5; color: var(--muted-dark); }

.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; padding-top: 72px; }
.steps__path { position: absolute; left: 0; top: 0; width: 100%; height: auto; overflow: visible; pointer-events: none; display: none; }
.steps__path path { fill: none; stroke: var(--line-dark); stroke-width: 1; vector-effect: non-scaling-stroke; }
.steps__dot { fill: var(--red); }
.steps__pt { fill: rgba(236, 232, 227, .3); }
.steps__pt.is-on { fill: var(--red); }
.step { padding-top: 36px; }
.step__num { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); font-variant-numeric: tabular-nums; }
.step__title { margin-top: 18px; font-size: clamp(1.5rem, 2vw, 2.2rem); line-height: 1; letter-spacing: -.02em; font-weight: 300; }
.step__text { margin-top: 14px; max-width: 300px; font-size: 16px; line-height: 1.6; color: var(--muted-dark); }

/* Servicios (claro) */
.services { padding-block: clamp(140px, 16vw, 240px); background: var(--graphite); color: var(--text-light); }
.services__head { row-gap: 32px; margin-bottom: clamp(80px, 10vw, 160px); }
.services__head .label { grid-column: 1 / 13; margin-bottom: 28px; }
.services__title { grid-column: 1 / 9; font-size: clamp(2.8rem, 5.2vw, 6.5rem); line-height: .95; letter-spacing: -.035em; font-weight: 300; }
.services__intro { grid-column: 9 / 13; align-self: end; font-size: clamp(1.125rem, 1.4vw, 1.375rem); line-height: 1.5; color: var(--muted-light); }

.service-list { border-top: 1px solid var(--line-light); }
.service { position: relative; isolation: isolate; display: grid; grid-template-columns: 120px minmax(0, 1.3fr) minmax(0, 1fr) 48px; column-gap: 32px; align-items: center; padding: clamp(28px, 3vw, 44px) 0; transition: color .5s var(--ease); }
/* Relleno rojo que avanza de izquierda a derecha, como una barra que carga */
.service::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); clip-path: inset(0 100% 0 0); transition: clip-path .75s var(--ease); }
.service:hover, .service:focus-within { color: var(--text-dark); }
.service:hover::before, .service:focus-within::before { clip-path: inset(0 0 0 0); }
/* Filete de la fila: se traza al entrar (GSAP) y cambia de tono sobre el rojo */
.service__rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-light); transform-origin: left; transform: scaleX(0); pointer-events: none; transition: background-color .5s var(--ease); }
.service:hover .service__rule, .service:focus-within .service__rule { background: rgba(236, 232, 227, .35); }
.service__num { font-size: 11px; font-weight: 500; letter-spacing: .16em; color: var(--muted-light); font-variant-numeric: tabular-nums; transition: color .5s var(--ease); }
.service:hover .service__num, .service:focus-within .service__num { color: var(--text-dark); }
.service__title { font-size: clamp(2.2rem, 4vw, 4.4rem); line-height: .95; letter-spacing: -.035em; font-weight: 300; }
/* Ola de letras al pasar: cada letra sube con un desfase según su posición */
.service .ch { transition: transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 16ms); }
.service:hover .ch, .service:focus-within .ch { transform: translateY(-10%); }
.service__text { max-width: 360px; font-size: 16px; line-height: 1.6; color: var(--muted-light); transition: color .5s var(--ease); }
.service:hover .service__text, .service:focus-within .service__text { color: rgba(236, 232, 227, .88); }
.service__arrow { justify-self: end; font-size: 24px; line-height: 1; transition: transform .6s var(--ease); }
.service:hover .service__arrow, .service:focus-within .service__arrow { transform: rotate(45deg); }

/* Contacto (oscuro) */
.contact { padding-block: clamp(140px, 16vw, 240px) 40px; color: var(--text-dark); }
.contact__head { row-gap: 32px; margin-bottom: clamp(80px, 10vw, 160px); perspective: 1200px; }
.contact__head .label { grid-column: 1 / 13; margin-bottom: 28px; }
.contact__title { grid-column: 1 / 13; font-size: clamp(2.8rem, 6vw, 6.5rem); line-height: .95; letter-spacing: -.035em; font-weight: 300; }
.contact__row { row-gap: 40px; margin-bottom: clamp(80px, 10vw, 140px); }
.contact__copy { grid-column: 1 / 6; font-size: clamp(1.125rem, 1.4vw, 1.375rem); line-height: 1.5; color: var(--muted-dark); }
.contact__actions { grid-column: 7 / 13; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px; align-self: end; }
.contact__info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; padding-top: 32px; border-top: 1px solid var(--line-dark); }
.info__label { margin-bottom: 14px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); }
.info__value { font-size: clamp(1.125rem, 1.4vw, 1.375rem); line-height: 1.5; color: var(--text-dark); }
.info__value a { border-bottom: 1px solid rgba(255, 255, 255, .4); }

/* Cierre: wordmark y pie */
.footer__wordmark { margin: clamp(96px, 12vw, 200px) auto 0; width: min(64%, 760px); color: var(--bone); }
.footer__wordmark .logo { width: 100%; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; text-align: center; gap: 24px 40px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); }
.footer .brand { width: clamp(150px, 14vw, 200px); color: var(--bone); }
.footer__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 40px; }
.footer__meta a { border-bottom: 1px solid rgba(255, 255, 255, .4); }
.motion-toggle { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border: 1px solid var(--line-dark); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dark); }
.motion-toggle i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dark); }
.motion-toggle[aria-pressed="false"] i { background: transparent; border: 1px solid var(--text-dark); }

/* 8 · Responsive --------------------------------------------------------- */
@media (min-width: 901px) {
  .steps__path { display: block; }
}

@media (max-width: 900px) {
  .header { height: 72px; }
  /* Con el menú abierto, el header se funde con el overlay oscuro */
  body.nav-open .header, body.nav-open .header.is-bar.is-light { background-color: transparent; color: var(--text-dark); border-bottom-color: transparent; }
  .menu { display: block; }
  .header__cta { display: none; }
  .nav { position: fixed; inset: 0; z-index: 40; display: none; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; margin: 0; padding: 0 var(--gutter); background: var(--ink); font-size: 28px; letter-spacing: 0; color: var(--text-dark); }
  body.nav-open .nav { display: flex; }
  .brand, .menu { position: relative; z-index: 60; }

  .statement__kicker, .statement__text { grid-column: 1 / 13; }
  .statement__kicker { margin-bottom: 32px; padding-top: 0; }
  .work__title, .work__desc, .process__title, .process__intro, .services__title, .services__intro, .contact__copy, .contact__actions { grid-column: 1 / 13; }
  .work__desc, .process__intro, .services__intro { margin-top: 24px; }
  .steps { grid-template-columns: 1fr; row-gap: 56px; }
  .service { grid-template-columns: 48px minmax(0, 1fr) 24px; column-gap: 16px; }
  .service__text { grid-column: 2; grid-row: 2; }
  .service__arrow { grid-column: 3; grid-row: 1; }
  .contact__info { grid-template-columns: 1fr; row-gap: 28px; }
  .hero__title { font-size: clamp(2.8rem, 12vw, 4.4rem); }
  .work__title, .process__title, .services__title, .contact__title { font-size: clamp(2.4rem, 9vw, 3.6rem); }
  .eyebrow { font-size: 10px; letter-spacing: .12em; }
  .hero__row { align-items: flex-start; }
  .hero__actions { width: 100%; flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__bottom .scroll-cue span:last-child { display: none; }
  .band__caption { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .footer { flex-direction: column; align-items: center; }
  .intro__top, .intro__bottom { font-size: 8px; letter-spacing: .16em; }
  .intro__logo { width: 84vw; }
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none !important; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
}

/* 9 · Accesibilidad ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue__line::after { animation: none; }
}

/* Banda de mayúsculas entre secciones: se desliza con el scroll (solo transform) */
.marquee { overflow: hidden; padding: clamp(18px, 2.4vw, 30px) 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); background: var(--ink); color: var(--text-light); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span { padding-right: .6em; font-size: clamp(1.3rem, 2.6vw, 2.4rem); font-weight: 300; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; line-height: 1; }


/* Flecha del cursor "Ver" */
.cursor__label .arr { width: 14px; height: 14px; margin-left: 4px; }



/* Etiqueta del cursor "Ver" */
.cursor__txt { display: inline-block; }

/* Equipo: galería horizontal fijada en escritorio, columna en móvil. Fotos en blanco y negro, sin zoom */
.team { position: relative; padding-top: clamp(140px, 16vw, 240px); background: var(--ink); color: var(--text-dark); overflow: hidden; }
.team__head { row-gap: 32px; margin-bottom: clamp(72px, 9vw, 140px); }
.team__head .label { grid-column: 1 / 13; margin-bottom: 28px; }
.team__title { grid-column: 1 / 13; font-size: clamp(2.8rem, 6vw, 6.5rem); line-height: .95; letter-spacing: -.035em; font-weight: 300; }
.team__title em { font-style: normal; color: var(--muted-dark); }

.team__pin { position: relative; height: 100vh; height: 100svh; display: flex; align-items: center; }
.team__track { display: flex; align-items: center; gap: clamp(24px, 3.4vw, 64px); padding-inline: var(--gutter); padding-bottom: 96px; will-change: transform; }
.team__card { flex: 0 0 clamp(260px, 25vw, 400px); margin: 0; perspective: 1100px; }
.team__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--graphite); transform-style: preserve-3d; will-change: transform; }
.team__frame img { display: block; width: 112%; height: 112%; max-width: none; margin: -6% 0 0 -6%; object-fit: cover; }

.team__hud { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 5vh, 56px); display: flex; align-items: center; gap: 32px; }
.team__count { font-size: 11px; font-weight: 500; letter-spacing: .16em; color: var(--muted-dark); font-variant-numeric: tabular-nums; }
.team__num { color: var(--text-dark); }
.team__bar { position: relative; flex: 0 1 clamp(160px, 22vw, 360px); height: 1px; background: var(--line-dark); overflow: hidden; }
.team__bar i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }

@media (max-width: 900px) {
  .team__pin { height: auto; display: block; }
  .team__track { display: flex; flex-direction: row; align-items: flex-start; gap: 14px; padding: 0 var(--gutter); padding-bottom: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; transform: none !important; }
  .team__track::-webkit-scrollbar { display: none; }
  .team__card { flex: 0 0 min(62vw, 250px); width: auto; scroll-snap-align: start; }
  .team__card:nth-child(even) { margin-top: 0; }
  .team__frame { will-change: auto; }
  .team__hud { position: static; display: flex; margin: 24px var(--gutter) 0; gap: 16px; }
  .team__bar { flex: 1 1 auto; }
  .team__title { font-size: clamp(2.4rem, 9vw, 3.6rem); }
}

