/* The homepage, 2026-11-03 (content/global/home-design-plan.md). A beauty brand's front page: the object held large on
   its colour, very few words, depth and colour doing the work. Matter throughout; spacing between chapters is generous on
   purpose. Motion lives in OG.initHomeHero and OG.initHomeMotion (assets/site.js); without them every element is still. */

/* ---------- Hero: the five names and the bottle in front ---------- */
.ohh{--ohh-bg:var(--coconut-bg);--ohh-ink:var(--coconut-ink);position:relative;min-height:100svh;overflow:hidden;isolation:isolate;
  display:grid;place-items:center;padding:clamp(6rem,10vh,8rem) var(--gutter) clamp(9rem,18vh,12rem);
  background:var(--ohh-bg);color:var(--ohh-ink);transition:background-color .9s var(--ease,ease),color .9s var(--ease,ease)}
.ohh[data-world="sage"]{--ohh-bg:var(--sage-bg);--ohh-ink:var(--sage-w-ink)}
.ohh[data-world="cedar"]{--ohh-bg:var(--cedar-bg);--ohh-ink:var(--cedar-ink)}
.ohh[data-world="peach"]{--ohh-bg:var(--peach-bg);--ohh-ink:var(--peach-ink)}
.ohh[data-world="vanilla"]{--ohh-bg:var(--vanilla-bg);--ohh-ink:var(--vanilla-ink)}
/* One name at a time (2026-11-03, owner: "very busy"): every slide sits in the same cell; the one on is the only one seen.
   Letters rise out of a mask word by word, the leaving name's letters rise away above it, so the line never shows two. */
.ohh__names{position:relative;z-index:1;display:grid;place-items:center;width:100%;min-height:calc(2 * .9 * clamp(2.4rem,8.4vw,9rem));
  transform:translate3d(var(--nx,0),var(--ny,0),0);will-change:transform}
.ohh__name{grid-area:1/1;display:block;max-width:min(94vw,80rem);text-align:center;font-family:var(--font-display);font-weight:700;
  text-transform:uppercase;letter-spacing:-.045em;line-height:.9;font-size:clamp(2.4rem,8.4vw,9rem);color:inherit;text-decoration:none;
  visibility:hidden}
.ohh__name.is-on,.ohh__name.is-out{visibility:visible}
.ohh__name:focus-visible{outline:2px solid currentColor;outline-offset:6px}
/* wide screens: the name parts around the bottle, never behind it; the gap is the bottle's own width (its stage is
   min(54svh,38rem) tall and the widest pack is 0.6 of its height), the type sized so the longest half fits beside it */
@media (min-width:901px){
  /* the gap is the showing bottle's body plus an even margin (owner: "big space and then bottle", then 2026-11-04 "too much space
     between text and bottle"): the body, never the picture with its nozzle, so both sides match; --ohh-body per name, OG.initHomeHero */
  .ohh__name{--ohh-gap:calc(min(54svh,38rem) * var(--ohh-body,.48) + clamp(1.8rem,2.8vw,2.8rem))}
  .ohh__name{max-width:none;width:100%;font-size:min(4.7vw,8.4svh,6.6rem)}
  .ohh__word{display:grid;grid-template-columns:minmax(0,1fr) var(--ohh-gap) minmax(0,1fr);align-items:center}
  .ohh__half--l{grid-column:1;justify-self:end;text-align:right}
  .ohh__half--r{grid-column:3;justify-self:start;text-align:left}
  .ohh__half{white-space:nowrap}
  .ohh__names{min-height:auto}
}
.ohh__w{display:inline-block;overflow:hidden;vertical-align:top;padding:0 .02em .08em;margin-bottom:-.08em;white-space:nowrap}
.ohh__c{display:inline-block;transform:translateY(108%)}
/* 2026-11-20, owner: "theres a strange tremor happening here". The arriving name started .22s in while the leaving one took
   up to .85s to clear, so two names shared the line, letters through letters. The leaving name is now gone by .6s and the
   arriving one starts after it; the bottle waits the same beat. */
