/* =============================================================
   Jhoana Osorio · Arquitecta — styles.css
   Lujo silencioso: hueso, carbón y latón. Serif fina + sans geométrica.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bone:        #efece6;
  --bone-2:      #e4e0d8;
  --paper:       #f7f5f1;
  --ink:         #1d1b18;
  --ink-soft:    #48443e;
  --ink-mute:    #6b665e;
  --coal:        #181716;
  --coal-2:      #201e1c;
  --on-coal:     #ece7df;
  --on-coal-mute:#a29b90;
  --brass:       #a5875a;
  --brass-ink:   #7d6339;   /* latón con contraste AA sobre hueso */
  --brass-light: #c4a87a;
  --line:        rgba(29, 27, 24, .14);
  --line-coal:   rgba(236, 231, 223, .14);

  --serif:  "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans:   "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-io:   cubic-bezier(0.76, 0, 0.24, 1);

  --gutter: clamp(20px, 4vw, 64px);
  --nav-h:  72px;
  --gap:    clamp(16px, 2.4vw, 40px);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-weight: 300; text-wrap: balance; }
::selection { background: var(--brass); color: var(--paper); }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--bone);
  font-size: 13px; letter-spacing: .08em;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - var(--gutter) * 2, 1440px); margin-inline: auto; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-weight: 400;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--brass); flex: none;
}

.display {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: .95; letter-spacing: -.015em;
}
.display--sm { font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1; }

/* =============================================================
   4. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center; align-content: center; gap: 22px;
  background: var(--bone); color: var(--ink);
  transition: opacity .9s var(--ease-soft), visibility .9s;
  animation: splashSafety .01s 4.5s forwards;   /* red de seguridad si el JS falla */
}
html:not(.js) .splash { display: none; }
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.splash-mono { width: 88px; height: 88px; fill: none; stroke: currentColor; }
.splash-mono > * {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.5s var(--ease-io) forwards;
}
.splash-mono > :nth-child(2) { animation-delay: .15s; }
.splash-mono > :nth-child(3) { animation-delay: .3s; }
.splash-mono > :nth-child(4) { animation-delay: .45s; }
.splash-mono > :nth-child(5) { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.splash-name {
  font-family: var(--sans); font-weight: 400;
  font-size: 11px; letter-spacing: .42em; text-transform: uppercase;
  opacity: 0; animation: fadeUp 1s .7s var(--ease-out) forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =============================================================
   5. Cursor (solo punteros finos)
   ============================================================= */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 300;
  pointer-events: none; opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
.cursor-dot { display: none; }
.cursor-ring {
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 1px solid rgba(165, 135, 90, .7);
  display: grid; place-items: center;
  transition: width .5s var(--ease-out), height .5s var(--ease-out), margin .5s var(--ease-out),
              background-color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.cursor-label {
  font-family: var(--sans); font-weight: 400;
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transform: scale(.6);
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out);
  padding-left: .28em;
}
.cursor.is-view .cursor-ring {
  width: 88px; height: 88px; margin: -44px 0 0 -44px;
  background: rgba(239, 236, 230, .92); border-color: transparent;
}
.cursor.is-view .cursor-label { opacity: 1; transform: none; }
.cursor.is-hidden { opacity: 0; }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-inline: var(--gutter);
  color: var(--ink);
  transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out), color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(239, 236, 230, .96);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(12px)) {
  .nav.is-solid {
    background: rgba(239, 236, 230, .8);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
  }
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mono { width: 32px; height: 32px; color: var(--ink); }
.brand-name {
  font-weight: 400; font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
}
.nav-links { display: none; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.8rem); }
.nav-links a {
  position: relative;
  font-weight: 400; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  padding-block: .4rem;
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  border: 1px solid var(--ink); padding: .65rem 1.2rem !important;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out);
}
.nav-cta:hover { background: var(--ink); color: var(--bone); }

.nav-toggle {
  display: flex; align-items: center; gap: 12px;
  font-weight: 400; font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  padding: .6rem 0;
}
.nav-toggle-lines { position: relative; width: 26px; height: 9px; }
.nav-toggle-lines::before, .nav-toggle-lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.nav-toggle-lines::before { top: 0; }
.nav-toggle-lines::after { top: 8px; }
.nav.is-menu-open { color: var(--on-coal); background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.is-menu-open .brand-mono { color: var(--on-coal); }
.nav.is-menu-open .nav-toggle-lines::before { top: 4px; transform: rotate(18deg); }
.nav.is-menu-open .nav-toggle-lines::after { top: 4px; transform: rotate(-18deg); }

.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 6vh) var(--gutter) 2.4rem;
  background: var(--coal); color: var(--on-coal);
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: .4rem; }
.menu nav a {
  display: flex; align-items: baseline; gap: 1.1rem;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 11vw, 4.2rem); line-height: 1.12;
  opacity: 0; transform: translateY(18px);
  animation: fadeUp .8s var(--ease-out) forwards;
}
.menu nav a:nth-child(2) { animation-delay: .06s; }
.menu nav a:nth-child(3) { animation-delay: .12s; }
.menu nav a:nth-child(4) { animation-delay: .18s; }
.menu nav a:nth-child(5) { animation-delay: .24s; }
.menu nav a span {
  font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--brass);
  min-width: 2.2em;
}
.menu-foot { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--on-coal-mute); }

