/* elevencol — Layout: titular gigante sobre escena 3D en forma de "11", reel que crece a pantalla completa,
   tarjetas de proyecto que se expanden hasta convertirse en la página del proyecto. */
:root {
  --paper: #eceef4;
  --paper-2: #dfe2ec;
  --card: #ffffff;
  --ink: #0c0e14;
  --ink-soft: #5a5f72;
  --accent: #2e4bff;
  --on-accent: #ffffff;
  --line: rgba(12, 14, 20, 0.12);

  --f-display: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  --f-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  --side: clamp(0px, 3.4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.wrap {
  max-width: 1440px; margin-inline: auto;
  padding-left: calc(var(--gl) + var(--side));
  padding-right: calc(var(--gr) + var(--side));
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -0.035em; }
h2 { font-size: clamp(40px, 6.4vw, 104px); line-height: .92; }

/* ---------- Pills (botones) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px;
  padding: 14px 22px; font: 600 14px var(--f-body); letter-spacing: .02em; text-transform: uppercase;
  cursor: pointer; transition: transform .4s var(--ease), background .3s, color .3s; white-space: nowrap;
}
.pill:hover { transform: scale(1.04); }
.pill--dark { background: var(--ink); color: var(--paper); }
.pill--dark:hover { background: var(--accent); color: var(--on-accent); }
.pill--light { background: var(--paper-2); color: var(--ink); }
.pill--white { background: var(--card); color: var(--ink); box-shadow: 0 8px 24px rgba(12,14,20,.06); }
.pill--glass { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pill--lg { padding: 18px 28px; font-size: 15px; justify-self: start; }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill__dots { display: inline-flex; gap: 4px; }
.pill__dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill__play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 200; display: none; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor__ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid rgba(12,14,20,.35);
  display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, border-color .3s;
}
.cursor__label { font: 600 12px var(--f-body); text-transform: uppercase; color: var(--on-accent); opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: var(--accent); }
.cursor.is-view .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--accent); border-color: var(--accent); }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-view .cursor__dot { opacity: 0; }
@media (pointer: fine) {
  .cursor { display: block; }
  body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor [data-cursor] { cursor: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding-top: calc(18px + env(safe-area-inset-top, 0px)); padding-bottom: 14px;
  padding-left: calc(var(--gl) + var(--side)); padding-right: calc(var(--gr) + var(--side));
  color: var(--ink); transition: color .4s, background .4s, backdrop-filter .4s;
}
.nav.is-scrolled { background: color-mix(in srgb, var(--paper) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-invert { color: #fff; background: transparent; backdrop-filter: none; --logo-dot: #fff; }
.nav__logo { display: block; justify-self: start; }
.nav__logo svg { height: 28px; width: auto; display: block; }
.nav__links { display: flex; gap: 30px; font-size: 15px; }
.nav__links a { position: relative; padding-block: 4px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; gap: 10px; justify-self: end; align-items: center; }
.btn-line { display: inline-flex; align-items: center; gap: 10px; border: 1px solid currentColor; border-radius: 999px; padding: 10px 20px; font: 500 15px var(--f-body); transition: background .3s, color .3s, border-color .3s; }
.btn-line:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-line .pill__dot { width: 7px; height: 7px; }
.nav__menu { display: none; }
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; }
  .nav__actions .btn-line { display: none; }
  .nav__logo svg { height: 24px; }
}

/* ---------- Menú (móvil y botón Menú) ---------- */
.menu { position: fixed; inset: 0; z-index: 70; background: rgba(12,14,20,.18); }
.menu__panel {
  position: absolute; top: calc(74px + env(safe-area-inset-top, 0px)); right: calc(var(--gr) + var(--side));
  width: min(420px, calc(100vw - 32px)); background: var(--card); border-radius: 20px; padding: 22px 26px;
  display: grid; box-shadow: 0 30px 80px rgba(12,14,20,.18); transform-origin: top right; animation: menuIn .5s var(--ease) both;
}
.menu__panel > a { font-family: var(--f-display); font-weight: 600; font-size: 38px; letter-spacing: -0.035em; line-height: 1.15; padding: 4px 0; transition: color .25s, transform .4s var(--ease); }
.menu__panel > a:hover { color: var(--accent); transform: translateX(8px); }
.menu__foot { display: grid; gap: 4px; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 16px; color: var(--ink-soft); }
@keyframes menuIn { from { opacity: 0; transform: scale(.92) translateY(-8px); } }

/* ---------- Hero (primera versión) ---------- */
.hero { position: relative; height: clamp(560px, 100svh, 980px); overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, #f7f8fb 0%, var(--paper) 55%, var(--paper-2) 100%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__inner {
  position: relative; z-index: 2; height: 100%; max-width: 1320px; margin-inline: auto;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(110px + env(safe-area-inset-top, 0px)); padding-bottom: 36px;
  padding-left: calc(var(--gl) + 2vw); padding-right: calc(var(--gr) + 2vw);
  pointer-events: none;
}
.hero__title { font-family: var(--f-display); font-size: clamp(52px, 11vw, 176px); line-height: .88; letter-spacing: -0.055em; font-weight: 800; margin-top: auto; margin-bottom: auto; }
.hero__title em { font-style: normal; color: var(--accent); }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; animation: rise 1.2s var(--ease) both; }
.line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(110%); } }
.hero__foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.hero__lead { max-width: 34ch; font-size: clamp(16px, 1.4vw, 19px); margin: 0; }
.hero__hint { color: var(--ink-soft); margin: 0; }