.ohh__name.is-on .ohh__c{transform:none;transition:transform .9s cubic-bezier(.2,.75,.15,1) calc(.62s + var(--i) * 26ms)}
.ohh__name.is-out .ohh__c{transform:translateY(-108%);transition:transform .4s cubic-bezier(.55,0,.75,.35) calc(var(--i) * 9ms)}
/* without the letters split (no JavaScript), the name on is simply there */
.ohh__name:not([data-split]).is-on .ohh__word{display:inline}
.ohh__stage{--ohh-sh:min(54svh,38rem);position:absolute;z-index:2;left:50%;top:49%;height:var(--ohh-sh);aspect-ratio:3/5;pointer-events:none;
  transform:translate(-50%,-50%) translate3d(var(--bx,0),var(--by,0),0) scale(var(--bs,1));will-change:transform}
/* the bottle follows the name: it rises into place a beat later and lifts away as the next one comes */
.ohh__bottle{position:absolute;left:calc(50% + var(--ohh-sh) * var(--dx,0));bottom:0;height:100%;width:auto;max-width:none;transform:translate(-50%,7%) scale(.97);
  opacity:0;transition:opacity .5s var(--ease,ease),transform .6s var(--ease,ease);filter:drop-shadow(0 38px 46px rgba(0,0,0,.26))}
.ohh__bottle.is-on{opacity:1;transform:translate(-50%,0) scale(1);transition:opacity .8s var(--ease,ease) .8s,transform 1.1s cubic-bezier(.2,.75,.15,1) .8s}
.ohh__bottle.is-out{opacity:0;transform:translate(-50%,-4%) scale(.99)}
.ohh__shadow{position:absolute;left:50%;bottom:-1.2rem;width:70%;height:2.2rem;transform:translateX(-50%);border-radius:50%;
  background:radial-gradient(closest-side,rgba(0,0,0,.28),transparent);filter:blur(4px)}
/* the pack's own words, first: they change before the name does */
.ohh__need{display:grid;margin:0;font:500 .74rem/1 var(--font-sans);letter-spacing:.16em;text-transform:uppercase}
.ohh__need-i{grid-area:1/1;opacity:0;transform:translateY(.35rem);transition:opacity .4s var(--ease,ease),transform .5s var(--ease,ease)}
.ohh__need-i.is-on{opacity:.85;transform:none}
.ohh__need-i i{font-style:normal;opacity:.6}
.ohh__copy{position:absolute;z-index:3;left:0;right:0;bottom:clamp(1.8rem,5vh,3.4rem);display:grid;justify-items:center;gap:1.1rem;
  padding:0 var(--gutter);text-align:center}
.ohh__h{margin:0;font-family:var(--font-sans);font-weight:500;font-size:clamp(1rem,1.3vw,1.2rem);letter-spacing:.01em}
.ohh__ctas{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem}
.ohh__btn{display:inline-flex;align-items:center;min-height:2.9rem;padding:.8em 1.5em;border-radius:999px;font:500 .95rem var(--font-sans);
  text-decoration:none;transition:transform .3s var(--ease,ease),background-color .3s,color .3s}