/* =============================================================
   7. Hero — el arco que se abre
   ============================================================= */
.hero {
  --p: 0;
  --q: calc(1 - var(--p));
  --arch-top: 46svh;
  --arch-x: 9vw;
  --arch-bottom: 3svh;
  --arch-r: 41vw;
  --img-shift: 34svh;     /* en móvil el arco está abajo: bajamos la foto para que asome el mar */
  --img-pos: 64% 45%;
  position: relative;
  height: 100vh; height: 100svh;
  background: var(--bone);
}
.hero.is-armed { height: 240vh; height: 240svh; }
.hero-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: clip;
}
.hero-media {
  position: absolute; inset: 0;
  clip-path: inset(
    calc(var(--arch-top) * var(--q)) calc(var(--arch-x) * var(--q)) calc(var(--arch-bottom) * var(--q))
    round calc(var(--arch-r) * var(--q)) calc(var(--arch-r) * var(--q)) 0 0
  );
  background: var(--bone-2);
  will-change: clip-path;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--img-pos);
  transform: translateY(calc(var(--img-shift) * var(--q))) scale(calc(1.16 - .16 * var(--p)));
  transform-origin: 50% 60%;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(18, 16, 14, .62), rgba(18, 16, 14, 0) 42%);
  opacity: var(--p);
}
.hero-caption {
  position: absolute; left: var(--gutter); bottom: 2.2rem; z-index: 2;
  display: flex; flex-direction: column; gap: .2rem;
  color: var(--paper);
  opacity: clamp(0, calc((var(--p) - .78) * 5), 1);
}
.hero-caption span:first-child { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 300; line-height: 1.1; }
.hero-caption span:last-child { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; opacity: .85; }

.hero-type { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-eyebrow {
  position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 3svh);
  max-width: calc(100vw - var(--gutter) * 2);
  letter-spacing: .26em;
  opacity: calc(1 - var(--p) * 2.6);
}
.hero-name {
  font-family: var(--serif); font-weight: 300;
  text-transform: uppercase; letter-spacing: .04em; line-height: .9;
  font-size: 17vw;
}
.hn { position: absolute; left: var(--gutter); white-space: nowrap; }
.hn-1 { top: calc(var(--nav-h) + 9svh); transform: translateY(calc(var(--p) * -14svh)); opacity: calc(1 - var(--p) * 2); }
.hn-2 { top: calc(var(--nav-h) + 9svh + 15vw); transform: translateY(calc(var(--p) * -10svh)); opacity: calc(1 - var(--p) * 2); }
.hero-script {
  position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 9svh + 27vw);
  font-family: var(--script); font-size: 13vw; text-transform: none; letter-spacing: 0;
  line-height: 1; color: var(--brass);
  opacity: calc(1 - var(--p) * 2.4);
}
.hero-lede {
  display: none;
  position: absolute; left: var(--gutter); bottom: 7svh; z-index: 1;
  max-width: 27vw; font-size: 15px; line-height: 1.7; color: var(--ink-soft);
  opacity: calc(1 - var(--p) * 2.6);
}
.hero-cue {
  display: none;
  position: absolute; right: var(--gutter); bottom: 7svh; z-index: 1;
  align-items: center; gap: 14px;
  font-weight: 400; font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  opacity: calc(1 - var(--p) * 2.6);
}
.hero-cue i { position: relative; width: 1px; height: 54px; background: var(--line); overflow: hidden; }
.hero-cue i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--ink); animation: cue 2.4s var(--ease-io) infinite;
}
@keyframes cue { to { top: 100%; } }

/* =============================================================
   8. Estudio
   ============================================================= */
.studio { padding-block: clamp(6rem, 14vw, 12rem) clamp(5rem, 10vw, 9rem); }
.studio-quote {
  margin-block: 2.6rem clamp(3.5rem, 8vw, 7rem);
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 4.5rem); line-height: 1.1; letter-spacing: -.01em;
  max-width: 21ch;
}
.studio-body { display: grid; gap: 2.6rem; }
.studio-sign { display: grid; gap: .6rem; align-content: start; }
.studio-mono { width: 58px; height: 58px; color: var(--brass); margin-bottom: .8rem; }
.studio-fullname { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.15; }
.studio-role { font-family: var(--script); font-size: 2.3rem; line-height: 1; color: var(--brass-ink); }
.studio-text { display: grid; gap: 1.4rem; font-size: 17px; line-height: 1.8; color: var(--ink-soft); max-width: 60ch; }

.facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(4rem, 9vw, 8rem);
  border-top: 1px solid var(--line);
}
.fact {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .5rem;
  padding: 1.6rem 1rem 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.fact dd {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1;
}
.fact dd span { color: var(--brass); padding-inline: .12em; }
.fact--years dd { white-space: nowrap; font-size: clamp(2rem, 3.6vw, 3.6rem); }
.fact dt { font-weight: 400; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); }

/* =============================================================
   9. Proyectos
   ============================================================= */
