/* ==========================================================================
   Juliana Uribe Mesa — Portafolio
   Identidad: Manual del portafolio (paleta, tipografías, fondos, orquídea)
   ========================================================================== */

:root {
  /* Paleta del manual */
  --vino: #5c0f27;
  --oliva: #716e2d;
  --cafe: #502926;
  --crema: #e4dccd;
  --papel: #ede5d3;
  --noche: #3c1613;
  --tinta: #3f3a3a;
  --tinta-suave: #6d6462;
  --intro: #171717;

  /* Tipografías: The Seasons → Cormorant Garamond (alternativa libre) */
  --f-script: "Luxurious Script", cursive;
  --f-serif: "Cormorant Garamond", "Times New Roman", serif;
  --f-sans: "Poppins", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  --gutter: clamp(1rem, 4vw, 4rem);
  --max: 1440px;
  --header-h: 84px;

  /* Tema por defecto (claro, papel) */
  --bg: var(--papel);
  --fg: var(--tinta);
  --fg-soft: var(--tinta-suave);
  --line: rgba(80, 41, 38, 0.22);
  --accent: var(--vino);
}

.theme-dark {
  --bg: var(--noche);
  --fg: var(--crema);
  --fg-soft: rgba(228, 220, 205, 0.68);
  --line: rgba(228, 220, 205, 0.2);
  --accent: #c9a98b;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.7;
  color: var(--fg);
  background-color: var(--bg);
  background-image: url("../assets/brand/papel.webp");
  background-size: 1600px auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.theme-dark {
  background-image: none;
}

/* Grano sutil sobre todo el sitio */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--vino);
  color: var(--crema);
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía ---------- */
.script {
  font-family: var(--f-script);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.serif {
  font-family: var(--f-serif);
}

.kicker {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.lead {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.split-line {
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

/* Estrella de la orquídea (símbolo recurrente) */
.star {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.08em;
  color: var(--accent);
}

/* Separador ornamental (como en el manual) */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--fg-soft);
}
.ornament__line {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  transform-origin: center;
}
.ornament svg {
  width: 2.2rem;
  height: 2.2rem;
  flex: none;
}

/* ---------- Botones / enlaces ---------- */
.btn {
  --b: var(--fg);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.9rem;
  border: 1px solid var(--b);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.6s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--b);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease-out);
}
.btn:hover {
  color: var(--bg);
}
.btn:hover::before {
  transform: translateY(0);
}
.btn svg {
  width: 1rem;
  height: 1rem;
}

.link-u {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease-out);
}
.link-u:hover {
  background-size: 100% 1px;
}

/* ---------- Cursor personalizado ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  pointer-events: none;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
  }
}
.cursor__dot,
.cursor__ring {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__dot {
  width: 6px;
  height: 6px;
  background: var(--vino);
}
.cursor__ring {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(92, 15, 39, 0.45);
  transition: width 0.5s var(--ease-out), height 0.5s var(--ease-out),
    background-color 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.cursor__label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crema);
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor.is-hover .cursor__ring {
  width: 64px;
  height: 64px;
  border-color: var(--vino);
}
.cursor.is-view .cursor__ring {
  width: 96px;
  height: 96px;
  background: var(--vino);
  border-color: var(--vino);
}
.cursor.is-view .cursor__label {
  opacity: 1;
}
.cursor.is-view .cursor__dot {
  opacity: 0;
}
.cursor.on-dark .cursor__dot {
  background: var(--crema);
}
.cursor.on-dark .cursor__ring {
  border-color: rgba(228, 220, 205, 0.5);
}

/* ---------- Cortina de transición ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: var(--noche);
  pointer-events: none;
  clip-path: inset(0 0 0 0);
}
.curtain__satin {
  position: absolute;
  inset: 0;
  background: url("../assets/brand/satin-h.webp") center / cover;
  opacity: 0.18;
}
.curtain__orchid {
  position: relative;
  width: clamp(90px, 12vw, 150px);
}

/* ---------- Encabezado ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  color: var(--tinta);
  transition: color 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.header.is-dark {
  color: var(--crema);
}
/* Fondo del encabezado al hacer scroll: evita que se cruce con el contenido */
.header {
  isolation: isolate;
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(237, 229, 211, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(80, 41, 38, 0.12);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out), background-color 0.5s var(--ease-out);
}
.header.is-scrolled::before {
  opacity: 1;
}
.header.is-dark::before {
  background: rgba(60, 22, 19, 0.86);
  border-bottom-color: rgba(228, 220, 205, 0.12);
}
.menu-open .header::before {
  opacity: 0;
}
.header.is-hidden {
  transform: translateY(-100%);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header__brand {
  font-family: var(--f-script);
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem);
  line-height: 1;
}
.header__nav {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.8rem);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.header__nav a {
  position: relative;
  padding-block: 0.4rem;
}
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease-out);
}
.header__nav a:hover::after,
.header__nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header__toggle {
  display: none;
}

