/* =====================================================================
   HOURGLOW — SOLAR RADIANCE DESIGN SYSTEM
   Mobile-first. Vanilla CSS. No frameworks.
   ---------------------------------------------------------------------
   01 Tokens         06 Hero               11 Formula / Matrix
   02 Base           07 Product            12 Club / Buy / FAQ
   03 Utilities      08 Why (carousel)     13 Contact / Footer
   04 Components     09 Science / Filters  14 Dialogs / Forms / Cart
   05 Intro / Nav    10 Lab / Feel / Quiz  15 Motion & a11y
   ===================================================================== */

/* ---------- 01 TOKENS ---------- */
:root {
  --solar: #FBBF24;        /* Golden yellow — signature */
  --solar-soft: #FDE68A;
  --ember: #B45309;        /* Burnt orange */
  --ink: #0F172A;          /* Deep ink */
  --ink-2: #1E293B;
  --ink-line: rgba(254, 243, 199, .16);
  --cream: #FEF3C7;
  --paper: #FFFBEB;        /* lighter cream for alternating sections */
  --line: rgba(15, 23, 42, .18);
  --error: #B91C1C;        /* readability only */

  --f-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "Courier New", Courier, ui-monospace, monospace;

  --gutter: 16px;
  --max: 1320px;
  --nav-h: 64px;
  --radius: 0px;           /* sharp by design */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --shadow-hard: 8px 8px 0 var(--ink);
}
@media (min-width: 700px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; --nav-h: 76px; } }

/* ---------- 02 BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--solar); outline-offset: 3px; }
.section--cream :focus-visible, .section--paper :focus-visible, .buy :focus-visible, .modal :focus-visible, .drawer :focus-visible { outline-color: var(--ember); }
::selection { background: var(--solar); color: var(--ink); }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 999; background: var(--solar); color: var(--ink); padding: 12px 16px; font-weight: 700; }
.skip-link:focus { top: 8px; }

/* ---------- 03 UTILITIES ---------- */
.mono { font-family: var(--f-mono); letter-spacing: .04em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(72px, 12vw, 160px) 0; overflow-x: clip; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--cream); }
.u-orange { color: var(--ember); }
.u-solar { color: var(--solar); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; color: var(--ember); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--solar { color: var(--solar); }
.eyebrow .dot { display: none; }

.display {
  font-weight: 900;
  font-size: clamp(2.6rem, 9.5vw, 7.5rem);
  line-height: .88;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.display--light { color: var(--cream); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 34em; margin-top: 24px; }
.lead--light { color: rgba(254, 243, 199, .82); }
.fineprint { font-size: 11px; line-height: 1.5; opacity: .7; margin-top: 24px; text-transform: uppercase; }

.section-head { margin-bottom: clamp(40px, 7vw, 88px); }
.section-head--split { display: grid; gap: 16px; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.2fr 1fr; gap: 48px; } .section-head--split .lead { margin-top: 0; } }

/* ---------- 04 COMPONENTS ---------- */
/* Buttons — hard edges, arrow nudge, lift */
.btn {
  --bg: var(--ink); --fg: var(--cream);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 22px;
  border: 2px solid var(--bg); background: var(--bg); color: var(--fg);
  font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); flex: none; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--shadow, var(--solar)); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn--solar { --bg: var(--solar); --fg: var(--ink); --shadow: var(--ember); }
.btn--ink { --bg: var(--ink); --fg: var(--cream); --shadow: var(--solar); }
.btn--line { --bg: transparent; --fg: var(--ink); border-color: var(--ink); --shadow: var(--ink); }
.btn--ghost-light { --bg: transparent; --fg: var(--cream); border-color: rgba(254, 243, 199, .5); --shadow: var(--solar); }
.btn--ghost-light:hover { border-color: var(--solar); }
.btn--lg { min-height: 58px; padding: 0 28px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }

.link-underline { position: relative; text-decoration: none; font-size: 13px; font-weight: 700; padding: 10px 0; }
.link-underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: currentColor; transform: scaleX(.3); transform-origin: left; transition: transform .35s var(--ease); }
.link-underline:hover::after, .link-underline:focus-visible::after { transform: scaleX(1); }
.link-btn { background: none; border: 0; padding: 10px 0; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }

.icon-btn { width: 52px; height: 52px; display: grid; place-items: center; border: 1.5px solid var(--ink-line); background: transparent; color: var(--cream); transition: background .25s, color .25s; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--solar); color: var(--ink); border-color: var(--solar); }

.chip { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink-line); background: transparent; color: var(--cream); font-family: var(--f-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; transition: background .2s, color .2s, border-color .2s; }
.chip span { opacity: .6; margin-left: 4px; }
.chip:hover { border-color: var(--solar); }
.chip.is-active { background: var(--solar); color: var(--ink); border-color: var(--solar); }
.chip--ink { color: var(--ink); border-color: var(--line); }
.chip--ink:hover { border-color: var(--ink); }
.chip--ink.is-active { background: var(--ink); color: var(--solar); border-color: var(--ink); }

