.formula-home .header { background: #faf8f3; }
.formula-home .formula-hero {
  --film-slide: 0vw;
  --hero-ivory: #fbf0de;
  --hero-gold: #efc795;
  --hero-subtle: #e0cab1;
  color: var(--hero-ivory);
  background: #160f0c;
}
.formula-hero.is-scroll-film { min-height: 500svh; }
.formula-pin {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: radial-gradient(ellipse at 100% 50%, #39261b, #160f0c 73%);
}
.is-scroll-film .formula-pin { position: sticky; top: 0; }
.formula-layout {
  min-height: 100svh;
  padding-block: calc(var(--header) + 1.5rem) clamp(.85rem, 2.35svh, 1.65rem);
  display: grid;
  grid-template-rows: 1fr;
  align-items: center;
}
.formula-screen { position: absolute; z-index: -1; inset: var(--header) 0 0; margin: 0; }
.formula-take { position: absolute; inset: 0; transform: translate3d(var(--film-slide), 0, 0); }
.formula-take picture, .formula-take img, .formula-take video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.formula-take img, .formula-take video { object-fit: cover; object-position: right center; }
.formula-take::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #160f0cdd, transparent 22%);
  pointer-events: none;
}
.formula-poster-open, .formula-take video { visibility: hidden; }
.is-scroll-film .formula-poster-open, .has-film .formula-take video { visibility: visible; }
.has-film .formula-poster, .is-scroll-film .formula-play { display: none; }
.formula-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #160f0c 0%, #160f0cf8 17%, #160f0cc4 33%, #160f0c22 53%, transparent 67%),
              linear-gradient(0deg, #160f0c 0%, #160f0c35 13%, transparent 25%);
}
.formula-copy { max-width: min(48%, 46rem); padding-block: 2rem; }
.formula-hero .formula-copy h1 {
  color: var(--hero-ivory);
  font-size: clamp(3.3rem, 6.8vw, 8rem);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.035em;
}
.formula-hero .formula-copy h1 em { display: block; color: var(--hero-gold); }
.formula-copy > p {
  max-width: 39ch;
  margin: clamp(.8rem, 2.4svh, 1.6rem) 0 clamp(.5rem, 1.4svh, .9rem);
  color: var(--hero-subtle);
  line-height: 1.5;
  font-size: clamp(.95rem, 1.2vw, 1.15rem);
}
.formula-actions { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: center; }
.formula-explore, .formula-play, .formula-product {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  min-height: 44px;
  color: var(--hero-ivory);
  font-size: .94rem;
  text-decoration: underline;
  text-underline-offset: .35em;
}
.formula-explore:hover, .formula-play:hover, .formula-product:hover { color: var(--hero-gold); }
.formula-product span, .formula-explore span { color: var(--hero-gold); }
.formula-hero:not(.is-scroll-film) .formula-explore,
.is-scroll-film.is-film-final .formula-explore,
.is-scroll-film:not(.is-film-final) .formula-product { display: none; }
@media (min-width: 761px) {
  .formula-take { left: 16%; }
  .formula-take img, .formula-take video { object-position: center; }
}
.formula-hero a:focus-visible { outline: 2px solid var(--hero-gold); outline-offset: 3px; }
.formula-home .formula-collection {
  padding-block: clamp(3.75rem, 6vw, 6.5rem) clamp(3rem, 6vw, 6rem);
  background: linear-gradient(180deg, #47362b, #d8bca1 24px, #f3e8d9 66px, #f8f4ec 145px);
}
.collection-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: clamp(1.35rem, 3vw, 3rem); }
.collection-heading h2 { font-size: clamp(2.6rem, 5.8vw, 6rem); letter-spacing: -.035em; }
.collection-heading > p { max-width: 36ch; color: #485565; font-size: 1rem; line-height: 1.55; }
.cream-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2.5vw, 42px); }
.cream-card { position: relative; min-width: 0; display: flex; flex-direction: column; background: #fdfbf7; border: 1px solid #d4c8b8; }
.cream-card > header {
  min-height: clamp(9rem, 14vw, 13.25rem);
  display: flex;
  flex-direction: column;
  padding: clamp(1.1rem, 2.55vw, 2.5rem);
  padding-bottom: .6rem;
}
.cream-card h3 { margin: 0; font-size: clamp(1.75rem, 3.4vw, 4.1rem); line-height: 1.02; letter-spacing: -.035em; }
.cream-card-links {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: .65rem;
  color: #142b46;
}
.cream-card-links span { font-size: .875rem; color: #53606e; }
.cream-card-links a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; font-size: .92rem; font-weight: 600; }
.cream-card-preview { display: none; }
.collection-resources {
  margin-top: clamp(1.3rem, 3vw, 3rem);
}
.multi-dossier-copy > p:first-child { color: #973548; font-size: .813rem; letter-spacing: .09em; line-height: 1.45; }

.pack-stage { min-width: 0; color: #142b46; }
.pack-viewport { position: relative; aspect-ratio: 1.18; overflow: hidden; isolation: isolate; }
.pack-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pack-stage canvas { touch-action: pan-y; cursor: grab; }
.pack-stage[data-zoomed] canvas { touch-action: none; cursor: move; }
.pack-stage canvas:active { cursor: grabbing; }
.pack-stage canvas:focus-visible { outline-offset: -4px; }
.pack-start,.pack-controls button {
  min-height: 44px; min-width: 44px; align-items: center; justify-content: center;
  display: inline-flex; gap: 7px; border: 1px solid #8795a6; border-radius: 999px; background: #fdfcf9f2;
  padding-inline: 14px; font-size: .85rem; font-weight: 600; color: #142b46; cursor: pointer;
}
.pack-start:hover,.pack-controls button:hover { background: #fff; border-color: #18344f; }
.model-anchor { position: absolute; top: 0; }
.pack-fallback { position: absolute; inset: auto 16px 16px; display: flex; align-items: center; gap: 1rem; }
.pack-fallback a { text-decoration: underline; text-underline-offset: .2em; font-size: .9rem; }
.pack-stage:not([data-pack-ready]) .pack-status { inset: 38% 1rem auto; text-align: center; }
.pack-start svg,.pack-controls svg { width: 16px; height: 16px; }
.pack-status { position: absolute; inset-inline: 16px; bottom: 66px; color: #243c56; font-size: .875rem; }
.pack-controls { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "zoom cap turn" "help help help"; align-items: center; gap: .4rem .5rem; padding: .5rem clamp(.45rem,1.1vw,1rem) .75rem; }
.pack-controls [data-pack-cap] { grid-area: cap; justify-self: end; }
.pack-help { grid-area: help; margin: 0; font-size: .84rem; line-height: 1.45; color: #34465a; }
.pack-turn,.pack-zoom { display: inline-flex; align-items: center; gap: 3px; }
.pack-turn { grid-area: turn; justify-self: end; }
.pack-zoom { grid-area: zoom; justify-self: start; }
.pack-turn button,.pack-zoom button { padding: 0 .2rem; }
.pack-zoom button { font-size: 1.18rem; }
.pack-zoom [data-pack-zoom="reset"] { font-variant-numeric: tabular-nums; font-size: .88rem; border-color: transparent; background: transparent; }
.pack-zoom button:disabled { opacity: .5; cursor: default; }
@media (max-width: 450px), (min-width: 761px) and (max-width: 1100px) {
  .pack-controls { grid-template-columns: 1fr auto; grid-template-areas: "zoom turn" "help cap"; gap: .55rem .4rem; }
}
.multi-dossier { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(20px,4vw,66px); padding-block: clamp(36px,7vw,110px); }
.multi-dossier h1 { margin-block: 12px 22px; font-size: clamp(3rem, 6.4vw, 8rem); line-height: .86; }
.multi-dossier-copy > p { line-height: 1.55; }
.multi-dossier .action { margin-top: 24px; }
.multi-product .footer-row { justify-content: space-between; min-height: 100px; }


@media (max-width: 760px) {
  .formula-hero.is-scroll-film { min-height: 388svh; }
  .formula-layout {
    padding-block: calc(var(--header) + 1rem) max(.65rem, env(safe-area-inset-bottom));
    grid-template-rows: auto minmax(0, 1fr);
    row-gap: .4rem;
  }
  .formula-copy { max-width: none; padding: 0; }
  .formula-hero .formula-copy h1 { font-size: clamp(2.35rem, 8.4vw, 4.2rem); line-height: 1; }
  .formula-hero .formula-copy h1 em { display: inline; }
  .formula-copy > p { margin: .5rem 0 .1rem; font-size: .9rem; }
  .formula-screen {
    position: relative;
    inset: auto;
    z-index: 0;
    align-self: stretch;
    width: calc(100% + var(--gutter) * 2);
    margin-inline: calc(-1 * var(--gutter));
    min-height: min(29svh, 12rem);
  }
  .formula-hero:not(.is-scroll-film) .formula-screen { min-height: min(60svh, 30rem); }
  .formula-take { transform: none; }
  .formula-take::after { display: none; }
  .formula-take img, .formula-take video { object-fit: contain; object-position: center; }
  .formula-screen::after { background: linear-gradient(0deg, #160f0c 0%, transparent 6%, transparent 95%, #160f0c 100%); }
  .collection-heading { display: block; }
  .collection-heading h2 { font-size: clamp(2.25rem, 8.5vw, 3.9rem); }
  .collection-heading > p { margin-top: .7rem; }
  .cream-pair { gap: clamp(8px, 2.8vw, 20px); }
  .cream-card > header { padding: .8rem clamp(.48rem, 2.8vw, 1.15rem) .2rem; min-height: 0; }
  .cream-card h3 { min-block-size: 3.15em; font-size: clamp(1.05rem, 4.9vw, 2.2rem); overflow-wrap: anywhere; }
  .cream-card-links { column-gap: .4rem; }
  .cream-card-links a { font-size: clamp(.82rem, 3.4vw, .96rem); }
  .cream-card-links span { font-size: .8rem; }
  .cream-card-preview {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: .96;
    object-fit: contain;
    object-position: center bottom;
    padding: .25rem .4rem .5rem;
    margin-top: auto;
    background: linear-gradient(180deg, #fdfbf7, #f0e7da);
  }
  .formula-home .cream-card .pack-stage { display: none; }
  .multi-dossier { grid-template-columns: minmax(0,1fr); }
  .pack-viewport { aspect-ratio: .87; }
}

@media (min-width: 761px) and (min-aspect-ratio: 19/10) {
  .formula-take img, .formula-take video { object-fit: contain; }
}

@media (max-height: 420px) and (orientation: landscape) {
  .formula-layout { min-height: max(25rem, 100svh); }
  .formula-take img, .formula-take video { object-fit: cover; object-position: right center; }
}

.cream-card-model { display: none; }
.pack-dialog {
  width: min(94vw, 32rem);
  max-height: 90svh;
  margin: auto;
  padding: 0;
  border: 1px solid #d4c8b8;
  color: #142b46;
  background: #fdfbf7;
}
.pack-dialog::backdrop { background: #101824d9; }
:root:has(.pack-dialog[open]) { overflow: hidden; }
.pack-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .4rem .65rem .4rem 1rem;
}
.pack-dialog h2 { font-size: clamp(1.3rem, 5vw, 2rem); line-height: 1.05; }
.pack-dialog form button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.pack-dialog form svg { width: 20px; height: 20px; }
.pack-dialog .pack-viewport { aspect-ratio: 1.05; }
.pack-dialog .pack-controls {
  grid-template-areas: "zoom turn" "help cap";
  grid-template-columns: 1fr auto;
}
@media (max-width: 760px) {
  .cream-card-model:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .25rem;
    border: 0;
    border-top: 1px solid #d4c8b8;
    background: transparent;
    color: #142b46;
    font-size: .84rem;
    cursor: pointer;
  }
}
@media (max-width: 360px) {
  .pack-dialog .pack-controls {
    grid-template-areas: "zoom turn" "cap cap" "help help";
  }
  .pack-dialog .pack-controls [data-pack-cap] { justify-self: start; }
}
