/* Glow & Bright · 9:16 film.
   One vertical clip per scene. Phones: clip fills the screen, header in the top 14%, words in the bottom third.
   Laptops and TVs: the same clip is a centre column that melts into the lilac page; words left, ingredient labels right. */
:root {
  --bg: #EDE6F2; --mist: #FBF9FD; --ink: #2A1336; --muted: #6E6079; --plum: #6E2C8A; --plum-d: #3B1150;
  --saffron: #C8461F; --line: #DCCFE7;
  --f-display: "Montserrat", "Helvetica Neue", Arial, sans-serif; --f-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4.5vw, 96px); --hdr: calc(env(safe-area-inset-top, 0px) + clamp(58px, 7vmin, 92px));
  --colw: calc(100svh * 9 / 16 * 1.42); --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: clamp(14px, .42vw + 12px, 20px); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
h1, h2, p { margin: 0; } h1, h2 { font-family: var(--f-display); text-wrap: balance; }
.eb { font-size: clamp(.62rem, 1.1vmin, .9rem); font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--plum); }

.hdr { background: var(--bg); position: fixed; z-index: 50; inset: 0 0 auto; height: var(--hdr); padding: env(safe-area-inset-top, 0px) var(--gutter) 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.hdr__btn { width: clamp(42px, 5vmin, 58px); aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); background: rgba(255, 255, 255, .7); display: grid; place-items: center; position: relative; cursor: pointer; }
.hdr__btn svg { width: 46%; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hdr__logo { justify-self: center; } .hdr__logo img { height: clamp(24px, 3.3vmin, 42px); width: auto; }
.hdr__bag { justify-self: end; }
.hdr__bag b { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--plum); color: #fff; display: grid; place-items: center; font-size: .64rem; font-weight: 600; }
.prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: color-mix(in srgb, var(--plum) 12%, transparent); }
.prog i { display: block; height: 100%; background: var(--plum); transform-origin: left; transform: scaleX(0); }

.film { position: relative; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }

/* the clip column (desktop) */
.stage { position: absolute; top: 0; bottom: 0; left: 50%; width: var(--colw); translate: -50% 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); }
.clip { position: absolute; inset: 0; opacity: 0; }
.clip img, .clip video { position: absolute; left: 0; width: 100%; top: -9%; height: 142%; object-fit: cover; }  /* desktop: zoom so the tube fills the screen height */
.clip video { opacity: 0; transition: opacity .25s; } .clip.ready video { opacity: 1; }

.copy { position: absolute; z-index: 3; left: var(--gutter); top: 50%; translate: 0 -50%; width: min(30vw, calc((100vw - var(--colw)) / 2 - var(--gutter) * 1.5)); display: grid; gap: clamp(10px, 1.8vmin, 22px); opacity: 0; pointer-events: none; }
.copy h1 { font-weight: 200; font-size: clamp(2.8rem, 8.6vmin, 8.4rem); line-height: .92; letter-spacing: -.02em; }
.copy h2 { font-weight: 200; font-size: clamp(2.5rem, 7.6vmin, 7.2rem); line-height: .95; letter-spacing: -.02em; }
.copy em { font-style: normal; font-weight: 300; color: var(--saffron); }
.copy p { color: var(--muted); font-size: clamp(.92rem, 1.6vmin, 1.35rem); line-height: 1.55; max-width: 34ch; }

.tags { position: absolute; z-index: 3; left: calc(50% + var(--colw) / 2 + 2vw); top: 50%; translate: 0 -50%; display: grid; gap: clamp(14px, 2.4vmin, 28px); opacity: 0; pointer-events: none; }
.tag { position: relative; display: grid; padding: 9px 18px 10px 32px; border-radius: 999px; background: rgba(255, 255, 255, .82); box-shadow: 0 14px 30px -18px rgba(59, 17, 80, .5); line-height: 1.25; justify-self: start; }
.tag::before { content: ""; position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px color-mix(in srgb, var(--saffron) 22%, transparent); }
.tag b { font-family: var(--f-display); font-weight: 600; font-size: clamp(.8rem, 1.35vmin, 1.1rem); }
.tag small { font-size: clamp(.66rem, 1.05vmin, .9rem); color: var(--muted); }