/* ---------- Franja ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding-block: 22px; }
.marquee__track { display: flex; gap: 36px; width: max-content; animation: marquee 28s linear infinite; font-family: var(--f-display); font-size: clamp(28px, 4vw, 56px); font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reel que crece ---------- */
.reel { position: relative; height: 240vh; margin-top: clamp(60px, 8vw, 110px); }
.reel__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.reel__layout {
  max-width: 1440px; margin-inline: auto; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 96px); align-items: start;
  padding-top: 5vh;
  padding-left: calc(var(--gl) + var(--side)); padding-right: calc(var(--gr) + var(--side));
}
.reel__slot { aspect-ratio: 16 / 10; max-width: 100%; border-radius: 18px; }
.reel__intro { display: grid; gap: 22px; justify-items: start; padding-top: 2vh; will-change: transform, opacity; }
.reel__intro h2 { font-size: clamp(34px, 4.4vw, 64px); }
.reel__lead { margin: 0; font-size: clamp(18px, 1.75vw, 28px); line-height: 1.35; letter-spacing: -0.01em; max-width: 34ch; }
.hint { color: var(--ink-soft); margin: 0; }
.reel__frame {
  position: absolute; inset: 0; z-index: 3; overflow: hidden; background: #0a1460;
  clip-path: inset(100% 0 0 0); will-change: clip-path, transform; transform-origin: 30% 60%;
}
.reel__art, .reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform; }
.reel__ui {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  padding-left: calc(var(--gl) + var(--side)); padding-right: calc(var(--gr) + var(--side));
  opacity: 0; transition: opacity .4s;
}
.reel.is-full .reel__ui { opacity: 1; }
.reel__play {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 32px);
  color: #fff; font-family: var(--f-display); font-weight: 500; font-size: clamp(56px, 11vw, 200px); letter-spacing: -0.05em; text-transform: uppercase;
  opacity: var(--play, 0); pointer-events: none;
}
.reel__play > span:not(.reel__btn) { transform: translateX(calc((1 - var(--play, 0)) * var(--dir, 1) * 18vw)); }
.reel__play > span:first-child { --dir: 1; }
.reel__play > span:last-child { --dir: -1; }
.reel__btn {
  width: clamp(80px, 9vw, 140px); height: clamp(48px, 5.4vw, 84px); border-radius: 999px; background: #fff; color: var(--accent);
  display: grid; place-items: center; pointer-events: auto; cursor: pointer; transform: scale(var(--play, 0));
}
.reel__btn .pill__play { border-left-width: 16px; border-top-width: 11px; border-bottom-width: 11px; }
.reel__marks { position: absolute; left: calc(var(--gl) + var(--side)); right: calc(var(--gr) + var(--side)); top: -40px; display: flex; justify-content: space-between; font: 300 22px var(--f-mono); opacity: .8; }
.reel__marks i { font-style: normal; }
@media (max-width: 720px) {
  .reel__layout { grid-template-columns: 1fr; align-content: start; gap: 28px; }
  .reel__intro { order: -1; padding-top: 0; }
  .reel__ui .mono:first-child { display: none; }
}

