@font-face {
  font-family: "Cormorant Garamond";
  src: url("../comun/fuentes/cormorant.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --side: clamp(24px, 6vw, 104px);
  --sans: "Segoe UI", system-ui, sans-serif;
  --bodoni: "Bodoni Moda", "Bodoni MT", Georgia, serif;
  --paper-serif: Georgia, "Times New Roman", serif;
  --ink: #f0eee7;
  --muted: #bec9d5;
  --accent: #efd39d;
  --rule: #a6bbd43e;
  --ground: #0b1019;
  --display: var(--bodoni);
  --header-size: 80px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  background: var(--ground);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

[hidden] { display: none !important; }

.skip {
  position: fixed;
  z-index: 4;
  inset: .6rem auto auto 1rem;
  padding: .8rem 1rem;
  transform: translateY(-180%);
  color: var(--ground);
  background: var(--ink);
}

.skip:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 2;
  min-height: var(--header-size);
  width: min(100% - var(--side) * 2, 1440px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  justify-self: start;
  padding-block: .4rem;
  text-decoration: none;
  font: 400 2rem/.95 var(--bodoni);
  letter-spacing: -.065em;
}

.wordmark span { color: var(--accent); }

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.85rem, 3.2vw, 3.25rem);
}

.site-header nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: .35rem 0;
  color: var(--muted);
  font-size: .825rem;
  text-align: center;
  text-decoration: none;
  text-underline-offset: .35em;
}

.site-header nav a:hover { text-decoration: underline; }

.site-header nav a[aria-current] {
  color: var(--ink);
}

.site-header nav a[aria-current]::after {
  position: absolute;
  inset: auto 0 .25rem;
  height: 1px;
  background: var(--accent);
  content: "";
}

.motion-control {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .35rem .25rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .8rem;
  white-space: nowrap;
  cursor: pointer;
}

.motion-control:hover { color: var(--ink); }

.motion-control svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.motion-control .play-icon,
html:is([data-motion="paused"], [data-motion="finished"]) .pause-icon {
  display: none;
}

html:is([data-motion="paused"], [data-motion="finished"]) .play-icon {
  display: inline;
}

.scene {
  position: relative;
  isolation: isolate;
  width: min(100%, 1660px);
  margin-inline: auto;
  padding-inline: var(--side);
}

.scene-heading,
.scene-copy { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 clamp(1.05rem, 3vw, 2rem);
  color: var(--accent);
  font-size: .74rem;
  line-height: 1.6;
  letter-spacing: .19em;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: .99;
  letter-spacing: -.045em;
  text-wrap: balance;
}

h1 em { font-weight: inherit; }

.scene-copy {
  max-width: 45ch;
  color: var(--muted);
  font-size: clamp(1.025rem, 1.3vw, 1.125rem);
  line-height: 1.58;
}

.scene-copy p { margin: 0; }
.scene-copy p + p { margin-top: .65em; }

.artwork { margin: 0; }

.art-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.art-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.light-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.light-pass {
  fill: none;
  stroke: #ffe8ad;
  stroke-linecap: round;
  stroke-width: 1.6;
  stroke-dasharray: 100 900;
  stroke-dashoffset: 100;
  opacity: 0;
}

html:is([data-motion="playing"], [data-motion="paused"]) .light-pass {
  animation: light-travel 9s .4s both linear;
}

html[data-motion="paused"] .light-pass { animation-play-state: paused; }

@keyframes light-travel {
  0% { opacity: 0; stroke-dashoffset: 103; }
  13% { opacity: .8; }
  82% { opacity: .68; }
  100% { opacity: 0; stroke-dashoffset: -1001; }
}

.atlas .scene {
  display: grid;
  grid-template-areas: "title" "copy";
  align-content: center;
  justify-items: start;
  gap: clamp(2rem, 4vw, 3.5rem);
  min-height: min(830px, calc(100svh - var(--header-size)));
  padding-block: clamp(4.5rem, 8vw, 8rem);
}

.atlas .scene-heading { grid-area: title; }
.atlas .scene-copy { grid-area: copy; }

.atlas h1 {
  max-width: min(49vw, 700px);
  font-size: clamp(3.35rem, 5.25vw, 5.85rem);
}

.atlas .title-tail,
.editorial .title-tail { display: block; }

.atlas h1 em { color: var(--accent); }

.atlas .artwork {
  position: absolute;
  inset: 0 0 0 28%;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.atlas .art-frame {
  width: max(100%, 750px);
  margin-inline: auto;
  transform: translateY(clamp(38px, 5vw, 72px));
}

.atlas .artwork::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ground), #0b101900 27%);
  pointer-events: none;
  content: "";
}