/* SOLAR FLARE SIGNATURE — SVG injected by initSolarFlare() into [data-flare] */
[data-flare] { position: relative; }
.flare { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.flare rect { fill: none; stroke: var(--solar); stroke-width: 2; stroke-dasharray: 18 82; stroke-dashoffset: 18; opacity: 0; filter: drop-shadow(0 0 3px rgba(251, 191, 36, .9)); vector-effect: non-scaling-stroke; }
.flare .flare__rest { stroke-dasharray: none; stroke-width: 1; filter: none; opacity: 0; transition: opacity .6s; }
.flare-run .flare rect:not(.flare__rest) { animation: flare-scan 1.7s var(--ease-io) forwards; }
.flare-run .flare .flare__rest { opacity: .22; transition-delay: 1.3s; }
@keyframes flare-scan {
  0%   { stroke-dashoffset: 18; opacity: 0; }
  10%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}
/* Replay on hover for interactive cards */
@media (hover: hover) {
  .product-card:hover .flare rect:not(.flare__rest),
  .why-card:hover .flare rect:not(.flare__rest),
  .filter-card:hover .flare rect:not(.flare__rest) { animation: flare-scan-hover 1.4s var(--ease-io) forwards; }
}
@keyframes flare-scan-hover {
  0%   { stroke-dashoffset: 18; opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}

/* ---------- 05 INTRO / NAV ---------- */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--ink); color: var(--cream);
  transition: clip-path .6s var(--ease-io);
  clip-path: inset(0 0 0 0);
  animation: intro-failsafe 0s 4s forwards; /* if JS errors, never trap the page */
}
.intro__mark { display: flex; align-items: center; gap: 14px; animation: intro-mark .6s var(--ease) both; }
.intro__mark .logo-mark { color: var(--cream); }
.intro__word { font-weight: 900; font-size: clamp(28px, 6vw, 56px); letter-spacing: .12em; }
.intro__flare { position: absolute; left: 0; right: 0; top: 50%; margin-top: 52px; height: 2px; background: linear-gradient(90deg, transparent, var(--solar) 40%, #fff 50%, var(--solar) 60%, transparent); box-shadow: 0 0 16px var(--solar); transform: scaleX(0); transform-origin: left; animation: intro-line .8s .25s var(--ease-io) forwards; }
.intro__meta { position: absolute; bottom: 32px; font-size: 11px; color: var(--solar); opacity: .8; }
.intro.is-done { clip-path: inset(0 0 100% 0); }
@keyframes intro-mark { from { opacity: 0; transform: scale(.92); letter-spacing: .3em; } to { opacity: 1; transform: none; } }
@keyframes intro-line { to { transform: scaleX(1); } }
@keyframes intro-failsafe { to { visibility: hidden; } }

.logo-mark { color: currentColor; }

.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; color: var(--cream); transition: background .35s, backdrop-filter .35s, box-shadow .35s; }
.nav__inner { max-width: var(--max); margin: 0 auto; height: var(--nav-h); padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: height .35s var(--ease); }
.nav--scrolled { background: rgba(15, 23, 42, .84); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--ink-line); }
.nav--scrolled .nav__inner { height: calc(var(--nav-h) - 12px); }
/* backdrop-filter would make the fixed mobile menu relative to the nav bar, so drop it while open */
.nav.is-menu-open { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-sentinel { position: absolute; top: 0; height: 40px; width: 1px; }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: .14em; font-size: 17px; min-height: 44px; }
.nav__logo .logo-mark { color: var(--cream); }

.nav__links {
  position: fixed; inset: var(--nav-h) 0 0 0; background: var(--ink);
  display: flex; flex-direction: column; padding: 24px var(--gutter) 40px; gap: 4px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
  overflow-y: auto;
}
.nav__links.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.nav__links a { position: relative; text-decoration: none; font-weight: 900; text-transform: uppercase; font-size: clamp(28px, 8vw, 44px); letter-spacing: -.02em; padding: 10px 0; border-bottom: 1px solid var(--ink-line); min-height: 44px; }
.nav__links a.is-active { color: var(--solar); }
.nav__mobile-cta { margin-top: 24px; }

.nav__actions { display: flex; align-items: center; gap: 6px; }
.nav__account { background: none; border: 0; min-height: 44px; padding: 0 8px; font-size: 12px; font-weight: 700; color: var(--cream); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__account:hover { color: var(--solar); }
.nav__cart { position: relative; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--cream); }
.nav__cart svg { width: 24px; height: 24px; }
.nav__count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; background: var(--solar); color: var(--ink); font-size: 11px; font-weight: 900; display: grid; place-items: center; transition: transform .3s var(--ease); }
.nav__count.is-bump { transform: scale(1.35); }
.nav__cta { display: none; }
.nav__burger { width: 44px; height: 44px; background: none; border: 0; display: grid; place-content: center; gap: 7px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--cream); transition: transform .3s var(--ease); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (min-width: 1000px) {
  .nav__links { position: static; flex-direction: row; background: none; padding: 0; gap: clamp(14px, 2vw, 30px); opacity: 1; transform: none; visibility: visible; overflow: visible; }
  .nav__links a { font-size: 13px; font-weight: 700; letter-spacing: .06em; border: 0; padding: 12px 0; display: inline-flex; align-items: center; }
  .nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--solar); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
  .nav__links a.is-active { color: var(--cream); }
  .nav__mobile-cta, .nav__burger { display: none; }
  .nav__cta { display: inline-flex; min-height: 44px; font-size: 12px; margin-left: 8px; }
}

/* ---------- 06 HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 20px);
  color: var(--cream);
  /* Optional photo at assets/images/hero.jpg — ink overlay keeps text readable; ink fallback if missing */
  background:
    radial-gradient(120% 70% at 85% 110%, rgba(180, 83, 9, .55), transparent 60%),
    linear-gradient(rgba(15, 23, 42, .9), rgba(15, 23, 42, .9)),
    url("assets/images/hero.jpg") center / cover no-repeat,
    var(--ink);
  display: flex; flex-direction: column;
}
.hero__grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); opacity: .5; pointer-events: none; }
.hero__inner { position: relative; flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 8px; align-items: center; }
.hero__copy { position: relative; z-index: 2; padding-top: 12px; }
.hero .eyebrow { color: var(--solar); font-size: 11px; }
.hero__title { font-weight: 900; text-transform: uppercase; letter-spacing: -.055em; line-height: .84; font-size: clamp(3.3rem, 15.5vw, 10rem); }
.hero__title .line { display: block; }
.hero__title .line--solar { color: var(--solar); text-shadow: 0 0 60px rgba(251, 191, 36, .35); }
.hero__sub { margin-top: 24px; font-size: clamp(1.02rem, 1.7vw, 1.3rem); max-width: 30em; color: rgba(254, 243, 199, .85); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__ctas .btn { flex: 1 1 220px; }
.hero__price { margin-top: 18px; font-size: 12px; color: rgba(254, 243, 199, .6); }

.hero__stage { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.sun { position: absolute; width: 76%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #FFF7D6 0%, var(--solar-soft) 18%, var(--solar) 48%, #F59E0B 70%, var(--ember) 100%); box-shadow: 0 0 120px 20px rgba(251, 191, 36, .35), 0 0 260px 60px rgba(180, 83, 9, .25); animation: sun-breathe 7s ease-in-out infinite; }
@keyframes sun-breathe { 50% { transform: scale(1.03); box-shadow: 0 0 150px 30px rgba(251, 191, 36, .45), 0 0 300px 80px rgba(180, 83, 9, .28); } }
.shard { position: absolute; pointer-events: none; }
.shard--a { right: 4%; bottom: 10%; width: 62%; height: 44%; background: linear-gradient(135deg, rgba(15, 23, 42, .75), rgba(15, 23, 42, .2)); clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%); }
.shard--b { left: 6%; top: 16%; width: 30%; height: 64%; background: linear-gradient(180deg, rgba(180, 83, 9, .9), rgba(180, 83, 9, 0)); clip-path: polygon(0 0, 22% 0, 100% 100%, 78% 100%); mix-blend-mode: multiply; }
.hero__flare { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.hero__flare path { fill: none; stroke: #FFF7D6; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px var(--solar)); vector-effect: non-scaling-stroke; }
.is-ready .hero__flare path { animation: hero-flare 1.3s .5s var(--ease-io) forwards, hero-flare-pulse 6s 2.5s ease-in-out infinite; }
@keyframes hero-flare { to { stroke-dashoffset: 0; } }
@keyframes hero-flare-pulse { 50% { opacity: .35; } }
.stage-label { position: absolute; font-size: 10px; color: var(--solar); z-index: 3; padding: 4px 6px; border: 1px solid rgba(251, 191, 36, .45); background: rgba(15, 23, 42, .5); }
.stage-label--tl { top: 8%; left: 2%; }
.stage-label--br { bottom: 10%; right: 2%; }

.hero__specs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink-line); margin-top: 24px; }
.hero__specs li { display: flex; align-items: baseline; gap: 10px; padding: 16px var(--gutter); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(13px, 1.4vw, 17px); border-bottom: 1px solid var(--ink-line); }
.hero__specs li:nth-child(odd) { border-right: 1px solid var(--ink-line); }
.hero__specs li:last-child { grid-column: 1 / -1; border-right: 0; }
.hero__specs .mono { color: var(--solar); font-size: 11px; font-weight: 700; }

@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: 1.15fr 1fr; gap: 24px; }
  .hero__title { font-size: clamp(4rem, 8.4vw, 9.5rem); }
  .hero__ctas .btn { flex: 0 0 auto; }
  .hero__stage { max-width: 620px; }
  .hero__specs { grid-template-columns: repeat(5, 1fr); max-width: none; }
  .hero__specs li { border-bottom: 0; border-right: 1px solid var(--ink-line); padding: 22px var(--gutter); }
  .hero__specs li:nth-child(odd) { border-right: 1px solid var(--ink-line); }
  .hero__specs li:last-child { grid-column: auto; border-right: 0; }
}