.work { padding-bottom: clamp(4rem, 8vw, 8rem); }
.work-head { display: grid; gap: 3rem; padding-bottom: clamp(3rem, 7vw, 6rem); }
.work-head .display { font-size: clamp(4.2rem, 13vw, 13rem); margin-top: 1.4rem; }
.work-index { display: grid; border-top: 1px solid var(--line); align-self: end; }
.work-index a {
  display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: baseline;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.35rem; font-weight: 400; line-height: 1.2;
  transition: color .4s var(--ease-out), padding .5s var(--ease-out);
}
.work-index a span, .work-index a em {
  font-family: var(--sans); font-style: normal; font-weight: 400;
  font-size: 11px; letter-spacing: .2em; color: var(--ink-mute);
}
.work-index a span { color: var(--brass-ink); }
.work-index a:hover { color: var(--brass-ink); padding-left: .6rem; }

.project {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem;
  padding-block: clamp(3.5rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
}
.project-head { display: grid; gap: .6rem; }
.project-num { font-weight: 400; font-size: 11px; letter-spacing: .28em; color: var(--brass-ink); }
.project-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 6.4vw, 6.2rem); line-height: .95; letter-spacing: -.015em;
}
.project-meta {
  display: flex; flex-wrap: wrap; gap: .3rem 1.4rem;
  font-weight: 400; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute);
}
.project-meta span + span::before { content: "·"; margin-right: 1.4rem; color: var(--brass); }
.project-meta span:nth-child(2) { display: none; }   /* disciplinas: solo en pantallas anchas */

.project-cover, .project-second, .sheet {
  position: relative; display: block; overflow: hidden;
  background: var(--bone-2);
}
.project-cover { aspect-ratio: 4 / 3; }
.project-second { aspect-ratio: 3 / 2; }
.project-cover img, .project-second img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  transition: transform 1.6s var(--ease-out), filter 1s var(--ease-out);
}
.project-cover:hover img, .project-second:hover img { transform: scale(1.035); }
.project-aside { display: grid; gap: 1.6rem; align-content: start; }
.project-text { font-size: 16px; line-height: 1.8; color: var(--ink-soft); max-width: 46ch; }

.project-link {
  justify-self: start;
  position: relative; display: inline-flex; align-items: baseline; gap: 1rem;
  padding: .5rem 0;
  font-weight: 400; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink);
}
.project-link span { color: var(--ink-mute); letter-spacing: .16em; font-size: 10.5px; }
.project-link::before, .project-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
}
.project-link::before { background: var(--line); }
.project-link::after {
  background: var(--brass); transform: scaleX(.18); transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.project-link:hover::after { transform: scaleX(1); }

/* =============================================================
   10. Servicios
   ============================================================= */
.services {
  background: var(--coal); color: var(--on-coal);
  padding-block: clamp(6rem, 12vw, 11rem);
}
.services .eyebrow, .contact .eyebrow { color: var(--on-coal-mute); }
.section-head { display: grid; gap: 1.6rem; margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.section-head .display { font-size: clamp(2.8rem, 6.6vw, 6.6rem); }
.section-lede { font-size: 16px; line-height: 1.8; max-width: 42ch; color: var(--on-coal-mute); }

.service-list { border-top: 1px solid var(--line-coal); }
.service {
  display: grid; grid-template-columns: 3rem 1fr; gap: .4rem 1rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line-coal);
}
.service-num { font-weight: 400; font-size: 11px; letter-spacing: .24em; color: var(--brass); padding-top: .9rem; }
.service-name {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.1rem, 4.4vw, 3.8rem); line-height: 1.05;
  transition: transform .8s var(--ease-out), color .5s var(--ease-out);
}
.service-text { grid-column: 2; font-size: 15.5px; line-height: 1.75; color: var(--on-coal-mute); max-width: 44ch; }
.service:hover .service-name { transform: translateX(14px); color: var(--brass-light); }

/* =============================================================
   11. Documentación técnica
   ============================================================= */
.technical { background: var(--paper); padding-block: clamp(5.5rem, 11vw, 10rem); }
.technical-grid { display: grid; gap: 3.5rem; align-items: center; }
.technical-copy { display: grid; gap: 1.6rem; align-content: start; }
.technical-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.8; color: var(--ink-soft); max-width: 44ch; }
.technical-sheets { position: relative; padding-bottom: 4%; }
.sheet { background: #fff; box-shadow: 0 30px 60px -30px rgba(29, 27, 24, .35), 0 0 0 1px rgba(29, 27, 24, .06); }
.sheet img { width: 100%; transition: transform 1.6s var(--ease-out); }
.sheet:hover img { transform: scale(1.03); }
.sheet--1 { width: 90%; margin-left: auto; }
.sheet--2 { width: 62%; margin-top: -16%; position: relative; z-index: 1; }

/* =============================================================
   12. Proceso
   ============================================================= */
.process { padding-block: clamp(6rem, 12vw, 11rem); }
.steps { display: grid; gap: 0; border-left: 1px solid var(--line); margin-left: .4rem; }
.step { position: relative; padding: 0 0 2.8rem 2rem; display: grid; gap: .6rem; }
.step::before {
  content: ""; position: absolute; left: -4px; top: .7rem;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brass);
}
.step-num { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--brass-ink); line-height: 1; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.step p { font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); max-width: 34ch; }

/* =============================================================
   13. Contacto
   ============================================================= */
