/* ==========================================================================
   Pizela Construcciones: estilos
   Las fotos mandan. Grafito para el primer vistazo, los renders y el cierre;
   blanco frío para el resto; un solo verde, reservado para WhatsApp.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light;
  --bg: #f3f4f2;
  --surface: #e9ebe7;
  --surface-2: #dfe2dd;
  --ink: #141615;
  --ink-2: #434845;
  --ink-3: #5f6561;
  --line: #d0d4cf;
  --line-strong: #a9afaa;
  --accent: #13684b;
  --accent-hover: #0e5a40;
  --accent-ink: #f4faf7;
  --pending-bg: #f5e4a0;
  --pending-ink: #423400;

  /* Bandas oscuras: iguales en claro y oscuro */
  --graphite: #111312;
  --graphite-2: #1a1d1b;
  --on-dark: #eef0ed;
  --on-dark-2: #b3bab5;
  --on-dark-line: rgba(238, 240, 237, 0.16);
  --wa: #13684b;
  --wa-hover: #0e5a40;
  --wa-ink: #f4faf7;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.6rem, 1.2rem + 4.6vw, 5.5rem);
  --fs-h1: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  --fs-h2: clamp(1.85rem, 1.25rem + 2.2vw, 3.25rem);
  --fs-h3: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-small: 0.875rem;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1360px;
  --section: clamp(4.5rem, 3rem + 7vw, 10rem);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141615;
    --surface: #1b1e1c;
    --surface-2: #232724;
    --ink: #eef0ed;
    --ink-2: #c3c9c5;
    --ink-3: #9aa29d;
    --line: #2c312e;
    --line-strong: #4a514d;
    --accent: #45c08e;
    --accent-hover: #5fd2a2;
    --accent-ink: #06150e;
    --pending-bg: #4a3f12;
    --pending-ink: #fbe9a6;
    --graphite: #0c0d0d;
    --graphite-2: #151816;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141615;
  --surface: #1b1e1c;
  --surface-2: #232724;
  --ink: #eef0ed;
  --ink-2: #c3c9c5;
  --ink-3: #9aa29d;
  --line: #2c312e;
  --line-strong: #4a514d;
  --accent: #45c08e;
  --accent-hover: #5fd2a2;
  --accent-ink: #06150e;
  --pending-bg: #4a3f12;
  --pending-ink: #fbe9a6;
  --graphite: #0c0d0d;
  --graphite-2: #151816;
}