@media (max-width: 760px) {
  :root {
    --header-h: 68px;
  }
  .header__nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    color: var(--crema);
    background: var(--noche) url("../assets/brand/satin.webp") center / cover;
    background-blend-mode: soft-light;
    font-family: var(--f-serif);
    font-size: 2.4rem;
    letter-spacing: 0.04em;
    text-transform: none;
    clip-path: circle(0% at calc(100% - 2.2rem) 2.2rem);
    transition: clip-path 0.9s var(--ease-in-out);
  }
  .menu-open .header__nav {
    clip-path: circle(150% at calc(100% - 2.2rem) 2.2rem);
  }
  .menu-open .header {
    color: var(--crema);
  }
  .header__toggle {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 30px;
    padding: 10px 0;
  }
  .header__toggle span {
    height: 1px;
    background: currentColor;
    transition: transform 0.5s var(--ease-out);
  }
  .menu-open .header__toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .menu-open .header__toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }
}

/* ==========================================================================
   INTRO — Transición de bienvenida
   ========================================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--intro);
  color: var(--crema);
  overflow: hidden;
}
.intro[hidden] {
  display: none;
}
.intro__video {
  height: min(66vh, 640px);
  width: auto;
  max-width: 92vw;
  object-fit: cover;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.intro__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(2.5rem, 9vh, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  pointer-events: none;
}
.intro__name {
  margin: 0;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(3rem, 2rem + 5vw, 6.4rem);
  line-height: 1.05;
  color: #f2ebdf;
  text-shadow: 0 0 40px rgba(23, 23, 23, 0.9);
}
.intro__role {
  margin: 0;
  font-family: var(--f-script);
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem);
  line-height: 1.1;
  color: #c9b9a0;
}
.intro__rule {
  width: min(240px, 50vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9b9a0, transparent);
}
.intro__name .char,
.intro__role .char {
  display: inline-block;
  will-change: opacity, filter, transform;
}
.intro__skip {
  position: absolute;
  right: var(--gutter);
  bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(228, 220, 205, 0.55);
  transition: color 0.4s;
}
.intro__skip:hover {
  color: var(--crema);
}
.intro__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--vino);
  transform-origin: left;
  transform: scaleX(0);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) calc(clamp(120px, 14vw, 200px) * 0.39 + 2.5rem);
  text-align: center;
}
.hero__ghost {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  padding-bottom: 4rem;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(4.4rem, 15vw, 15rem);
  line-height: 0.86;
  letter-spacing: 0.02em;
  color: rgba(165, 140, 110, 0.13);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}
.hero__ghost span {
  display: block;
  white-space: nowrap;
}
.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__title {
  margin: 0;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(4.6rem, 2rem + 11vw, 12.5rem);
  line-height: 0.95;
  color: var(--tinta);
}
.hero__title .row {
  display: block;
}
.hero__title .row + .row {
  margin-top: -0.12em;
  padding-left: 0.9em;
}
.hero__flank {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
  width: min(880px, 100%);
}
.hero__flank .ornament {
  flex: 1;
}
.hero__name {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.35rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__role {
  margin: 0.7rem 0 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.6rem);
  color: var(--vino);
}
.hero__band {
  position: relative;
  height: clamp(160px, 28vh, 300px);
  overflow: hidden;
}
.hero__band-img {
  position: absolute;
  inset: -30% 0;
  background: url("../assets/brand/satin-h.webp") center / cover;
}
.hero__orchid {
  /* Centrada sobre el borde de la banda sin usar transform (lo anima GSAP) */
  --orchid-w: clamp(120px, 14vw, 200px);
  position: absolute;
  left: calc(50% - var(--orchid-w) / 2);
  bottom: calc(clamp(160px, 28vh, 300px) - var(--orchid-w) * 0.39);
  z-index: 2;
  width: var(--orchid-w);
  filter: drop-shadow(0 18px 30px rgba(60, 22, 19, 0.25));
}
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: calc(clamp(160px, 28vh, 300px) + 1.4rem);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.hero__scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 46px;
  background: var(--line);
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--vino);
  animation: scrollcue 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}