.contact {
  position: relative; overflow: clip;
  background: var(--coal); color: var(--on-coal);
  padding-block: clamp(7rem, 15vw, 13rem);
  text-align: center;
}
.contact-arch {
  position: absolute; left: 50%; bottom: -1px;
  width: min(78vw, 760px); height: 88%;
  transform: translateX(-50%);
  border: 1px solid rgba(165, 135, 90, .35); border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.contact-arch::after {
  content: ""; position: absolute; inset: 22px 22px 0;
  border: 1px solid rgba(165, 135, 90, .14); border-bottom: 0;
  border-radius: inherit;
}
.contact-inner { position: relative; display: grid; justify-items: center; gap: 1.8rem; }
.contact .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--brass); }
.contact-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 7.6rem); line-height: .98; letter-spacing: -.015em;
}
.contact-text { font-size: 16px; line-height: 1.8; color: var(--on-coal-mute); max-width: 46ch; }
.channels { display: grid; gap: .8rem; margin-top: 1.2rem; width: min(100%, 520px); }
.channels li[hidden] { display: none; }
.channel {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.1rem 1.4rem; border: 1px solid var(--line-coal);
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.channel span { font-weight: 400; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--on-coal-mute); }
.channel strong { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.channel:hover { background: rgba(165, 135, 90, .12); border-color: var(--brass); }
.channel--main { background: var(--brass); border-color: var(--brass); color: var(--coal); }
.channel--main span { color: rgba(24, 23, 22, .72); }
.channel--main:hover { background: var(--brass-light); border-color: var(--brass-light); }
.channel { flex-direction: column; align-items: flex-start; gap: .35rem; text-align: left; }
.channel strong { font-size: 1.25rem; overflow-wrap: anywhere; font-variant-numeric: lining-nums; font-feature-settings: "lnum"; }
@media (min-width: 540px) {
  .channel { flex-direction: row; align-items: baseline; }
  .channel strong { font-size: 1.35rem; text-align: right; }
}

/* =============================================================
   14. Footer
   ============================================================= */
.footer {
  background: var(--coal); color: var(--on-coal);
  padding-block: 0 2.2rem;
}
.footer .wrap { border-top: 1px solid var(--line-coal); padding-top: clamp(3.5rem, 7vw, 6rem); }
.footer-mark { position: relative; display: grid; justify-items: start; gap: 1.6rem; }
.footer-mono { width: 52px; height: 52px; color: var(--brass); }
.footer-name {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 12vw, 12rem); line-height: .88;
  letter-spacing: .03em; text-transform: uppercase;
}
.footer-script {
  position: absolute; right: 2%; bottom: -.32em;
  font-family: var(--script); font-size: clamp(2.6rem, 7vw, 7rem); line-height: 1; color: var(--brass);
}
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem 2rem;
  margin-top: clamp(3.5rem, 6vw, 5rem);
  font-weight: 400; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-coal-mute);
}
.footer-row nav { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.footer-contact { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; text-transform: none; letter-spacing: .12em; }
.footer-row a { transition: color .3s var(--ease-out); }
.footer-row a:hover { color: var(--on-coal); }

/* =============================================================
   15. Galería (lightbox) + cortina
   ============================================================= */
.curtain {
  position: fixed; inset: 0; z-index: 250;
  background: var(--coal);
  transform: scaleY(0); transform-origin: 50% 100%;
  pointer-events: none;
}
.curtain.is-in { transform: scaleY(1); transition: transform .55s var(--ease-io); }
.curtain.is-cover { transform: scaleY(1); transition: none; }
.curtain.is-out { transform: scaleY(0); transform-origin: 50% 0%; transition: transform .7s var(--ease-io); }

.lightbox {
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--coal); color: var(--on-coal);
  overflow: hidden;
}
.lightbox::backdrop { background: var(--coal); }
.lightbox[open] .lb-bar, .lightbox[open] .lb-track, .lightbox[open] .lb-thumbs, .lightbox[open] .lb-arrow {
  animation: lbIn .9s .05s var(--ease-out) both;
}
@keyframes lbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lightbox[open] .lb-arrow { animation-name: lbFade; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.lb-bar {
  position: absolute; inset: 0 0 auto 0; height: var(--nav-h); z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1.4rem;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line-coal);
}
@media (min-width: 720px) { .lb-bar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } }
.lb-title { display: flex; align-items: baseline; gap: .9rem; min-width: 0; }
.lb-num { font-weight: 400; font-size: 11px; letter-spacing: .24em; color: var(--brass); }
.lb-title #lb-name { font-family: var(--serif); font-size: 1.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-title em { display: none; font-style: normal; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-coal-mute); }
.lb-count { font-weight: 400; font-size: 11px; letter-spacing: .22em; color: var(--on-coal-mute); }
.lb-count span:first-child { color: var(--on-coal); }
.lb-close {
  justify-self: end;
  font-weight: 400; font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  padding: .6rem 0; border-bottom: 1px solid var(--brass);
}

.lb-track {
  position: absolute; inset: var(--nav-h) 0 96px 0;
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.lb-track::-webkit-scrollbar { display: none; }
.lb-track:focus-visible { outline-offset: -6px; }
.lb-slide {
  flex: 0 0 100%; height: 100%;
  scroll-snap-align: center; scroll-snap-stop: always;
  display: grid; place-items: center;
  padding: clamp(14px, 3vw, 40px) clamp(12px, 8vw, 140px);
}
.lb-slide img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}