.organic {
  --ink: #fff0e3;
  --muted: #e6c6c2;
  --accent: #ffc494;
  --rule: #edac9d47;
  --ground: #21121f;
  --display: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  background: radial-gradient(ellipse at 52% 80%, #3b2233, var(--ground) 72%);
}

.organic .scene {
  display: grid;
  justify-items: center;
  padding-top: clamp(2.4rem, 5vw, 5.2rem);
  padding-bottom: clamp(3.5rem, 5vw, 5.5rem);
  text-align: center;
}

.organic .eyebrow { margin-bottom: 1.25rem; }

.organic h1 {
  max-width: 21ch;
  font-size: clamp(3.15rem, 6.4vw, 6.7rem);
  line-height: .86;
  letter-spacing: -.043em;
}

.organic h1 em { color: #ffcdac; font-style: normal; }

.organic .artwork {
  position: relative;
  width: min(calc(100% + var(--side) * 2), 1290px);
  height: clamp(230px, 29vw, 365px);
  overflow: hidden;
  margin-top: -.5rem;
  margin-bottom: -.2rem;
  mask-image: linear-gradient(transparent, #000 14%, #000 84%, transparent),
    linear-gradient(90deg, transparent, #000 8%, #000 88%, transparent);
  mask-composite: intersect;
}

.organic .art-frame {
  position: absolute;
  width: max(100%, 580px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -57%);
}

.organic .light-pass {
  stroke: #fff2c6;
  stroke-width: 2.45;
}

.organic .scene-copy {
  max-width: 49ch;
  font-family: var(--paper-serif);
}

.editorial {
  --ink: #222620;
  --muted: #454940;
  --accent: #6a4528;
  --rule: #704d303a;
  --ground: #f4eee3;
  background: radial-gradient(ellipse at 80% 6%, #e8dfd1, transparent 56%), var(--ground);
}

.editorial .scene {
  display: grid;
  grid-template-areas: "title image" "copy image";
  grid-template-columns: minmax(0, 1fr) minmax(0, .87fr);
  grid-template-rows: 1fr auto;
  align-items: stretch;
  column-gap: clamp(2rem, 6vw, 7rem);
  row-gap: clamp(2.5rem, 5vw, 5rem);
  min-height: min(820px, calc(100svh - var(--header-size)));
  padding-top: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.editorial .scene-heading { grid-area: title; align-self: center; }

.editorial h1 {
  font-size: clamp(3.5rem, 5vw, 5.8rem);
}

.editorial .title-tail { font-size: .88em; }

.editorial h1 em {
  color: var(--accent);
}

.editorial .artwork {
  grid-area: image;
  min-height: 100%;
  min-width: 0;
}

.editorial .art-frame {
  width: 100%;
  height: 100%;
  min-height: clamp(440px, 47vw, 710px);
  background: #10191a;
}

.editorial .art-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial .light-pass {
  stroke: #ffeec2;
  stroke-width: 3;
}

.editorial .scene-copy {
  grid-area: copy;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
  font-family: var(--paper-serif);
}

.editorial .scene-copy p:first-child::first-letter {
  float: left;
  margin: .06em .09em 0 0;
  color: var(--accent);
  font: 400 3em/.82 var(--bodoni);
}

@media (max-width: 1000px) and (min-width: 761px) {
  .site-header nav { gap: .95rem; }
  .atlas h1, .editorial h1 { font-size: clamp(2.85rem, 5.25vw, 4.7rem); }
  .atlas .artwork { inset-inline-start: 23%; }
  .atlas .art-frame { width: max(100%, 690px); }
  .atlas .scene-copy { max-width: 35ch; }
}

@media (max-width: 760px) {
  :root { --side: clamp(20px, 5.2vw, 40px); }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr 1fr;
    column-gap: .35rem;
    row-gap: .15rem;
    min-height: 0;
    padding-top: .65rem;
  }

  .wordmark { grid-area: 1 / 1; font-size: 1.8rem; }
  .motion-control { grid-area: 1 / 2; }

  .site-header nav {
    grid-area: 2 / 1 / 3 / 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .4rem;
  }

  .site-header nav a { font-size: .77rem; }
  .site-header nav a[aria-current]::after { inset-inline: .4rem; }
}

@media (max-width: 760px) {
  .eyebrow { font-size: .69rem; letter-spacing: .15em; }

  .atlas .scene, .editorial .scene {
    display: grid;
    grid-template-areas: "title" "image" "copy";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.65rem;
    min-height: auto;
    padding-top: clamp(2.75rem, 8vw, 4rem);
    padding-bottom: 2.8rem;
  }

  .atlas h1, .editorial h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 9.7vw, 4.35rem);
  }

  .atlas .artwork {
    position: relative;
    grid-area: image;
    inset: auto;
    height: clamp(225px, 60vw, 415px);
    width: calc(100% + var(--side) * 2);
    margin-inline: calc(-1 * var(--side));
    mask-image: linear-gradient(transparent, #000 13%, #000 86%, transparent);
  }

  .atlas .artwork::after { display: none; }

  .atlas .art-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-55%, -51%);
    width: max(115%, 480px);
    margin: 0;
  }

  .organic .scene { padding-top: clamp(2.75rem, 8vw, 4.75rem); }

  .organic h1 {
    max-width: 17ch;
    font-size: clamp(2.55rem, 10.65vw, 5rem);
    line-height: .9;
  }

  .organic .artwork { height: clamp(200px, 48vw, 343px); }
  .organic .art-frame {
    width: max(100%, 515px);
    transform: translate(-44%, -55%);
  }

  .editorial .art-frame {
    min-height: 0;
    height: auto;
    aspect-ratio: 1 / 1.06;
  }

  .editorial .scene-copy { padding-top: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-control, .light-layer { display: none !important; }
  .light-pass { animation: none !important; }
}
