/* ==========================================================================
   510 WELLNESS — Pure CBD. Natural Relief.
   High-key minimalism · Inter · hairline dividers · one accent per formula
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --ink: #0A0A0A;
  --ink-soft: #5A5A56;
  --ink-faint: #9A9A94;
  --hairline: #E9E9E5;
  --ghost: #F5F5F2;
  --forest: #0B0F0C;
  --accent: #C99A2E; /* overridden per product section */

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 4.25rem;
  --pad: clamp(1.5rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

::selection { background: var(--forest); color: var(--white); }

/* ==========================================================================
   AGE GATE
   ========================================================================== */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--forest);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--pad);
}

.age-gate.is-hidden { display: none; }

/* GSAP-free pages fade the gate out with a class instead */
.age-gate { transition: opacity 0.7s ease; }
.age-gate.is-fading { opacity: 0; pointer-events: none; }

.age-gate__inner { max-width: 30rem; }

.age-gate__brand {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* balances the trailing tracking so the line centers optically */
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 3.5rem;
}

.age-gate__title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.age-gate__copy {
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2.75rem;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: center;
}

.age-gate__btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
}

.age-gate__btn--enter {
  background: var(--white);
  color: var(--forest);
}

.age-gate__btn--enter:hover { transform: scale(1.03); }

.age-gate__btn--exit {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.875rem 2.25rem;
}

.age-gate__btn--exit:hover { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }

.age-gate__fine {
  margin-top: 3.5rem;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--pad);
  color: var(--white);
  transition: color 0.4s, background 0.4s, box-shadow 0.4s;
}

.header.is-solid {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 1px 0 var(--hairline);
}

.header__logo {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.32em;
}

.header__nav {
  display: flex;
  gap: clamp(1.125rem, 2vw, 2.5rem);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.header__nav a { opacity: 0.7; transition: opacity 0.3s; }
.header__nav a:hover { opacity: 1; }

.header__badge {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.5rem 1.125rem;
  border: 1px solid currentColor;
  border-radius: 100px;
  opacity: 0.75;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg { position: absolute; inset: -6%; }

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-sway 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-sway {
  0%   { transform: scale(1.02) translate(0, 0) rotate(0deg); }
  50%  { transform: scale(1.07) translate(-1.2%, 0.8%) rotate(0.4deg); }
  100% { transform: scale(1.04) translate(1%, -0.6%) rotate(-0.3deg); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(11, 15, 12, 0.18) 0%, rgba(11, 15, 12, 0.62) 100%),
    linear-gradient(to bottom, rgba(11, 15, 12, 0.35), transparent 30%, transparent 70%, rgba(11, 15, 12, 0.5));
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: var(--pad);
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
}

.hero__logo {
  font-size: clamp(2.5rem, 8.5vw, 6.5rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  line-height: 1.05;
}

.hero__tagline {
  margin-top: 1.75rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero__scroll-line {
  width: 1px;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scroll-drip 2.2s var(--ease-out) infinite;
}

@keyframes scroll-drip {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro {
  padding: clamp(7rem, 16vh, 11rem) var(--pad);
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}

.intro__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2rem;
}

.intro__title {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 2rem;
}

.intro__copy {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-inline: auto;
}

/* ==========================================================================
   PRODUCT SECTIONS
   ========================================================================== */
.product {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  background: var(--white);
  border-top: 1px solid var(--hairline);
}

/* --- Left: canvas stage --- */
.product__stage {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product__num {
  position: absolute;
  left: clamp(0.5rem, 2vw, 2rem);
  bottom: 2rem;
  font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.8;
  color: var(--ghost);
  user-select: none;
  z-index: 0;
}

.product__canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.product__video {
  display: none;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
}

/* --- Right: product card --- */
.product__info {
  position: relative;
  z-index: 2;
  padding: var(--pad);
  padding-right: clamp(2rem, 6vw, 7rem);
}

.card { max-width: 26rem; }

.card__thumb {
  width: min(11rem, 40vw);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 2rem;
  border-radius: 2px;
}

.card__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.125rem;
}

.card__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.card__name {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.125rem;
}

.card__desc {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  max-width: 22rem;
}

.card__terpenes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.card__terpenes li {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  color: var(--ink-soft);
}

.card__potency {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
}

/* ==========================================================================
   DARK PAGE BASE — solo pages, line pages and the solo hub
   ========================================================================== */
.solo-body {
  background: var(--forest);
  color: var(--white);
}

.solo-body ::selection { background: var(--white); color: var(--forest); }

/* Header stays readable over the dark stage */
.solo-body .header.is-solid {
  color: var(--white);
  background: rgba(11, 15, 12, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   DETAILS BAND — three-column facts under a stage
   ========================================================================== */
.solo-details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(4rem, 9vw, 7rem) var(--pad);
}

.solo-details__grid {
  max-width: 64rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.solo-details__grid h3 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.solo-details__grid p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.68);
}

/* ==========================================================================
   LEAVES BACKDROP — shared by solo pages, line pages and the home hub.
   .leaf elements are injected by line.js / solo/solo.js; a looping video
   (if the asset exists) fades in above them.
   ========================================================================== */
.leaves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.leaves__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.leaves__video.is-on { opacity: 0.5; }

.leaf {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--s) * 11rem);
  height: auto;
  color: #22392B;
  opacity: var(--o);
  filter: blur(var(--b));
  transform: rotate(var(--r));
  animation: leaf-sway var(--d) ease-in-out var(--delay, 0s) infinite alternate;
  will-change: transform;
}

@keyframes leaf-sway {
  0%   { transform: rotate(var(--r)) translate(0, 0) scale(1); }
  100% { transform: rotate(calc(var(--r) + 5deg)) translate(0.6rem, -0.9rem) scale(1.03); }
}

.leaves__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 55% at 50% 46%, transparent 0%, rgba(11, 15, 12, 0.55) 78%, rgba(11, 15, 12, 0.9) 100%),
    linear-gradient(to bottom, rgba(11, 15, 12, 0.55), transparent 22%, transparent 72%, rgba(11, 15, 12, 0.75));
}

