/* Spray layer: overspray, swashes, drips and splatter in brand colours.
   Each mark is a pseudo-element masked by an SVG in public/assets/texture,
   so colour comes from the tokens and the artwork stays one file per shape. */
:root{
  --spray-burst:url("./public/assets/texture/spray-burst.svg");
  --spray-stroke:url("./public/assets/texture/spray-stroke.svg");
  --spray-drips:url("./public/assets/texture/spray-drips.svg");
  --splatter:url("./public/assets/texture/splatter.svg");
}
body{background:var(--paper) url("./public/assets/texture/concrete.svg")}

.hero::before,.hero__copy::before,.hero__visual::before,
.intro::before,.care__art::before,.care__art::after,.step__number::before,
.club__copy::before,.final-cta::before,.final-cta__inner::before,
.page-hero::before,.page-hero::after,.product-hero::before,.product-ingredients::before,.product-statement::before{
  content:'';position:absolute;pointer-events:none;z-index:-1;
  -webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat;
  background:var(--c)
}

/* Hero: navy mist behind the photo, orange swash under the headline, splatter off the frame. */
.hero::before{--m:var(--spray-burst);--c:var(--ink);opacity:.2;width:900px;height:900px;right:-160px;top:-120px}
.hero__copy{isolation:isolate}
.hero__copy::before{--m:var(--spray-stroke);--c:var(--orange);width:min(660px,100%);aspect-ratio:10/3;left:-30px;top:calc(3.2 * clamp(88px,8.4vw,134px) - 128px);transform:rotate(-3deg)}
.hero__visual::before{--m:var(--splatter);--c:var(--ink);width:230px;height:230px;right:-90px;top:-80px;z-index:6;opacity:.85}

/* Ticker drips into the section below. */
.ticker{position:relative;z-index:4;overflow:visible;overflow-x:clip}
.ticker::after{content:'';position:absolute;left:0;right:0;top:calc(100% - 2px);height:84px;pointer-events:none;background:var(--ink);-webkit-mask:var(--spray-drips) 0 0/720px 100% repeat-x;mask:var(--spray-drips) 0 0/720px 100% repeat-x}

.intro{position:relative;isolation:isolate}
.intro::before{--m:var(--spray-burst);--c:var(--blue);opacity:.3;width:600px;height:480px;left:-90px;top:-30px;transform:rotate(18deg)}

/* Care: the orange poster becomes sprayed paint with ink splatter. */
.care__art::before{--m:var(--spray-burst);--c:var(--orange);inset:-20px -40px;clip-path:none;transform:rotate(-12deg) scale(1.35);z-index:0}
.care__art::after{--m:var(--splatter);--c:var(--ink);width:200px;height:200px;right:6%;top:12%;z-index:1;opacity:.9}

.step__number{position:relative;isolation:isolate;width:max-content}
.step__number::before{--m:var(--spray-burst);--c:var(--blue);opacity:.38;inset:-40px -50px}

.club__copy{position:relative;isolation:isolate;overflow:hidden}
.club__copy::before{--m:var(--spray-burst);--c:var(--blue);opacity:.22;width:620px;height:620px;right:-220px;top:-200px}

/* Closing CTA: navy paint running off the top edge, splatter around the stamp. */
.final-cta::before{--m:var(--spray-drips);--c:var(--ink);inset:0 0 auto;height:96px;z-index:0;-webkit-mask:var(--spray-drips) 0 0/720px 100% repeat-x;mask:var(--spray-drips) 0 0/720px 100% repeat-x}
.final-cta__inner{isolation:isolate}
.final-cta__inner::before{--m:var(--splatter);--c:var(--ink);width:190px;height:190px;left:calc(50% - 150px);top:calc(50% - 120px)}

/* Inner pages */
.page-hero::before{--m:var(--spray-burst);--c:var(--blue);opacity:.3;width:760px;height:760px;right:-200px;top:-260px}
.page-hero--orange::before{--c:var(--ink);opacity:.22;right:auto;left:42%;top:-140px}
.page-hero--blue::before{--m:var(--spray-stroke);--c:var(--orange);opacity:1;width:min(1100px,96%);aspect-ratio:10/3;height:auto;left:-60px;right:auto;top:auto;bottom:22%;transform:rotate(-5deg)}
.page-hero::after{--m:var(--splatter);--c:var(--ink);width:240px;height:240px;right:8%;bottom:-60px;opacity:.7;z-index:-1}
.page-hero--blue::after{--m:var(--spray-drips);--c:var(--ink);inset:0 0 auto;width:auto;height:90px;opacity:1;-webkit-mask:var(--spray-drips) 0 0/720px 100% repeat-x;mask:var(--spray-drips) 0 0/720px 100% repeat-x;background-image:none}

.product-hero{position:relative;isolation:isolate;overflow-x:clip}
.product-hero::before{--m:var(--spray-burst);--c:var(--blue);opacity:.28;width:720px;height:720px;left:-220px;top:-160px}
.product-ingredients{overflow-x:clip}
.product-ingredients::before{--m:var(--spray-burst);--c:var(--ink);opacity:.2;width:900px;height:900px;right:-260px;bottom:-320px}
.product-statement{position:relative;isolation:isolate;overflow:hidden}
.product-statement::before{--m:var(--spray-burst);--c:var(--orange);opacity:.16;width:700px;height:700px;right:-160px;top:-220px}