/* ---- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 560; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.section--dark :focus-visible, .hero :focus-visible, .closing :focus-visible, .site-footer :focus-visible { outline-color: #8fe0bd; }
html { scrollbar-color: var(--line-strong) var(--bg); }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.icon--lg { width: 2rem; height: 2rem; }
.icon--xl { width: 3.5rem; height: 3.5rem; }
.flip { transform: scaleX(-1); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--flush { padding-top: 0; }
.section--tint { background: var(--surface); }
.section--dark { background: var(--graphite); color: var(--on-dark); }

.pending {
  display: inline-block;
  background: var(--pending-bg); color: var(--pending-ink);
  font-size: 0.8125rem; font-weight: 500; line-height: 1.4;
  padding: 1px 7px; border-radius: 4px;
}
.note { font-size: var(--fs-small); color: var(--ink-3); }

.tag {
  display: inline-flex; align-items: center;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; line-height: 1.3; vertical-align: 0.15em;
  background: rgba(17, 19, 18, 0.72); color: #f3f4f2;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tag--render { background: rgba(243, 244, 242, 0.92); color: #141615; }

/* ---- Botones y enlaces ---------------------------------------------------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: var(--h); padding: 0 1.4em;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 550; font-size: 1rem; line-height: 1; letter-spacing: -0.005em;
  text-decoration: none; white-space: normal; text-align: center; text-wrap: balance; cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out),
              border-color 180ms var(--ease-out), transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--sm, .site-header .btn, .filter { white-space: nowrap; }
.btn { padding-block: 0.35em; }
.btn--sm { --h: 40px; padding: 0 1.05em; font-size: 0.9375rem; }
.btn--lg { --h: 56px; padding: 0 1.7em; font-size: 1.0625rem; }
.btn--xl { --h: 64px; padding: 0 2em; font-size: 1.125rem; }
.btn--block { width: 100%; }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--light { background: rgba(243, 244, 242, 0.95); color: #141615; }
@media (hover: hover) and (pointer: fine) {
  .btn--wa:hover { background: var(--wa-hover); }
  .btn--primary:hover { background: var(--ink-2); }
  .btn--ghost:hover { border-color: var(--ink); }
  .btn--light:hover { background: #fff; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 44px; font-weight: 550; text-decoration: none; color: var(--ink);
}
.link-arrow .icon { transition: transform 220ms var(--ease-out); }
.link-arrow--light { color: #f3f4f2; }
.link-arrow--wa { color: var(--accent); }
button.link-arrow { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 550; text-align: left; }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover .icon { transform: translateX(4px); }
  .link-arrow:hover { text-decoration: underline; }
}

/* ---- Cabecera ------------------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 280ms var(--ease-out), color 280ms var(--ease-out);
}
/* El fondo va en un pseudo-elemento: un backdrop-filter en la cabecera
   convertiría al menú móvil (position: fixed) en hijo atrapado en 72px. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: opacity 280ms var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-overlay:not(.is-scrolled):not(.menu-is-open) { color: #f3f4f2; }
.site-header.is-overlay:not(.is-scrolled):not(.menu-is-open)::before { opacity: 0; }
.scroll-sentinel { position: absolute; top: 0; height: 80px; width: 1px; pointer-events: none; }
.site-header__bar { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 650; letter-spacing: 0.16em; font-size: 1.0625rem; text-decoration: none;
  min-height: 44px;
}
.brand__mark { width: 22px; height: 22px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-weight: 500; font-size: 0.9375rem; opacity: 0.82;
  transition: opacity 160ms var(--ease-out);
}
.nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 0.45em; }
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover { opacity: 1; } }
.nav__wa { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; border-radius: 999px;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 20px; height: 1.6px; background: currentColor; border-radius: 2px;
  transition: transform 260ms var(--ease-out), opacity 200ms var(--ease-out);
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: var(--bg); color: var(--ink);
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; justify-content: space-between;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 240ms var(--ease-out), transform 300ms var(--ease-drawer), visibility 0s linear 300ms;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) {
    font-size: clamp(1.75rem, 7vw, 2.5rem); font-weight: 560; letter-spacing: -0.02em;
    padding: 10px 0; min-height: 56px; opacity: 1; border-bottom: 1px solid var(--line); width: 100%;
  }
  .nav__wa { display: inline-flex; width: 100%; }
}
@media (max-width: 520px) { .hide-sm { display: none; } }

/* ---- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  margin-top: calc(-1 * var(--header-h));
  display: flex; align-items: flex-end;
  background: var(--graphite); color: #f3f4f2;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__panel { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1400ms var(--ease-in-out); }
.hero__panel.is-active { opacity: 1; }
.hero__panel img { width: 100%; height: 100%; object-fit: cover; }
.hero__panel figcaption {
  position: absolute; left: var(--gutter); top: calc(var(--header-h) + 12px);
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 500; color: rgba(243, 244, 242, 0.9);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10, 11, 11, 0.74) 0%, rgba(10, 11, 11, 0) 30%),
    linear-gradient(to top, rgba(10, 11, 11, 0.92) 0%, rgba(10, 11, 11, 0.6) 34%, rgba(10, 11, 11, 0) 64%);
}
.hero__content { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(40px, 7vh, 88px); }
.hero__title { font-size: var(--fs-display); font-weight: 580; letter-spacing: -0.035em; line-height: 0.98; max-width: 16ch; }
@media (min-width: 600px) { .hero__title { max-width: none; } }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__line > span { display: inline-block; }
.hero__lead { margin-top: 20px; max-width: 40ch; font-size: var(--fs-lead); color: rgba(243, 244, 242, 0.86); line-height: 1.5; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

@media (orientation: landscape) and (max-height: 520px) {
  .hero__content { padding-top: calc(var(--header-h) + 12px); padding-bottom: 20px; }
  .hero__title { font-size: clamp(1.85rem, 5.2vw, 3rem); }
  .hero__lead { margin-top: 10px; font-size: 1rem; }
  .hero__actions { margin-top: 14px; }
  .hero__actions .btn--lg { --h: 48px; }
}
@media (max-width: 599px) {
  .hero__title { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 2.6rem); letter-spacing: -0.03em; }
  .hero__line, .hero__line > span { display: inline; }
}
@media (min-width: 900px) {
  .hero__media { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 3px; background: var(--graphite); }
  .hero__panel { position: relative; opacity: 1; overflow: hidden; }
  .hero__panel figcaption { left: 20px; }
  .hero__title { max-width: none; }
}

/* ---- Cabecera de sección -------------------------------------------------- */
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 64px); max-width: 52rem; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { font-size: var(--fs-lead); color: var(--ink-2); max-width: 46ch; }
.section--dark .section-head p { color: var(--on-dark-2); }
.section-head--split { max-width: none; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
}