/* ==========================================================================
   LINE HERO — compact dark opener for catalogue pages (e.g. /cartridges/)
   ========================================================================== */
.line-hero {
  position: relative;
  min-height: 72svh;
  background: var(--forest);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 3rem) var(--pad) 4rem;
}

.line-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2rem;
}

.line-hero__title {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 2rem;
}

.line-hero__copy {
  font-size: 1.0625rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  max-width: 34rem;
}

.line-hero__scroll {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   LINE STAGE — full-viewport opener for edible/pre-roll pages:
   floating SVG product over the leaves backdrop, copy alongside
   ========================================================================== */
.line-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  padding: calc(var(--header-h) + 2rem) var(--pad) 3rem;
}

.line-stage__product {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.line-stage__product svg {
  height: min(56svh, 28rem);
  width: auto;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.55));
  animation: product-float 9s ease-in-out infinite alternate;
}

/* Photo renders: the radial mask melts the charcoal footage background
   into the page, same trick as the solo scrub canvas */
.line-stage__photo {
  height: min(62svh, 32rem);
  width: auto;
  -webkit-mask-image: radial-gradient(ellipse 66% 72% at 50% 50%, #000 46%, transparent 88%);
  mask-image: radial-gradient(ellipse 66% 72% at 50% 50%, #000 46%, transparent 88%);
  animation: product-float 9s ease-in-out infinite alternate;
}

@keyframes product-float {
  from { transform: translateY(12px) rotate(-2deg); }
  to   { transform: translateY(-14px) rotate(2.5deg); }
}

.line-stage__head {
  position: relative;
  z-index: 2;
  max-width: 30rem;
  padding-right: clamp(0rem, 4vw, 4rem);
}

.line-stage__head .line-hero__copy { margin-bottom: 0; }

.line-stage__fine {
  margin-top: 2.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.line-flavors {
  position: relative;
  padding: 0 var(--pad) clamp(4rem, 9vw, 7rem);
}

.line-flavors__eyebrow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   APOTHECARY CATALOG — light band with photo cards (no scrub)
   ========================================================================== */
.apoth {
  background: var(--white);
  color: var(--ink);
  padding: clamp(4rem, 9vw, 7rem) var(--pad);
}

.apoth__grid {
  max-width: 64rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

/* Photos are the content here — keep them visible on mobile too */
.apoth .card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
}

/* ==========================================================================
   SOLO LINE HUB — dark botanical band linking to solo/<flavor>.html pages
   ========================================================================== */
.solo-hub {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
  padding: clamp(5rem, 11vw, 9rem) var(--pad);
}

.solo-hub__leaf {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--s) * 11rem);
  height: auto;
  color: #22392B;
  opacity: var(--o);
  filter: blur(var(--b));
  transform: rotate(var(--r));
  animation: hub-leaf-sway var(--d) ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes hub-leaf-sway {
  0%   { transform: rotate(var(--r)) translate(0, 0); }
  100% { transform: rotate(calc(var(--r) + 5deg)) translate(0.6rem, -0.9rem); }
}

.solo-hub__head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.solo-hub__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 2rem;
}

.solo-hub__title {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 2rem;
}

.solo-hub__copy {
  font-size: 1.0625rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  max-width: 34rem;
  margin-inline: auto;
}

.solo-hub__grid {
  position: relative;
  z-index: 1;
  max-width: 68rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.875rem;
}

.solo-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: 'num name' 'num note';
  column-gap: 1.25rem;
  align-content: center;
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 2px;
  transition: background 0.35s, border-color 0.35s;
}