/* Hero entrance choreography — set up by JS, played when body.is-ready */
.js .hero-enter { opacity: 0; transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .hero-enter[data-from="up"] { transform: translateY(40px); }
.js .hero-enter[data-from="left"] { transform: translateX(-40px); }
.js .hero-enter[data-from="scale"] { transform: scale(.9); }
.js .is-ready .hero-enter { opacity: 1; transform: none; }

/* PRODUCT MEDIA — real image if present, CSS tube fallback otherwise */
.product-media { position: relative; z-index: 2; width: 100%; aspect-ratio: 2 / 3; display: grid; place-items: center; container-type: inline-size; }
.product-media--hero { width: 58%; transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .6s var(--ease); }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s; }
.product-media.has-image img { opacity: 1; }
.product-media.has-image .tube { display: none; }
.product-media--hero > * { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -14px; } }

.tube { position: relative; width: 46cqw; height: 136cqw; display: flex; flex-direction: column; align-items: center; rotate: -8deg; filter: drop-shadow(18px 28px 22px rgba(15, 23, 42, .45)) drop-shadow(0 0 40px rgba(251, 191, 36, .25)); }
.tube__crimp { width: 104%; height: 7cqw; background: repeating-linear-gradient(90deg, #E7CB7E 0 1.2cqw, #F8E9B8 1.2cqw 2.4cqw); box-shadow: inset 0 -1cqw 0 rgba(15, 23, 42, .12); }
.tube__body { position: relative; flex: 1; width: 100%; clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); background: linear-gradient(90deg, #EAD08A 0%, #FFFBEB 22%, #FEF3C7 48%, #F6DE9A 78%, #D9B45C 100%); display: flex; flex-direction: column; align-items: center; padding: 6cqw 4cqw 5cqw; color: var(--ink); overflow: hidden; }
.tube__body::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3cqw; background: var(--solar); }
.tube__body::after { content: ""; position: absolute; top: 0; bottom: 0; left: 26%; width: 6cqw; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); }
.tube__logo { width: 7cqw; margin-top: 2cqw; color: var(--ink); }
.tube__brand { flex: 1; writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 900; font-size: 10.5cqw; letter-spacing: .04em; line-height: 1; margin: 3cqw 0; }
.tube__spec { font-weight: 900; font-size: 4.4cqw; line-height: 1.05; text-align: center; color: var(--ember); }
.tube__type { font-family: var(--f-mono); font-size: 2.2cqw; text-transform: uppercase; text-align: center; line-height: 1.2; margin-top: 2cqw; }
.tube__size { font-family: var(--f-mono); font-size: 2.6cqw; font-weight: 700; margin-top: 2cqw; padding-top: 1.5cqw; border-top: .3cqw solid var(--ink); }
.tube__cap { width: 64%; height: 17cqw; background: linear-gradient(90deg, #060A14, #334155 30%, var(--ink) 60%, #060A14); box-shadow: inset 0 1.2cqw 0 rgba(251, 191, 36, .9); }

.mini-tube { display: block; width: 34%; height: 78%; margin: 11% auto 0; rotate: -8deg; background: linear-gradient(90deg, #EAD08A, #FFFBEB 30%, #FEF3C7 60%, #D9B45C); clip-path: polygon(0 0, 100% 0, 86% 82%, 86% 100%, 14% 100%, 14% 82%); box-shadow: inset 0 -8px 0 var(--ink); position: relative; }
.mini-tube::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--solar); }

/* Ticker */
.ticker { background: var(--solar); color: var(--ink); overflow: hidden; border-block: 2px solid var(--ink); }
.ticker__track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker span { white-space: nowrap; font-weight: 900; font-size: clamp(14px, 1.8vw, 20px); letter-spacing: .02em; padding: 14px 0; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 07 PRODUCT ---------- */
.product-intro { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .product-intro { grid-template-columns: 1.1fr 1fr; gap: 80px; } }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; margin-top: 36px; border-top: 2px solid var(--ink); }
.spec-table > div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.spec-table > div:nth-child(odd) { border-right: 1px solid var(--line); }
.spec-table > div:nth-child(even) { padding-left: 14px; }
.spec-table dt { font-size: 11px; color: var(--ember); font-weight: 700; }
.spec-table dd { font-weight: 800; font-size: clamp(15px, 1.5vw, 19px); text-transform: uppercase; letter-spacing: -.01em; }

.product-card { background: var(--ink); color: var(--cream); padding: 18px; outline-offset: 6px; overflow: hidden; box-shadow: 14px 14px 0 var(--solar); transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.product-card::before { content: ""; position: absolute; inset: 20% -20% -20% 20%; background: radial-gradient(circle, rgba(251, 191, 36, .55), transparent 62%); pointer-events: none; transition: transform .8s var(--ease); }
.product-card__head, .product-card__foot { position: relative; z-index: 2; display: flex; justify-content: space-between; font-size: 11px; color: var(--solar); }
.product-card__foot { color: rgba(254, 243, 199, .55); }
.product-media--card { width: min(70%, 340px); margin: 8px auto; transition: transform .7s var(--ease); }
.callouts { position: absolute; z-index: 4; inset: 56px 14px 44px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.callouts li { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px; background: rgba(15, 23, 42, .88); border: 1px solid var(--solar); font-size: 12px; font-weight: 800; text-transform: uppercase; opacity: 0; transform: translateX(-16px); transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.callouts li:nth-child(even) { align-self: flex-end; transform: translateX(16px); }
.callouts .mono { color: var(--solar); font-size: 10px; }
.product-card:hover, .product-card:focus-visible, .product-card.is-scanned { box-shadow: 18px 18px 0 var(--ember); }
.product-card:hover .product-media--card, .product-card:focus-visible .product-media--card, .product-card.is-scanned .product-media--card { transform: translateY(-10px) rotate(3deg) scale(1.03); }
.product-card:hover::before, .product-card.is-scanned::before { transform: translate(-10%, -10%); }
.product-card:hover .callouts li, .product-card:focus-visible .callouts li, .product-card.is-scanned .callouts li { opacity: 1; transform: none; }

/* ---------- 08 WHY (horizontal) ---------- */
.why { overflow: hidden; }
.why__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.why__controls { display: flex; align-items: center; gap: 20px; }
.why__hint { font-size: 12px; color: var(--solar); }
.why__btns { display: none; gap: 8px; }
@media (min-width: 700px) { .why__btns { display: flex; } }
.why__track {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 12px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 28px;
  scrollbar-width: none; cursor: grab;
}
.why__track::-webkit-scrollbar { display: none; }
.why__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.why__track.is-dragging .why-card { pointer-events: none; }
.why-card {
  flex: 0 0 min(82vw, 400px); min-height: 440px; scroll-snap-align: start;
  display: flex; flex-direction: column; padding: 28px;
  border: 1px solid var(--ink-line); background: var(--ink-2); color: var(--cream);
  transition: transform .4s var(--ease), background .4s;
}
.why-card:hover { transform: translateY(-8px); }
.why-card__n { font-size: 14px; color: var(--solar); }
.why-card h3 { margin-top: auto; font-weight: 900; text-transform: uppercase; font-size: clamp(2.3rem, 5vw, 3.4rem); line-height: .9; letter-spacing: -.04em; }
.why-card p { margin-top: 18px; color: rgba(254, 243, 199, .78); max-width: 26em; }
.why-card__tag { margin-top: 24px; font-size: 11px; align-self: flex-start; padding: 4px 8px; border: 1px solid currentColor; opacity: .7; }
.why-card--solar { background: var(--solar); color: var(--ink); border-color: var(--solar); }
.why-card--solar .why-card__n, .why-card--solar p { color: var(--ink); }
.why-card--solar .flare rect { stroke: var(--ink); filter: none; }
.why-card--cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.why-card--cream .why-card__n { color: var(--ember); }
.why-card--cream p { color: var(--ink); }
.why-card--cream .flare rect { stroke: var(--ember); filter: none; }
.why__progress { height: 2px; background: var(--ink-line); margin-top: 8px; }
.why__progress span { display: block; height: 100%; width: 100%; background: var(--solar); transform-origin: left; transform: scaleX(var(--p, .15)); transition: transform .15s linear; }

/* ---------- 09 SCIENCE / FILTERS ---------- */
.science { display: grid; gap: 32px; }
@media (min-width: 1000px) { .science { grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: stretch; } }
.uv-diagram { background: var(--cream); border: 2px solid var(--ink); padding: 16px; }
.uv-diagram figcaption { font-size: 11px; margin-top: 10px; color: var(--ember); }
.ray path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-visible .ray path { animation: draw 1.6s var(--ease-io) forwards; }
.is-visible .ray--uva path { animation-duration: 2.2s; animation-delay: .4s; }
.is-visible .ray path:nth-child(2) { animation-delay: .7s; }
.is-visible .ray--uva path:nth-child(2) { animation-delay: 1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.uv-cards { display: grid; gap: 16px; }
.uv-card { border: 2px solid var(--ink); padding: 24px; background: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; }
.uv-card h3 { font-weight: 900; font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: .85; letter-spacing: -.05em; margin: 10px 0 14px; color: var(--ember); }
.uv-card--ink { background: var(--ink); color: var(--cream); }
.uv-card--ink h3 { color: var(--solar); }
.uv-card__tag { font-size: 11px; font-weight: 700; }

.ratings { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 800px) { .ratings { grid-template-columns: 1fr 1fr; } }
.rating { background: var(--ink); color: var(--cream); padding: 28px; }
.rating__head { display: flex; flex-direction: column; gap: 4px; }
.rating__head .mono { font-size: 11px; color: var(--solar); }
.rating h3 { font-weight: 900; font-size: clamp(3rem, 7vw, 5rem); line-height: .9; letter-spacing: -.05em; }
.rating p { margin-top: 18px; color: rgba(254, 243, 199, .8); }
.rating strong { color: var(--cream); }
.spf-meter { margin-top: 20px; height: 14px; border: 1px solid var(--ink-line); padding: 2px; }
.spf-meter span { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--solar) 0 10px, transparent 10px 13px); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-io) .2s; }
.is-visible .spf-meter span { transform: scaleX(.96); }
.pa-meter { margin-top: 20px; display: flex; gap: 6px; }
.pa-meter span { width: 44px; height: 44px; display: grid; place-items: center; font-weight: 900; font-size: 26px; border: 1px solid var(--ink-line); color: var(--ink-line); transition: background .4s, color .4s, border-color .4s; }
.is-visible .pa-meter span { background: var(--solar); color: var(--ink); border-color: var(--solar); }
.is-visible .pa-meter span:nth-child(1) { transition-delay: .3s; }
.is-visible .pa-meter span:nth-child(2) { transition-delay: .55s; }
.is-visible .pa-meter span:nth-child(3) { transition-delay: .8s; }
.is-visible .pa-meter span:nth-child(4) { transition-delay: 1.05s; }

.filters { background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px); background-size: 80px 80px; background-color: var(--ink); background-position: -1px -1px; }
.filter-grid { display: grid; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); }
@media (min-width: 900px) { .filter-grid { grid-template-columns: 1fr 1fr; } .filter-card--wide { grid-column: 1 / -1; } }
.filter-card { background: var(--ink); padding: clamp(22px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 14px; transition: background .4s; }
.filter-card:hover { background: #131d33; }
.filter-card__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 11px; color: var(--solar); }
.filter-card__meta span + span::before { content: "/ "; opacity: .5; }
.filter-card__name { font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 7vw, 6rem); line-height: .88; letter-spacing: -.05em; overflow-wrap: anywhere; }
.filter-card--wide .filter-card__name { font-size: clamp(2.6rem, 10vw, 8.5rem); color: var(--solar); }
.filter-card__aka { font-size: 12px; color: rgba(254, 243, 199, .65); }
.filter-card p:not(.mono) { max-width: 40em; color: rgba(254, 243, 199, .85); }
.spectrum { position: relative; margin-top: auto; height: 22px; background: repeating-linear-gradient(90deg, var(--ink-line) 0 1px, transparent 1px 10%); border: 1px solid var(--ink-line); }
.spectrum::after { content: ""; position: absolute; top: -4px; bottom: -4px; left: 27%; width: 1px; background: rgba(254, 243, 199, .5); }
.spectrum__band { position: absolute; top: 3px; bottom: 3px; left: var(--from); width: calc(var(--to) - var(--from)); background: linear-gradient(90deg, var(--ember), var(--solar)); box-shadow: 0 0 18px rgba(251, 191, 36, .5); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-io) .3s; }
.is-visible .spectrum__band { transform: scaleX(1); }
.spectrum-legend { display: flex; justify-content: space-between; margin-top: 12px; font-size: 11px; color: rgba(254, 243, 199, .6); }
.spectrum-legend span:nth-child(2) { margin-left: -30%; }

/* ---------- 10 LAB / FEEL / QUIZ ---------- */
.lab { display: grid; gap: 16px; }
@media (min-width: 1000px) { .lab { grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; } }
.lab__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .lab__grid { grid-template-columns: repeat(4, 1fr); } }
.lab-tile {
  position: relative; min-height: 132px; padding: 14px; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.lab-tile:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.lab-tile__n { font-size: 11px; color: var(--ember); font-weight: 700; }
.lab-tile__name { font-weight: 900; text-transform: uppercase; font-size: clamp(14px, 1.5vw, 17px); line-height: 1.05; letter-spacing: -.01em; overflow-wrap: anywhere; }
.lab-tile__sym { position: absolute; top: 10px; right: 12px; font-family: var(--f-mono); font-weight: 700; font-size: 13px; }
.lab-tile[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: 5px 5px 0 var(--solar); }
.lab-tile[aria-pressed="true"] .lab-tile__n { color: var(--solar); }
.lab__panel { background: var(--ink); color: var(--cream); padding: 28px; min-height: 280px; }
@media (min-width: 1000px) { .lab__panel { position: sticky; top: calc(var(--nav-h) + 24px); } }
.lab__panel-idx { font-size: 12px; color: var(--solar); }
.lab__panel h3 { font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: .95; letter-spacing: -.03em; margin: 18px 0 10px; overflow-wrap: anywhere; }
.lab__panel-tag { font-size: 11px; color: var(--solar); padding: 4px 8px; border: 1px solid rgba(251, 191, 36, .5); display: inline-block; margin-bottom: 16px; }
.lab__panel p:last-child { color: rgba(254, 243, 199, .85); }
.lab__panel.is-swapping > * { animation: panel-in .45s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }

.feel { position: relative; overflow: hidden; background: linear-gradient(rgba(15, 23, 42, .92), rgba(15, 23, 42, .92)), url("assets/images/texture.jpg") center / cover, var(--ink); color: var(--cream); padding: clamp(90px, 14vw, 180px) 0; }
.feel__liquid { position: absolute; inset: 0; pointer-events: none; filter: blur(40px); opacity: .9; }
.feel__liquid span { position: absolute; border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; background: radial-gradient(circle at 30% 30%, var(--solar-soft), var(--solar) 40%, var(--ember) 90%); animation: blob 18s ease-in-out infinite alternate; }
.feel__liquid span:nth-child(1) { width: 46vmax; height: 30vmax; left: -12vmax; top: 10%; opacity: .45; }
.feel__liquid span:nth-child(2) { width: 34vmax; height: 34vmax; right: -10vmax; top: 35%; opacity: .35; animation-duration: 22s; animation-delay: -6s; }
.feel__liquid span:nth-child(3) { width: 28vmax; height: 18vmax; left: 30%; bottom: -8vmax; opacity: .3; animation-duration: 26s; }
@keyframes blob {
  0%   { transform: translate(0, 0) rotate(0); border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; }
  50%  { transform: translate(18vw, -4vh) rotate(40deg); border-radius: 60% 40% 35% 65% / 55% 40% 60% 45%; }
  100% { transform: translate(34vw, 6vh) rotate(90deg); border-radius: 35% 65% 50% 50% / 40% 60% 40% 60%; }
}
.feel__inner { position: relative; }
.feel__words { display: flex; flex-direction: column; font-weight: 900; text-transform: uppercase; letter-spacing: -.06em; line-height: .84; font-size: clamp(4.2rem, 20vw, 17rem); }
.feel__word { display: block; transition: opacity 1s var(--ease), transform 1.1s var(--ease), letter-spacing 1.4s var(--ease), color 1s, -webkit-text-stroke-color 1s; }
.feel__word:nth-child(2) { align-self: center; color: var(--solar); }
.feel__word:nth-child(3) { align-self: flex-end; }
.js .feel__word { opacity: .08; transform: translateX(-8vw); }
.js .feel__word:nth-child(2) { transform: translateX(8vw); }
.js .feel__word.in-view { opacity: 1; transform: none; }
.js .feel__word--gone.in-view { color: transparent; -webkit-text-stroke: 2px rgba(254, 243, 199, .55); letter-spacing: .02em; transition-delay: .2s; }
.feel__copy { margin-top: 48px; max-width: 30em; font-size: clamp(1.1rem, 2vw, 1.5rem); color: rgba(254, 243, 199, .88); }

.quiz { background: var(--ink); color: var(--cream); padding: clamp(18px, 3.5vw, 40px); min-height: min(640px, calc(100svh - var(--nav-h) - 40px)); display: flex; flex-direction: column; box-shadow: 14px 14px 0 var(--solar); overflow: hidden; }
.quiz__bar { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.quiz__count { font-size: 14px; font-weight: 700; color: var(--solar); }
.quiz__progress { height: 2px; background: var(--ink-line); }
.quiz__progress span { display: block; height: 100%; background: var(--solar); width: 25%; transition: width .6s var(--ease-io); box-shadow: 0 0 10px var(--solar); }
.quiz__back { background: none; border: 0; color: var(--cream); font-size: 12px; min-height: 44px; font-weight: 700; }
.quiz__back[disabled] { opacity: .3; cursor: default; }
.quiz__stage { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 28px; }
.q { transition: opacity .35s var(--ease), transform .45s var(--ease); }
.q.is-leaving { opacity: 0; transform: translateX(-40px); }
.q.is-entering { opacity: 0; transform: translateX(40px); }
.q__label { font-size: 12px; color: var(--solar); margin-bottom: 12px; }
.q__title { font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 5.2vw, 4rem); line-height: .92; letter-spacing: -.04em; max-width: 16em; }
.q__opts { display: grid; gap: 10px; margin-top: 32px; }
@media (min-width: 700px) { .q__opts { grid-template-columns: repeat(2, 1fr); } }
.q__opt { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 14px 18px; text-align: left; background: transparent; border: 1.5px solid var(--ink-line); color: var(--cream); font-weight: 800; font-size: clamp(15px, 1.6vw, 18px); text-transform: uppercase; letter-spacing: .01em; transition: border-color .2s, background .2s, color .2s, transform .25s var(--ease); }
.q__opt .mono { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 1px solid currentColor; font-size: 12px; }
.q__opt:hover { border-color: var(--solar); transform: translateX(4px); }
.q__opt[aria-pressed="true"] { background: var(--solar); color: var(--ink); border-color: var(--solar); }
.result__kicker { font-size: 12px; color: var(--solar); }
.result__title { font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 6.5vw, 5.4rem); line-height: .88; letter-spacing: -.05em; margin-top: 12px; }
.result__title span { color: var(--solar); }
.result__grid { display: grid; gap: 24px; margin-top: 28px; }
@media (min-width: 900px) { .result__grid { grid-template-columns: 1.4fr 1fr; gap: 40px; } }
.result__reasons li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--ink-line); animation: panel-in .5s var(--ease) both; }
.result__reasons li:nth-child(2) { animation-delay: .08s; } .result__reasons li:nth-child(3) { animation-delay: .16s; } .result__reasons li:nth-child(4) { animation-delay: .24s; }
.result__reasons .mono { color: var(--solar); font-size: 12px; padding-top: 3px; }
.result__reasons strong { display: block; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; color: var(--solar); }
.result__side { border: 1px solid var(--ink-line); padding: 20px; display: flex; flex-direction: column; gap: 14px; align-self: start; }
.result__answers { display: flex; flex-wrap: wrap; gap: 6px; }
.result__answers li { font-family: var(--f-mono); font-size: 11px; padding: 4px 8px; border: 1px solid rgba(251, 191, 36, .5); color: var(--solar); text-transform: uppercase; }
.result__side .fineprint { margin-top: 0; }
.result__restart { color: var(--cream); }