.ohh__btn--ink{background:var(--ohh-ink);color:var(--ohh-bg)}
.ohh__btn--baby{background:#3D6E9E;color:#F6EFE8;box-shadow:0 8px 22px rgba(30,20,12,.16)}
.ohh__btn-pic{display:block;flex:none;width:2.15rem;height:2.15rem;border-radius:50%;object-fit:cover;transition:transform .5s var(--ease,ease)}
.ohh__btn--baby:hover .ohh__btn-pic{transform:scale(1.08)}
.ohh__btn--baby:focus-visible{outline-color:#3D6E9E}
.ohh__btn:hover{transform:translateY(-2px)}
.ohh__btn:focus-visible{outline:2px solid currentColor;outline-offset:3px}

.ohb{padding:clamp(3.5rem,8vw,7rem) var(--gutter);text-align:center;background:var(--paper);color:var(--ink)}
.ohb__line{margin:0 auto;max-width:21ch;font-family:var(--font-display);font-weight:300;font-size:clamp(1.9rem,4.6vw,4rem);line-height:1.06;letter-spacing:-.02em;text-wrap:balance}
.ohl{padding:clamp(7rem,13vw,13rem) var(--gutter) clamp(5rem,9vw,9rem);text-align:center;overflow:hidden}
.ohl__s{margin:0 auto;max-width:26ch;font-family:var(--font-display);font-weight:300;letter-spacing:-.035em;line-height:1.04;
  font-size:clamp(2.3rem,6.2vw,6.6rem);text-wrap:balance}
.ohl__pic{display:inline-block;width:1.7em;height:.82em;border-radius:999px;overflow:hidden;vertical-align:-.06em;margin:0 .08em}
.ohl__pic img{width:100%;height:100%;object-fit:cover;display:block}
.ohl.is-scrub .ohl__w{opacity:.14}
.ohl__link{display:inline-flex;gap:.5em;margin:clamp(2rem,4vw,3rem) 0 0;font:500 1rem var(--font-sans);color:inherit;
  text-decoration:underline;text-underline-offset:.3em}
.ohl__notes{margin:clamp(4rem,8vw,7rem) calc(var(--gutter) * -1) 0;overflow:hidden;white-space:nowrap;border-top:1px solid color-mix(in oklab,currentColor 18%,transparent);
  border-bottom:1px solid color-mix(in oklab,currentColor 18%,transparent);padding:1.1rem 0}
.ohl__track{display:inline-flex;animation:ohlRun 70s linear infinite}
.ohl__track span{font-family:var(--font-display);font-weight:300;font-size:clamp(1.1rem,2.2vw,1.9rem);letter-spacing:-.01em;padding-right:.4em}
@keyframes ohlRun{to{transform:translateX(-50%)}}

/* ---------- The close ---------- */
.ohc{display:grid;justify-items:center;gap:2.2rem;text-align:center;padding:clamp(8rem,16vw,15rem) var(--gutter)}
.ohc__h{margin:0;font-family:var(--font-display);font-weight:700;text-transform:uppercase;letter-spacing:-.045em;line-height:.9;
  font-size:clamp(2.6rem,8.4vw,8.8rem);text-wrap:balance}
.ohc__btn{display:inline-flex;align-items:center;min-height:3rem;padding:.85em 1.7em;border-radius:999px;background:var(--tg-ink);
  color:var(--tg-bg);font:500 1rem var(--font-sans);text-decoration:none}

@media (max-width:900px){
  .ohh{align-items:start;padding-top:clamp(6.5rem,20.6svh,11rem);padding-bottom:11rem}
  .ohh__name{font-size:clamp(2.1rem,11vw,4.8rem)}
  /* one line or two, the name's last line sits the same distance above the bottle (owner: "too much space between text and bottle") */
  .ohh__names{min-height:calc(3 * .9 * clamp(2.1rem,11vw,4.8rem));place-items:end center}
  /* 2026-11-20, owner: "and the text is hidden behind the bottle". The bottle was pinned at 56% of the section, which only
     cleared the name on a tall phone; on a short or half-width window it sat on the name. It now stands in the flow, straight
     under the name, at any height. */
  .ohh{align-content:start}
  .ohh__stage{--ohh-sh:min(40svh,22rem);position:relative;left:auto;top:auto;margin-top:.9rem;
    transform:translate3d(var(--bx,0),var(--by,0),0) scale(var(--bs,1))}
  .ohl__s{max-width:none}
}
@media (prefers-reduced-motion:reduce){
  .ohl__track{animation:none}
  .ohh,.ohh__name,.ohh__bottle,.ohh__c,.ohh__need-i{transition:none !important}
}

/* phones: this section is the second screen now, so the site's bottom bar is up. The copy clears it, and the bar already says Discover the range */
@media (max-width:760px){
  .ohh__copy{bottom:calc(4rem + .8rem);gap:.7rem}
  .ohh__btn--ink{display:none}
}
@media (max-width:760px) and (max-height:740px){
  .ohh__stage{--ohh-sh:33svh}
}

/* ===== The film, 2026-11-04: sections/og-nz-film.liquid, from India's commit d2f4ea42, OG.initFilm. */
.nzfilm{position:relative;z-index:2;height:100svh;min-height:520px;overflow:hidden;background:#1C1814;color:#F7F2E8;isolation:isolate}
/* the stop: OG.initFilm adds is-held, so the film sticks for 60svh of scroll per scene and scrolling moves through them */
.nzfilm-track.is-held{height:calc(100svh + var(--n,5) * 60svh)}
.nzfilm-track.is-held .nzfilm{position:sticky;top:0}
.nzfilm__ticks{display:none;justify-content:center;gap:6px;margin:0 0 .9rem}
.is-held .nzfilm__ticks{display:flex}
.nzfilm__ticks i{display:block;width:22px;height:2px;background:currentColor;opacity:.35;transition:opacity .4s}
.nzfilm__ticks i.is-on{opacity:1}
.nzfilm__s{position:absolute;inset:0;margin:0;opacity:0;transition:opacity 1s cubic-bezier(.4,0,.2,1)}
.nzfilm__s.is-on{opacity:1}
.nzfilm__s img{width:100%;height:100%;max-width:none;object-fit:cover;object-position:var(--pos);display:block;transform:scale(1.07);will-change:transform}
.nzfilm__s.is-on img{animation:nzfilmDrift 9s cubic-bezier(.16,.6,.3,1) both}
@keyframes nzfilmDrift{from{transform:scale(1.07)}to{transform:scale(1)}}
.nzfilm.is-paused .nzfilm__s.is-on img{animation-play-state:paused}
.nzfilm::after{content:"";position:absolute;inset:auto 0 0 0;height:62%;z-index:1;pointer-events:none;
  background:linear-gradient(to top,rgba(18,14,10,.72),rgba(18,14,10,.42) 42%,rgba(18,14,10,0))}
.nzfilm__copy{position:absolute;z-index:2;left:0;right:0;bottom:calc(env(safe-area-inset-bottom,0px) + clamp(1.8rem,5vh,3rem));
  padding-inline:max(16px,env(safe-area-inset-left,0px));text-align:center}
.nzfilm__kick{margin:0;font-size:.82rem;font-weight:500}
.nzfilm__h{margin:.5rem 0 0;font-family:var(--font-display);font-weight:300;font-size:clamp(1.7rem,2.5vw,2.25rem);line-height:1.15;letter-spacing:-.008em}
.nzfilm__p{margin:.65rem auto 0;max-width:62ch;font-size:clamp(.88rem,1vw,.98rem);line-height:1.45;text-wrap:balance}
.nzfilm__cta{display:inline-flex;align-items:center;justify-content:center;gap:.8em;min-width:min(14rem,70vw);min-height:46px;margin-top:1.15rem;padding:.6em 1.6em;box-sizing:border-box;
  border:1px solid currentColor;color:inherit;text-decoration:none;font-size:.9rem;font-weight:500;transition:background-color .3s,color .3s}
.nzfilm__cta:hover{background:#F7F2E8;color:#1C1814}
.nzfilm__arrow,.nzfilm__pause{position:absolute;z-index:3;appearance:none;border:0;background:none;padding:0;color:#F7F2E8;cursor:pointer;display:grid;place-items:center;width:44px;height:44px;
  filter:drop-shadow(0 1px 3px rgba(18,14,10,.5))}
.nzfilm__arrow svg{width:12px;height:22px}
.nzfilm__arrow--l{left:clamp(.5rem,2.4vw,2.2rem);top:50%;transform:translateY(-50%)}
.nzfilm__arrow--r{right:clamp(.5rem,2.4vw,2.2rem);top:50%;transform:translateY(-50%)}
.nzfilm__pause{right:clamp(.5rem,2.4vw,2.2rem);bottom:calc(env(safe-area-inset-bottom,0px) + clamp(1.4rem,4vh,2.4rem))}
.nzfilm__pause svg{width:12px;height:14px}
.nzfilm__pause .b{display:none}.nzfilm.is-paused .nzfilm__pause .a{display:none}.nzfilm.is-paused .nzfilm__pause .b{display:block}
.nzfilm button:focus-visible,.nzfilm__cta:focus-visible{outline:2px solid #F7F2E8;outline-offset:3px}
@media (max-aspect-ratio:4/5){
  .nzfilm__s img{object-position:var(--pos-p)}
  .nzfilm__arrow{top:auto;transform:none;bottom:calc(env(safe-area-inset-bottom,0px) + 42%)}
  .nzfilm::after{height:68%}
  .nzfilm__pause{top:calc(env(safe-area-inset-top,0px) + 4.6rem);bottom:auto}
}
@media (prefers-reduced-motion:reduce){
  .ohh__btn-pic{transition:none}
  .ohh__btn--baby:hover .ohh__btn-pic{transform:none}
  .nzfilm__s{transition:none}
  .nzfilm__s img,.nzfilm__s.is-on img{animation:none;transform:none}
}
/* nothing past the first scene or bottle is fetched until the reader is close: OG.initFilm and OG.initHomeHero add is-near */
.nzfilm:not(.is-near) .nzfilm__s:not(.is-on) img,.ohh:not(.is-near) .ohh__bottle:not(.is-on){display:none}
/* phones: the site's bottom bar is 4rem tall and this is past the first screen, so the copy clears it */
@media (max-width:760px){
  .nzfilm__copy{bottom:calc(env(safe-area-inset-bottom,0px) + 4rem + 1.1rem)}
  .nzfilm__p{margin-top:.5rem}
}

/* ===== Only Good Baby takes the homepage, 2026-11-04: sections/og-home-baby.liquid, OG.initHomeBaby. Baby's own look. */
.ohba{--hb-ground:#F6EFE8;--hb-ink:#33475A;--hb-ease:cubic-bezier(.2,.7,.1,1);background:var(--hb-ground);color:var(--hb-ink);
  padding:clamp(4.2rem,8svh,5.4rem) var(--gutter) var(--gutter);overflow:hidden}
.ohba__name{margin:0 0 0 -.03em;font-family:var(--font-display);font-weight:300;letter-spacing:-.05em;line-height:1;font-size:min(14.2vw,31svh);white-space:nowrap}
.ohba__w{display:inline-block;overflow:hidden;vertical-align:top;padding:0 .03em .12em 0;margin:0 -.03em -.12em 0}
.ohba__w > span{display:inline-block}
.ohba__sub{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.7rem 2rem;margin:clamp(.4rem,1svh,.9rem) 0 clamp(1rem,2.4svh,1.8rem)}
.ohba__h{margin:0;font-family:var(--font-display);font-weight:300;font-size:clamp(1.2rem,1.9vw,1.85rem);line-height:1.15;letter-spacing:-.015em}
.ohba__cta{display:inline-flex;align-items:center;gap:.6em;min-height:2.75rem;padding:.7em 1.5em;border-radius:999px;background:var(--hb-ink);color:var(--hb-ground);font-size:.98rem;font-weight:500;text-decoration:none;transition:transform .4s var(--hb-ease)}
.ohba__cta:hover{transform:translateY(-2px)}
.ohba__cta:focus-visible,.ohba__link:focus-visible{outline:2px solid var(--hb-ink);outline-offset:3px}
.ohba__row{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem}
.ohba__m{position:relative;height:clamp(24rem,56svh,44rem)}
.ohba__link{position:absolute;inset:0;display:block;color:#F6EFE8;text-decoration:none}
.ohba__clip{position:absolute;inset:0;display:block;overflow:hidden;border-radius:20px;background:#D9D2C8}
.ohba__img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;display:block}
.ohba__fade{position:absolute;inset:auto 0 0 0;height:62%;background:linear-gradient(to top,rgba(38,54,69,.74),rgba(38,54,69,.34) 46%,rgba(38,54,69,0));pointer-events:none}
.ohba__copy{position:absolute;left:clamp(1rem,1.8vw,1.7rem);right:clamp(1rem,1.8vw,1.7rem);bottom:clamp(1rem,1.8vw,1.6rem);display:block}
.ohba__moment{display:block;font-size:.76rem;font-weight:500;letter-spacing:.09em;text-transform:uppercase}
.ohba__prod{display:block;margin-top:.4rem;font-family:var(--font-display);font-weight:300;font-size:clamp(1.6rem,3.5vw,3.5rem);line-height:1;letter-spacing:-.03em}
.ohba__line{display:block;margin-top:.55rem;max-width:32rem;font-size:clamp(.92rem,1.1vw,1.08rem);line-height:1.35}
.ohba__side{display:none}
/* live */
.ohba.is-live .ohba__row{position:relative;display:block;height:clamp(24rem,56svh,44rem)}
.ohba.is-live .ohba__m{position:absolute;top:0;left:0;width:var(--hb-o,25%);height:100%;will-change:transform}
.ohba.is-ready .ohba__m{transition:transform 1s var(--hb-ease)}
.ohba.is-live .ohba__clip{border-radius:0}
.ohba.is-ready .ohba__clip{transition:clip-path 1s var(--hb-ease)}
/* a closed moment is a tinted strip, so its name reads on any part of the photograph */
.ohba.is-live .ohba__clip::after{content:"";position:absolute;inset:0;background:rgba(38,54,69,.46);transition:opacity .6s linear;pointer-events:none}
.ohba.is-live .ohba__m.is-open .ohba__clip::after{opacity:0}
.ohba.is-ready .ohba__img{transition:transform 1s var(--hb-ease)}
.ohba.is-live .ohba__copy{opacity:0;transform:translate3d(0,.6rem,0);transition:opacity .25s linear,transform .25s linear;pointer-events:none}
.ohba.is-live .ohba__m.is-open .ohba__copy{opacity:1;transform:none;transition:opacity .6s linear .35s,transform .9s var(--hb-ease) .35s}
.ohba.is-live .ohba__side{display:block;position:absolute;left:calc(var(--hb-c,80px) / 2);bottom:clamp(1rem,1.8vw,1.6rem);writing-mode:vertical-rl;transform:translateX(-50%) rotate(180deg);
  font-family:var(--font-display);font-weight:300;font-size:clamp(1.1rem,1.5vw,1.5rem);letter-spacing:-.015em;white-space:nowrap;transition:opacity .45s linear .3s}
.ohba.is-live .ohba__m.is-open .ohba__side{opacity:0;transition:opacity .15s linear}
/* the name rises once, as it arrives */
.ohba.is-live .ohba__w > span{transform:translateY(106%)}
.ohba.is-live.is-in .ohba__w > span{transform:none;transition:transform 1.1s var(--hb-ease) calc(var(--i) * 90ms)}
/* phone: a column */
.ohba.is-col .ohba__row{height:min(72svh,38rem)}
.ohba.is-col .ohba__m{width:100%;height:var(--hb-o,60%)}
.ohba.is-col .ohba__side{left:1rem;right:1rem;bottom:auto;top:calc(var(--hb-c,60px) / 2);writing-mode:horizontal-tb;transform:translateY(-50%);font-size:1.2rem}
@media (max-width:760px){
  .ohba__name{white-space:normal;font-size:min(25vw,15svh);line-height:.94}
  .ohba__row{grid-template-columns:1fr}
  .ohba__m{height:min(62svh,26rem)}
  .ohba__prod{font-size:clamp(1.9rem,9vw,2.6rem)}
}
@media (min-width:761px) and (max-width:1000px){
  .ohba:not(.is-live) .ohba__row{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Breakout, 1 Dec 2026 (after Annnimate's Breakout Media). On a wide screen the film arrives as an inset card, rounded,
   with paper round it, and opens out to every edge of the screen as its track reaches the top; the words arrive once it
   is full. Driven by the scroll itself (a view timeline on the track), so there is no script and no library on the
   homepage, and it adds no second hold to the scene track the film already has. Browsers without scroll-driven
   animation, phones (the no-scrub rule) and reduced motion keep the full-bleed film exactly as before. */
@keyframes nzf-break{from{clip-path:inset(9% 6.5% 9% 6.5% round 1.6rem)}to{clip-path:inset(0 0 0 0 round 0)}}
@keyframes nzf-words{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@supports (animation-timeline:view()){
  @media (min-width:900px) and (prefers-reduced-motion:no-preference){
    .nzfilm-track{view-timeline-name:--nzf-break;view-timeline-axis:block}
    .nzfilm{animation:nzf-break cubic-bezier(.33,1,.68,1) both;animation-timeline:--nzf-break;animation-range:entry 30% entry 100%}
    .nzfilm__copy{animation:nzf-words linear both;animation-timeline:--nzf-break;animation-range:entry 80% entry 100%}
  }
}