.hero__meta {
  position: absolute;
  left: var(--gutter);
  bottom: calc(clamp(160px, 28vh, 300px) + 1.4rem);
  z-index: 2;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

@media (max-width: 760px) {
  .hero__scroll,
  .hero__meta {
    display: none;
  }
  .hero__flank .ornament__line {
    display: none;
  }
  .hero__flank {
    justify-content: center;
  }
  .hero__name {
    letter-spacing: 0.22em;
    white-space: normal;
  }
}

/* ---------- Cinta (marquee) ---------- */
.marquee {
  position: relative;
  padding: 1.6rem 0;
  background: var(--noche);
  color: var(--crema);
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  will-change: transform;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.8rem);
  line-height: 1;
}
.marquee__item .star {
  width: 0.7em;
  height: 0.7em;
  color: #c9a98b;
}

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.section {
  position: relative;
  padding-block: clamp(5rem, 12vw, 10rem);
}
.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-head__title {
  margin: 0;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(4rem, 2.4rem + 7vw, 9rem);
  line-height: 0.9;
  color: var(--accent);
}
.section-head__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.2rem;
}

/* ---------- Sobre mí ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.about__media {
  position: relative;
}
.about__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: #f7f1df;
}
.about__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
}
.about__orchid {
  position: absolute;
  right: -8%;
  bottom: -6%;
  width: 34%;
  filter: drop-shadow(0 12px 24px rgba(60, 22, 19, 0.25));
}
.about__caption {
  margin-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.about__lead {
  margin: 0 0 2rem;
}
.about__lead .word {
  opacity: 0.16;
}
.about__body {
  max-width: 34rem;
  color: var(--fg-soft);
}
.about__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}
.fact {
  padding-top: 2rem;
}
.fact__title {
  margin: 0.8rem 0 1.2rem;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem);
  line-height: 1.1;
}
.fact ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.fact li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.fact li .star {
  width: 0.7rem;
  height: 0.7rem;
  flex: none;
}
.fact__school {
  margin: 0;
  font-weight: 400;
}
.fact__years {
  margin: 0.2rem 0 1.4rem;
  color: var(--fg-soft);
}
.fact__score {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.fact__score strong {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(3.6rem, 3rem + 2vw, 5rem);
  line-height: 1;
  color: var(--vino);
}
.fact__score span {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__media {
    max-width: 420px;
  }
  .about__facts {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ---------- Proyectos (galería horizontal) ---------- */
.work {
  position: relative;
  background: var(--noche);
  color: var(--crema);
  overflow: hidden;
}
.work__pin {
  position: relative;
  height: 100svh;
  display: flex;
  align-items: center;
}
.work__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding-inline: var(--gutter) 20vw;
  will-change: transform;
}
.work__intro {
  flex: none;
  width: min(34rem, 80vw);
  padding-right: 2rem;
}
.work__intro h2 {
  margin: 0;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(4.5rem, 3rem + 6vw, 10rem);
  line-height: 0.9;
  color: #d9c3a5;
}
.work__intro p {
  max-width: 26rem;
  margin: 1.6rem 0 2.2rem;
  color: rgba(228, 220, 205, 0.7);
}
.work__count {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: rgba(228, 220, 205, 0.6);
}

