@font-face {
  font-family: Space;
  src: url("assets/fonts/space-grotesk-latin-v22.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter-latin-v20.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Space, Arial, sans-serif;
  color: #292b25;
  background: #d7c8b4;
  --paper: #efe9df;
  --frame-max-width: 240svh;
  --night: 0;
  --progress: 0;
  --film-opacity: 0;
  --travel: 210svh;
  --control-ink: #242820;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid #34382e;
  outline-offset: 4px;
}
.skip {
  position: fixed; top: -100px; left: 20px; z-index: 30;
  padding: 16px; background: var(--paper);
}
.skip:focus { top: 16px; }
.nav {
  position: fixed; z-index: 10; top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--frame-max-width));
  display: flex; justify-content: flex-end;
  padding: 24px 32px; pointer-events: none;
}
.nav a { pointer-events: auto; }
.catalog-link, .light-switch {
  font-family: Inter, Arial, sans-serif;
  font-size: 14px; font-weight: 500; line-height: 1;
  letter-spacing: .015em;
  color: var(--control-ink);
  background: rgba(248,245,237,.58);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 3px 14px rgba(31,26,16,.045);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  backdrop-filter: blur(14px) saturate(115%);
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.catalog-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; min-width: 112px; padding: 14px 22px;
  white-space: nowrap;
}
.catalog-link:focus-visible, .light-switch:focus-visible {
  background: rgba(248,245,237,.84);
  box-shadow: 0 0 0 6px rgba(248,245,237,.65);
}
@media (hover:hover) {
  .catalog-link:hover, .light-switch:hover {
    background: rgba(248,245,237,.76);
    border-color: rgba(255,255,255,.7);
  }
  .catalog-link:hover { transform: translateY(-1px); }
}
.catalog-link:active { transform: scale(.985); }
.catalog-link[data-destination='inicio'] {
  font-family: Space, Arial, sans-serif;
  font-size: 15px; font-weight: 400; letter-spacing: .24em;
  padding-inline: 18px; text-indent: .24em;
}
.intro { height: calc(100svh + var(--travel)); position: relative; }
.intro:focus { outline: none; }
.stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate;
  background: #d7c8b4;
}
.scene {
  position: relative; width: min(100%, var(--frame-max-width)); height: 100%;
  margin: 0 auto; overflow: hidden;
}
.day-image {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.night-image { opacity: var(--night); pointer-events: none; }
.night-image:not([src]) { display: none; }
.original {
  position: absolute; overflow: hidden; pointer-events: none;
  mask-image: url("assets/intro/light-refinement-v1/product-mask-v3.svg");
  mask-size: 100% 100%; mask-repeat: no-repeat;
}
.film { display: block; width: 100%; height: 100%; object-fit: fill; opacity: 0; }
.film.is-ready { opacity: var(--film-opacity); }
.cue {
  position: absolute; bottom: calc(30px + env(safe-area-inset-bottom));
  left: max(24px, calc((100% - var(--frame-max-width)) / 2 + 36px));
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px; font-weight: 450; line-height: 1.4; letter-spacing: .02em;
  color: #30332b; white-space: nowrap;
  text-shadow: 0 1px 6px rgba(247,243,232,.6);
  opacity: clamp(0, calc(1 - var(--progress) * 2.5), 1);
  transform: translateY(calc(var(--progress) * -7px));
  pointer-events: none;
}
.cue-line {
  position: relative; width: 1px; height: 18px;
  background: rgba(48,51,43,.25); border-radius: 1px;
}
.cue-line i {
  position: absolute; top: 0; width: 1px; height: 7px;
  background: #30332b; border-radius: 1px;
}
.progress { position: absolute; inset: auto 0 0; height: 2px; background: #ffffff15; }
.progress i {
  display: block; width: 100%; height: 100%; background: #f0e2c4;
  transform: scaleX(var(--progress)); transform-origin: left;
}
.light-switch {
  display: none; position: absolute; bottom: calc(28px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%); min-height: 48px;
  padding: 14px 20px; cursor: pointer;
}
.media-message {
  position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%);
  width: 380px; max-width: calc(100% - 40px); padding: 12px 16px;
  background: #f1eadd; color: #242720;
  font-family: Inter, Arial, sans-serif; font-size: 14px; text-align: center;
}
.media-message[hidden] { display: none; }
.collection {
  position: relative; min-height: 100svh; padding: 110px max(28px,5vw) 70px;
  background: #ebe6dd; outline: none;
  display: flex; flex-wrap: wrap; align-items: baseline; align-content: flex-start;
  justify-content: space-between; gap: 24px;
}
.collection h1 {
  margin: 0; font-size: clamp(36px,5vw,76px); font-weight: 400;
  letter-spacing: -.045em; line-height: 1.1;
}
.collection > a {
  padding-bottom: 8px; font-family: Inter, Arial, sans-serif;
  font-size: 14px; border-bottom: 1px solid #8b877d;
}
.collection > a span { margin-left: 24px; }
html[data-view="vertical"] { --travel: 175svh; }
html[data-view="vertical"] .nav { padding: calc(20px + env(safe-area-inset-top)) 20px 0; }
html[data-view="vertical"] .cue {
  left: 50%; bottom: calc(32px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(calc(var(--progress) * -7px));
}
html[data-view="vertical"] .collection { display: block; padding-top: 96px; }
html[data-view="vertical"] .collection > a { display: inline-block; margin-top: 30px; }
html[data-media-error="true"] .light-switch { display: block; }
html[data-media-error="true"] .cue { display: none; }
@media (min-width:761px) {
  html[data-view="vertical"] main { max-width: 480px; margin: 0 auto; }
  html[data-view="vertical"] .nav { max-width: 480px; }
  html[data-view="vertical"] body { background: #282924; }
}
@media (max-width:560px) {
  html[data-view="horizontal"] .nav { padding: 20px; }
}
@media (max-height:480px) and (orientation:landscape) {
  .nav { padding: 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { height: 100svh; }
  .cue, .progress, .original { display: none; }
  .light-switch { display: block; }
  .catalog-link, .light-switch { transition: none; }
}