/* Mobile: quiz becomes a full-screen card experience */
@media (max-width: 699px) {
  .fit .container { padding: 0; }
  .fit .section-head { padding: 0 var(--gutter); }
  .quiz { min-height: calc(100svh - var(--nav-h)); box-shadow: none; }
}

/* ---------- 11 FORMULA / MATRIX ---------- */
.formula__filters, .matrix__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.matrix__tabs { margin-bottom: 0; }
.inci { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 0; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.12; font-size: clamp(1.25rem, 3.1vw, 2.5rem); border-top: 1px solid var(--ink-line); padding-top: 32px; }
.inci li { position: relative; display: inline; padding-right: .45em; transition: opacity .4s var(--ease), color .4s; }
.inci li::after { content: "/"; color: var(--ember); padding-left: .45em; font-weight: 400; }
.inci li:last-child::after { content: ""; }
.inci li .mono { font-size: .4em; vertical-align: super; color: var(--solar); margin-right: .2em; letter-spacing: 0; }
.inci em { font-style: normal; font-weight: 400; color: rgba(254, 243, 199, .55); }
.inci li[data-role="uv"] { color: var(--solar); }
.inci.is-filtered li { opacity: .16; }
.inci.is-filtered li.is-match { opacity: 1; color: var(--solar); }

