/* ═══════════════════════════════════════════════════════════
   EUNOIA — Interior Studio
   Editorial, cinematográfico, sereno.
   ═══════════════════════════════════════════════════════════ */

:root {
  --ivory:    #F3F0E9;
  --olive:    #30392F;
  --clay:     #B78D72;
  --sand:     #D8CBBB;
  --charcoal: #292A27;
  --gold:     #B99B6B;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Manrope", "Helvetica Neue", sans-serif;

  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-slow: 1.4s;
  --dur-med:  0.9s;

  --pad-x: clamp(1.5rem, 6vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--sand); color: var(--charcoal); }

/* ── Cabecera fija ─────────────────────────────────────────── */

.site-header {
  --logo-color: var(--ivory);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.1rem var(--pad-x);
  transition: background-color 0.6s var(--ease-soft), box-shadow 0.6s var(--ease-soft), padding 0.6s var(--ease-soft);
}

.site-header.is-solid {
  --logo-color: var(--olive);
  background: rgba(243, 240, 233, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(41, 42, 39, 0.06);
  padding-block: 0.65rem;
}

/* con el menú abierto, la cabecera flota sobre el overlay oliva */
body.menu-open .site-header {
  --logo-color: var(--ivory);
  z-index: 130;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
body.menu-open .header-cta { color: var(--ivory); }

.site-logo {
  justify-self: center;
  display: block;
  position: relative;
}
.site-logo::before,
.site-footer__logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--logo-color);
  -webkit-mask: url("../assets/images/logo.webp") center / contain no-repeat;
  mask: url("../assets/images/logo.webp") center / contain no-repeat;
  transition: background-color 0.6s var(--ease-soft);
  pointer-events: none;
}
.site-logo img,
.site-footer__logo img {
  opacity: 0;
}
.site-logo img {
  width: clamp(7.5rem, 13vw, 11rem);
  height: auto;
  transition: width 0.6s var(--ease-soft);
}
.site-header.is-solid .site-logo img {
  width: clamp(7rem, 11vw, 9rem);
}

.menu-btn {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--ivory);
  transition: color 0.6s var(--ease-soft);
  position: relative;
  padding: 0.5rem 0;
}
.menu-btn__line {
  display: block;
  width: 26px;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease-soft), width 0.5s var(--ease-soft);
}
.menu-btn__line + .menu-btn__line { margin-left: -26px; transform: translateY(5px); }
.menu-btn__label { margin-left: 0.35rem; }
.site-header.is-solid .menu-btn { color: var(--charcoal); }
body.menu-open .menu-btn { color: var(--ivory); }
body.menu-open .menu-btn__line:first-child { transform: translateY(2px) rotate(8deg); }
body.menu-open .menu-btn__line + .menu-btn__line { transform: translateY(1px) rotate(-8deg); }

.header-cta {
  justify-self: end;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ivory);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.6s var(--ease-soft), border-color 0.4s;
}
.header-cta:hover { border-color: currentColor; }
.site-header.is-solid .header-cta { color: var(--charcoal); }

/* ── Menú overlay ──────────────────────────────────────────── */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--olive);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.9s var(--ease-soft), visibility 0s 0.9s;
}
body.menu-open .menu-overlay {
  clip-path: inset(0 0 0% 0);
  visibility: visible;
  transition: clip-path 0.9s var(--ease-soft), visibility 0s;
}
body.menu-open { overflow: hidden; }

.menu-overlay__list li { overflow: hidden; }
.menu-overlay__list a {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.35;
  padding: 0.2em 0;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-soft), color 0.4s;
  transition-delay: 0s;
}
body.menu-open .menu-overlay__list a { transform: translateY(0); }
body.menu-open .menu-overlay__list li:nth-child(1) a { transition-delay: 0.15s; }
body.menu-open .menu-overlay__list li:nth-child(2) a { transition-delay: 0.22s; }
body.menu-open .menu-overlay__list li:nth-child(3) a { transition-delay: 0.29s; }
body.menu-open .menu-overlay__list li:nth-child(4) a { transition-delay: 0.36s; }
body.menu-open .menu-overlay__list li:nth-child(5) a { transition-delay: 0.43s; }
.menu-overlay__list a span {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--sand);
}
.menu-overlay__list a:hover { color: var(--sand); }