.card {
  position: relative;
  flex: none;
  display: block;
  width: clamp(260px, 30vw, 460px);
}
.card:nth-child(even) {
  margin-top: 12vh;
}
.card:nth-child(odd) {
  margin-bottom: 8vh;
}
.card__num {
  position: absolute;
  top: -0.55em;
  left: -0.3em;
  z-index: 2;
  font-family: var(--f-serif);
  font-size: clamp(4rem, 3rem + 4vw, 7.5rem);
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(228, 220, 205, 0.55);
  pointer-events: none;
}
.card__media {
  position: relative;
  height: clamp(300px, 56vh, 620px);
  overflow: hidden;
  border-radius: 2px;
}
.card--arch .card__media {
  border-radius: 999px 999px 2px 2px;
}
.card__media img {
  position: absolute;
  inset: 0 -12%;
  width: 124%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 1.2s var(--ease-out);
  filter: saturate(0.9);
}
.card:hover .card__media img {
  transform: scale(1.06);
  filter: saturate(1.05);
}
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(60, 22, 19, 0.55));
}
.card__body {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.3rem;
}
.card__title {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.5rem);
  line-height: 1.05;
}
.card__meta {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(228, 220, 205, 0.6);
}
.card__script {
  position: absolute;
  right: -0.4em;
  bottom: 5.4rem;
  z-index: 2;
  font-family: var(--f-script);
  font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3.4rem);
  color: var(--crema);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  transform: rotate(-6deg);
  pointer-events: none;
}

.work__progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: rgba(228, 220, 205, 0.6);
}
.work__bar {
  flex: 1;
  height: 1px;
  background: rgba(228, 220, 205, 0.18);
}
.work__bar i {
  display: block;
  height: 100%;
  background: var(--crema);
  transform-origin: left;
  transform: scaleX(0);
}

@media (max-width: 900px) {
  .work__pin {
    height: auto;
    display: block;
    padding-block: 6rem 4rem;
  }
  .work__track {
    flex-direction: column;
    align-items: stretch;
    gap: 4.5rem;
    padding-inline: var(--gutter);
  }
  .work__intro {
    width: auto;
  }
  .card,
  .card:nth-child(even),
  .card:nth-child(odd) {
    width: 100%;
    margin: 0;
  }
  .card__media {
    height: auto;
    aspect-ratio: 4 / 5;
  }
  .card__media img {
    inset: 0;
    width: 100%;
  }
  .work__progress {
    display: none;
  }
  .card__script {
    right: 0.6rem;
  }
}

/* ---------- Contacto ---------- */
.contact {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--crema);
  background: var(--vino);
  overflow: hidden;
  isolation: isolate;
}
.contact__bg {
  position: absolute;
  inset: -10% 0;
  z-index: -1;
  background: url("../assets/brand/satin-h.webp") center / cover;
  opacity: 0.32;
  mix-blend-mode: soft-light;
}
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3rem;
  flex: 1;
  align-items: end;
  align-content: end;
  padding-top: calc(var(--header-h) + clamp(14rem, 30vh, 20rem));
}
.contact__title {
  margin: 0;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(5rem, 3rem + 10vw, 14rem);
  line-height: 0.85;
  color: #f2ebdf;
}
.contact__intro {
  max-width: 30rem;
  margin: 2rem 0 0;
  font-family: var(--f-serif);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem);
  line-height: 1.35;
  color: rgba(242, 235, 223, 0.85);
}
.contact__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact__item {
  display: grid;
  gap: 0.3rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(242, 235, 223, 0.22);
}
.contact__item:first-child {
  border-top: 1px solid rgba(242, 235, 223, 0.22);
}
.contact__item .kicker {
  color: rgba(242, 235, 223, 0.6);
}
.contact__value {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  justify-self: start;
  font-family: var(--f-serif);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  line-height: 1.2;
  word-break: break-word;
}
.contact__copy {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(242, 235, 223, 0.4);
  border-radius: 999px;
  transition: background 0.4s, color 0.4s;
}
.contact__copy:hover {
  background: var(--crema);
  color: var(--vino);
}
.contact__orchid {
  position: absolute;
  right: 8%;
  top: calc(var(--header-h) + 2rem);
  z-index: -1;
  width: clamp(180px, 22vw, 340px);
  opacity: 0.9;
}
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
  margin-top: 4rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 235, 223, 0.6);
  border-top: 1px solid rgba(242, 235, 223, 0.18);
}
.footer a:hover {
  color: var(--crema);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 140;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--crema);
  color: var(--vino);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(100% + 3rem));
  transition: transform 0.6s var(--ease-out), opacity 0.4s, visibility 0.6s;
}
.toast.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .contact__inner {
    grid-template-columns: 1fr;
  }
  .contact__orchid {
    top: 8%;
    right: -6%;
    opacity: 0.5;
  }
}

/* ==========================================================================
   PÁGINA DE PROYECTO
   ========================================================================== */