.cue { position: absolute; z-index: 3; right: var(--gutter); bottom: 5vmin; display: grid; justify-items: center; gap: 10px; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.cue i { width: 1px; height: 50px; background: linear-gradient(var(--plum), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { opacity: 0; } }

.loader { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: grid; place-items: center; transition: opacity .7s, visibility .7s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader img { width: min(220px, 55vw); }
.loader i { display: block; width: min(220px, 55vw); height: 2px; margin-top: 16px; background: var(--line); }
.loader i::after { content: ""; display: block; height: 100%; background: var(--plum); transform-origin: left; transform: scaleX(var(--p, .05)); transition: transform .3s; }
.next { padding: 18vh var(--gutter); text-align: center; }
.mtags { display: none; }

/* phones and portrait screens: the clip is the screen */
@media (orientation: portrait), (max-width: 760px) {
  .stage { left: 0; right: 0; width: auto; translate: none; -webkit-mask-image: none; mask-image: none; }
  .clip img, .clip video { top: -3%; height: 112%; left: -6%; width: 112%; }
  .copy { left: var(--gutter); right: var(--gutter); width: auto; top: auto; translate: none; bottom: calc(env(safe-area-inset-bottom, 0px) + 4svh); max-height: 31svh; gap: 8px; }
  .copy h1 { font-size: clamp(2.6rem, 12.5vw, 5.4rem); }
  .copy h2 { font-size: clamp(2.3rem, 11vw, 4.8rem); }
  .copy p { font-size: clamp(.86rem, 3.6vw, 1.2rem); }
  .tags { display: none; }
  .mtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
  .mtags span { font-size: .7rem; line-height: 1.2; padding: 5px 10px 6px 22px; border-radius: 99px; background: rgba(255,255,255,.8); color: var(--muted); position: relative; }
  .mtags span::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--saffron); }
  .mtags b { color: var(--ink); font-weight: 600; }
  .tag b { font-size: .74rem; } .tag small { font-size: .62rem; }
  .cue { bottom: auto; top: calc(var(--hdr) + 14px); }
}
@media (prefers-reduced-motion: reduce) { .cue i { animation: none; } }

/* glow chapter: benefit cards (right of the column on desktop, a 2x2 grid in the text block on phones) */
.bens { position: absolute; z-index: 3; left: calc(50% + var(--colw) / 2 + 1.5vw); right: var(--gutter); top: 50%; translate: 0 -50%; list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(10px, 1.6vmin, 16px); pointer-events: none; }
.bens li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .86); box-shadow: 0 16px 34px -24px rgba(59, 17, 80, .6); opacity: 0; max-width: 340px; }
.bens img { width: clamp(46px, 6vmin, 72px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.bens small { display: block; font-size: clamp(.58rem, .9vmin, .78rem); letter-spacing: .16em; text-transform: uppercase; color: var(--plum); font-weight: 500; }
.bens b { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(.86rem, 1.5vmin, 1.25rem); line-height: 1.2; }
.mbens { display: none; }
@media (orientation: portrait), (max-width: 760px) {
  .bens { display: none; }
  .mbens { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
  .mbens li { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 99px; background: rgba(255, 255, 255, .85); font-size: .72rem; line-height: 1.15; }
  .mbens img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
  .mbens b { font-weight: 600; }
}
/* a soft lilac floor under the clip */
.pin::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12svh; z-index: 2; pointer-events: none; background: linear-gradient(to top, var(--bg), transparent); }
/* phones: a soft lilac floor under the words so text never sits on the gel, foam or skin */
@media (orientation: portrait), (max-width: 760px) {
  .pin::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38svh; z-index: 2; pointer-events: none;
    background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 92%, transparent) 55%, transparent); }
}