.lb-arrow {
  position: absolute; top: 50%; z-index: 2;
  width: 64px; height: 64px; margin-top: -32px;
  display: none; place-items: center;
  border: 1px solid var(--line-coal); border-radius: 50%;
  transition: border-color .4s var(--ease-out), background-color .4s var(--ease-out);
}
.lb-arrow svg { width: 26px; }
.lb-arrow:hover { border-color: var(--brass); background: rgba(165, 135, 90, .12); }
.lb-arrow[disabled] { opacity: .25; pointer-events: none; }
.lb-prev { left: calc(var(--gutter) * .6); }
.lb-next { right: calc(var(--gutter) * .6); }

.lb-thumbs {
  position: absolute; inset: auto 0 0 0; height: 96px;
  display: flex; gap: 8px; align-items: center;
  padding-inline: var(--gutter);
  overflow-x: auto; scrollbar-width: none;
  border-top: 1px solid var(--line-coal);
}
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb {
  flex: none; width: 84px; height: 52px; overflow: hidden;
  opacity: .4; outline: 1px solid transparent; outline-offset: 2px;
  transition: opacity .4s var(--ease-out), outline-color .4s var(--ease-out);
}
.lb-thumb:first-child { margin-left: auto; }
.lb-thumb:last-child { margin-right: auto; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .8; }
.lb-thumb[aria-current="true"] { opacity: 1; outline-color: var(--brass); }

/* =============================================================
   16. Reveal on scroll
   ============================================================= */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
/* Defensa: un elemento con split-text nunca debe quedar invisible */
[data-reveal][data-split] { opacity: 1; transform: none; }

/* =============================================================
   17. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact { padding-right: 1.4rem; }
  .lb-title em { display: inline; }
}

@media (min-width: 720px) {
  .hero {
    --arch-top: 15svh;
    --arch-x: 31vw;
    --arch-bottom: 6svh;
    --arch-r: 19vw;
    --img-shift: 0px;
    --img-pos: 50% 45%;
  }
  .hero-name { font-size: 5.6vw; }
  .hn { top: 50%; }
  .hn-1 { left: var(--gutter); transform: translate(calc(var(--p) * -22vw), -50%); opacity: calc(1 - var(--p) * 1.9); }
  .hn-2 { left: auto; right: var(--gutter); transform: translate(calc(var(--p) * 22vw), -50%); opacity: calc(1 - var(--p) * 1.9); }
  .hero-eyebrow { top: auto; bottom: calc(50% + 5vw); max-width: calc(var(--arch-x) - var(--gutter) - 3vw); }
  .hero-script { top: calc(50% + 2.2vw); right: calc(var(--gutter) + 1vw); font-size: 5.4vw; }
  .hero-cue { display: flex; }

  .studio-body { grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
  .studio-sign { grid-column: 1 / span 4; }
  .studio-text { grid-column: 6 / span 7; }

  .work-head { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--gap); }

  .project { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2.4rem; }
  .project-head { grid-column: 1 / -1; grid-template-columns: 3.2rem 1fr auto; align-items: end; column-gap: 1rem; }
  .project-num { padding-bottom: .9rem; }
  .project-meta { justify-content: flex-end; padding-bottom: .9rem; text-align: right; }
  .project-meta span:nth-child(2) { display: inline; }

  .project--a .project-cover { grid-column: 1 / span 8; grid-row: 2; }
  .project--a .project-aside { grid-column: 9 / span 4; grid-row: 2; }
  .project--c .project-aside { grid-column: 1 / span 4; grid-row: 2; }
  .project--c .project-cover { grid-column: 5 / span 8; grid-row: 2; }
  .project--a .project-second, .project--c .project-second { aspect-ratio: 4 / 5; }
  .project--a .project-cover, .project--c .project-cover { aspect-ratio: auto; min-height: 100%; height: clamp(420px, 46vw, 760px); }

  .project--b .project-cover { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
  .project--b .project-aside { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 1.6rem; }
  .project--b .project-text { grid-column: 1 / span 5; grid-row: 1; }
  .project--b .project-link { grid-column: 1 / span 5; grid-row: 2; align-self: start; }
  .project--b .project-second { grid-column: 7 / span 6; grid-row: 1 / span 2; aspect-ratio: 16 / 9; }

  .section-head { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
  .section-head .eyebrow { grid-column: 1 / -1; }
  .section-head .display { grid-column: 1 / span 8; }
  .section-head .section-lede { grid-column: 9 / span 4; }

  .service { grid-template-columns: 4rem 1fr 1fr; gap: 2rem; align-items: baseline; padding-block: 2.4rem; }
  .service-num { padding-top: 0; }
  .service-text { grid-column: 3; }

  .steps { grid-template-columns: repeat(4, 1fr); border-left: 0; border-top: 1px solid var(--line); margin-left: 0; gap: var(--gap); }
  .step { padding: 2.4rem 0 0; }
  .step::before { left: 0; top: -4px; }
}

@media (min-width: 960px) {
  :root { --nav-h: 84px; }
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .menu { display: none !important; }

  .hero {
    --arch-x: 34vw;
    --arch-r: 16vw;
  }
  .hero-name { font-size: clamp(3rem, 6.2vw, 9rem); }
  .hero-eyebrow { bottom: calc(50% + 4.6vw); }
  .hero-script { top: calc(50% + 2.4vw); font-size: clamp(2.6rem, 5.4vw, 7.4rem); }
  .hero-lede { display: block; }

  .technical-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .technical-copy { grid-column: 1 / span 5; }
  .technical-sheets { grid-column: 7 / span 6; }

  .lb-arrow { display: grid; }
  .lb-track { inset: var(--nav-h) 0 110px 0; }
  .lb-thumbs { height: 110px; }
  .lb-thumb { width: 104px; height: 62px; }
}

@media (min-width: 1280px) {
  .project-text { font-size: 16.5px; }
  .work-index a { font-size: 1.5rem; }
}

/* Punteros finos: el cursor personalizado acompaña al nativo */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* =============================================================
   18. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cue i::after { animation: none; }
  .lb-track { scroll-behavior: auto; }
}