@media(max-width:1000px){
  .hero::before{width:640px;height:640px;right:-240px}
  .hero__visual::before{width:170px;height:170px;right:-50px;top:-60px}
}
@media(max-width:700px){
  .hero__copy::before{width:105%;left:-24px;top:calc(3.2 * clamp(58px,19vw,128px) - 70px)}
  .hero__visual::before,.final-cta__inner::before,.page-hero::after{display:none}
  .ticker::after{height:56px;-webkit-mask-size:480px 100%;mask-size:480px 100%}
  .intro::before{width:420px;height:360px;left:-140px}
  .final-cta::before{height:64px;-webkit-mask-size:480px 100%;mask-size:480px 100%}
  .page-hero--blue::before{width:120%;left:-30px;bottom:30%}
}

/* Night shift: the page goes after dark between the steps and "Bring your whole self".
   Orange turns from flat fill into streetlight glow; the wink becomes a neon sign that
   flickers on once when it scrolls into view. */
.night{position:relative;isolation:isolate;overflow:hidden;background:var(--ink);color:var(--paper);padding-top:150px}
.night__photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:72% 22%;z-index:-3;filter:brightness(.9) saturate(1.05)}
.night::before,.night::after{content:'';position:absolute;pointer-events:none;z-index:-1}
/* Streetlight overspray picks up the lamp in the photo; the ink wash keeps the headline readable. */
.night::before{background:var(--orange);opacity:.26;width:900px;height:900px;left:-260px;top:-360px;filter:blur(30px);-webkit-mask:var(--spray-burst) center/contain no-repeat;mask:var(--spray-burst) center/contain no-repeat}
.night::after{inset:0;z-index:-2;background:linear-gradient(90deg,var(--ink) 0%,color-mix(in srgb,var(--ink) 88%,transparent) 30%,color-mix(in srgb,var(--ink) 30%,transparent) 55%,transparent 72%),linear-gradient(0deg,var(--ink) 0%,transparent 26%)}
.night__grid{position:relative;padding-bottom:150px}
.night__copy{max-width:600px}
.night .display{font-size:clamp(84px,9vw,150px);line-height:.86;margin-bottom:0;text-shadow:0 0 60px color-mix(in srgb,var(--orange) 45%,transparent)}
.night__aside{font:clamp(30px,3vw,46px)/1 var(--marker);color:var(--orange);transform:rotate(-6deg);margin:8px 0 34px 38%}
.night__copy>p:not(.night__aside){max-width:40ch;font-size:16px;color:color-mix(in srgb,var(--paper) 86%,transparent);margin-bottom:30px}
/* Neon wink hung on the mural wall, between the copy and the couple. */
.night__sign{position:absolute;left:46%;top:-70px;width:150px;padding:20px;border:3px solid color-mix(in srgb,var(--blue) 70%,transparent);border-radius:22px;transform:rotate(6deg);opacity:.25;transition:opacity .2s}
.night__sign img{width:100%;height:auto}
.night__sign.is-lit{opacity:1;animation:neon-on 1.4s steps(1) both;box-shadow:0 0 24px color-mix(in srgb,var(--blue) 70%,transparent),inset 0 0 24px color-mix(in srgb,var(--blue) 45%,transparent)}
.night__sign.is-lit img{filter:drop-shadow(0 0 6px var(--blue)) drop-shadow(0 0 22px var(--blue)) drop-shadow(0 0 60px color-mix(in srgb,var(--blue) 60%,transparent))}
@keyframes neon-on{0%{opacity:.25}8%{opacity:1}14%{opacity:.3}22%{opacity:1}30%{opacity:.45}36%,100%{opacity:1}}
.ticker--night{background:transparent;border-top:1px solid color-mix(in srgb,var(--paper) 14%,transparent);padding:26px 0}
.ticker--night::after{display:none}
.ticker--night .ticker__inner{animation-duration:90s;font-size:16px}
.ticker--night .ticker__inner span{color:var(--paper)}
.ticker--night .ticker__inner span:nth-of-type(even){color:var(--orange);text-shadow:0 0 18px color-mix(in srgb,var(--orange) 70%,transparent)}
.night+.club{border-top:1px solid color-mix(in srgb,var(--paper) 14%,transparent)}
@media(max-width:1000px){
  .night__photo{object-position:78% 22%}
  .night::after{background:linear-gradient(90deg,var(--ink) 0%,color-mix(in srgb,var(--ink) 85%,transparent) 42%,color-mix(in srgb,var(--ink) 20%,transparent) 75%),linear-gradient(0deg,var(--ink) 0%,transparent 26%)}
  .night__copy{max-width:470px}
  .night__sign{left:40%;top:-110px;width:110px;padding:14px}
}
@media(max-width:700px){
  .night{padding-top:0}
  .night__photo{position:relative;inset:auto;height:auto;aspect-ratio:1;object-position:80% 0%;-webkit-mask:linear-gradient(180deg,#000 70%,transparent);mask:linear-gradient(180deg,#000 70%,transparent)}
  .night::after{display:none}
  .night::before{width:560px;height:560px;left:-240px;top:180px}
  .night__grid{position:static;padding-bottom:70px;margin-top:-40px}
  .night .display{font-size:clamp(72px,22vw,110px)}
  .night__aside{margin-left:30%}
  .night__sign{left:18px;top:24px;right:auto;width:96px;padding:12px;border-radius:16px}
  .ticker--night .ticker__inner{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.night__sign.is-lit{animation:none}}

/* Care panel with the matte black slide box: the photo fills the panel, so the spray and splatter
   marks step aside and the marker scribble switches to paper and orange. */
.care__art--photo{background:var(--ink)}
.care__art--photo::before,.care__art--photo::after{display:none}
.care__art--photo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;transform:none;filter:none;z-index:1}
.care__art--photo .care__scribble{color:var(--paper);text-shadow:0 2px 18px color-mix(in srgb,var(--ink) 80%,transparent)}
.care__art--photo .care__scribble span:last-child{color:var(--orange)}