.p-hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: var(--crema);
  background: var(--noche);
}
.p-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.p-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 10, 8, 0.45) 0%, rgba(23, 10, 8, 0) 30%, rgba(23, 10, 8, 0.15) 55%, rgba(23, 10, 8, 0.78) 100%);
}
.p-hero__content {
  position: absolute;
  inset: auto 0 0;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}
.p-hero__script {
  display: block;
  font-family: var(--f-script);
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4.6rem);
  line-height: 1;
  color: #e3cfb2;
  margin-bottom: 0.3rem;
}
.p-hero__title {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(3rem, 1.4rem + 7vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  max-width: 14ch;
}
.p-hero__title.is-long {
  max-width: none;
  font-size: clamp(2.3rem, 0.8rem + 5.4vw, 6.6rem);
  overflow-wrap: anywhere;
}
.p-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.6rem;
  margin-top: clamp(1.6rem, 3vw, 2.6rem);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(228, 220, 205, 0.3);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.p-hero__meta span {
  display: block;
  color: rgba(228, 220, 205, 0.6);
  margin-bottom: 0.2rem;
}
.p-hero__index {
  position: absolute;
  top: calc(var(--header-h) + 1rem);
  right: var(--gutter);
  font-family: var(--f-serif);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: rgba(228, 220, 205, 0.75);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.back-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.5s var(--ease-out);
}
.back-link:hover svg {
  transform: translateX(-4px);
}

.p-intro {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 6vw, 6rem);
}
.p-intro__aside {
  display: grid;
  align-content: start;
  gap: 1.6rem;
}
.p-intro__aside img {
  width: clamp(90px, 10vw, 130px);
}
.p-intro__credit {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--fg-soft);
}
.p-intro__text p {
  max-width: 44rem;
  color: var(--fg-soft);
}
.p-intro__text .lead {
  margin: 0 0 2.4rem;
  color: var(--fg);
}

.p-concept {
  position: relative;
  padding: clamp(4rem, 9vw, 8rem) 0;
  text-align: center;
  color: var(--crema);
  background: var(--cafe);
  overflow: hidden;
  isolation: isolate;
}
.p-concept::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/brand/satin-h.webp") center / cover;
  opacity: 0.22;
  mix-blend-mode: soft-light;
}
.p-concept__title {
  margin: 0.8rem 0 2rem;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(3.6rem, 2.4rem + 5vw, 7.5rem);
  line-height: 1;
  color: #ead7bb;
}
.p-concept p {
  max-width: 50rem;
  margin: 0 auto;
  font-family: var(--f-serif);
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.65rem);
  line-height: 1.5;
}
.p-concept .kicker {
  color: rgba(228, 220, 205, 0.65);
}

.g-section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.g-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.g-head__title {
  margin: 0.5rem 0 0;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 1.8rem + 2.6vw, 4.6rem);
  line-height: 1;
}
.g-head__text {
  max-width: 28rem;
  margin: 0;
  color: var(--fg-soft);
}

.shot {
  position: relative;
  margin: 0;
}
.shot__frame {
  position: relative;
  overflow: hidden;
  background: rgba(80, 41, 38, 0.08);
  cursor: zoom-in;
}
.theme-dark .shot__frame {
  background: rgba(228, 220, 205, 0.05);
}
.shot__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.shot__frame:hover img {
  transform: scale(1.03);
}
.shot figcaption {
  margin-top: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.shot--parallax .shot__frame img {
  height: 118%;
  margin-top: -9%;
}

.g-full {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.g-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
}
.g-grid2 > :nth-child(even) {
  margin-top: clamp(3rem, 12vw, 12rem);
}

.g-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 2rem);
  align-items: start;
}
.g-grid3 > :nth-child(3n + 2) {
  margin-top: clamp(2rem, 8vw, 8rem);
}
.g-grid3 > :nth-child(3n) {
  margin-top: clamp(1rem, 4vw, 4rem);
}

.g-mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.8rem);
}
.g-mosaic > * {
  grid-column: span 3;
}
.g-mosaic > :first-child {
  grid-column: 1 / -1;
}
.g-mosaic > :nth-child(5n + 4) {
  grid-column: span 4;
}
.g-mosaic > :nth-child(5n + 5) {
  grid-column: span 2;
}
.g-mosaic > :nth-child(5n + 5) .shot__frame,
.g-mosaic > :nth-child(5n + 4) .shot__frame {
  height: clamp(220px, 34vw, 520px);
}
.g-mosaic > :nth-child(5n + 5) .shot__frame img,
.g-mosaic > :nth-child(5n + 4) .shot__frame img {
  height: 100%;
}