/* =============================================================
   19. Sitio multipágina — transiciones, cabeceras, enlaces
   ============================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .45s var(--ease-io) both; }
::view-transition-new(root) { animation: vtIn .6s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

.no-splash .splash { display: none; }

.nav-links a[aria-current]:not(.nav-cta)::after { transform: scaleX(1); }
.nav-cta[aria-current] { background: var(--ink); color: var(--bone); }
.menu nav a[aria-current] { color: var(--brass-light); }

.page-hero { padding: calc(var(--nav-h) + clamp(4rem, 10vw, 9rem)) 0 clamp(3.5rem, 8vw, 7rem); }
.page-title {
  position: relative; margin-top: 1.6rem;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 8.4vw, 8.6rem); line-height: .95; letter-spacing: -.015em;
}
.page-script {
  display: block; margin-top: .1em;
  font-family: var(--script); font-size: .5em; line-height: 1; color: var(--brass); letter-spacing: 0;
}
.page-lede { margin-top: 2rem; max-width: 46ch; font-size: 17px; line-height: 1.8; color: var(--ink-soft); }

.text-link {
  justify-self: start; align-self: start;
  display: inline-flex; align-items: center; gap: .9rem;
  padding: .5rem 0; border-bottom: 1px solid var(--brass);
  font-weight: 400; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
}
.text-link::after { content: "→"; letter-spacing: 0; transition: transform .6s var(--ease-out); }
.text-link:hover::after { transform: translateX(6px); }
.text-link--light { color: var(--on-coal); margin-top: 3rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .9rem 1.6rem;
  font-weight: 400; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.btn--brass { background: var(--brass); color: var(--coal); }
.btn--brass:hover { background: var(--brass-light); }
.btn--line { border-color: currentColor; }
.btn--line:hover { color: inherit; background: rgba(165, 135, 90, .14); border-color: var(--brass); }

.studio--home { padding-block: clamp(5rem, 11vw, 10rem) clamp(3rem, 6vw, 5rem); }
.studio--home .studio-text { align-content: start; }

.work--recent .work-head--recent { align-items: end; }
.work-head--recent .text-link { justify-self: start; }
@media (min-width: 720px) { .work-head--recent .text-link { justify-self: end; } }

.more-link {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .6rem 2rem;
  padding-block: clamp(2.6rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.more-link-eyebrow { grid-column: 1 / -1; font-weight: 400; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--brass-ink); }
.more-link-title {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 7vw, 6.8rem); line-height: 1;
  transition: transform .9s var(--ease-out), color .5s var(--ease-out);
}
.more-link-arrow {
  width: clamp(54px, 7vw, 92px); height: clamp(54px, 7vw, 92px); border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out), transform .9s var(--ease-out);
}
.more-link-arrow svg { width: 40%; }
.more-link:hover .more-link-title { transform: translateX(14px); color: var(--brass-ink); }
.more-link:hover .more-link-arrow { background: var(--ink); color: var(--bone); border-color: var(--ink); transform: rotate(-35deg); }

.cta-band { background: var(--coal); color: var(--on-coal); padding-block: clamp(6rem, 12vw, 10rem); text-align: center; }
.cta-band-inner, .pf-end-inner { display: grid; justify-items: center; gap: 1.6rem; }
.cta-band-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 6.4vw, 6.2rem); line-height: 1; letter-spacing: -.015em;
}
.cta-band p:not(.eyebrow) { color: var(--on-coal-mute); max-width: 46ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: .8rem; }

/* Estudio — lenguaje */
.language { background: var(--paper); padding-block: clamp(6rem, 12vw, 10rem); }
.lang-grid { display: grid; gap: clamp(1.6rem, 3vw, 2.6rem); }
.lang-item { display: grid; gap: 1.2rem; }
.lang-img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bone-2); }
.lang-img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); transition: transform 1.6s var(--ease-out); }
.lang-item:hover .lang-img img { transform: scale(1.05); }
.lang-item figcaption { display: grid; gap: .4rem; }
.lang-word { font-family: var(--serif); font-weight: 300; font-size: 2.4rem; line-height: 1; }
.lang-text { font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 30ch; }
@media (min-width: 540px) { .lang-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .lang-grid { grid-template-columns: repeat(4, 1fr); }
  .lang-item:nth-child(even) { margin-top: 5rem; }
}