.menu-overlay__foot {
  position: absolute;
  bottom: 2.2rem;
  left: var(--pad-x);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sand);
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero { height: 240vh; position: relative; }

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: -12vh 0;
  will-change: transform;
}
.hero__video,
.hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__fallback {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
  animation: kenburns 36s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.hero__media.video-failed .hero__fallback { opacity: 1; animation-play-state: running; }
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08) translateY(-1.5%); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: rgba(41, 42, 39, 0.72);
}

.hero__title-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 3;
  padding: 0 var(--pad-x);
  will-change: transform, opacity;
}

.hero__eyebrow {
  font-size: 0.64rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 1.6rem;
  transition: color 0.45s var(--ease-soft);
}
.hero__eyebrow span {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: riseIn 1.4s var(--ease-soft) 0.6s forwards;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.18;
  color: var(--ivory);
  letter-spacing: 0.01em;
  transition: color 0.45s var(--ease-soft);
}
.hero__title-line { display: block; overflow: hidden; }
.hero__title-line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: riseTitle 1.6s var(--ease-soft) forwards;
}
.hero__title-line:nth-child(1) > span { animation-delay: 0.9s; }
.hero__title-line:nth-child(2) > span { animation-delay: 1.1s; }

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 2rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--ivory);
  color: var(--ivory);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background-color 0.45s var(--ease-soft), color 0.45s var(--ease-soft), border-color 0.45s var(--ease-soft);
}
.hero__cta:hover,
.hero__cta:focus-visible {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--olive);
}
.hero__cta:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 4px;
}
.hero__sticky.is-covered .hero__cta {
  border-color: var(--olive);
  color: var(--olive);
}
.hero__sticky.is-covered .hero__cta:hover,
.hero__sticky.is-covered .hero__cta:focus-visible {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--ivory);
}
.hero__sticky.is-covered .hero__cta:focus-visible {
  outline-color: var(--olive);
}

/* cuando la cortina marfil cubre el vídeo, el título pasa a oliva */
.hero__sticky.is-covered .hero__title { color: var(--olive); }
.hero__sticky.is-covered .hero__eyebrow { color: var(--olive); }

@keyframes riseTitle { to { transform: translateY(0); } }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }

.hero__scroll-hint {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  color: var(--ivory);
  opacity: 0;
  animation: riseScrollHint 1.4s var(--ease-soft) 2.2s forwards;
  transition: opacity 0.8s;
}
.hero__scroll-hint.is-hidden {
  animation: none;
  opacity: 0;
}
@keyframes riseScrollHint {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: currentColor;
  transform-origin: top;
  animation: scrollPulse 2.6s var(--ease-soft) infinite;
  opacity: 0.8;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero__scroll-text {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero__curtain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--ivory);
  transform: translateY(101%);
  will-change: transform;
}

/* ── Línea vertical animada (reutilizable) ─────────────────── */

.v-line {
  display: block;
  width: 1px;
  height: 70px;
  margin: 0 auto 2rem;
  background: var(--clay);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.6s var(--ease-soft);
}
.v-line.is-drawn { transform: scaleY(1); }

/* ── Manifiesto ────────────────────────────────────────────── */

.manifesto {
  padding: 6rem var(--pad-x) 7rem;
  background: var(--ivory);
}
.manifesto__inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}
.manifesto__text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.1vw, 2.5rem);
  line-height: 1.55;
  color: #000;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 calc(var(--manifesto-reveal-edge, 0%) - 25%),
    rgba(0, 0, 0, 0.14) var(--manifesto-reveal-edge, 0%)
  );
  mask-image: linear-gradient(
    to bottom,
    #000 calc(var(--manifesto-reveal-edge, 0%) - 25%),
    rgba(0, 0, 0, 0.14) var(--manifesto-reveal-edge, 0%)
  );
}