.matrix { border: 2px solid var(--ink); background: var(--paper); }
.matrix__head, .matrix__rows li { display: grid; grid-template-columns: 44px 1fr 56px; align-items: center; gap: 12px; padding: 0 16px; }
.matrix__head { min-height: 44px; background: var(--ink); color: var(--solar); font-size: 11px; }
.matrix__head span:nth-child(3), .matrix__rows li > span:nth-child(3) { display: none; }
.matrix__rows li { min-height: 60px; border-top: 1px solid var(--line); font-weight: 800; text-transform: uppercase; font-size: clamp(15px, 1.8vw, 22px); letter-spacing: -.01em; position: relative; transition: background .3s, opacity .35s, color .3s; }
.matrix__rows li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--solar); transform: scaleY(0); transition: transform .3s var(--ease); }
.matrix__rows li:hover { background: var(--cream); }
.matrix__rows li:hover::before { transform: scaleY(1); }
.matrix__rows li > .mono { font-size: 12px; color: var(--ember); font-weight: 700; }
.matrix__rows li > span:nth-child(3) { font-size: 11px; color: rgba(15, 23, 42, .6); font-weight: 700; }
.tick { width: 36px; height: 36px; display: grid; place-items: center; background: var(--solar); color: var(--ink); justify-self: end; transform: scale(0); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i, 0) * 45ms); }
.tick svg { width: 20px; height: 20px; }
.is-visible .tick { transform: scale(1); }
.matrix__rows li.is-dim { opacity: .25; }
@media (min-width: 700px) {
  .matrix__head, .matrix__rows li { grid-template-columns: 60px 1fr 160px 100px; padding: 0 24px; }
  .matrix__head span:nth-child(3), .matrix__rows li > span:nth-child(3) { display: block; }
  .matrix__head span:last-child { text-align: right; }
}