/* Servicios — detalle y tipos de espacio */
.page-servicios .services { padding-top: clamp(4rem, 8vw, 7rem); }
.service-body { grid-column: 2; display: grid; gap: 1rem; }
.service-body .service-text { grid-column: auto; }
.service-items { display: grid; gap: .35rem; font-size: 14.5px; color: var(--on-coal); }
.service-items li { display: flex; gap: .8rem; align-items: baseline; }
.service-items li::before { content: ""; width: 14px; height: 1px; background: var(--brass); flex: none; transform: translateY(-4px); }
@media (min-width: 720px) { .service-body { grid-column: 3; } }

.spaces { padding-block: clamp(6rem, 12vw, 10rem); }
.space-list { border-top: 1px solid var(--line); }
.space-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.3rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.1;
  transition: color .4s var(--ease-out), padding .6s var(--ease-out);
}
.space-list a span { font-family: var(--sans); font-weight: 400; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }
.space-list a:hover { color: var(--brass-ink); padding-left: .8rem; }

/* Contacto */
.contact-page { padding-bottom: clamp(6rem, 12vw, 10rem); }
.contact-grid { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: start; }
.contact-side { display: grid; gap: 3rem; }
.channels--page { margin-top: 0; width: 100%; }
.channels--page .channel { border-color: var(--line); }
.channels--page .channel span { color: var(--ink-mute); }
.channels--page .channel:hover { border-color: var(--brass); background: rgba(165, 135, 90, .08); }
.channels--page .channel--main { border-color: var(--brass); }
.channels--page .channel--main span { color: rgba(24, 23, 22, .72); }
.brief-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; margin-bottom: 1rem; }
.brief-list { display: grid; gap: .7rem; counter-reset: b; }
.brief-list li { counter-increment: b; display: grid; grid-template-columns: 2.2rem 1fr; color: var(--ink-soft); font-size: 15.5px; }
.brief-list li::before { content: counter(b, decimal-leading-zero); font-size: 11px; letter-spacing: .2em; color: var(--brass-ink); padding-top: .25rem; }

.contact-form { display: grid; gap: 1.5rem; padding: clamp(1.6rem, 4vw, 3rem); background: var(--paper); border: 1px solid var(--line); }
.form-title { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.05; }
.form-note { font-size: 14px; color: var(--ink-mute); margin-top: -.8rem; }
.field { display: grid; gap: .4rem; }
.field > span { font-weight: 400; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: .6rem 0; outline: none; transition: border-color .4s var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%), linear-gradient(135deg, var(--ink-mute) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--brass); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: #9b3b2b; }
.form-error { color: #8f3526; font-size: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 5fr 6fr; column-gap: clamp(3rem, 6vw, 6rem); }
}

/* Galería — pie de foto */
.lb-slide { grid-template-rows: minmax(0, 1fr) auto; gap: 1rem; }
.lb-cap { font-family: var(--serif); font-size: 1.15rem; color: var(--on-coal-mute); text-align: center; }

/* =============================================================
   20. Portafolio — la galería
   ============================================================= */
.pf-hero { padding: calc(var(--nav-h) + clamp(3.5rem, 9vw, 8rem)) 0 clamp(4rem, 8vw, 7rem); }
.pf-title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .18em;
  margin-top: 1.6rem;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(4.2rem, 15vw, 15rem); line-height: .86; letter-spacing: -.025em;
}
.pf-title-script { font-family: var(--script); font-size: .34em; letter-spacing: 0; color: var(--brass); }
.pf-lede { margin-top: 2rem; max-width: 46ch; font-size: 17px; line-height: 1.8; color: var(--ink-soft); }
.pf-index { margin-top: clamp(3rem, 6vw, 5rem); display: grid; border-top: 1px solid var(--line); column-gap: var(--gap); }
.pf-index a {
  display: grid; grid-template-columns: 2.8rem 1fr auto; align-items: baseline;
  padding: .9rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.2;
  transition: color .4s var(--ease-out), padding .5s var(--ease-out);
}
.pf-index a span, .pf-index a em { font-family: var(--sans); font-style: normal; font-weight: 400; font-size: 11px; letter-spacing: .2em; }
.pf-index a span { color: var(--brass-ink); }
.pf-index a em { color: var(--ink-mute); }
.pf-index a:hover { color: var(--brass-ink); padding-left: .6rem; }
.pf-cue {
  display: flex; align-items: center; gap: 14px; margin-top: clamp(3rem, 6vw, 5rem);
  font-weight: 400; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-mute);
}
.pf-cue i { position: relative; width: 1px; height: 54px; background: var(--line); overflow: hidden; }
.pf-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: cue 2.4s var(--ease-io) infinite; }
@media (min-width: 720px) { .pf-index { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .pf-index { grid-template-columns: repeat(4, 1fr); } }

/* Sala: un muro con su color, obras colgadas y luz de techo */
.sala { position: relative; background: var(--wall); color: var(--wall-ink); }
.sala[data-tone="dark"] {
  --wall-ink: #ece7df; --wall-mute: #aaa397; --kicker: var(--brass-light);
  --mat: #f3efe8; --glow: rgba(255, 228, 188, .26); --shade: rgba(0, 0, 0, .7);
}
.sala[data-tone="light"] {
  --wall-ink: var(--ink); --wall-mute: var(--ink-mute); --kicker: var(--brass-ink);
  --mat: #fcfbf8; --glow: rgba(255, 255, 255, .85); --shade: rgba(52, 38, 22, .38);
}
.sala-stage { position: relative; overflow-x: auto; overflow-y: hidden; }
.sala-stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8svh; height: 1px;
  background: currentColor; opacity: .12; pointer-events: none;
}
.sala-mark {
  position: absolute; left: 4vw; top: 50%; z-index: 0;
  transform: translateY(-50%);
  font-family: var(--serif); font-weight: 300; font-size: 64svh; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px currentColor; opacity: .1;
  white-space: nowrap; pointer-events: none; user-select: none;
}
.sala-track {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: clamp(64px, 12vw, 150px);
  width: max-content;
  padding: calc(var(--nav-h) + 4rem) 20vw 6rem var(--gutter);
}
.has-gallery .sala-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.has-gallery .sala-track { height: 100%; padding-block: calc(var(--nav-h) + 3svh) 10svh; will-change: transform; }