.solo-tile:hover { background: #101712; border-color: rgba(255, 255, 255, 0.2); }

.solo-tile__num {
  grid-area: num;
  align-self: center;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.solo-tile__name {
  grid-area: name;
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.solo-tile__note {
  grid-area: note;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 0.25rem;
}

/* ==========================================================================
   SHELF — the six lines as record sleeves in a row; hover slides one out
   ========================================================================== */
.shelf {
  position: relative;
  z-index: 1;
  max-width: 74rem;
  margin-inline: auto;
  display: flex;
  gap: 0.625rem;
  height: clamp(24rem, 62vh, 34rem);
}

.shelf__item {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 2px;
  background: #0E1410;
  transition: flex 0.6s var(--ease-out), border-color 0.4s;
}

.shelf__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transform: scale(1.08);
  transition: opacity 0.55s ease, transform 0.7s var(--ease-out);
}

/* bottom gradient so the caption stays readable over the photo */
.shelf__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 12, 0.85), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s;
}

.shelf__num {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  transition: left 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.shelf__meta {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.375rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease 0.12s, transform 0.45s var(--ease-out) 0.12s;
}

.shelf__meta strong {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.shelf__meta em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

/* Slide-out only for real pointers: on touch, emulated :hover would fire on
   tap and animate flex inside the scroll-snap carousel — the swipe glitches */
@media (hover: hover) and (pointer: fine) {
  .shelf__item:hover {
    flex: 3.4;
    border-color: rgba(255, 255, 255, 0.22);
  }

  .shelf__item:hover img { opacity: 1; transform: scale(1); }
  .shelf__item:hover::after { opacity: 1; }
  .shelf__item:hover .shelf__meta { opacity: 1; transform: translateY(0); }
  .shelf__item:hover .shelf__num { left: 1.5rem; transform: none; }
}

/* Keyboard focus mirrors hover — only where a pointer exists; on touch the
   flex shorthand (basis 0) would collapse the focused sleeve to a sliver */
@media (hover: hover) and (pointer: fine) {
  .shelf__item:focus-visible {
    flex: 3.4;
    border-color: rgba(255, 255, 255, 0.22);
  }

  .shelf__item:focus-visible img { opacity: 1; transform: scale(1); }
  .shelf__item:focus-visible::after { opacity: 1; }
  .shelf__item:focus-visible .shelf__meta { opacity: 1; transform: translateY(0); }
  .shelf__item:focus-visible .shelf__num { left: 1.5rem; transform: none; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(4rem, 8vw, 6.5rem) var(--pad) 3rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__tagline { font-weight: 300; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.5); }

.footer__col h3 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.125rem;
}

.footer__col p { font-size: 0.875rem; font-weight: 300; margin-bottom: 0.875rem; }
.footer__col a { border-bottom: 1px solid rgba(255, 255, 255, 0.3); transition: border-color 0.3s; }
.footer__col a:hover { border-color: var(--white); }

.footer__legal p {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  max-width: 52rem;
  margin-bottom: 0.75rem;
}

.footer__copyright { padding-top: 1.5rem; }

/* ==========================================================================
   RESPONSIVE — mobile keeps the pinned canvas scrub: stage on top, card below
   ========================================================================== */
@media (max-width: 900px) {
  .product {
    grid-template-columns: 1fr;
    grid-template-rows: 52svh minmax(0, 1fr);
    height: 100svh;
    min-height: 100svh;
    align-items: start;
  }

  /* Keep the drawn frame clear of the fixed header while pinned */
  .product__stage { height: 100%; padding-top: var(--header-h); }

  /* Mobile stage is short and the canvas photo covers the watermark spot —
     move the number to the open top-left corner (same pattern as Solo pages)
     and lift it above the canvas with a faint ink wash instead of ghost white. */
  .product__num {
    font-size: clamp(4.5rem, 18vw, 7rem);
    left: 1rem;
    bottom: auto;
    top: calc(var(--header-h) + 0.5rem);
    z-index: 2;
    color: rgba(10, 10, 10, 0.08);
  }

  .product__info {
    padding: 1rem var(--pad) 1.5rem;
    overflow: hidden;
  }

  .card { max-width: 100%; }
  .card__thumb { display: none; }
  .card__eyebrow { margin-bottom: 0.75rem; }
  .card__name { font-size: clamp(1.85rem, 8vw, 2.5rem); margin-bottom: 0.75rem; }
  .card__desc { font-size: 0.9375rem; margin-bottom: 1.125rem; }
  .card__terpenes { margin-bottom: 1rem; }
  .card__potency { padding-bottom: 1.125rem; margin-bottom: 1.125rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 2.25rem; }

  .leaf { width: calc(var(--s) * 7.5rem); }

  .solo-details__grid { grid-template-columns: 1fr; }

  /* Shelf keeps the record-crate metaphor on touch: narrow spines in a row,
     a tap pulls one sleeve out (line.js toggles .is-open), a second tap
     follows the link */
  .shelf {
    height: 54svh;
    gap: 0.375rem;
  }

  .shelf__item { min-width: 0; }
  .shelf__item img { opacity: 0.4; }

  .shelf__item.is-open { flex: 9; border-color: rgba(255, 255, 255, 0.22); }
  .shelf__item.is-open img { opacity: 1; transform: scale(1); }
  .shelf__item.is-open::after { opacity: 1; }
  .shelf__item.is-open .shelf__meta { opacity: 1; transform: translateY(0); }
  .shelf__item.is-open .shelf__num { left: 1rem; transform: none; }

  .shelf__meta { left: 1rem; right: 1rem; bottom: 1rem; white-space: normal; }
  .shelf__meta strong { font-size: 1rem; }
  .shelf__meta em { font-size: 0.6875rem; line-height: 1.45; }

  .line-stage {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 2.5rem;
    text-align: center;
  }

  .line-stage__product svg { height: min(38svh, 18rem); }
  .line-stage__photo { height: min(42svh, 22rem); }
  .line-stage__head { max-width: 100%; padding-right: 0; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg img { animation: none; }
  .hero__scroll-line::after { animation: none; }
  .solo-hub__leaf { animation: none; }
  .leaf { animation: none; }
  .shelf__item, .shelf__item img, .shelf__meta, .shelf__num { transition: none; }
  .leaves__video { display: none; }
  .line-stage__product svg { animation: none; }
  .line-stage__photo { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   MOBILE NAV — burger + fullscreen overlay (built by nav.js on every page).
   Inline header links hide at <=1080px: below ~1080 the nine links collide
   with the logo and badge, and under 900 they used to disappear entirely.
   Overlay sits at z-index 90 — under the header (100) so the burger stays
   clickable, under the age gate (1000) always.
   ========================================================================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: 0.875rem;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s;
}

html.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
html.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
html.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 1.5rem) var(--pad) 3rem;
  background: rgba(9, 13, 10, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

html.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
}

.nav-overlay__links {
  display: flex;
  flex-direction: column;
  gap: clamp(0.875rem, 2.5svh, 1.5rem);
}

.nav-overlay__links a {
  color: rgba(242, 244, 240, 0.72);
  font-size: clamp(1.625rem, 5.5svh, 2.25rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1;
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity 0.45s, transform 0.45s, color 0.3s;
  transition-delay: 0s;
}

html.nav-open .nav-overlay__links a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(0.06s + var(--i, 0) * 0.035s);
}

.nav-overlay__links a:hover,
.nav-overlay__links a:focus-visible {
  color: #F2F4F0;
}

.nav-overlay__links a.is-current {
  color: #F2F4F0;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

/* While the menu is open the fixed header floats over the dark overlay —
   force light ink even if .is-solid (white blur bar) was active */
html.nav-open .header,
html.nav-open .header.is-solid {
  color: #F2F4F0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html.nav-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .header__nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header__badge { margin-left: auto; }
}

@media (max-width: 480px) {
  .header__badge {
    padding: 0.4rem 0.75rem;
    letter-spacing: 0.18em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle span,
  .nav-overlay,
  .nav-overlay__links a {
    transition: none;
  }
}

/* Skip-link (injected by nav.js) — visually hidden until keyboard focus */
.skip-link {
  position: fixed;
  top: 0.875rem;
  left: var(--pad);
  z-index: 150;
  background: #F2F4F0;
  color: #0B0F0C;
  padding: 0.625rem 1.25rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  transform: translateY(-300%);
  transition: transform 0.25s;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 2px;
}