/* ---- Servicios (inicio) --------------------------------------------------- */
.svc-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 380px);
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  margin-bottom: 32px;
}
.svc-grid::-webkit-scrollbar { display: none; }
.container--bleed-sm { padding-inline: 0; }
.svc {
  position: relative; overflow: hidden; isolation: isolate; scroll-snap-align: start;
  aspect-ratio: 4 / 5; color: #f3f4f2; background: var(--graphite);
}
.svc__media { position: absolute; inset: 0; z-index: -1; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.svc::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10, 11, 11, 0.92) 0%, rgba(10, 11, 11, 0.62) 42%, rgba(10, 11, 11, 0) 78%);
}
.svc__body { position: absolute; inset: auto 0 0 0; padding: 24px; display: grid; gap: 10px; justify-items: start; }
.svc h3 { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); }
.svc h3 a { text-decoration: none; }
.svc h3 a::before { content: ""; position: absolute; inset: 0; z-index: 0; }
.svc p { color: rgba(243, 244, 242, 0.84); max-width: 34ch; font-size: 0.975rem; line-height: 1.5; }
.svc .btn { position: relative; z-index: 1; margin-top: 6px; }
@media (hover: hover) and (pointer: fine) { .svc:hover .svc__media img { transform: scale(1.04); } }

/* Tablet: los 4 servicios en cuadrícula de 2 x 2 en vez de carrusel */
@media (min-width: 600px) and (max-width: 899px) {
  .svc-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr; overflow: visible; }
  .svc { aspect-ratio: 4 / 5; }
}
@media (min-width: 900px) {
  .container--bleed-sm { padding-inline: var(--gutter); }
  .svc-grid {
    grid-auto-flow: dense; grid-auto-columns: auto; overflow: visible; padding: 0;
    grid-template-columns: 1fr 1fr 1fr; grid-template-rows: repeat(2, clamp(300px, 30vw, 420px));
  }
  .svc { aspect-ratio: auto; }
  .svc--a { grid-column: 1; grid-row: 1 / span 2; }
  .svc--b { grid-column: 2 / span 2; grid-row: 1; }
  .svc--c { grid-column: 2; grid-row: 2; }
  .svc--d { grid-column: 3; grid-row: 2; }
  .svc__body { padding: 32px; }
}