.manifesto__meta {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
}

/* ── Principios ────────────────────────────────────────────── */

.principles {
  display: grid;
  grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  min-height: 90vh;
}

.principles__mobile { display: none; }

.principles__left {
  background: var(--olive);
  color: var(--ivory);
  padding: clamp(4rem, 9vh, 8rem) clamp(2rem, 5vw, 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.principles__index {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 2.2rem;
}

.principles__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  line-height: 1.15;
  margin-bottom: 3.5rem;
}

.principles__list { display: flex; flex-direction: column; }

.principle button {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  color: rgba(243, 240, 233, 0.45);
  border-bottom: 1px solid rgba(243, 240, 233, 0.12);
  transition: color 0.6s var(--ease-soft), padding-left 0.6s var(--ease-soft);
}
.principle button em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--clay);
  min-width: 1.6rem;
}
.principle:hover button,
.principle.is-active button {
  color: var(--ivory);
  padding-left: 0.8rem;
}
.principle.is-active button { border-bottom-color: var(--clay); }

.principles__right { position: relative; overflow: hidden; }
.principles__figure { height: 100%; margin: 0; position: relative; }
.principles__img-stack { position: absolute; inset: 0; }
.principles__img-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.1s var(--ease-soft), transform 6s var(--ease-soft);
}
.principles__img-stack img.is-visible {
  opacity: 1;
  transform: scale(1);
}
.principles__caption {
  position: absolute;
  bottom: 1.6rem;
  right: 1.8rem;
  z-index: 2;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(41, 42, 39, 0.35);
  backdrop-filter: blur(6px);
  padding: 0.55rem 1rem;
}

/* ── Estilos ───────────────────────────────────────────────── */

.styles {
  background: var(--ivory);
  padding: 7rem 0 4rem;
}

.styles__head {
  text-align: center;
  padding: 0 var(--pad-x);
  max-width: 52rem;
  margin: 0 auto 5rem;
}
.styles__index {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.6rem;
}
.styles__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: 1.12;
  color: var(--olive);
  margin-bottom: 2rem;
}
.styles__lede {
  max-width: 34rem;
  margin: 0 auto;
  color: rgba(41, 42, 39, 0.72);
  font-size: 0.95rem;
}

.style {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  padding: 0 var(--pad-x);
  margin-bottom: clamp(5rem, 10vh, 8rem);
  align-items: center;
}

.style__num {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.2rem;
}
.style__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  color: var(--olive);
  margin-bottom: 1.6rem;
}
.style__description {
  color: rgba(41, 42, 39, 0.75);
  font-size: 0.95rem;
  max-width: 30rem;
}
.style__description + .style__description { margin-top: 1.1rem; }

.style__media img { width: 100%; height: auto; }
.style__caption {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(41, 42, 39, 0.5);
}

.style--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.style--reverse .style__media { grid-column: 2; grid-row: 1; }
.style--reverse .style__body { grid-column: 1; grid-row: 1; }
.style--portrait .style__media {
  width: 100%;
  max-width: 30rem;
  justify-self: center;
}

/* ── Bienestar ─────────────────────────────────────────────── */