/* ===== v3: icon columns, glow packshot, floating saffron ===== */
.copy { max-height: none; }
.tags { list-style: none; margin: 0; padding: 0; gap: clamp(18px, 3.4vmin, 40px); right: var(--gutter); }
.ic { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(12px, 1.6vmin, 20px); }
.ic i, .mic i, .gb i { display: grid; place-items: center; border-radius: 50%; flex: none;
  background: radial-gradient(120% 120% at 30% 20%, #fff 0%, #FBF8FD 55%, #F1E9F6 100%);
  box-shadow: inset 0 0 0 1px rgba(110, 44, 138, .14), 0 18px 34px -22px rgba(59, 17, 80, .55); }
.ic i { width: clamp(58px, 7.4vmin, 92px); aspect-ratio: 1; }
.ic svg, .mic svg, .gb svg { width: 52%; fill: none; stroke: var(--plum); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ic svg .a, .mic svg .a, .gb svg .a { stroke: var(--saffron); }
.ic b { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(.9rem, 1.55vmin, 1.3rem); line-height: 1.2; color: var(--ink); }
.ic small { display: block; margin-top: 3px; font-size: clamp(.62rem, 1vmin, .86rem); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* glow chapter: benefits as icons inside the text, packshot on the right */
.gb { list-style: none; margin: clamp(6px, 1.4vmin, 16px) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vmin, 22px) clamp(10px, 1.6vmin, 20px); }
.gb li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gb i { width: clamp(42px, 5.4vmin, 64px); aspect-ratio: 1; }
.gb small { display: block; font-size: clamp(.56rem, .85vmin, .74rem); letter-spacing: .14em; text-transform: uppercase; color: var(--plum); font-weight: 500; }
.gb b { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(.8rem, 1.35vmin, 1.1rem); line-height: 1.2; }
.gtube { left: calc(50% + var(--colw) / 2 - 2vw); right: auto; width: calc((100vw - var(--colw)) / 2 - var(--gutter)); display: grid; place-items: center; }
.gtube img { height: min(56svh, 620px); width: auto; filter: drop-shadow(0 40px 34px rgba(59, 17, 80, .28)); }
.gtube-m, .mic, .bens, .mbens { display: none; }

/* floating saffron: lives in the empty lilac around the clip, never over words */
.deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.deco img { position: absolute; height: auto; will-change: transform; transition: opacity .35s; }
.deco .d1 { left: 4%; top: 78%; width: clamp(80px, 11vmin, 150px); }
.deco .d2 { right: 5%; top: 13%; width: clamp(56px, 7.5vmin, 104px); filter: blur(1.2px); opacity: .9; }
.deco .d3 { left: 17%; top: 13%; width: clamp(34px, 4.6vmin, 60px); }
.deco .d4 { right: 18%; top: 79%; width: clamp(44px, 6vmin, 80px); }
.deco .d5 { left: 3%; top: 16%; width: clamp(22px, 3vmin, 40px); filter: blur(.8px); }
.deco .d6 { right: 3%; top: 70%; width: clamp(24px, 3.4vmin, 44px); }
.deco .d7 { left: 28%; top: 84%; width: clamp(30px, 4.2vmin, 56px); filter: blur(1.4px); opacity: .8; }
.deco .d8 { right: 29%; top: 88%; width: clamp(38px, 5vmin, 66px); filter: blur(2.4px); opacity: .7; }
.deco .d9 { right: 30%; top: 15%; width: clamp(26px, 3.4vmin, 44px); filter: blur(1px); }

@media (orientation: portrait), (max-width: 760px) {
  .tags, .mtags { display: none; }
  .mic { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 2px 0 0; padding: 0; }
  .mic li { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .mic i { width: 38px; height: 38px; }
  .mic b { display: block; font-family: var(--f-display); font-weight: 600; font-size: .74rem; line-height: 1.15; color: var(--ink); }
  .mic small { display: block; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
  .gb { gap: 8px 10px; margin-top: 2px; }
  .gb i { width: 36px; height: 36px; }
  .gb b { font-size: .74rem; } .gb small { font-size: .52rem; letter-spacing: .1em; }
  .gtube-m { display: block; position: absolute; right: 2px; bottom: calc(100% - 4.4em); height: clamp(120px, 21svh, 190px); width: auto; filter: drop-shadow(0 22px 18px rgba(59, 17, 80, .3)); }
  .copy[data-k="c5"] h2, .copy[data-k="c5"] p.dk { padding-right: 34%; }
  .clip img, .clip video { object-fit: fill; }
  .deco .d1 { left: -5%; top: 46%; width: 22vw; }
  .deco .d2 { right: -3%; top: 14%; width: 15vw; }
  .deco .d3 { left: 4%; top: 13%; width: 8vw; }
  .deco .d4 { right: 2%; top: 44%; width: 10vw; }
  .deco .d5, .deco .d7, .deco .d8, .deco .d9 { display: none; }
  .deco .d6 { right: 14%; top: 11.5%; width: 6vw; }
}
/* v3.1 refinements */
.copy > * { min-width: 0; }
.deco .d5, .deco .d8, .deco .d9 { display: none; }
@media not all and (orientation: portrait) { @media (min-width: 761px) { .gb { grid-template-columns: 1fr; } } }
@media (orientation: portrait), (max-width: 760px) {
  .pin::after { height: 46svh; background: linear-gradient(to top, var(--bg) 0%, var(--bg) 52%, color-mix(in srgb, var(--bg) 70%, transparent) 76%, transparent); }
  .deco { transition: opacity .5s; }
  .deco .d1 { left: -4%; top: 44%; width: 17vw; }
  .deco .d2 { display: none; }
  .gtube-m { right: 8px; bottom: calc(100% - 3.2em); height: clamp(96px, 17svh, 168px); }
}
@media (orientation: portrait), (max-width: 760px) {
  .pin::after { height: 38svh; background: linear-gradient(to top, var(--bg) 0%, var(--bg) 46%, color-mix(in srgb, var(--bg) 80%, transparent) 66%, transparent); }
  .deco .d6 { display: none; }
}
