/* ============================================================
   BRAND LAYER — graffiti, but soft
   ------------------------------------------------------------
   Rubik Bubbles does the shouting. Everything around it is
   round, pale and airy, so the lettering reads as the loud
   thing on the page rather than one loud thing among many.
   Loads after main.css.
   ============================================================

   @author Thomas G. and Sophia, SOPHIA XT LLC (sophiaxt.com)
   @sophia-mark sx1 df5ae605af70 b53d3ecaa682 O-kM7SVtwogMEBkPN2G5N6uaFoVuNEzv60Sa_YNaL1PEbMjFqHH5t5W3o2g32jY7O3neLwxAvCThrAtsMUZtBQ
 */

.svgdefs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ------------------------------------------------------------
   1. DISPLAY LETTERING
   Bubble letterforms are already all curve. They do not need a
   heavy keyline; a soft tinted shadow lifts them off the paper
   and keeps the edges round. Each line takes its own colour so
   the headline reads like three passes rather than one block.
   ------------------------------------------------------------ */

.hero__h {
  font-family: var(--font-display);
  font-size: var(--t-display-xl);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin: var(--s-6) 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.02em;
}

.ln { display: block; }
.ln--cyan   { color: var(--c-cyan);   text-shadow: 0 6px 18px rgba(0,163,204,.30); }
.ln--pink   { color: var(--c-pink);   text-shadow: 0 6px 18px rgba(214,0,90,.28); }
.ln--yellow { color: var(--c-yellow); text-shadow: 0 6px 18px rgba(200,160,0,.30); }
.ln--ink    { color: var(--c-ink);    text-shadow: 0 6px 18px rgba(20,18,23,.16); }

/* second line sits slightly inset, like a tag written under the first */
.ln:nth-child(2) { margin-left: 0.05em; }

.shead__h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-display-m);
  line-height: 1.1;
  margin: var(--s-4) 0 0;
  color: var(--c-ink);
  max-width: 22ch;
}
.shead__h em { font-style: normal; color: var(--c-pink); }

/* ------------------------------------------------------------
   2. TAGS — soft pills, not stencils
   ------------------------------------------------------------ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-ui);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-on-fill);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
}
.tag--cyan   { background: var(--c-cyan);   }
.tag--pink   { background: var(--c-pink);   color: #fff; }
.tag--yellow { background: var(--c-yellow); }
.tag--soft   { background: var(--c-wash-grey); color: var(--c-text-2); box-shadow: none; }

/* ------------------------------------------------------------
   3. BLOB WASHES
   Organic colour clouds behind cut-out products and section
   heads. Lopsided radii so nothing reads as a box.
   ------------------------------------------------------------ */
.blob {
  position: absolute;
  z-index: 0;
  filter: blur(2px);
  pointer-events: none;
  opacity: .5;
}
.blob--cyan   { background: radial-gradient(circle at 40% 40%, rgba(0,203,255,.55), rgba(0,203,255,0) 70%); }
.blob--pink   { background: radial-gradient(circle at 60% 40%, rgba(255,0,102,.42), rgba(255,0,102,0) 70%); }
.blob--yellow { background: radial-gradient(circle at 50% 50%, rgba(255,204,0,.50), rgba(255,204,0,0) 70%); }

/* ------------------------------------------------------------
   4. SPRAY INTRO
   Kept, because the reveal is the brand's one authored motion
   idea. Softened: the sheet is a warm wash rather than hard
   white, and the logo settles with a spring instead of a snap.
   ------------------------------------------------------------ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: var(--s-6);
  background: radial-gradient(120% 90% at 50% 40%, #FFFFFF 0%, var(--c-wash-cyan) 55%, var(--c-wash-pink) 100%);
  padding: var(--gutter);
}
.intro.is-on { display: grid; }

.intro__logo { width: min(600px, 84vw); height: auto; display: block; }
.intro__logo .st { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.intro.is-run .st { animation: sprayPass 0.56s var(--ease-out) forwards; }
.intro.is-run .st1 { animation-delay: 0.04s; }
.intro.is-run .st2 { animation-delay: 0.16s; }
.intro.is-run .st3 { animation-delay: 0.28s; }
.intro.is-run .st4 { animation-delay: 0.39s; }
.intro.is-run .st5 { animation-delay: 0.49s; }
@keyframes sprayPass { to { transform: scaleX(1); } }

.intro__mist { opacity: 0; }
.intro.is-run .intro__mist { animation: overspray 1s var(--ease-out) 0.1s forwards; }
@keyframes overspray { 0% { opacity: 0 } 30% { opacity: .18 } 100% { opacity: 0 } }

.intro__sub {
  font-family: var(--font-ui);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-mute);
  margin: 0;
  opacity: 0;
}
.intro.is-run .intro__sub { animation: fadeUp 0.5s var(--ease-out) 0.74s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

.intro.is-out { animation: lift 0.55s var(--ease-soft) forwards; pointer-events: none; }
@keyframes lift { to { opacity: 0; transform: scale(1.04) } }

.intro-pending .hero__copy > *, .intro-pending .hero__art { opacity: 0; }
.intro-done .hero__copy > * { animation: rise 0.6s var(--ease-pop) backwards; }
.intro-done .hero__copy > *:nth-child(1) { animation-delay: 0.02s; }
.intro-done .hero__copy > *:nth-child(2) { animation-delay: 0.10s; }
.intro-done .hero__copy > *:nth-child(3) { animation-delay: 0.18s; }
.intro-done .hero__copy > *:nth-child(4) { animation-delay: 0.26s; }
.intro-done .hero__art { animation: rise 0.7s var(--ease-pop) 0.16s backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(22px) } to { opacity: 1; transform: none } }

/* ------------------------------------------------------------
   5. FINISHES TICKER — a rounded strip, not a hard band
   ------------------------------------------------------------ */
.marq {
  background: var(--c-yellow);
  overflow: hidden;
  padding: var(--s-4) 0;
  border-radius: var(--r-pill);
  margin: 0 var(--gutter);
  box-shadow: var(--sh-md);
}
.marq__t {
  display: flex;
  gap: var(--s-6);
  align-items: center;
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.125rem, 2.4vw, 1.75rem);
  color: var(--c-on-fill);
  animation: roll 30s linear infinite;
}
.marq__t b { color: var(--c-pink); }
@keyframes roll { to { transform: translateX(-50%) } }

/* ------------------------------------------------------------
   6. FACT PILLS
   ------------------------------------------------------------ */
.facts {
  list-style: none;
  margin: var(--s-16) auto 0;
  padding: 0 var(--gutter);
  max-width: var(--w-wide);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact {
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  box-shadow: var(--sh-md);
}
.fact--cyan   { background: var(--c-wash-cyan); }
.fact--yellow { background: var(--c-wash-warm); }
.fact--pink   { background: var(--c-wash-pink); }
.fact--ink    { background: var(--c-wash-grey); }
.fact__n {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-data-xl);
  line-height: 1.1;
  color: var(--c-ink);
}
.fact--cyan .fact__n   { color: var(--c-cyan-ink); }
.fact--pink .fact__n   { color: var(--c-pink-ink); }
.fact__l {
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-mute);
}

/* ------------------------------------------------------------
   7. REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  .intro-pending .hero__copy > *, .intro-pending .hero__art { opacity: 1; }
  .intro-done .hero__copy > *, .intro-done .hero__art { animation: none; }
  .marq__t { animation: none; }
}