.wellbeing {
  background: var(--ivory);
  text-align: center;
  padding: 7rem var(--pad-x) 8rem;
  position: relative;
}
.wellbeing__line {
  display: block;
  width: 1px;
  height: 100px;
  margin: 0 auto 2.5rem;
  background: var(--clay);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 2s var(--ease-soft);
}
.wellbeing__line.is-drawn { transform: scaleY(1); }
.wellbeing__index {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.6rem;
}
.wellbeing__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: 1.12;
  color: var(--olive);
  margin-bottom: 3rem;
}
.wellbeing__phrases {
  max-width: 34rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.wellbeing__phrase {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(48, 57, 47, 0.9);
}

/* ── Cierre / CTA ──────────────────────────────────────────── */

.outro {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.outro__media { position: absolute; inset: -10vh 0; will-change: transform; }
.outro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.outro__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(41,42,39,0.42), rgba(41,42,39,0.28));
}
.outro__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--pad-x);
}
.outro__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.25;
  color: var(--ivory);
  margin-bottom: 3rem;
}
.outro__btn {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ivory);
  border: 1px solid rgba(243, 240, 233, 0.55);
  padding: 1.1rem 2.6rem;
  transition: background-color 0.6s var(--ease-soft), color 0.6s var(--ease-soft), border-color 0.6s;
}
.outro__btn:hover {
  background: var(--ivory);
  color: var(--olive);
  border-color: var(--ivory);
}
.outro__privacy {
  max-width: 38rem;
  margin: 1.2rem auto 0;
  color: var(--ivory);
  font-size: 0.8rem;
}
.outro__privacy a { text-decoration: underline; text-underline-offset: 0.2em; }

/* ── Pie ───────────────────────────────────────────────────── */

.site-footer {
  background: var(--charcoal);
  color: var(--sand);
  text-align: center;
  padding: 5rem var(--pad-x) 3rem;
}
.site-footer__logo {
  --logo-color: var(--ivory);
  display: block;
  position: relative;
  width: min(14rem, 70vw);
  height: auto;
  margin: 0 auto 1.4rem;
}
.site-footer__claim {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 3.4rem;
  color: rgba(216, 203, 187, 0.75);
}
.site-footer__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(216, 203, 187, 0.55);
  border-top: 1px solid rgba(216, 203, 187, 0.14);
  padding-top: 2.2rem;
}

.site-footer__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--sand);
}
.site-footer__legal a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer__legal a:focus-visible,
.outro__privacy a:focus-visible,
.legal-page a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem var(--pad-x);
  border-bottom: 1px solid var(--sand);
}
.legal-header .site-logo { --logo-color: var(--olive); }
.legal-header__back { font-size: 0.85rem; }
.legal-content {
  max-width: 58rem;
  margin: 0 auto;
  padding: 4rem var(--pad-x) 5rem;
  overflow-wrap: anywhere;
}
.legal-content h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.15;
  color: var(--olive);
}
.legal-content__date { margin: 1rem 0 2rem; font-size: 0.85rem; }
.legal-draft {
  padding: 1.25rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--clay);
  background: rgba(216, 203, 187, 0.3);
}
.legal-content section { margin-top: 2.5rem; }
.legal-content h2 {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--olive);
}
.legal-content p + p { margin-top: 1rem; }
.legal-content a,
.legal-header__back { text-decoration: underline; text-underline-offset: 0.2em; }
.legal-content ul { list-style: disc; padding-left: 1.4rem; }
.legal-content li + li { margin-top: 0.65rem; }
.legal-details dt { margin-top: 1rem; font-weight: 500; }
.legal-details dd { margin-top: 0.2rem; }
.legal-pending { font-weight: 500; }