/* ---------- Proyectos ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 6vw, 80px); }
.section-head__note { margin: 0; max-width: 30ch; color: var(--ink-soft); }
.work { padding-block: clamp(80px, 10vw, 140px); }
.work__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.card {
  display: grid; gap: 16px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
}
.card:nth-child(4n+2), .card:nth-child(4n+3) { --ratio: 4 / 5; }
.card__media {
  position: relative; aspect-ratio: var(--ratio, 16 / 11); max-width: 100%; border-radius: 18px; overflow: hidden;
  background: var(--paper-2); transform: translateZ(0);
  transition: border-radius .6s var(--ease), transform .7s var(--ease);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.08); }
.card__media canvas { width: 100%; height: 100%; display: block; transition: transform 1.1s var(--ease); }
.card:hover .card__media { border-radius: 30px; transform: scale(.985); }
.card:hover .card__media canvas { transform: scale(1.08); }
.card__row { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.card__row h3 { font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -0.03em; }
.card__tags { margin: 6px 0 0; color: var(--ink-soft); }
.card[hidden] { display: none !important; }
.card__arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); transition: background .3s, color .3s, transform .5s var(--ease);
}
.card:hover .card__arrow { background: var(--accent); color: var(--on-accent); transform: rotate(-45deg); }
.card:nth-child(even) { margin-top: clamp(0px, 8vw, 120px); }
@media (max-width: 680px) { .work__grid { grid-template-columns: 1fr; } .card:nth-child(even) { margin-top: 0; } }

/* ---------- Estudio ---------- */
.about { padding-block: clamp(60px, 10vw, 140px); display: grid; gap: 44px; }
.about__text { font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3.8vw, 58px); line-height: 1.08; letter-spacing: -0.03em; margin: 0; max-width: 1150px; }
.about__text .w { opacity: .2; transition: opacity .3s linear; }
.about__text .w.on { opacity: 1; }
.about__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; }
.about__stats strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(44px, 6vw, 88px); line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.about__stats small { font-size: .38em; color: var(--accent); margin-left: 4px; }
.about__stats span { color: var(--ink-soft); font-size: 14px; }
@media (max-width: 640px) { .about__stats { grid-template-columns: 1fr; } }