.g-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
}
.g-plans > :only-child {
  grid-column: 1 / -1;
  max-width: 980px;
  justify-self: center;
  width: 100%;
}
.g-plans .shot--wide {
  grid-column: 1 / -1;
}
.g-plans .shot__frame {
  padding: clamp(0.8rem, 2.4vw, 2.2rem);
  background: #fbf8f1;
  box-shadow: 0 30px 60px -30px rgba(60, 22, 19, 0.35);
}
.g-plans .shot__frame img {
  object-fit: contain;
}
.g-doc {
  margin-top: 2.4rem;
}

.g-video {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.g-video__player {
  position: relative;
  max-width: 420px;
  justify-self: center;
  width: 100%;
  border-radius: 999px 999px 4px 4px;
  overflow: hidden;
  background: #000;
}
.g-video__player video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.g-video__aside {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem);
  line-height: 1.3;
}
.g-video__aside .star {
  display: block;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.4rem;
}

.g-youtube {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 3rem);
}
.yt {
  margin: 0;
}
.yt__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.yt__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 1.2s var(--ease-out), opacity 0.6s;
}
.yt__frame:hover img {
  transform: scale(1.04);
  opacity: 1;
}
.yt__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.yt__play span {
  display: grid;
  place-items: center;
  width: clamp(64px, 7vw, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(237, 229, 211, 0.92);
  color: var(--vino);
  transition: transform 0.6s var(--ease-out), background 0.4s;
}
.yt__play:hover span {
  transform: scale(1.1);
  background: var(--crema);
}
.yt__play svg {
  width: 30%;
  margin-left: 8%;
}
.yt figcaption {
  margin-top: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.g-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.g-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.g-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 760px) {
  .p-intro {
    grid-template-columns: 1fr;
  }
  .g-grid2,
  .g-plans,
  .g-youtube,
  .g-video {
    grid-template-columns: 1fr;
  }
  .g-grid2 > :nth-child(even) {
    margin-top: 0;
  }
  .g-grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .g-grid3 > :nth-child(n) {
    margin-top: 0;
  }
  .g-grid3 > :nth-child(even) {
    margin-top: 3rem;
  }
  .g-mosaic > :nth-child(n) {
    grid-column: 1 / -1;
  }
  .g-mosaic > :nth-child(n) .shot__frame {
    height: auto;
  }
}

/* ---------- Siguiente proyecto ---------- */
.next {
  position: relative;
  display: block;
  min-height: 80svh;
  overflow: hidden;
  color: var(--crema);
  background: var(--noche);
  isolation: isolate;
}
.next__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.next__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transform: scale(1.08);
  transition: transform 1.6s var(--ease-out), opacity 1s;
}
.next:hover .next__media img {
  transform: scale(1);
  opacity: 0.6;
}
.next__inner {
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
.next__label {
  font-family: var(--f-script);
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.8rem);
  color: #e3cfb2;
}
.next__title {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(3rem, 1.6rem + 6vw, 8rem);
  line-height: 0.95;
}
.next__bar {
  position: relative;
  width: min(260px, 50vw);
  height: 1px;
  margin-top: 1.6rem;
  background: rgba(228, 220, 205, 0.3);
  overflow: hidden;
}
.next__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--crema);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out);
}
.next:hover .next__bar::after {
  transform: scaleX(1);
}
.p-footer {
  background: var(--noche);
  color: var(--crema);
}
.p-footer .footer {
  margin-top: 0;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(30, 12, 10, 0.96);
  color: var(--crema);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__top,
.lightbox__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem var(--gutter);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 var(--gutter);
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}
.lightbox__btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(228, 220, 205, 0.35);
  border-radius: 50%;
  transition: background 0.4s, color 0.4s;
}
.lightbox__btn:hover {
  background: var(--crema);
  color: var(--noche);
}
.lightbox__btn svg {
  width: 1.1rem;
  height: 1.1rem;
}
.lightbox__nav {
  display: flex;
  gap: 0.8rem;
}