/* ---------- 12 CLUB / BUY / FAQ ---------- */
.club { display: grid; gap: 16px; }
@media (min-width: 700px) { .club { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .club { grid-template-columns: repeat(4, 1fr); } }
.review { position: relative; border: 2px dashed rgba(15, 23, 42, .35); padding: 24px; min-height: 280px; display: flex; flex-direction: column; gap: 16px; background: var(--paper); }
.review__badge { align-self: flex-start; font-size: 10px; font-weight: 700; padding: 3px 8px; background: var(--ink); color: var(--solar); }
.review__quote { font-size: 64px; line-height: .5; font-weight: 900; color: var(--solar); height: 24px; }
.review__text { font-size: 18px; font-weight: 700; flex: 1; }
.review__stars { display: flex; gap: 4px; }
.review__stars i { width: 14px; height: 14px; border: 1.5px solid rgba(15, 23, 42, .3); }
.review__who { border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; }
.review__who strong { display: block; font-family: var(--f-display); font-size: 14px; text-transform: uppercase; }

.buy { background: var(--solar); color: var(--ink); overflow: hidden; }
.buy::after { content: ""; position: absolute; right: -10vw; top: -20vw; width: 60vw; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(15, 23, 42, .15); box-shadow: 0 0 0 40px rgba(254, 243, 199, .25), 0 0 0 80px rgba(254, 243, 199, .12); pointer-events: none; }
.buy .eyebrow { color: var(--ink); }
.buy__inner { position: relative; z-index: 1; display: grid; gap: 48px; align-items: end; }
@media (min-width: 1000px) { .buy__inner { grid-template-columns: 1.3fr 1fr; } }
.buy .display { font-size: clamp(3.2rem, 13vw, 10rem); }
.buy__price { font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.04em; margin: 12px 0 28px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.buy__price .mono { font-size: 11px; letter-spacing: .04em; font-weight: 700; }
.buy__label { font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.partners { display: grid; gap: 10px; }
.partner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: var(--ink); color: var(--cream); }
.partner__name { font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.partner .btn { min-height: 44px; font-size: 12px; padding: 0 14px; }
.partner .btn[aria-disabled="true"] { --bg: transparent; --fg: rgba(254, 243, 199, .6); border-color: var(--ink-line); cursor: not-allowed; box-shadow: none; transform: none; }

.faq-wrap { display: grid; gap: 40px; }
@media (min-width: 1000px) { .faq-wrap { grid-template-columns: 1fr 1.5fr; gap: 72px; align-items: start; } .faq-wrap > div:first-child { position: sticky; top: calc(var(--nav-h) + 32px); } }
.faq { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item h3 { font-size: inherit; }
.faq__q { width: 100%; display: grid; grid-template-columns: 36px 1fr 28px; gap: 10px; align-items: center; text-align: left; min-height: 68px; padding: 14px 0; background: none; border: 0; font-weight: 800; text-transform: uppercase; font-size: clamp(15px, 1.6vw, 19px); letter-spacing: -.005em; transition: color .2s; }
.faq__q .mono { font-size: 11px; color: var(--ember); font-weight: 700; }
.faq__q:hover { color: var(--ember); }
.faq__q i { position: relative; width: 28px; height: 28px; border: 1.5px solid var(--ink); transition: background .3s, transform .4s var(--ease); }
.faq__q i::before, .faq__q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); translate: -50% -50%; transition: transform .35s var(--ease); }
.faq__q i::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] i { background: var(--solar); border-color: var(--solar); transform: rotate(180deg); }
.faq__q[aria-expanded="true"] i::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .45s var(--ease), visibility 0s .45s; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 36px 22px 46px; max-width: 44em; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }

/* ---------- 13 CONTACT / FOOTER ---------- */
.contact__inner { display: grid; gap: 48px; }
@media (min-width: 1000px) { .contact__inner { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.contact__email { display: inline-block; margin-top: 32px; font-weight: 900; font-size: clamp(1.5rem, 4.5vw, 3.2rem); letter-spacing: -.03em; color: var(--solar); text-decoration: none; background: linear-gradient(var(--solar), var(--solar)) left bottom / 0 3px no-repeat; transition: background-size .45s var(--ease); overflow-wrap: anywhere; }
.contact__email:hover { background-size: 100% 3px; }
.contact__form { display: grid; gap: 4px; }

.footer { position: relative; background: var(--ink); color: var(--cream); padding: 64px 0 0; overflow: hidden; border-top: 1px solid var(--ink-line); }
.footer__top { display: grid; gap: 40px; }
@media (min-width: 800px) { .footer__top { grid-template-columns: 1fr 1fr; } }
.footer__brand { font-weight: 900; font-size: 28px; letter-spacing: .14em; }
.footer__tag { color: var(--solar); font-size: 13px; margin-top: 6px; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .04em; opacity: .85; }
.footer__links a:hover { color: var(--solar); opacity: 1; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--ink-line); font-size: 11px; opacity: .7; }
.footer__giant { font-weight: 900; font-size: 21.5vw; line-height: .75; letter-spacing: -.06em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(251, 191, 36, .35); margin-bottom: -2vw; user-select: none; white-space: nowrap; }

.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(15, 23, 42, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--cream); border-top: 1px solid var(--ink-line); transform: translateY(110%); transition: transform .4s var(--ease); }
.sticky-cta .mono { font-size: 12px; color: var(--solar); }
.sticky-cta .btn { min-height: 48px; flex: 1; max-width: 240px; }
.sticky-cta.is-shown { transform: none; }
@media (min-width: 1000px) { .sticky-cta { display: none; } }
@media (max-width: 999px) { .footer { padding-bottom: 72px; } }