/* ── Revelados por scroll ──────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity var(--dur-slow) var(--ease-soft), transform var(--dur-slow) var(--ease-soft);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

.reveal-line { display: block; overflow: hidden; }
.reveal-line > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.3s var(--ease-soft);
}
.reveal-line.is-in > span { transform: translateY(0); }
.reveal-line:nth-child(2) > span { transition-delay: 0.12s; }
.reveal-line:nth-child(3) > span { transition-delay: 0.24s; }

.reveal-img { overflow: hidden; }
.reveal-img img {
  transform: translateY(8%) scale(1.08);
  opacity: 0;
  transition: transform 1.8s var(--ease-soft), opacity 1.4s var(--ease-soft);
}
.reveal-img.is-in img { transform: translateY(0) scale(1); opacity: 1; }

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero { height: 150svh; }
  .hero__sticky { height: 100svh; }
  .hero__media { inset: 0; will-change: auto; }
  .hero__sticky.is-covered .hero__cta { visibility: hidden; }

  .manifesto {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 100svh;
    margin-top: -50svh;
    padding-block: 4rem;
  }
  .manifesto .v-line,
  .manifesto__meta { display: none; }

  .header-cta { display: none; }
  .site-header {
    transition: background-color 0.6s var(--ease-soft), box-shadow 0.6s var(--ease-soft);
  }
  .site-header.is-solid {
    background: var(--ivory);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding-block: 1.1rem;
  }
  .site-logo { transition: transform 0.6s var(--ease-soft); }
  .site-logo img { width: 8rem; transition: none; }
  .site-header.is-solid .site-logo img { width: 8rem; }
  .site-header.is-solid .site-logo { transform: scale(0.875); }

  .principles { grid-template-columns: 1fr; }
  .principles__right { min-height: 60vh; }
  .principles.has-mobile-story {
    display: block;
    height: 520svh;
    background: var(--ivory);
    color: var(--ivory);
  }
  .has-mobile-story > .principles__left,
  .has-mobile-story > .principles__right { display: none; }
  .principles__mobile {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100svh;
    padding: 5rem 1.5rem 1.5rem;
    background: var(--olive);
  }
  .principles__mobile .principles__index { margin-bottom: 0.75rem; }
  .principles__mobile-title {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
  }
  .principles__mobile-cards { position: relative; flex: 1; min-height: 0; }
  .principles__mobile-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
  }
  .principles__mobile-card:first-child { opacity: 1; }
  .principles__mobile-label {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-family: var(--serif);
    font-size: clamp(1.25rem, 4.5vw, 1.75rem);
    font-weight: 300;
    line-height: 1.25;
  }
  .principles__mobile-label em {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-style: normal;
    letter-spacing: 0.2em;
    color: var(--clay);
  }
  .principles__mobile-caption {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--sand);
    margin: 0.5rem 0 1rem;
  }
  .principles__mobile-card img {
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: cover;
  }

  .style { grid-template-columns: minmax(0, 1fr); }
  .style--reverse .style__media,
  .style--reverse .style__body { grid-column: auto; grid-row: auto; }
}

@media (max-width: 480px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 1rem;
  }
  .menu-btn { min-width: 44px; min-height: 44px; }
  .menu-btn__label { display: none; }
}

/* ── Accesibilidad: movimiento reducido ────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: 100vh; }
  .hero__sticky { position: relative; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-line > span, .reveal-img img,
  .hero__title-line > span {
    opacity: 1 !important;
    transform: none !important;
  }
  .manifesto__text {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .hero { height: 100svh; }
  .manifesto { margin-top: 0; }
  .principles.has-mobile-story { height: auto; }
  .principles__mobile { position: static; height: auto; }
  .principles__mobile-cards { display: grid; gap: 2.5rem; }
  .principles__mobile-card { position: static; opacity: 1 !important; }
  .principles__mobile-card img {
    flex: none;
    height: auto;
    max-height: 65svh;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll(root block)) and (animation-range: 0px 1px) {
    .hero__curtain {
      animation: eunoia-mobile-curtain linear both;
      animation-timeline: scroll(root block);
      animation-range: 17.5svh 42.5svh;
    }
    .hero__title-wrap {
      animation: eunoia-mobile-title linear both;
      animation-timeline: scroll(root block);
      animation-range: 41svh 50svh;
    }
  }
}

@keyframes eunoia-mobile-curtain {
  from { transform: translateY(101%); }
  to { transform: translateY(0); }
}

@keyframes eunoia-mobile-title {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-12svh); opacity: 0; }
}