/* ---------- Revelados ---------- */
.reveal-img {
  clip-path: inset(100% 0 0 0);
}
.no-js .reveal-img,
.reduced .reveal-img {
  clip-path: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Efecto "escritura" para textos en Luxurious Script */
.js [data-write] {
  --p: 100%;
  padding: 0.2em 0.4em;
  margin: -0.2em -0.4em;
  -webkit-mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
  mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
  -webkit-mask-size: 260% 100%;
  mask-size: 260% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: var(--p) 0;
  mask-position: var(--p) 0;
}
.js [data-write].is-written {
  -webkit-mask-image: none;
  mask-image: none;
}
.no-js .curtain,
.no-js .intro,
.no-js .cursor {
  display: none;
}
.p-hero__content .back-link {
  margin-bottom: clamp(1.5rem, 4vh, 2.6rem);
}

/* ---------- Cierre del proyecto: seguir explorando ---------- */
.p-end {
  position: relative;
  padding-block: clamp(5rem, 10vw, 8rem) clamp(3rem, 6vw, 5rem);
  color: var(--crema);
  background: var(--noche);
  overflow: hidden;
  isolation: isolate;
}
.p-end::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/brand/satin-h.webp") center / cover;
  opacity: 0.12;
  mix-blend-mode: soft-light;
}
.p-end .kicker {
  color: rgba(228, 220, 205, 0.6);
}
.p-end__head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.p-end__title {
  display: inline-block;
  margin: 0.6rem 0 0;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(3.6rem, 2.2rem + 5vw, 7.5rem);
  line-height: 1;
  color: #e3cfb2;
}
.p-end__actions {
  display: grid;
  border-top: 1px solid rgba(228, 220, 205, 0.2);
}
.p-end__cta {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2.4rem) clamp(0.5rem, 2vw, 1.5rem);
  border-bottom: 1px solid rgba(228, 220, 205, 0.2);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.6s var(--ease-out);
}
.p-end__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--vino);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s var(--ease-out);
}
.p-end__cta:hover::before,
.p-end__cta:focus-visible::before {
  transform: scaleY(1);
}
.p-end__num {
  font-family: var(--f-serif);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: rgba(228, 220, 205, 0.55);
}
.p-end__label {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.2rem + 3vw, 4.4rem);
  line-height: 1.05;
  transition: transform 0.7s var(--ease-out);
}
.p-end__label em {
  font-weight: 400;
  color: #e3cfb2;
}
.p-end__cta:hover .p-end__label {
  transform: translateX(0.6rem);
}
.p-end__arrow {
  display: grid;
  place-items: center;
  width: clamp(3rem, 5vw, 4.4rem);
  aspect-ratio: 1;
  border: 1px solid rgba(228, 220, 205, 0.4);
  border-radius: 50%;
  transition: background 0.5s var(--ease-out), color 0.5s, transform 0.7s var(--ease-out);
}
.p-end__arrow svg {
  width: 40%;
  height: 40%;
}
.p-end__cta:hover .p-end__arrow {
  background: var(--crema);
  color: var(--vino);
  transform: rotate(-45deg);
}
.p-end__list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.6rem);
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
}
.p-end__tile {
  display: grid;
  gap: 0.6rem;
  opacity: 0.6;
  transition: opacity 0.5s var(--ease-out);
}
.p-end__tile:hover,
.p-end__tile.is-current {
  opacity: 1;
}
.p-end__thumb {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 999px 999px 2px 2px;
}
.p-end__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.p-end__tile:hover .p-end__thumb img {
  transform: scale(1.08);
}
.p-end__tile.is-current .p-end__thumb {
  outline: 1px solid #e3cfb2;
  outline-offset: 4px;
}
.p-end__tnum {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: rgba(228, 220, 205, 0.6);
}
.p-end__tnum .star {
  width: 0.7rem;
  height: 0.7rem;
  color: #e3cfb2;
}
.p-end__tname {
  font-family: var(--f-serif);
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.2rem);
  line-height: 1.15;
}
@media (max-width: 900px) {
  .p-end__list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 38%;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
  }
  .p-end__list li {
    scroll-snap-align: start;
  }
  .p-end__num {
    display: none;
  }
  .p-end__cta {
    grid-template-columns: 1fr auto;
  }
}
.p-end__head .kicker {
  display: block;
}
.g-plans > .shot--tall:only-child {
  max-width: 720px;
}