.toast { position: fixed; left: 50%; bottom: 88px; z-index: 2000; translate: -50% 0; max-width: calc(100vw - 32px); background: var(--solar); color: var(--ink); padding: 12px 18px; font-weight: 800; font-size: 14px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.toast.is-shown { opacity: 1; transform: none; }

/* ---------- 14 DIALOGS / FORMS / CART ---------- */
dialog { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; overflow: hidden; }
@media (min-width: 700px) { dialog.modal { overflow: visible; } }
dialog::backdrop { background: rgba(15, 23, 42, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal { width: 100%; height: 100%; margin: 0; }
.modal[open] { display: grid; place-items: center; }
.modal__panel { position: relative; width: 100%; height: 100%; background: var(--paper); padding: 56px var(--gutter) 32px; overflow-y: auto; animation: modal-in .45s var(--ease) both; }
@media (min-width: 700px) {
  .modal { width: min(560px, calc(100vw - 48px)); height: auto; margin: auto; }
  .modal--wide { width: min(1080px, calc(100vw - 48px)); }
  .modal__panel { height: auto; max-height: calc(100dvh - 48px); padding: 48px 40px 36px; border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--solar); }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; z-index: 5; }
.modal__close svg { width: 22px; height: 22px; }
.modal__close:hover { color: var(--ember); }
.modal__title { font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: .9; letter-spacing: -.045em; margin-bottom: 14px; }
.modal__lead { color: rgba(15, 23, 42, .8); margin-bottom: 24px; }
.demo-badge { display: table; font-size: 10px; font-weight: 700; background: var(--ink); color: var(--solar); padding: 4px 8px; margin-bottom: 18px; max-width: calc(100% - 40px); }
.stack { display: grid; gap: 10px; }
.auth-view { animation: panel-in .4s var(--ease) both; }

.form { display: grid; gap: 2px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--f-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.field .opt { opacity: .55; font-size: 10px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink);
  font-size: 16px; /* prevents iOS zoom */
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(251, 191, 36, .6); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field__err { color: var(--error); font-size: 13px; font-weight: 700; min-height: 0; }
.field__err:empty { display: none; }
.field__hint { font-size: 10px; opacity: .65; }
.field--dark label { color: var(--solar); }
.field--dark input, .field--dark textarea { background: transparent; color: var(--cream); border-color: var(--ink-line); }
.field--dark input:focus, .field--dark textarea:focus { border-color: var(--solar); }
.field--dark .field__err { color: #FCA5A5; }
.phone { display: grid; grid-template-columns: 92px 1fr; }
.phone select { border-right: 0 !important; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 500px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.checkbox { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--ink); }
.form__switch { text-align: center; margin-top: 12px; font-size: 14px; }
.form__status { font-weight: 700; font-size: 14px; margin-top: 8px; text-align: center; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); }

fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
legend, .legend-like { font-size: 12px; font-weight: 700; color: var(--ember); padding: 0 0 12px; margin-bottom: 8px; border-bottom: 2px solid var(--ink); width: 100%; }

/* Cart drawer */
.drawer { width: 100%; height: 100dvh; margin: 0 0 0 auto; }
.drawer[open] { display: block; }
.drawer__panel { height: 100%; background: var(--paper); display: flex; flex-direction: column; padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; animation: drawer-in .45s var(--ease) both; }
@media (min-width: 560px) { .drawer { width: 460px; } .drawer__panel { border-left: 2px solid var(--ink); } }
@keyframes drawer-in { from { transform: translateX(100%); } }
.drawer__head { display: flex; justify-content: space-between; align-items: start; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.drawer__head .modal__close { position: static; }
.drawer__head h2 { font-weight: 900; text-transform: uppercase; font-size: 40px; line-height: .9; letter-spacing: -.04em; }
.drawer__head .eyebrow { margin-bottom: 8px; }
.drawer__user { font-size: 11px; margin: 10px 0 0; opacity: .7; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.thumb { width: 88px; height: 110px; background: radial-gradient(circle at 50% 60%, var(--solar), var(--ember)); overflow: hidden; }
.thumb--sm { width: 56px; height: 72px; flex: none; }
.cart-item h3 { font-weight: 900; text-transform: uppercase; font-size: 16px; line-height: 1.1; }
.cart-item__info .mono { font-size: 11px; margin: 4px 0 12px; opacity: .75; }
.cart-item__price { font-weight: 900; font-size: 18px; }
.qty { display: inline-grid; grid-template-columns: 44px 44px 44px; border: 1.5px solid var(--ink); }
.qty button { background: none; border: 0; font-size: 20px; font-weight: 700; min-height: 44px; }
.qty button:hover { background: var(--solar); }
.qty button[disabled] { opacity: .3; cursor: not-allowed; background: none; }
.qty output { display: grid; place-items: center; font-weight: 900; border-inline: 1.5px solid var(--ink); }
.cart-empty { padding: 40px 0; display: grid; gap: 16px; justify-items: start; }
.drawer__foot { margin-top: auto; padding-top: 20px; }
.ship-note { font-size: 11px; padding: 8px 10px; background: var(--cream); border-left: 3px solid var(--solar); margin-bottom: 12px; }
.ship-note:empty { display: none; }
.totals { display: grid; margin-bottom: 16px; }
.totals > div { display: flex; justify-content: space-between; padding: 8px 0; }
.totals dt { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; }
.totals dd { font-weight: 800; }
.totals__grand { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px !important; }
.totals__grand dd, .totals__grand dt { font-size: 22px; font-weight: 900; font-family: var(--f-display); }
.drawer__remove { display: block; margin: 8px auto 0; }

/* Checkout */
.checkout__grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .checkout__grid { grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; } .checkout__summary { position: sticky; top: 0; } }
.checkout__summary { background: var(--ink); color: var(--cream); padding: 24px; }
.checkout__summary .legend-like { color: var(--solar); border-color: var(--solar); }
.summary-item { display: flex; gap: 14px; align-items: center; padding: 12px 0 18px; border-bottom: 1px solid var(--ink-line); margin-bottom: 12px; }
.summary-item__name { font-weight: 900; text-transform: uppercase; }
.summary-item .mono { font-size: 12px; color: var(--solar); }
.totals--dark .totals__grand { border-color: var(--solar); }

/* Confirmation */
.confirm { text-align: left; overflow: hidden; }
.confirm__sun { position: absolute; right: -80px; top: -80px; width: 220px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--solar-soft), var(--solar) 45%, rgba(251, 191, 36, 0) 70%); pointer-events: none; animation: sun-breathe 5s ease-in-out infinite; }
.confirm__list { border-top: 2px solid var(--ink); margin: 18px 0 8px; }
.confirm__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.confirm__list dt { font-size: 12px; font-weight: 700; color: var(--ember); }
.confirm__list dd { font-weight: 800; text-align: right; }
.confirm .btn { margin-top: 20px; }

/* ---------- 15 MOTION & A11Y ---------- */
/* Scroll reveal variants — toggled by initScrollAnimations() */
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--rd, 0ms); }
.js [data-reveal="fade-up"] { transform: translateY(36px); }
.js [data-reveal="slide-left"] { transform: translateX(48px); }
.js [data-reveal="slide-right"] { transform: translateX(-48px); }
.js [data-reveal="scale-in"] { transform: scale(.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .js .intro { display: none; }
  .js [data-reveal], .js .hero-enter, .js .feel__word { opacity: 1 !important; transform: none !important; }
  .flare { display: none; }
  .ticker__track { animation: none; }
  .product-media--hero > * { animation: none; }
}
