:root {
  --wine: #681f1b;
  --ink: #360b08;
  --ivory: #f4ddbb;
  --paper: #fbf4e8;
  --gold: #c9934b;
  --serif: "Cormorant Garamond", Georgia, serif;
  --labels: Montserrat, sans-serif;
  --body: Lato, sans-serif;
  --header: 72px;
  --gutter: clamp(24px, 6.25vw, 108px);
  --line: rgba(244, 221, 187, .25);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 var(--body); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
section { scroll-margin-top: var(--header); }
p, figure { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: .96; }
h2 { font-size: clamp(3.5rem, 7vw, 7rem); letter-spacing: -.055em; }
h3 { font-size: clamp(2rem, 3.1vw, 3.5rem); letter-spacing: -.035em; }
em { font-weight: 500; }
.eyebrow { font: 600 .68rem/1.55 var(--labels); letter-spacing: .18em; text-transform: uppercase; }
.eyebrow > span { color: #894a23; margin-right: .4em; }
.site-header {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  height: var(--header); padding-inline: var(--gutter); background: #441211; color: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.logo { display: block; width: 108px; flex: none; }
.site-header nav, footer nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 52px); font: 500 .73rem/1.4 var(--labels); }
.site-header nav a:hover, footer nav a:hover { color: white; }
.nav-action { border: 1px solid var(--line); padding: 12px 17px; }
.nav-action span, .button span, .text-link span { margin-left: .7em; }
.menu-toggle { display: none; }
.hero { --p: 1; --r: 1; --m: 1; --mask-opacity: 1; --orbit-x: 0; --orbit-y: 0; --bottles-opacity: 0; color: var(--ivory); background: #40100e; }
.hero.is-animated { min-height: 205svh; }
.stage {
  height: calc(100svh - var(--header)); min-height: 510px; position: relative; isolation: isolate; overflow: hidden;
  background: #4c1513;
}
.is-animated .stage { position: sticky; top: var(--header); }
.stage-light {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 51% 70%, #ad663e55 0%, transparent 42%),
    radial-gradient(ellipse at 26% 13%, #aa5b3b80 0%, transparent 52%),
    linear-gradient(115deg, #6e2b21, #491313 55%, #2c090a);
}
.stage-light::after {
  content: ""; position: absolute; inset: 0; opacity: .26; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.74' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' opacity='.28' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.stage-top {
  position: absolute; top: clamp(22px, 5vh, 48px); inset-inline: var(--gutter); display: flex;
  justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--line);
}
.intro { position: absolute; z-index: 2; top: 14%; inset-inline: 20px; text-align: center; color: #f5d3ac; }
.horizon {
  position: absolute; z-index: -1; inset: 73% 0 0;
  background: radial-gradient(ellipse at 51% 0%, #bd825452, transparent 59%), linear-gradient(#3b0d0c75, #260807);
  border-top: 1px solid #de9b6844;
}
.pack {
  position: absolute; bottom: 25%; pointer-events: none; transform-origin: 50% 98%;
  filter: drop-shadow(10px 16px 14px #2306049c);
}
.pack svg { display: block; width: 100%; height: auto; }
.pack-left, .pack-right {
  --orbit-radius: 120%;
  --orbit-height: clamp(24px, 6svh, 64px);
  left: 50%; width: min(11vw, 18svh, 176px); min-width: 90px; opacity: var(--bottles-opacity);
}
.pack-left {
  transform: translate(calc(-50% - var(--orbit-x) * var(--orbit-radius)), calc(-1 * var(--orbit-y) * var(--orbit-height)));
}
.pack-right {
  transform: translate(calc(-50% + var(--orbit-x) * var(--orbit-radius)), calc(var(--orbit-y) * var(--orbit-height)));
}
.pack-mask {
  left: 50%; bottom: 25%; width: min(31vw, 40svh, 420px); z-index: 1;
  opacity: var(--mask-opacity); transform: translate(-50%, calc((1 - var(--m)) * 90%)) scale(calc(.76 + var(--m) * .24));
  filter: drop-shadow(15px 19px 20px #230604a8);
}
.reveal {
  position: absolute; z-index: 2; top: 18%; inset-inline: 14px; text-align: center; pointer-events: none;
  opacity: var(--r); filter: blur(calc((1 - var(--r)) * 13px)); transform: translateY(calc((1 - var(--r)) * 14px));
}
.reveal h1 { font-size: clamp(4rem, 8.5vw, 9.5rem); letter-spacing: -.06em; text-shadow: 0 2px 20px #360b0888; }
.hero-action { position: absolute; z-index: 3; bottom: 10%; inset-inline: 16px; text-align: center; opacity: var(--r); }
.hero[data-state="inicio"] .hero-action, .hero[data-state="transicion"] .hero-action { visibility: hidden; }
.button {
  display: inline-flex; gap: 8px; align-items: center; justify-content: center;
  padding: 15px 22px; border: 1px solid transparent; min-height: 48px;
  font: 600 .68rem/1.3 var(--labels); letter-spacing: .09em; text-transform: uppercase;
}
.button-ivory { background: var(--ivory); color: var(--ink); }
.button-ivory:hover { background: #fff0d9; }
.scroll-cue {
  position: absolute; z-index: 3; bottom: 9.5%; left: 50%; transform: translateX(-50%); display: grid; gap: 10px;
  text-align: center; font: 500 .68rem var(--labels); letter-spacing: .1em;
}
.scroll-cue span:last-child { font: 1.5rem var(--serif); }
.hero[data-state="transicion"] .scroll-cue { bottom: 3%; }
.hero[data-state="revelacion"] .scroll-cue { visibility: hidden; }
.scene-index {
  display: flex; align-items: center; gap: 10px; position: absolute; right: var(--gutter); bottom: 5%;
  font: 500 .65rem var(--labels); letter-spacing: .08em;
}
.scene-track { display: block; width: 78px; height: 1px; background: var(--line); }
.scene-track::after { content: ""; display: block; width: calc(12% + var(--p) * 88%); height: 1px; background: var(--ivory); }
.section-pad { padding: clamp(70px, 9vw, 145px) var(--gutter); }
.section-heading { text-align: center; margin-bottom: clamp(32px, 5vw, 70px); }
.section-heading h2, .story h2, .access h2 { margin-block: 15px 20px; }
.section-heading > p:last-child, .story-copy > p:not(.eyebrow):not(.signature) { color: #633b2e; }
.products { display: grid; grid-template-columns: 1fr 1.26fr 1fr; gap: clamp(18px, 3.1vw, 56px); max-width: 1320px; margin-inline: auto; }
.product figure { position: relative; margin-bottom: 22px; background: #d6b188; }
.product figure img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.product:not(.featured) { padding-top: clamp(22px, 3.5vw, 60px); }
.product.featured figure { outline: 1px solid #b684565f; outline-offset: 6px; }
.featured figcaption {
  position: absolute; bottom: 0; left: 0; background: var(--wine); color: var(--ivory);
  padding: 9px 14px; font: 600 .58rem var(--labels); letter-spacing: .14em; text-transform: uppercase;
}
.product h3 { margin-top: 8px; }
.product ul { padding-left: 16px; color: #633b2e; font-size: .95rem; }
.product li::marker { color: #894a23; }
.text-link { font: 600 .67rem/1.5 var(--labels); text-decoration: underline; text-underline-offset: 5px; }
.story {
  display: grid; align-items: center; grid-template-columns: 1.08fr 1fr; gap: clamp(40px, 9vw, 150px);
  border-top: 1px solid #b6845647; background: #f4e5d2;
}
.portraits { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 14px; }
.portraits img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.portraits img:last-child { margin-bottom: -20px; }
.story-copy p { max-width: 38ch; }
.signature { margin-top: 22px; font: italic 500 clamp(1.5rem, 3vw, 2.7rem)/1.12 var(--serif); }
.access {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(36px, 8vw, 128px); color: var(--ivory);
  background: radial-gradient(ellipse at 10% 80%, #763025, transparent 65%), #471412;
}
.access .eyebrow > span { color: var(--ivory); }
.access h2 { font-size: clamp(3.3rem, 6.6vw, 6.5rem); }
form { display: grid; gap: 8px; }
form label { font: 600 .7rem var(--labels); }
form input, form select {
  min-width: 0; width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 0;
  padding: 9px 13px; color: var(--ivory); background: #360b0860; margin-bottom: 12px;
}
.phone-fields { display: grid; grid-template-columns: minmax(100px, .65fr) minmax(0, 1.35fr); gap: 8px 12px; }
.phone-fields > div { min-width: 0; display: grid; gap: 8px; }
.phone-fields input { margin-bottom: 0; }
.phone-fields small { grid-column: 1 / -1; color: #edc8aa; margin-bottom: 12px; font-size: .8rem; }
form option { background: var(--ink); color: var(--ivory); }
form input::placeholder { color: #e2b798; }
.form-note { color: #edc8aa; margin-top: 6px; font-size: .83rem; }
.form-status:not(:empty) { border-left: 2px solid var(--gold); padding-left: 10px; }
footer {
  display: flex; gap: 20px 32px; align-items: center; flex-wrap: wrap; padding: 30px var(--gutter);
  border-top: 1px solid var(--line); background: #320b0a; color: var(--ivory);
}
footer p { font: italic 500 1.55rem var(--serif); }
footer nav { margin-left: auto; }
@media (max-width: 740px) {
  :root { --header: 62px; }
  .site-header .logo { width: 90px; }
  .menu-toggle {
    display: block; background: transparent; color: inherit; border: 1px solid var(--line); min-height: 40px;
    padding: 7px 12px; font: 600 .68rem var(--labels);
  }
  .site-header nav { display: none; position: absolute; inset: 100% 0 auto; padding: 20px var(--gutter); background: #441211; }
  .site-header nav.is-open { display: grid; gap: 18px; justify-items: start; }
  .stage-top { gap: 10px; }
  .stage-top .eyebrow { font-size: .54rem; letter-spacing: .095em; }
  .intro { top: 17%; font-size: .56rem; }
  .reveal { top: 24%; }
  .reveal h1 { font-size: clamp(3rem, 12vw, 5.8rem); }
  .hero.is-animated { min-height: 160svh; }
  .pack-left, .pack-right {
    --orbit-radius: 79%; --orbit-height: 32px;
    width: min(29vw, 16svh, 150px); min-width: 0;
  }
  .pack-mask { width: min(59vw, 38svh, 320px); }
  .hero-action { bottom: 12%; }
  .scroll-cue { bottom: 10%; }
  .products, .story, .access { grid-template-columns: 1fr; }
  .product.featured { grid-row: 1; }
  .product:not(.featured) { padding-top: 18px; }
  .product figure img { aspect-ratio: 1 / 1; object-position: center 54%; }
  .story-copy { grid-row: 1; }
  footer nav { margin: 0; flex-wrap: wrap; }
}

@media (min-width: 741px) and (max-width: 1100px) and (orientation: portrait) {
  .pack-left, .pack-right {
    --orbit-radius: 100%;
    width: min(20vw, 17svh, 212px);
  }
  .pack-mask { width: min(43vw, 35svh, 430px); }
}

.product-details { background: #f0dfc9; border-top: 1px solid #b6845647; }
.product-details h2 { margin-bottom: 0; }

.annotated-products {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.34fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  max-width: 1360px;
  margin-inline: auto;
}
.annotated-photo {
  position: relative;
  isolation: isolate;
  background: var(--wine);
}
.annotated-photo img { width: 100%; height: auto; display: block; }
.annotated-featured .annotated-photo { outline: 1px solid #894a23; outline-offset: 5px; }
.annotated-product h3 { margin-block: 18px 8px; }
.collection .product-dialog-trigger, .product-details .product-dialog-trigger { font-size: 1rem; line-height: 1.5; min-height: 44px; text-align: left; }
.photo-notes { margin: 0; padding: 0; list-style: none; }
.photo-notes li {
  position: absolute;
  display: flex;
  align-items: center;
  max-width: 65%;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid #f4ddbb75;
  background: #360b08ed;
  color: var(--ivory);
  font: 600 clamp(.66rem, .95vw, .82rem)/1.2 var(--labels);
  box-shadow: 0 3px 12px #360b0840;
}
.photo-notes li::before {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px #c9934b44;
}
.photo-notes li:nth-child(1) { top: 12%; left: 4%; }
.photo-notes li:nth-child(2) { top: 50%; right: 4%; }
.photo-notes li:nth-child(3) { bottom: 10%; left: 4%; }
.annotated-featured .photo-notes li:nth-child(1) { top: 21%; }
.annotated-featured .photo-notes li:nth-child(2) { top: 42%; }

@media (max-width: 900px) {
  .annotated-products { grid-template-columns: 1fr; max-width: 530px; gap: 42px; }
  .annotated-featured { grid-row: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .collection { overflow-x: clip; }
  .collection .products { position: relative; }
  .collection .product { opacity: calc(1 - .62 * var(--ritual-remaining, 0)); }
  .collection .shampoo { transform: translateX(calc(clamp(-150px, -13vw, -54px) * var(--ritual-remaining, 0))); }
  .collection .conditioner { transform: translateX(calc(clamp(54px, 13vw, 150px) * var(--ritual-remaining, 0))); }
  .collection .featured { transform: translateY(calc(110px * var(--ritual-remaining, 0))); }
  .collection .product:has(:focus-visible) { --ritual-remaining: 0 !important; }
}

@media (prefers-reduced-motion: no-preference) {
  .photo-notes li {
    transform: translate(var(--note-x, 0px), var(--note-y, 0px));
    transition: transform 220ms ease-out;
  }
}

.product-dialog-trigger { padding: 0; border: 0; background: none; color: inherit; }
.product-dialog {
  width: min(900px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 90px #2306048c;
}
.product-dialog::backdrop { background: #260908bb; backdrop-filter: blur(5px); }
.product-dialog-layout { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.product-dialog-layout > img { width: 100%; height: 100%; object-fit: cover; }
.product-dialog-copy { align-self: center; padding: clamp(26px, 4vw, 58px); }
.product-dialog-copy h2 { font-size: clamp(2.7rem, 5.3vw, 5.4rem); margin-block: 10px 18px; }
.product-dialog-copy ul { padding-left: 1.15em; margin-block: 18px 24px; font-size: .9rem; }
.product-dialog-copy li + li { margin-top: 6px; }
.product-dialog-action { background: var(--wine); color: var(--ivory); }
.product-dialog-action:hover { background: var(--ink); }
.product-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  color: var(--ivory);
  background: var(--ink);
  font: 1.65rem/1 var(--body);
}
@media (max-width: 680px) {
  .product-dialog-layout { grid-template-columns: 1fr; }
  .product-dialog-layout > img { height: clamp(160px, 34dvh, 260px); object-position: center 62%; }
}

.product-dialog-copy h2 { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.photo-notes li:nth-child(4) { bottom: 6%; right: 4%; }
.annotated-featured .photo-notes li:nth-child(3) { bottom: 24%; }