.sala-intro { flex: none; width: min(80vw, 440px); display: grid; gap: 1.3rem; }
.sala-kicker { font-weight: 400; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--kicker); }
.sala-title { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 6vw, 6.4rem); line-height: .95; letter-spacing: -.015em; }
.sala-text { font-size: 16px; line-height: 1.75; color: var(--wall-mute); max-width: 38ch; }
.sala-open {
  justify-self: start; padding: .55rem 0; border-bottom: 1px solid var(--kicker);
  font-weight: 400; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--wall-ink);
}
.sala-open::after { content: " →"; transition: margin .5s var(--ease-out); }
.sala-open:hover::after { margin-left: .4rem; }

.art {
  --f: 1; --s: 0; --h: 56svh; --w: 88vw;
  position: relative; flex: none; margin: 0; isolation: isolate;
  transform: translateY(calc(var(--oy) * 4svh)) scale(calc(.9 + .1 * var(--f)));
}
.art--m { --h: 44svh; --w: 80vw; }
.art--s { --h: 33svh; --w: 72vw; }
.art::before {   /* foco de techo */
  content: ""; position: absolute; left: 50%; top: -48%; z-index: -1;
  width: 150%; height: 120%; transform: translateX(-50%);
  background: radial-gradient(40% 52% at 50% 0%, var(--glow), transparent 75%);
  opacity: var(--f); pointer-events: none;
}
.art-frame {
  display: block; padding: clamp(6px, .8vw, 14px);
  background: var(--mat);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 60px 80px -48px var(--shade), 0 20px 34px -24px var(--shade);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .8s var(--ease-out);
}
.art-window {
  position: relative; display: block; overflow: hidden;
  width: var(--w); height: calc(var(--w) / var(--r));
  background: var(--bone-2);
}
.art-window img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12) translateX(calc(var(--s) * -4%));
}
.art-window::after {   /* la sala se apaga lejos del foco */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--wall); opacity: calc((1 - var(--f)) * .62);
}
.art-window::before {  /* linterna que sigue el cursor */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .28), transparent 42%);
  mix-blend-mode: soft-light; opacity: var(--hl, 0); transition: opacity .6s var(--ease-out);
}
.art-label {
  position: absolute; left: 0; top: calc(100% + 16px);
  display: grid; gap: .15rem; min-width: 15rem;
  opacity: clamp(0, calc(var(--f) * 2.2 - 1.1), 1);
  transform: translateY(calc((1 - var(--f)) * 14px));
}
.art-no { font-weight: 400; font-size: 10.5px; letter-spacing: .24em; color: var(--kicker); }
.art-title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; }
.art-meta { font-weight: 400; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--wall-mute); }

@media (min-width: 720px) {
  .art { transform: translateY(calc(var(--oy) * 7svh)) scale(calc(.9 + .1 * var(--f))); }
  .art-window { height: var(--h); width: calc(var(--h) * var(--r)); max-width: 64vw; }
  .art--m .art-window { max-width: 50vw; }
  .art--s .art-window { max-width: 38vw; }
}

/* Indicador de sala */
.hud {
  position: fixed; left: 50%; bottom: 16px; z-index: 45;
  display: flex; align-items: center; gap: .9rem;
  padding: .65rem 1.1rem;
  background: rgba(24, 23, 22, .86); color: var(--on-coal);
  border: 1px solid var(--line-coal); border-radius: 999px;
  font-weight: 400; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  opacity: 0; transform: translate(-50%, 140%); pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
}
@supports (backdrop-filter: blur(10px)) { .hud { background: rgba(24, 23, 22, .7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.hud.is-on { opacity: 1; transform: translate(-50%, 0); }
.hud-num { color: var(--brass-light); }
.hud-count { white-space: nowrap; }
.hud-name { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .02em; text-transform: none; white-space: nowrap; }
.hud-bar { width: 56px; height: 1px; background: rgba(236, 231, 223, .2); }
.hud-bar b { display: block; height: 100%; background: var(--brass-light); transform-origin: left; transform: scaleX(0); }
@media (min-width: 720px) { .hud-bar { width: 110px; } .hud { bottom: 24px; } }

.pf-end { padding-block: clamp(6rem, 12vw, 10rem); text-align: center; }
.pf-end .eyebrow { justify-content: center; }
.pf-end .btn--line { color: var(--ink); }