/* ---------- Servicios ---------- */
.services { padding-bottom: clamp(80px, 12vw, 160px); }
.services__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services__list li {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: center;
  padding-block: clamp(22px, 3vw, 36px); border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), padding .5s var(--ease);
}
.services__list li::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); z-index: -1; border-radius: 0; }
.services__list li:hover { color: var(--on-accent); padding-left: 18px; }
.services__list li:hover::before { transform: scaleY(1); }
.services__list h3 { font-size: clamp(28px, 4vw, 60px); font-weight: 500; }
.services__list p { margin: 0; opacity: .75; max-width: 40ch; }
@media (max-width: 720px) { .services__list li { grid-template-columns: 40px minmax(0, 1fr); } .services__list p { grid-column: 2; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(60px, 10vw, 120px); border-top: 1px solid var(--line); }
.contact__intro { display: grid; gap: 22px; align-content: start; }
.contact__mail { font-size: 14px; color: var(--accent); user-select: all; margin: 0; }
.form { display: grid; gap: 22px; background: var(--card); border-radius: 22px; padding: clamp(20px, 3vw, 36px); }
.form label { display: grid; gap: 6px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.form input, .form textarea {
  font: 400 18px var(--f-body); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; border-radius: 0; resize: vertical; transition: border-color .3s;
}
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form .hp { position: absolute; left: -9999px; }
.form__status { margin: 0; min-height: 1.5em; font-size: 14px; }
.form__status.ok { color: var(--accent); }
.form__status.err { color: #c2263a; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); overflow: hidden; padding-top: clamp(56px, 8vw, 100px); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__top h2 { font-size: clamp(34px, 4.4vw, 64px); color: var(--paper); }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col .mono { color: rgba(255,255,255,.5); margin: 0 0 6px; }
.footer__col a { opacity: .85; transition: opacity .2s, color .2s; }
.footer__col a:hover { opacity: 1; color: #8fa0ff; }
.footer__wave { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 120px; margin-block: 48px 24px; }
.footer__wave i { flex: 1; max-width: 7px; border-radius: 99px; background: rgba(255,255,255,.9); height: var(--h0, 30%); animation: hz 1.2s ease-in-out infinite alternate; }
.footer__wave i.d { flex: none; width: 14px; height: 14px !important; max-width: none; background: var(--accent); animation: none; }
@keyframes hz { to { height: var(--h, 80%); } }
.footer__brand { padding-bottom: 26px; }
.footer__brand svg { width: 100%; height: auto; display: block; }
.footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; opacity: .6; padding-block: 18px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.12); }
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__top > :first-child { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .footer__wave i { animation: none; } .marquee__track { animation: none; } }

/* ---------- Páginas internas ---------- */
.page-hero { padding-top: calc(170px + env(safe-area-inset-top, 0px)); padding-bottom: clamp(48px, 7vw, 96px); display: grid; gap: 22px; }
.page-hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(54px, 10vw, 160px); line-height: .88; letter-spacing: -0.055em; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero p.lead { margin: 0; max-width: 46ch; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; }
.block { padding-block: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); }
.split h2 { font-size: clamp(34px, 4.6vw, 68px); }
.prose { display: grid; gap: 18px; font-size: 18px; color: var(--ink-soft); }
.prose p { margin: 0; max-width: 62ch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--card); border-radius: 20px; padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 12px; align-content: start; min-width: 0; }
.tile h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; }
.tile p { margin: 0; color: var(--ink-soft); }
.tile .mono { color: var(--accent); margin: 0; }
.person__photo { aspect-ratio: 4 / 5; border-radius: 14px; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo svg { width: 38%; height: auto; opacity: .5; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps .tile { border-top: 3px solid var(--accent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; font: 500 14px var(--f-body); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.service { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.service h2 { font-size: clamp(30px, 4vw, 56px); }
.service ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.service li { background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.cta { background: var(--accent); color: var(--on-accent); border-radius: 28px; padding: clamp(32px, 6vw, 80px); display: grid; gap: 22px; justify-items: start; margin-block: clamp(56px, 8vw, 110px); }
.cta h2 { color: var(--on-accent); font-size: clamp(36px, 5.6vw, 88px); }
.cta .pill { background: #fff; color: var(--ink); }
.edit-note { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 8px; padding: 6px 10px; justify-self: start; }
.link-more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.link-more span { transition: transform .4s var(--ease); }
.link-more:hover span { transform: translateX(6px); }
@media (max-width: 900px) {
  .split, .grid-3 { grid-template-columns: 1fr; }
  .grid-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { grid-template-columns: 40px minmax(0, 1fr); } .service > :last-child { grid-column: 2; }
}
@media (max-width: 520px) { .grid-4, .steps { grid-template-columns: 1fr; } }

/* ---------- Página de proyecto (galería horizontal) ---------- */
.nav__back { position: fixed; z-index: 96; top: calc(16px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); }
body.project-open .nav { z-index: 95; background: transparent; backdrop-filter: none; color: var(--ink); }
body.project-open .nav__links, body.project-open .nav__actions .btn-line { visibility: hidden; }
.project {
  position: fixed; inset: 0; z-index: 90; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
}
.project::before { content: ""; position: fixed; inset: 0; background: var(--tint, var(--paper)); opacity: 0; transition: opacity .6s var(--ease), background-color .6s; }
.project.has-bg::before { opacity: 1; }
.project__zoom { position: fixed; inset: 0; z-index: 4; pointer-events: none; clip-path: inset(0); will-change: clip-path; }
.project__zoom[hidden] { display: none !important; }
.project__zoom canvas { width: 100%; height: 100%; display: block; }
.project__zoom.is-moving { transition: clip-path .95s var(--ease-io); }
.project__track { position: relative; z-index: 1; }
.project__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.project__row {
  height: 100%; display: flex; align-items: stretch; gap: clamp(16px, 2vw, 28px); width: max-content;
  padding-top: calc(96px + env(safe-area-inset-top, 0px)); padding-bottom: 6vh;
  padding-left: calc(var(--gl) + var(--side)); padding-right: calc(var(--gr) + var(--side));
  will-change: transform; opacity: 0; transition: opacity .6s var(--ease);
}
.project.is-ready .project__row { opacity: 1; }
.project.is-swapping .project__row { opacity: 0; transition-duration: .3s; }
.project__info {
  width: min(500px, 36vw); flex: none; display: flex; flex-direction: column; gap: 22px; padding-right: 2vw;
}
.project__info h2 { font-size: clamp(40px, 4.6vw, 76px); font-weight: 500; letter-spacing: -0.045em; line-height: .95; }
.project__lead { margin: 0; font-size: 16px; line-height: 1.55; max-width: 44ch; }
.project__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project__cols p { margin: 0 0 4px; font-size: 14px; }
.project__cols .mono { color: var(--accent); font-size: 11px; margin-top: 6px; }
.project__launch { align-self: flex-start; }
.project__hint { margin-top: auto; color: var(--ink-soft); }
.slide {
  flex: none; height: 100%; margin: 0; border-radius: 20px; overflow: hidden; position: relative; background: var(--card);
}
.slide canvas { width: 100%; height: 100%; display: block; }
.slide--hero { aspect-ratio: 16 / 10; }
.slide--rings { aspect-ratio: 4 / 5; }
.slide--name {
  aspect-ratio: 5 / 4; display: grid; place-items: center; padding: 6%; color: #fff; background: var(--slide-c, var(--accent));
}
.slide--name span { font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 7vw, 120px); line-height: .9; letter-spacing: -0.05em; text-align: center; text-transform: uppercase; }
.slide--guide { aspect-ratio: 4 / 3.3; padding: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; color: var(--ink); }
.slide--guide > .mono { margin: 0; color: var(--ink-soft); }
.guide__swatches { display: flex; gap: 10px; flex: 1; min-height: 60px; }
.guide__swatches span { flex: 1; border-radius: 12px; position: relative; }
.guide__swatches small { position: absolute; left: 8px; bottom: 6px; font: 500 10px var(--f-mono); color: #fff; mix-blend-mode: difference; }
.guide__type { margin: 0; font-family: var(--f-display); font-size: clamp(30px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.guide__body { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 54ch; }
.slide--next {
  aspect-ratio: 4 / 5; border: 0; cursor: pointer; background: var(--ink); color: var(--paper); text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; padding: clamp(22px, 3vw, 40px); transition: background .4s;
}
.slide--next:hover { background: var(--accent); }
.slide__next-title { font-family: var(--f-display); font-size: clamp(40px, 5vw, 84px); font-weight: 500; letter-spacing: -0.05em; line-height: .92; }
.slide__arrow { font-size: 40px; align-self: flex-end; transition: transform .5s var(--ease); }
.slide--next:hover .slide__arrow { transform: translateX(10px); }
@media (max-width: 820px) {
  .project__stage { position: relative; height: auto; overflow: visible; }
  .project__row { flex-direction: column; width: auto; height: auto; transform: none !important; padding-bottom: 40px; }
  .project__info { width: auto; padding-right: 0; }
  .project__hint { display: none; }
  .slide { height: auto; width: 100%; }
}

/* ---------- Revelado al hacer scroll (solo lo que está fuera de pantalla) ---------- */
.reveal { transition: transform 1.1s var(--ease), opacity 1.1s var(--ease); }
.reveal-pending { transform: translateY(48px); opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .line > span, .menu__panel { animation: none; }
  .reveal-pending { transform: none; opacity: 1; }
  .project.is-animating { transition: none; }
  html { scroll-behavior: auto; }
}