/* ---- Proyectos (inicio) --------------------------------------------------- */
.work { display: grid; gap: 40px; }
.work__aside h2 { font-size: var(--fs-h2); }
.work__aside p { margin-top: 16px; font-size: var(--fs-lead); color: var(--ink-2); max-width: 32ch; }
.work__aside .btn { margin-top: 28px; }
.work__list { display: grid; gap: clamp(40px, 6vw, 88px); }
.work-item figure { display: grid; gap: 14px; }
.work-item__media { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.work-item__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transform-origin: center 60%; }
.work-item figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.work-item__title { display: inline-flex; align-items: center; gap: 10px; font-weight: 550; font-size: 1.0625rem; }
.work-item .tag { background: var(--ink); color: var(--bg); backdrop-filter: none; }
@media (min-width: 900px) {
  .work { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
  .work__aside { position: sticky; top: calc(var(--header-h) + 48px); }
  .work-item:nth-child(even) { padding-left: 12%; }
  .work-item__media img { aspect-ratio: 1 / 1; }
}

/* ---- Renders: acordeón horizontal ----------------------------------------- */
.slices {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 360px); gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.slices::-webkit-scrollbar { display: none; }
.slice { scroll-snap-align: start; }
.slice__btn {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--graphite-2);
  overflow: hidden; cursor: default; text-align: left; aspect-ratio: 4 / 5;
}
.slice__btn img { width: 100%; height: 100%; object-fit: cover; }
.slice__label {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  font-weight: 550; font-size: 1.0625rem; color: #f3f4f2;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.caption-note { margin-top: 20px; display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--on-dark-2); }
@media (min-width: 900px) {
  .slices {
    display: flex; overflow: visible; margin: 0; padding: 0; gap: 8px;
    height: clamp(420px, 44vw, 640px);
  }
  .slice { flex: 1 1 0; min-width: 0; transition: flex-grow 700ms var(--ease-drawer); }
  .slice.is-open { flex-grow: 3.4; }
  .slice__btn { height: 100%; aspect-ratio: auto; cursor: pointer; }
  .slice__btn img { transition: transform 900ms var(--ease-out), filter 500ms var(--ease-out); }
  .slice:not(.is-open) .slice__btn img { filter: brightness(0.62) saturate(0.85); }
  .slice__label { left: 20px; bottom: 20px; transition: opacity 300ms var(--ease-out); }
  .slice:not(.is-open) .slice__label { opacity: 0.75; font-size: 0.9375rem; writing-mode: vertical-rl; transform: rotate(180deg); bottom: 20px; right: auto; }
}

/* ---- Proceso -------------------------------------------------------------- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: none; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.step__n { grid-row: span 2; font-size: 0.875rem; font-weight: 600; color: var(--accent); padding-top: 4px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: var(--fs-h3); }
.step p { color: var(--ink-2); max-width: 36ch; }
.steps + .note { margin-top: 20px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .step { grid-template-columns: 1fr; gap: 12px; padding: 28px 28px 36px 0; border-bottom: 0; }
  .step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
  .step__n { grid-row: auto; padding: 0; font-size: 0.9375rem; }
}

/* ---- Cierre --------------------------------------------------------------- */
.closing { background: var(--graphite); color: #f3f4f2; padding-block: var(--section); border-bottom: 1px solid var(--on-dark-line); }
.closing__title {
  font-size: clamp(2.1rem, 1rem + 4.2vw, 5rem); font-weight: 560; letter-spacing: -0.035em; line-height: 1.04;
  max-width: 20ch;
}
.inline-img {
  display: inline-block; vertical-align: middle;
  width: 1.9em; height: 0.92em; margin: -0.12em 0.04em 0; overflow: hidden; border-radius: 999px;
  background: var(--graphite-2);
}
.inline-img img { width: 100%; height: 100%; object-fit: cover; }
.nowrap { white-space: nowrap; }
.closing__actions { margin-top: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* ---- Pie ------------------------------------------------------------------ */
.site-footer { background: var(--graphite); color: var(--on-dark-2); padding: clamp(48px, 7vw, 88px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 14px; max-width: 34ch; }
.footer-brand .brand { color: #f3f4f2; }
.site-footer h2 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #f3f4f2; margin-bottom: 12px; }
.site-footer ul { display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:not(.brand) { display: inline-flex; min-height: 32px; align-items: center; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: #f3f4f2; text-decoration: underline; } }
.footer-social { display: inline-flex; align-items: center; gap: 6px; color: #f3f4f2; }
.site-footer li, .site-footer p { overflow-wrap: anywhere; }
.note:empty, .section-head p:empty { display: none; }
@media (max-width: 479px) { .footer-grid > :nth-child(3), .footer-grid > :nth-child(4) { grid-column: 1 / -1; } }
.footer-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--on-dark-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: var(--fs-small); }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-grid--3 { grid-template-columns: 2fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ---- WhatsApp flotante ---------------------------------------------------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--wa); color: var(--wa-ink); text-decoration: none; font-weight: 600;
  box-shadow: 0 10px 28px -8px rgba(10, 30, 22, 0.55), 0 2px 6px rgba(10, 30, 22, 0.2);
  opacity: 0; transform: translateY(12px) scale(0.96); pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 320ms var(--ease-out), background-color 180ms var(--ease-out);
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { background: var(--wa-hover); } }
@media (max-width: 520px) { .wa-float { width: 56px; padding: 0; justify-content: center; } .wa-float span { display: none; } }
body.menu-open .wa-float { opacity: 0; pointer-events: none; }
body[data-page="contacto"] .wa-float { display: none; }

/* ---- Páginas internas ----------------------------------------------------- */
.page-intro { padding: clamp(48px, 8vw, 120px) 0 clamp(40px, 6vw, 80px); }
.page-intro h1 { font-size: var(--fs-h1); max-width: 18ch; }
.page-intro p { margin-top: 18px; font-size: var(--fs-lead); color: var(--ink-2); max-width: 48ch; }

.chips { margin-top: 32px; margin-inline: calc(-1 * var(--gutter)); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips ul { display: flex; gap: 8px; padding-inline: var(--gutter); width: max-content; }
.chips a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-size: 0.9375rem; font-weight: 500;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .chips a:hover { border-color: var(--ink); background: var(--surface); } }

.svc-rows { display: grid; gap: clamp(64px, 9vw, 128px); padding-bottom: var(--section); }
.svc-row { display: grid; gap: 24px; scroll-margin-top: calc(var(--header-h) + 24px); }
.svc-row__media { position: relative; overflow: hidden; background: var(--surface-2); }
.svc-row__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-row__media figcaption { position: absolute; left: 14px; top: 14px; }
.svc-row__media--plain {
  aspect-ratio: 4 / 3; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--graphite); color: var(--on-dark-2); font-weight: 500; letter-spacing: 0.04em;
}
.svc-row__body { display: grid; gap: 14px; align-content: center; justify-items: start; }
.svc-row__body h2 { font-size: var(--fs-h2); }
.svc-row__summary { font-size: var(--fs-lead); color: var(--ink); max-width: 36ch; }
.svc-row__body p:not(.svc-row__summary) { color: var(--ink-2); max-width: 46ch; }
.svc-row__body .btn { margin-top: 8px; }
@media (min-width: 900px) {
  .svc-row { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
  .svc-row:nth-child(even) .svc-row__media { order: 2; }
  .svc-row__media img, .svc-row__media--plain { aspect-ratio: 5 / 4; }
}

/* Proyectos */
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 32px; padding-inline: var(--gutter); }
.filters::-webkit-scrollbar { display: none; }
.filter {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; cursor: pointer; font-weight: 500; white-space: nowrap;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.filter:active { transform: scale(0.97); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .filter[aria-pressed="false"]:hover { border-color: var(--ink); } }

.proj-grid { columns: 1; column-gap: clamp(16px, 2.4vw, 32px); padding-bottom: var(--section); }
@media (min-width: 700px) { .proj-grid { columns: 2; } }
@media (min-width: 1100px) { .proj-grid { columns: 3; } }
.proj { break-inside: avoid; margin-bottom: clamp(32px, 4vw, 56px); transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out); }
.proj.is-hiding { opacity: 0; transform: scale(0.98); }
.proj__open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); overflow: hidden; cursor: zoom-in; }
.proj__open img { width: 100%; transition: transform 900ms var(--ease-out); }
.proj:first-child .proj__open img { aspect-ratio: 4 / 3; object-fit: cover; }
.proj__count {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 500;
  background: rgba(17, 19, 18, 0.72); color: #f3f4f2; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.proj__count .icon { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .proj__open:hover img { transform: scale(1.03); } }
.proj__meta { padding-top: 14px; display: grid; gap: 6px; justify-items: start; }
.proj__meta h2 { font-size: 1.1875rem; letter-spacing: -0.015em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.proj__meta .tag { background: var(--ink); color: var(--bg); backdrop-filter: none; }
.proj__meta .tag--render { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.empty-state { padding: 48px 0 var(--section); color: var(--ink-2); }

/* Visor de proyecto: fotos en secuencia + WhatsApp. Debajo en vertical, al lado en horizontal y en pantallas anchas. */
.lightbox {
  width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0a0b0b; color: #f3f4f2; display: none; overflow: hidden;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "top" "stage" "panel";
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: #0a0b0b; }
html.lb-open { overflow: hidden; }
.lightbox__top {
  grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 8px max(var(--gutter), env(safe-area-inset-left));
}
.lightbox__title { min-width: 0; font-weight: 550; line-height: 1.25; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.lightbox__stage {
  grid-area: stage; position: relative; min-width: 0; min-height: 0;
  display: grid; place-items: center;
  padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right));
}
.lightbox__figure { position: absolute; inset: 0; margin: 0; padding: 4px 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
.lightbox__figure img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-drag: none;
}
.lightbox__caption { display: none; }
.lightbox__nav {
  position: absolute; top: 50%; z-index: 1; margin-top: -24px;
  background: rgba(10, 11, 11, 0.58); border-color: rgba(243, 244, 242, 0.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lightbox__nav--prev { left: max(10px, env(safe-area-inset-left)); }
.lightbox__nav--next { right: max(10px, env(safe-area-inset-right)); }
.lightbox__panel {
  grid-area: panel; min-width: 0; display: grid; gap: 12px; justify-items: center;
  padding: 10px max(var(--gutter), env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
}
.lightbox__thumbs { list-style: none; margin: 0; padding: 2px; display: flex; gap: 8px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.lightbox__thumbs::-webkit-scrollbar { display: none; }
.lightbox__thumbs button {
  display: block; width: 56px; height: 56px; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: #1a1d1b; opacity: 0.6;
  transition: opacity 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 160ms var(--ease-out);
}
.lightbox__thumbs button:active { transform: scale(0.96); }
.lightbox__thumbs button[aria-current="true"] { opacity: 1; border-color: #f3f4f2; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .lightbox__thumbs button:hover { opacity: 1; } }
.lightbox__count { margin: 0; font-size: var(--fs-small); color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.lightbox__wa { width: 100%; max-width: 420px; padding-inline: 1.1em; font-size: 1rem; }

@media (min-width: 820px), (orientation: landscape) and (max-height: 520px) {
  .lightbox {
    grid-template-columns: minmax(0, 1fr) clamp(250px, 30vw, 380px);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "top top" "stage panel";
  }
  .lightbox__panel {
    align-content: end; justify-items: stretch; gap: 14px; overflow-y: auto;
    border-left: 1px solid var(--on-dark-line);
    padding: 16px max(20px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) 20px;
  }
  .lightbox__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); overflow: visible; padding: 2px; }
  .lightbox__thumbs button { width: 100%; height: auto; aspect-ratio: 1; }
  .lightbox__count { text-align: left; }
  .lightbox__wa { max-width: none; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .lightbox__top { padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: 4px; }
  .lightbox__panel { gap: 10px; padding-top: 8px; }
  .lightbox__wa { --h: 48px; font-size: 1rem; }
}

.icon-btn {
  width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--on-dark-line); background: transparent; color: #f3f4f2; cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.icon-btn:active { transform: scale(0.95); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .icon-btn:not(:disabled):hover { background: rgba(243, 244, 242, 0.12); } }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb-in 260ms var(--ease-out); }
  .lightbox__figure img.is-swapping { animation: lb-swap 360ms var(--ease-out); }
}
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-swap { from { opacity: 0.15; transform: translateX(14px) scale(0.99); } }

/* Nosotros */
.story { display: grid; gap: 32px; }
.story__media { position: relative; overflow: hidden; }
.story__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story__media figcaption { position: absolute; left: 14px; top: 14px; display: flex; align-items: center; gap: 8px; color: #f3f4f2; font-size: 0.8125rem; font-weight: 500; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.story__body { display: grid; gap: 18px; align-content: center; }
.story__body h2 { font-size: var(--fs-h2); }
.story__body p { font-size: var(--fs-lead); color: var(--ink-2); max-width: 44ch; }
@media (min-width: 900px) { .story { grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); align-items: center; } }
.values { display: grid; border-top: 1px solid var(--line); }
.values li { display: grid; gap: 6px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.values h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
.values p { color: var(--ink-2); max-width: 46ch; font-size: var(--fs-lead); }
@media (min-width: 900px) { .values li { grid-template-columns: 1fr 1.4fr; align-items: baseline; gap: 32px; padding: 36px 0; } }
.team { display: grid; gap: 32px; }
.team .section-head { margin-bottom: 0; }
.person { display: flex; align-items: center; gap: 20px; }
.person__avatar {
  width: 96px; height: 96px; flex: none; display: grid; place-items: center; border-radius: 999px;
  background: var(--graphite); color: #f3f4f2; font-weight: 600; letter-spacing: 0.06em; font-size: 1.25rem;
}
.person h3 { font-size: var(--fs-h3); }
.person p { color: var(--ink-2); }
.legal { display: grid; gap: 0; border-top: 1px solid var(--line-strong); max-width: 760px; }
.legal div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal dt { font-size: var(--fs-small); color: var(--ink-3); }
@media (min-width: 700px) { .legal div { grid-template-columns: 200px 1fr; gap: 16px; } }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-bottom: var(--section); }
.contact > * { min-width: 0; }
.contact__side { display: grid; gap: 32px; align-content: start; }
.wa-card { background: var(--graphite); color: #f3f4f2; padding: clamp(20px, 5vw, 40px); display: grid; gap: 14px; }
.wa-card h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.wa-card p { color: var(--on-dark-2); max-width: 40ch; }
.wa-card .btn { margin-top: 10px; }
.info-list { display: grid; border-top: 1px solid var(--line); }
.info-list div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list dt { display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--ink-3); }
.info-list dd { padding-left: 28px; }
.map-slot { aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: 10px; background: var(--surface); color: var(--ink-3); border: 1px solid var(--line); }
.contact__form h2 { font-size: var(--fs-h2); }
.contact__form-lead { margin-top: 12px; color: var(--ink-2); font-size: var(--fs-lead); }
@media (min-width: 960px) {
  .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 112px); }
  .contact__form { order: 2; }
  .contact__side { position: sticky; top: calc(var(--header-h) + 32px); }
}

.form { display: grid; gap: 20px; margin-top: 32px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 550; font-size: 0.9375rem; }
.optional { font-weight: 400; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23626864' d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px;
}
.textarea { min-height: 112px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field__hint { font-size: var(--fs-small); color: var(--ink-3); }
.field__error { display: none; align-items: center; gap: 6px; font-size: var(--fs-small); color: #b3261e; font-weight: 500; }
.field.is-invalid .field__error { display: flex; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: #b3261e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field__error { color: #ff9b8f; } :root:not([data-theme="light"]) .field.is-invalid :is(.input, .select) { border-color: #ff9b8f; } }
:root[data-theme="dark"] .field__error { color: #ff9b8f; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 0.9375rem !important; color: var(--ink-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
.btn.is-loading .spinner { display: inline-block; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { display: none; margin-top: 32px; padding: 28px; gap: 12px; justify-items: start; }
.form-status.is-visible { display: grid; }
.form-status--ok { background: var(--surface); }
.form-status--ok .icon { color: var(--accent); }
.form-status--ok h3 { font-size: var(--fs-h3); }
.form-status--ok p { color: var(--ink-2); }
.form-status--error { background: color-mix(in srgb, #b3261e 10%, var(--bg)); color: var(--ink); }

.contact__media { position: relative; margin: 0; overflow: hidden; background: var(--surface-2); align-self: start; }
.contact__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.contact__media figcaption { position: absolute; left: 14px; top: 14px; display: flex; align-items: center; gap: 8px; color: #f3f4f2; font-size: 0.8125rem; font-weight: 500; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); }

/* Aviso de cookies */
.consent {
  position: fixed; z-index: 60; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom)); max-width: 680px; margin-inline: auto;
  background: var(--graphite); color: #eef0ed; border: 1px solid var(--on-dark-line);
  padding: 16px; display: grid; gap: 12px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
}
.consent p { margin: 0; font-size: 0.9375rem; line-height: 1.45; }
.consent a { color: inherit; text-underline-offset: 0.2em; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent .btn--ghost { color: #eef0ed; border-color: rgba(238, 240, 237, 0.45); }
@media (min-width: 640px) { .consent { grid-template-columns: 1fr auto; align-items: center; gap: 20px; } }
html.has-consent-bar .wa-float { opacity: 0; pointer-events: none; }

/* Privacidad */
.prose { max-width: 68ch; display: grid; gap: 14px; }
.prose h2 { font-size: var(--fs-h3); margin-top: 20px; }
.prose p { color: var(--ink-2); }

/* ---- Movimiento ----------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Primer vistazo: las fotos se descubren y el titular sube, una sola vez */
  .hero__panel img { animation: hero-settle 2400ms var(--ease-out) both; }
  .hero__line > span { animation: rise 1000ms var(--ease-out) both; animation-delay: calc(200ms + var(--d, 0ms)); }
  @media (max-width: 599px) {
    .hero__line > span { animation: none; }
    .hero__title { animation: fade-up 900ms var(--ease-out) both; animation-delay: 200ms; }
  }
  .hero__line + .hero__line > span { --d: 90ms; }
  .hero__lead, .hero__actions { animation: fade-up 900ms var(--ease-out) both; animation-delay: 480ms; }
  .hero__actions { animation-delay: 580ms; }
  @media (min-width: 900px) {
    .hero__panel { animation: unveil 1300ms var(--ease-drawer) both; animation-delay: calc(var(--i) * 110ms); }
  }
  .hero__panel.is-active img { animation: hero-settle 2400ms var(--ease-out) both, drift 14s linear 2400ms infinite alternate; }

  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes hero-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
