/* ============================================================
   MADRA MÓR — "TEN MINUTES BY LAMPLIGHT" · mockup styles
   One candlelit world. Interaction = light. State = light level.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..700,0..100;1,9..144,300..700,0..100&family=Albert+Sans:ital,wght@0,300..700;1,300..700&family=Spline+Sans+Mono:wght@400;500&display=swap');

/* ---------- tokens ---------- */
:root {
  --ground: #0D0A07;
  --surface: #171009;
  --raised: #211710;
  --hairline: rgba(232, 162, 92, .14);
  --tungsten: #E8A25C;
  --flame: #C97B2E;
  --text: #F1E7DA;
  --text2: #9C8A76;
  --water: #8FB8A9;
  --brass: rgba(214, 178, 110, .42);
  --disp: 'Fraunces', serif;
  --ui: 'Albert Sans', system-ui, sans-serif;
  --mono: 'Spline Sans Mono', monospace;
  --sticky-h: 60px;
  --grain-url: none;
}

@property --lamp {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* smooth scrolling is enabled by JS after load so fragment deep-links and
   programmatic scrolls land instantly (§ fix directive 4) */
html.smooth { scroll-behavior: smooth; }
html, body { background: var(--ground); }
body {
  font-family: var(--ui);
  color: var(--text);
  font-weight: 340;
  line-height: 1.55;
  overflow-x: clip; /* clip, not hidden — hidden makes body a scroll container and kills position:sticky */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(232, 162, 92, .3); }

/* specimen voice (§11) */
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 400;
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
section[id], div[id] { scroll-margin-top: 84px; }

h1, h2, h3, .disp { font-family: var(--disp); font-variation-settings: 'SOFT' 80; font-weight: 380; }
em.gloss { font-family: var(--disp); font-style: italic; font-weight: 340; color: var(--text2); }

/* ---------- dark-glass CTA recipe (§10) ---------- */
.dark-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  background: rgba(5, 8, 16, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glow, var(--tungsten));
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
  border-radius: 999px;
  padding: 0 26px;
  min-height: 48px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: box-shadow .45s ease, border-color .45s ease, background .45s ease;
  white-space: nowrap;
}
.dark-glass:hover {
  box-shadow: 0 0 18px -4px var(--glow, var(--tungsten));
  background: rgba(5, 8, 16, .68);
}
.nowrap { white-space: nowrap; display: inline-block; }

/* ============================================================
   HEADER (§47)
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(23, 16, 9, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--hairline);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 64px;
}
.wordmark {
  font-family: var(--disp);
  font-size: 21px;
  letter-spacing: .04em;
  white-space: nowrap;
  display: flex; align-items: center; min-height: 44px;
}
.wordmark span { color: var(--tungsten); }
.main-nav { display: flex; gap: clamp(12px, 2.4vw, 30px); }
.main-nav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  color: var(--text2);
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  transition: color .3s ease;
}
.main-nav a:hover, .main-nav a[aria-current] { color: var(--text); }
.head-icons { display: flex; align-items: center; gap: 2px; }
.icon-btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text2); position: relative;
  transition: color .3s ease;
}
.icon-btn:hover { color: var(--tungsten); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.basin-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
  background: var(--flame); color: #14100b;
  font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0;
  display: flex; align-items: center; justify-content: center;
  transform: scale(0); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.basin-count.on { transform: scale(1); }
.basin-count.tick { animation: tick .35s ease; }
@keyframes tick { 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.burger { display: none; }

/* mobile sheet */
.nav-sheet {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(13, 10, 7, .8);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 8vh clamp(28px, 8vw, 60px);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.nav-sheet.open { opacity: 1; pointer-events: auto; }
.nav-sheet a {
  font-family: var(--disp); font-size: 30px; padding: 10px 0; min-height: 48px;
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-sheet a .mono { color: var(--text2); }
.nav-sheet .sheet-close {
  position: absolute; top: 10px; right: 14px;
  width: 48px; height: 48px; font-size: 26px; color: var(--text2);
}

/* ============================================================
   HERO (§38)
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-still {
  position: absolute; inset: 0;
  background: url('assets/gen/hero-basin-a.jpg') center 38% / cover no-repeat;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 10, 7, .55) 0%, rgba(13, 10, 7, .1) 34%, rgba(13, 10, 7, .32) 66%, var(--ground) 98%),
    radial-gradient(120% 70% at 50% 108%, rgba(13, 10, 7, .8), transparent 60%);
}
.steam-layer { position: absolute; inset: -10%; mix-blend-mode: screen; pointer-events: none; }
.steam-layer i {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(30px); opacity: .5;
  background: radial-gradient(closest-side, rgba(241, 231, 218, .09), transparent 70%);
}
.steam-layer i:nth-child(1) { left: 30%; top: 6%; width: 46%; height: 60%; animation: drift1 17s ease-in-out infinite alternate; }
.steam-layer i:nth-child(2) { left: 44%; top: -4%; width: 34%; height: 52%; animation: drift2 23s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-6%, -9%) scale(1.12); } }
@keyframes drift2 { to { transform: translate(7%, -12%) scale(1.06); } }

.hero-copy { position: relative; z-index: 2; padding-bottom: clamp(72px, 13vh, 150px); }
.hero-beat { opacity: 0; transform: translateY(22px); }
.loaded .hero-beat { animation: beat 1.1s cubic-bezier(.2, .7, .2, 1) forwards; }
.loaded .hero-beat.b2 { animation-delay: .45s; }
.loaded .hero-beat.b3 { animation-delay: .9s; }
@keyframes beat { to { opacity: 1; transform: none; } }
.hero-eyebrow { color: var(--tungsten); margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(44px, 7.6vw, 108px);
  line-height: .98; letter-spacing: -.01em;
  max-width: 12ch;
}
.hero h1 .amp { color: var(--tungsten); font-style: italic; }
.hero-sub {
  margin-top: 20px; max-width: 44ch;
  color: var(--text2); font-size: clamp(15px, 1.4vw, 18px);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-ctas .dark-glass { min-height: 52px; }
.hero-ctas .ghost { border-color: var(--hairline); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 2; text-align: center; color: var(--text2);
  transition: opacity .6s ease; pointer-events: none;
}
.scroll-cue.gone { opacity: 0; }
.scroll-cue .mono { letter-spacing: .3em; }
.scroll-cue .chev {
  display: block; width: 14px; height: 14px; margin: 10px auto 0;
  border-right: 1px solid var(--tungsten); border-bottom: 1px solid var(--tungsten);
  transform: rotate(45deg);
  animation: chev 2.4s ease-in-out infinite;
}
@keyframes chev { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: .9; } 50% { transform: translateY(7px) rotate(45deg); opacity: .3; } }

/* ---------- liturgy strip (§39) ---------- */
.liturgy { padding: clamp(70px, 11vh, 130px) 0; text-align: center; }
.liturgy p {
  font-family: var(--disp); font-style: italic;
  font-size: clamp(24px, 3.4vw, 44px); font-weight: 340;
  max-width: 24ch; margin: 0 auto;
}
.liturgy p b { color: var(--tungsten); font-weight: 380; }

/* ============================================================
   TEN-MINUTE DIAL (§40)
   ============================================================ */
.dial-sec { position: relative; height: 300vh; }
.dial-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; align-items: center;
}
.dial-still { position: absolute; inset: 0; }
.dial-still .frame {
  position: absolute; inset: 0;
  background: url('assets/gen/base-clay-a.jpg') center 60% / cover no-repeat;
}
.dial-cold .frame { filter: saturate(.55) brightness(.8); }
.dial-cold::after {
  content: ''; position: absolute; inset: 0;
  background: #274a4a; mix-blend-mode: multiply; opacity: .55;
}
.dial-warm { opacity: 0; }
.dial-warm .frame { filter: saturate(1.15) brightness(1.05); }
.dial-warm::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(75% 60% at 30% 88%, rgba(232, 162, 92, .5), transparent 68%);
  mix-blend-mode: screen;
  transition: opacity .8s ease;
}
.dial-sticky.holding .dial-warm::after { opacity: .35; }
.dial-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--ground), transparent 18%, transparent 80%, var(--ground)),
    radial-gradient(120% 90% at 50% 50%, transparent 50%, rgba(13, 10, 7, .75));
}
.dial-steam { opacity: .4; transition: opacity 1s ease; }
.dial-sticky.holding .dial-steam { opacity: 1; }

.dial-ui {
  position: relative; z-index: 3; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(24px, 5vw, 80px); flex-wrap: wrap;
}
.dial-face { position: relative; width: clamp(180px, 22vw, 260px); flex: 0 0 auto; }
.dial-face svg { width: 100%; height: auto; display: block; transform: rotate(-90deg); }
.dial-track { stroke: rgba(232, 162, 92, .16); }
.dial-prog { stroke: var(--tungsten); stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(232, 162, 92, .55)); }
.dial-readout {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.dial-time { font-family: var(--disp); font-size: clamp(34px, 4vw, 52px); font-variant-numeric: tabular-nums; }
.dial-cap { color: var(--tungsten); }

.dial-copy { max-width: 480px; flex: 1 1 300px; }
.dial-copy .mono { color: var(--tungsten); margin-bottom: 14px; }
.dial-copy h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.04; }
.dial-line { margin-top: 16px; color: var(--text2); min-height: 3.2em; transition: opacity .4s ease; }

.hold-gate { margin-top: 22px; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.hold-gate.on { opacity: 1; pointer-events: auto; }
.hold-btn {
  position: relative; min-height: 52px; padding: 0 30px 0 58px;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.hold-btn .ring { position: absolute; left: 10px; top: 50%; translate: 0 -50%; width: 34px; height: 34px; }
.hold-btn .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hold-btn .ring circle { fill: none; stroke-width: 2; }
.hold-btn .ring .rt { stroke: rgba(232, 162, 92, .2); }
.hold-btn .ring .rp {
  stroke: var(--tungsten); stroke-dasharray: 88; stroke-dashoffset: 88;
  transition: stroke-dashoffset .2s linear;
}
.hold-btn.holding .ring .rp { stroke-dashoffset: 0; transition: stroke-dashoffset 3s linear; }
.hold-btn.done { border-color: var(--water); }

/* ============================================================
   THE TREATMENT MENU — shelves + cards (§17–26)
   ============================================================ */
.menu-sec { padding: clamp(60px, 9vh, 110px) 0 40px; }
.menu-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 10px; }
.menu-head h2 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1; }
.menu-head .mono { color: var(--tungsten); margin-bottom: 12px; }

/* PRO toggle (§21) */
.pro-toggle {
  display: inline-flex; align-items: center; border: 1px solid var(--hairline);
  border-radius: 999px; overflow: hidden; height: 46px;
}
.pro-toggle button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  padding: 0 20px; height: 100%; color: var(--text2);
  transition: color .3s ease, background .3s ease;
}
.pro-toggle button[aria-pressed="true"] {
  color: var(--ground);
  background: linear-gradient(180deg, var(--tungsten), var(--flame));
  font-weight: 500;
}

/* assay rail (§24) */
.assay-rail {
  display: flex; gap: 10px; flex-wrap: wrap;
  position: sticky; top: 63px; z-index: 40;
  margin-inline: calc(-1 * clamp(20px, 4vw, 56px));
  padding: 16px clamp(20px, 4vw, 56px) 12px;
  background: rgba(13, 10, 7, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.assay-rail::before {
  content: 'THE ASSAY —'; font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; color: var(--text2);
  align-self: center; margin-right: 6px;
}
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--hairline); color: var(--text2);
  display: inline-flex; align-items: center;
  transition: color .3s, border-color .3s, box-shadow .3s, background .3s;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] {
  color: var(--text); border-color: var(--tungsten);
  box-shadow: 0 0 14px -6px var(--tungsten);
  background: rgba(232, 162, 92, .07);
}

/* shelves (§23) */
.shelf { margin-top: clamp(36px, 5vh, 60px); }
.shelf-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.shelf-head h3 {
  font-family: var(--mono); font-size: 12px; letter-spacing: .3em; font-weight: 500;
  color: var(--tungsten);
}
.shelf-head .liturgy-line { font-family: var(--disp); font-style: italic; color: var(--text2); font-size: 15px; }
.shelf-ledge {
  height: 1px; margin: 14px 0 26px;
  background: linear-gradient(90deg, var(--hairline), rgba(232, 162, 92, .34), var(--hairline));
  box-shadow: 0 6px 18px -2px rgba(201, 123, 46, .18);
}
.shelf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 28px); }

/* ---------- THE CARD — lamplit specimen alcove (§17–22) ---------- */
.card {
  --lamp: 0;
  --glow: color-mix(in oklab, var(--tungsten) 75%, var(--accent) 25%);
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 10px 10px 16px;
  display: flex; flex-direction: column;
  transition: --lamp .6s ease, border-color .5s ease, filter .5s ease;
}
.card.lit { --lamp: .45; }
.card.half { --lamp: .55; }
.card.flare { --lamp: .7; }
.card.on { --lamp: 1; }
.card.on:hover { --lamp: 1; }
.card.off {
  --lamp: 0;
  filter: brightness(.45) saturate(.6);
}
.card.off .quickadd { pointer-events: none; opacity: .35; }
body.pro .card { border-color: var(--brass); }

.card-arch {
  position: relative; display: block;
  border-radius: 999px 999px 12px 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1.18;
  background:
    radial-gradient(85% 55% at 50% 88%, rgba(201, 123, 46, .14), transparent 72%),
    linear-gradient(180deg, #181109, #0f0b07);
  isolation: isolate;
}
/* a. smear back-wall — the Regrade: one asset, two grades.
   Screen-blended so the mud stroke lifts out of the dark slate. */
.smear {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center;
  mix-blend-mode: screen;
  transition: opacity .7s ease;
}
.smear.dry { opacity: .38; filter: saturate(.78) brightness(.92); }
.smear.wet { opacity: 0; filter: saturate(1.3) brightness(1.18); }
.smear-tone { position: absolute; inset: 0; background: var(--surface); mix-blend-mode: multiply; opacity: .22; }
/* b. tungsten practical — light level = state */
.practical {
  position: absolute; inset: 0;
  background: radial-gradient(60% 45% at 50% 78%, var(--glow) 0%, transparent 70%);
  mix-blend-mode: screen;
  opacity: var(--lamp);
}
/* steam wisp (§22) */
.wisp { position: absolute; inset: 0; mix-blend-mode: screen; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.wisp i {
  position: absolute; left: 26%; bottom: 8%; width: 48%; height: 70%;
  background: radial-gradient(40% 46% at 50% 60%, rgba(241, 231, 218, .12), transparent 70%);
  filter: blur(7px); border-radius: 50%;
}
.wisp i:nth-child(2) { left: 38%; width: 34%; background: radial-gradient(42% 48% at 50% 62%, rgba(241, 231, 218, .09), transparent 70%); }
/* c. cutout stack */
.cut-wrap {
  position: absolute; left: 11%; right: 11%; bottom: 9%;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.contact-shadow {
  position: absolute; left: 6%; right: 6%; bottom: -4.5%; height: 16%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .55), transparent 72%);
  transition: transform .6s ease, opacity .6s ease;
}
.cut-rim {
  position: absolute; inset: 0; width: 100%;
  filter: blur(14px);
  mix-blend-mode: screen; opacity: .3;
}
.cut-rim-tint {
  position: absolute; inset: -6%;
  background: radial-gradient(60% 55% at 50% 60%, var(--glow), transparent 70%);
  mix-blend-mode: soft-light; opacity: calc(.25 + var(--lamp) * .5);
}
.cut { position: relative; width: 100%; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
.cut-refl {
  position: absolute; top: 99%; left: 0; width: 100%;
  transform: scaleY(-1);
  opacity: .16; filter: blur(2px);
  -webkit-mask-image: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .8) 100%);
  mask-image: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .8) 100%);
  transition: transform .6s ease;
  pointer-events: none;
}
/* d. grain */
.grain { position: absolute; inset: 0; background-image: var(--grain-url); background-repeat: repeat; opacity: .5; pointer-events: none; }

.pro-tag {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em;
  color: var(--text2); text-transform: uppercase;
}
.prescribed {
  position: absolute; top: 14px; left: 50%; translate: -50% 0; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  color: var(--tungsten); text-shadow: 0 0 12px rgba(232, 162, 92, .6);
  opacity: 0; transition: opacity .7s ease .15s;
}
.card.on .prescribed { opacity: 1; }

/* hover = the lamp flares (§22) */
@media (hover: hover) {
  .card.lit:hover { --lamp: .9; }
  .card.lit:hover .practical { animation: flicker .26s steps(1, end) 1; }
  .card:hover .smear.wet { opacity: .5; }
  .card:hover .smear.dry { opacity: .1; }
  .card:hover .cut-wrap { transform: translateY(-6px); }
  .card:hover .contact-shadow { transform: scaleX(1.12); opacity: .8; }
  .card:hover .cut-refl { transform: scaleY(-1.06); }
  .card:hover .wisp { opacity: 1; }
  .card:hover .wisp i { animation: rise 3.4s linear infinite; }
  .card:hover .wisp i:nth-child(2) { animation-duration: 4.6s; animation-delay: .6s; }
}
@keyframes flicker {
  0% { opacity: calc(var(--lamp) * .4); }
  30% { opacity: calc(var(--lamp) * .95); }
  45% { opacity: calc(var(--lamp) * .55); }
  60% { opacity: var(--lamp); }
  100% { opacity: var(--lamp); }
}
@keyframes rise {
  0% { transform: translateY(14%) scale(.96); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(-30%) translateX(6%) scale(1.08); opacity: 0; }
}

/* card text rows (§19–20) */
.card-rows { padding: 16px 8px 0; display: flex; flex-direction: column; flex: 1; }
.card-mono-row { display: flex; align-items: center; justify-content: space-between; color: var(--text2); }
.accent-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px -1px var(--accent);
}
.card-name { font-size: 23px; margin-top: 8px; line-height: 1.15; }
.card-name .gloss { font-size: 14px; margin-left: 8px; white-space: nowrap; }
.card-job { font-size: 13px; color: var(--text2); margin-top: 4px; }
.card-commerce { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; }
.card-price { font-weight: 500; font-size: 16px; letter-spacing: .01em; }
.quickadd { width: 100%; min-height: 46px; margin-top: 12px; }
.quickadd.adding { color: var(--text2); }
.quickadd.added { border-color: var(--water); color: var(--text); }

/* entry stagger handled by .lit + JS delay */

/* menu foot (§26) */
.menu-foot {
  margin-top: clamp(46px, 7vh, 80px);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center; padding-bottom: 30px;
}
.menu-foot p { font-family: var(--disp); font-style: italic; font-size: 21px; color: var(--text2); }

/* ============================================================
   PROOF — hold to reveal (§29, §42)
   ============================================================ */
.proof-sec { padding: clamp(70px, 10vh, 120px) 0; }
.sec-head { text-align: center; margin-bottom: clamp(34px, 5vh, 54px); }
.sec-head .mono { color: var(--tungsten); display: block; margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.04; }
.proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); max-width: 900px; margin: 0 auto; }
.reveal {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
  isolation: isolate;
}
.reveal .ph {
  position: absolute; inset: 0;
  background-size: 100% 200%;
  transition: opacity .55s ease;
}
.reveal .before { background-position: center top; filter: saturate(.5) brightness(.72) contrast(1.05); }
.reveal .before::after {
  content: ''; position: absolute; inset: 0;
  background: #2b4444; mix-blend-mode: multiply; opacity: .4;
}
.reveal .after { background-position: center bottom; filter: saturate(1.12) brightness(1.05); opacity: 0; }
.reveal .after::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(80% 70% at 50% 85%, rgba(232, 162, 92, .28), transparent 70%);
  mix-blend-mode: screen;
}
.reveal.held .after { opacity: 1; }
.reveal.held .before { opacity: .25; }
.reveal .tag {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text); background: rgba(5, 8, 16, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 8px 16px; pointer-events: none; white-space: nowrap;
  transition: border-color .4s ease, color .4s ease;
}
.reveal.held .tag { border-color: var(--tungsten); }
.proof-line { text-align: center; margin-top: 34px; }
.proof-line .mono { color: var(--text2); letter-spacing: .22em; }
.proof-line a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: var(--tungsten); border-bottom: 1px solid var(--hairline); font-size: 14px; }

/* ---------- trust band (§43) ---------- */
.trust-band { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.trust-band .wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 26px;
  padding-top: 26px; padding-bottom: 26px;
}
.trust-band span { color: var(--text2); }

/* ---------- Maggie (§44) ---------- */
.maggie-sec { padding: clamp(70px, 11vh, 130px) 0; text-align: center; position: relative; overflow: hidden; }
.maggie-glowbed {
  position: absolute; inset: auto 0 0; height: 70%;
  background: radial-gradient(60% 90% at 50% 100%, rgba(201, 123, 46, .16), transparent 70%);
  pointer-events: none;
}
.maggie-sec h2 { font-size: clamp(28px, 3.8vw, 50px); max-width: 20ch; margin: 0 auto; position: relative; }
.maggie-sec .dark-glass { margin-top: 30px; min-height: 54px; position: relative; }
.maggie-note { margin-top: 20px; font-family: var(--disp); font-style: italic; color: var(--text2); font-size: 15px; position: relative; }

/* floating pebble */
.pebble {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(5, 8, 16, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  color: var(--tungsten);
}
.pebble svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.pebble::after {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(232, 162, 92, .5);
  animation: candle 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes candle {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.35); opacity: 0; }
}
body.has-sticky .pebble { bottom: calc(var(--sticky-h) + 30px + env(safe-area-inset-bottom, 0px)); }

/* ---------- education strip (§45) ---------- */
.edu-sec { padding: 0 0 clamp(70px, 10vh, 120px); }
.edu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.edu-card {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--hairline);
  min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; isolation: isolate;
}
.edu-card .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; filter: saturate(.8); transition: opacity .6s ease; z-index: -1; }
.edu-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(13, 10, 7, .9)); z-index: -1; }
.edu-card:hover .bg { opacity: .45; }
.edu-card .mono { color: var(--tungsten); }
.edu-card h3 { font-size: 26px; margin-top: 10px; }
.edu-card p { color: var(--text2); font-size: 14px; margin-top: 6px; max-width: 40ch; }
.edu-card .go { margin-top: 16px; color: var(--tungsten); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; }

/* ============================================================
   FOOTER (§46)
   ============================================================ */
.site-footer { border-top: 1px solid var(--hairline); padding: clamp(50px, 8vh, 90px) 0 40px; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 34px 26px; }
.foot-brand .wordmark { font-size: 24px; }
.foot-brand p { color: var(--text2); font-size: 13px; margin-top: 14px; max-width: 30ch; }
.foot-col h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; color: var(--tungsten); font-weight: 500; margin-bottom: 14px; text-transform: uppercase; }
.foot-col a { display: flex; align-items: center; min-height: 44px; color: var(--text2); font-size: 13.5px; transition: color .3s ease; }
.foot-col a:hover { color: var(--text); }
.foot-col a .mono { margin-right: 8px; font-size: 10px; color: var(--flame); }
.colophon {
  margin-top: clamp(40px, 6vh, 60px); padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text2);
}

/* ============================================================
   CART DRAWER — THE BASIN (§32–37)
   ============================================================ */
.scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0, 0, 0, .3);
  opacity: 0; pointer-events: none; transition: opacity .45s ease;
}
body.drawer-open .scrim { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: 420px; max-width: 100vw;
  background: color-mix(in srgb, var(--raised) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-left: 1px solid var(--brass);
  transform: translateX(102%);
  transition: transform .55s cubic-bezier(.3, .8, .2, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer.peek { transform: translateX(calc(100% - 64px)); }
.waterline { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: rgba(232, 162, 92, .08); }
.waterline i {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0%;
  background: linear-gradient(0deg, var(--flame), var(--tungsten));
  box-shadow: 0 0 12px rgba(232, 162, 92, .6);
  transition: height .9s cubic-bezier(.2, .7, .2, 1);
}
.waterline.full i { animation: gloss 2.4s ease-in-out infinite; }
@keyframes gloss { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.5); } }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px 26px;
  border-bottom: 1px solid var(--hairline);
}
.drawer-head .mono { color: var(--text); letter-spacing: .2em; }
.drawer-close { width: 44px; height: 44px; font-size: 22px; color: var(--text2); display: flex; align-items: center; justify-content: center; }
.ship-row { padding: 14px 20px 0 26px; }
.ship-row .mono { color: var(--tungsten); }
.ship-row.unlocked .mono { color: var(--water); }
.drawer-lines { flex: 1; overflow-y: auto; padding: 8px 20px 8px 26px; list-style: none; }
.line-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--hairline);
  align-items: center;
  transition: opacity .24s ease, transform .24s ease;
  overflow: hidden;
}
.line-item.out { opacity: 0; transform: translateX(16px); }
.line-thumb {
  --glow: color-mix(in oklab, var(--tungsten) 75%, var(--accent) 25%);
  position: relative; width: 72px; height: 84px;
  border-radius: 999px 999px 8px 8px; overflow: hidden;
  background: radial-gradient(70% 55% at 50% 80%, color-mix(in srgb, var(--glow) 30%, transparent), var(--ground) 75%);
  border: 1px solid var(--hairline);
  display: flex; align-items: flex-end; justify-content: center;
}
.line-thumb img { width: 86%; margin-bottom: 6px; }
.line-mid .name { font-family: var(--disp); font-size: 16.5px; }
.line-mid .variant { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--text2); text-transform: uppercase; margin-top: 3px; }
.qty-row { display: flex; align-items: center; gap: 2px; margin-top: 8px; }
.qty-row button {
  width: 44px; height: 44px; margin: -6px 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); font-size: 16px;
  transition: color .3s;
}
.qty-row button:hover { color: var(--tungsten); }
.qty-row .q { font-family: var(--mono); font-size: 12px; min-width: 22px; text-align: center; }
.line-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.line-price { font-weight: 500; font-size: 14.5px; }
.line-remove { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--text2); min-height: 44px; display: flex; align-items: center; }
.line-remove:hover { color: var(--tungsten); }

.crosssell { padding: 14px 20px 6px 26px; }
.crosssell .cs-head { color: var(--text2); margin-bottom: 10px; }
.cs-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--hairline); border-radius: 12px; padding: 10px 12px;
}
.cs-row .line-thumb { width: 48px; height: 56px; }
.cs-row .cs-name { flex: 1; font-family: var(--disp); font-size: 15px; }
.cs-row .cs-name .mono { display: block; color: var(--text2); font-size: 9px; margin-top: 2px; }
.cs-add { min-height: 44px; padding: 0 16px; font-size: 10px; }

.drawer-foot { padding: 16px 20px 20px 26px; border-top: 1px solid var(--hairline); }
.subtotal-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.subtotal-row .mono { color: var(--text2); }
.subtotal { font-family: var(--disp); font-size: 27px; font-variant-numeric: tabular-nums; }
.checkout-pill {
  width: 100%; min-height: 58px; font-size: 12.5px; letter-spacing: .2em;
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { border-color: rgba(232, 162, 92, .45); box-shadow: 0 0 0 -6px rgba(232, 162, 92, 0); }
  50% { border-color: var(--tungsten); box-shadow: 0 0 22px -6px rgba(232, 162, 92, .55); }
}
.drawer-quiet { text-align: center; margin-top: 14px; font-family: var(--disp); font-style: italic; color: var(--text2); font-size: 14.5px; }
.basin-empty { padding: 60px 26px; text-align: center; }
.empty-alcove {
  width: 110px; height: 130px; margin: 0 auto 22px;
  border-radius: 999px 999px 10px 10px;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, #120d08, var(--ground));
}
.basin-empty p { font-family: var(--disp); font-size: 19px; }
.basin-empty a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: var(--tungsten); border-bottom: 1px solid var(--hairline); font-size: 13.5px; }

/* droplet (§20) */
.droplet { position: fixed; z-index: 100; left: 0; top: 0; pointer-events: none; }
.droplet i {
  display: block; width: 10px; height: 10px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--accent, var(--tungsten));
  box-shadow: 0 0 10px var(--accent, var(--tungsten));
}

/* ============================================================
   SHOP PAGE
   ============================================================ */
.page-head { padding: 130px 0 10px; }
.page-head h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1; }
.page-head .mono { color: var(--tungsten); display: block; margin-bottom: 14px; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head .lede { color: var(--text2); margin-top: 16px; max-width: 52ch; }

/* ============================================================
   PDP (§27–31)
   ============================================================ */
.pdp-hero { padding: 108px 0 30px; }
.pdp-split { display: grid; grid-template-columns: 55fr 45fr; gap: clamp(26px, 4vw, 64px); align-items: start; }
.pdp-alcove-outer { position: sticky; top: 84px; }
.pdp-alcove {
  position: relative; border-radius: 999px 999px 16px 16px; overflow: hidden;
  aspect-ratio: 1 / 1.08;
  background: linear-gradient(180deg, #120d08, var(--ground));
  border: 1px solid var(--hairline);
  isolation: isolate;
  --lamp: .55;
}
.pdp-alcove .smear.dry { opacity: .34; }
.pdp-alcove .cut-wrap { left: 9%; right: 9%; bottom: 8%; transition: none; }
.pdp-alcove .back { position: absolute; inset: -4%; transition: none; }

.pdp-sheet .eyebrow { color: var(--text2); display: flex; align-items: center; gap: 12px; }
.pdp-sheet .eyebrow .accent-dot { flex: 0 0 auto; }
.pdp-sheet h1 { font-size: clamp(48px, 7vw, 96px); line-height: .96; margin-top: 14px; letter-spacing: -.01em; }
.pdp-sheet .pdp-gloss { font-family: var(--disp); font-style: italic; color: var(--text2); font-size: 19px; margin-top: 10px; }
.pdp-job { font-size: 17px; margin-top: 14px; color: var(--text); }

.assay-table { margin-top: 26px; border-top: 1px solid var(--hairline); }
.assay-table .row {
  display: grid; grid-template-columns: 86px 1fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.assay-table .row dt { color: var(--tungsten); }
.assay-table .row dd { color: var(--text2); }

/* variant ledger (§28) */
.ledger { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.ledger-row {
  text-align: left; border: 1px solid var(--hairline); border-radius: 12px;
  padding: 14px 18px; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transition: border-color .35s ease, box-shadow .35s ease, background .35s ease;
  width: 100%;
}
.ledger-row .l-wrap { display: block; line-height: 1.8; }
.ledger-row .l-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.ledger-row .l-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--text2); text-transform: uppercase; }
.ledger-row .l-price { font-weight: 500; white-space: nowrap; }
.ledger-row[aria-pressed="true"] {
  border-color: var(--glow, var(--tungsten));
  box-shadow: 0 0 16px -8px var(--glow, var(--tungsten));
  background: rgba(232, 162, 92, .05);
}
.ledger-pro-band { border: 1px solid var(--brass); border-radius: 14px; padding: 10px; position: relative; margin-top: 4px; }
.ledger-pro-band > .mono { position: absolute; top: -8px; left: 16px; background: var(--ground); padding: 0 8px; color: var(--text2); font-size: 9.5px; letter-spacing: .2em; }
.ledger-pro-band .ledger-row { border-color: transparent; }
.ledger-pro-band .ledger-row[aria-pressed="true"] { border-color: var(--glow, var(--tungsten)); }

.pdp-add { width: 100%; margin-top: 20px; min-height: 56px; font-size: 12px; }
.trust-row { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 20px; color: var(--text2); }

/* ritual band (§29) */
.ritual-band { padding: clamp(70px, 10vh, 120px) 0 30px; }
.ritual-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 26px); }
.ritual-step { border-top: 1px solid var(--hairline); padding-top: 18px; }
.ritual-step .mono { color: var(--flame); }
.ritual-step h3 { font-size: 24px; margin-top: 10px; }
.ritual-step p { color: var(--text2); font-size: 13.5px; margin-top: 8px; }
.ritual-more { margin-top: 20px; }
.ritual-more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tungsten); border-bottom: 1px solid var(--hairline); font-size: 14px; }

/* other eight rail (§29) */
.rail-sec { padding: clamp(60px, 9vh, 100px) 0 20px; }
.mini-rail {
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 22px;
  scrollbar-width: thin; scrollbar-color: var(--raised) transparent;
}
.mini-card {
  --glow: color-mix(in oklab, var(--tungsten) 75%, var(--accent) 25%);
  flex: 0 0 190px; scroll-snap-align: start;
  border: 1px solid var(--hairline); border-radius: 14px;
  background: var(--surface); padding: 8px 8px 14px;
  transition: border-color .4s ease;
}
.mini-card:hover { border-color: var(--glow); }
.mini-arch {
  position: relative; border-radius: 999px 999px 8px 8px; overflow: hidden;
  aspect-ratio: 1/1.1;
  background: radial-gradient(70% 50% at 50% 80%, color-mix(in srgb, var(--glow) 22%, transparent), var(--ground) 78%);
  display: flex; align-items: flex-end; justify-content: center;
}
.mini-arch img { width: 82%; margin-bottom: 8px; }
.mini-card .mini-no { color: var(--text2); display: block; padding: 10px 8px 0; }
.mini-card .mini-name { font-family: var(--disp); font-size: 16.5px; padding: 2px 8px 0; }
.mini-card .mini-price { font-size: 12.5px; color: var(--text2); padding: 2px 8px 0; }

/* accordions + label row (§29–30) */
.pdp-lower { padding: clamp(50px, 8vh, 90px) 0; max-width: 820px; }
.acc { border-top: 1px solid var(--hairline); }
.acc:last-of-type { border-bottom: 1px solid var(--hairline); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; padding: 8px 4px;
  font-family: var(--disp); font-size: 20px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .mono { color: var(--text2); }
.acc summary::after { content: '+'; font-family: var(--mono); color: var(--tungsten); font-size: 18px; margin-left: 16px; }
.acc[open] summary::after { content: '–'; }
.acc .acc-body { padding: 0 4px 26px; color: var(--text2); font-size: 15px; max-width: 62ch; }
.acc .acc-body a { color: var(--tungsten); border-bottom: 1px solid var(--hairline); display: inline-block; padding: 13px 0; margin: -13px 0; }

.label-row { margin: 34px 0 8px; }
.label-row .mono { color: var(--text2); display: block; margin-bottom: 14px; }
.label-thumbs { display: flex; gap: 14px; }
.label-thumbs button {
  width: 92px; height: 92px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--hairline); position: relative;
  transition: border-color .35s ease;
}
.label-thumbs button:hover { border-color: var(--tungsten); }
.label-thumbs img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); }

.lightbox {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(10, 7, 4, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
  padding: 30px;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-height: 74vh; max-width: min(92vw, 760px);
  border-radius: 8px; border: 1px solid var(--hairline);
}
.lightbox .cap { color: var(--text2); text-align: center; }
.lightbox .lb-close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; font-size: 26px; color: var(--text2); }

/* PDP sticky bar (§31) */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
  min-height: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
  padding: 8px clamp(16px, 4vw, 28px) calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 8, 16, .72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--glow, var(--hairline));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transform: translateY(110%);
  transition: transform .5s cubic-bezier(.3, .8, .2, 1);
}
.sticky-bar.on { transform: translateY(0); }
.sticky-bar .sb-left .sb-name { font-family: var(--disp); font-size: 15px; }
.sticky-bar .sb-left .sb-price { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--text2); margin-top: 2px; }
.sticky-bar .dark-glass { min-height: 46px; flex: 0 0 auto; }
body.has-sticky main { padding-bottom: calc(var(--sticky-h) + 16px + env(safe-area-inset-bottom, 0px)); }

/* maggie card small (PDP) */
.maggie-card {
  margin-top: 40px; border: 1px solid var(--hairline); border-radius: 16px;
  padding: 26px; text-align: center;
  background: radial-gradient(80% 100% at 50% 120%, rgba(201, 123, 46, .12), transparent 70%);
}
.maggie-card h3 { font-size: 22px; }
.maggie-card .dark-glass { margin-top: 18px; }

/* ============================================================
   PHASE 2 — INNER PAGES
   Same world, deeper rooms. No new registers.
   ============================================================ */

/* ---------- shared inner-page bits ---------- */
.page-head .lede a, .cta-band .quiet a, .why-intro a, .gallery-note a {
  color: var(--tungsten); border-bottom: 1px solid var(--hairline);
  display: inline-block; padding: 13px 0; margin: -13px 0;
}
.inner-sec { padding: clamp(50px, 8vh, 100px) 0; }
.cta-band { text-align: center; padding: clamp(60px, 10vh, 120px) 0; position: relative; overflow: hidden; }
.cta-band .glowbed {
  position: absolute; inset: auto 0 0; height: 70%;
  background: radial-gradient(60% 90% at 50% 100%, rgba(201, 123, 46, .16), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(28px, 3.8vw, 50px); max-width: 22ch; margin: 0 auto; position: relative; }
.cta-band .dark-glass { margin-top: 30px; min-height: 54px; position: relative; }
.cta-band .quiet { margin-top: 20px; font-family: var(--disp); font-style: italic; color: var(--text2); font-size: 15px; position: relative; }
.inline-link { color: var(--tungsten); border-bottom: 1px solid var(--hairline); display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- WHY-MUD ---------- */
.why-intro { max-width: 700px; padding-bottom: clamp(40px, 6vh, 70px); }
.why-intro p { color: var(--text2); font-size: clamp(15px, 1.4vw, 17.5px); margin-top: 16px; max-width: 58ch; }
.why-intro p b { color: var(--text); font-weight: 420; }
.dial-long { height: 560vh; }
.why-dial .frame { background-image: url('assets/gen/hero-basin-b.jpg'); background-position: center 45%; }
.dial-step-no { color: var(--text2); display: block; margin-bottom: 8px; }
.dial-title { font-family: var(--disp); font-size: clamp(22px, 2.8vw, 38px); line-height: 1.1; margin-top: 6px; transition: opacity .4s ease; }
.dial-line.lg { min-height: 8.5em; max-width: 48ch; }
@media (max-width: 768px) { .dial-line.lg { min-height: 11em; font-size: 14px; } }

.callout-frost {
  --accent: #8FB8C9;
  --glow: color-mix(in oklab, var(--tungsten) 75%, var(--accent) 25%);
  position: relative;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 16px;
  padding: clamp(24px, 3.5vw, 40px);
  max-width: 760px; margin: 0 auto;
  background:
    radial-gradient(90% 80% at 50% 118%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    var(--surface);
  overflow: hidden;
}
.callout-frost .frost-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--text2); }
.callout-frost .frost-eyebrow .accent-dot { background: var(--accent); box-shadow: 0 0 8px -1px var(--accent); }
.callout-frost h3 { font-size: clamp(21px, 2.4vw, 28px); margin-top: 12px; }
.callout-frost p { color: var(--text2); margin-top: 10px; max-width: 54ch; }
.callout-frost p b { color: var(--text); font-weight: 420; }

/* ---------- FAQ / ABOUT ---------- */
.liturgy-editorial { max-width: 780px; padding: clamp(30px, 5vh, 60px) 0 0; }
.liturgy-editorial p {
  font-family: var(--disp); font-weight: 340;
  font-size: clamp(21px, 2.9vw, 34px); line-height: 1.32;
  margin-bottom: 1.1em;
}
.liturgy-editorial p b { color: var(--tungsten); font-weight: 380; }
.liturgy-editorial p.lit-quiet { font-size: clamp(16px, 1.8vw, 21px); font-style: italic; color: var(--text2); }
.faq-maggie { max-width: 780px; }
.faq-maggie .maggie-card { margin-top: 10px; }
.maggie-more { margin-top: 14px; font-size: 13.5px; color: var(--text2); }
.maggie-more a { color: var(--tungsten); border-bottom: 1px solid var(--hairline); display: inline-block; padding: 12px 0; margin: -12px 0; }

.faq-accs { max-width: 780px; margin-top: clamp(30px, 5vh, 50px); }
.faq-accs .acc {
  border: 1px solid var(--hairline); border-radius: 14px;
  background: rgba(5, 8, 16, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 0 clamp(16px, 2.4vw, 26px);
  margin-bottom: 12px;
  transition: border-color .4s ease, box-shadow .4s ease;
}
.faq-accs .acc:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq-accs .acc[open] { border-color: rgba(232, 162, 92, .34); box-shadow: 0 0 18px -10px var(--tungsten); }
.faq-accs .acc summary { min-height: 66px; gap: 16px; font-size: clamp(16.5px, 1.8vw, 20px); }
.faq-accs .acc summary .q-no { color: var(--flame); flex: 0 0 auto; }
.faq-accs .acc summary .q-t { flex: 1; }
.faq-accs .acc .acc-body b { color: var(--text); font-weight: 420; }

/* ---------- GALLERY ---------- */
.specimen-wall { max-width: 640px; margin: 0 auto; }
.specimen-viewer {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: clamp(12px, 1.6vw, 18px);
}
.specimen-viewer .mount {
  position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .6);
  background: #000;
  box-shadow: inset 0 0 26px rgba(0, 0, 0, .6);
}
.specimen-viewer .mount img { width: 100%; filter: saturate(.94) brightness(.86) contrast(1.02); }
.specimen-viewer .mount::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 50% 100%, rgba(232, 162, 92, .1), transparent 65%);
  mix-blend-mode: screen; pointer-events: none;
}
.specimen-cap {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 6px 4px; color: var(--text2);
}
.specimen-cap .accent-mark { color: var(--tungsten); }
.gallery-note { text-align: center; margin-top: clamp(36px, 6vh, 56px); }
.gallery-note p { font-family: var(--disp); font-style: italic; color: var(--text2); font-size: clamp(16px, 1.8vw, 20px); max-width: 46ch; margin: 0 auto; }

/* cut-from-the-sheet crop specimens — CSS windows onto the groomers' composite;
   the raw white sheet itself never renders full-bleed */
.crops-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.2vw, 26px);
  max-width: 880px; margin: clamp(30px, 5vh, 50px) auto 0;
}
.crop-specimen {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: clamp(10px, 1.4vw, 16px);
}
.crop-specimen.wide { grid-column: 1 / -1; }
.crop-window {
  position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .6);
  background-color: #000;
  background-image: url('assets/gallery/beforeafter2.jpg');
  background-repeat: no-repeat;
  box-shadow: inset 0 0 26px rgba(0, 0, 0, .55);
  filter: brightness(.9) saturate(.92);
}
/* warm sepia veil binds the clinical phone-photo whites into the lamplight */
.crop-window::before {
  content: ''; position: absolute; inset: 0;
  background: #8a6a45; mix-blend-mode: multiply; opacity: .16;
}
.crop-window::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 50% 100%, rgba(232, 162, 92, .12), transparent 65%);
  mix-blend-mode: screen;
}
.crops-note {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 10px; padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--hairline); border-radius: 16px;
  background: radial-gradient(90% 80% at 50% 118%, rgba(201, 123, 46, .1), transparent 70%);
}
.crops-note .mono { color: var(--tungsten); }
.crops-note p { font-family: var(--disp); font-style: italic; color: var(--text2); font-size: clamp(15px, 1.6vw, 18px); }
.reveal-solo { max-width: 560px; margin: 0 auto; }
@media (max-width: 768px) {
  .crops-grid { grid-template-columns: 1fr; max-width: 520px; }
  .crop-specimen.wide { grid-column: auto; }
}

/* ---------- STORE LOCATOR ---------- */
.loc-search { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.loc-search input {
  flex: 1 1 280px; min-height: 52px;
  background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 0 24px; color: var(--text); font: inherit; font-size: 15px;
}
.loc-search input::placeholder { color: var(--text2); }
.loc-search .dark-glass { min-height: 52px; }
.dist-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.map-panel {
  position: relative; margin-top: 30px;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--hairline);
  min-height: clamp(260px, 38vw, 420px);
  isolation: isolate;
  display: flex; align-items: center; justify-content: center;
}
.map-still {
  position: absolute; inset: 0;
  background: url('assets/gen/base-clay-b.jpg') center / cover no-repeat;
  opacity: .4; filter: saturate(.55) brightness(.55);
}
.map-grid-lines {
  position: absolute; inset: 0; opacity: .5;
  background:
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(232, 162, 92, .07) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(232, 162, 92, .07) 79px 80px);
}
.map-vignette { position: absolute; inset: 0; background: radial-gradient(110% 100% at 50% 50%, transparent 45%, rgba(13, 10, 7, .8)); }
.map-pin { position: absolute; width: 18px; height: 24px; color: var(--tungsten); filter: drop-shadow(0 0 8px rgba(232, 162, 92, .65)); }
.map-pin svg { width: 100%; height: 100%; fill: currentColor; }
.map-pin::after {
  content: ''; position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(232, 162, 92, .45);
  animation: candle 6s ease-in-out infinite;
}
.map-pin:nth-child(odd)::after { animation-delay: 3s; }
.map-label {
  position: relative; z-index: 2;
  color: var(--text); background: rgba(5, 8, 16, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 12px 22px; letter-spacing: .2em; text-align: center;
}
.loc-note { margin-top: 18px; color: var(--text2); font-size: 14px; max-width: 60ch; }

.season-band { padding: clamp(50px, 8vh, 90px) 0 0; }
.season-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 22px); margin-top: 26px; }
.season-card {
  --glow: color-mix(in oklab, var(--tungsten) 75%, var(--accent) 25%);
  border: 1px solid var(--hairline); border-radius: 14px;
  padding: 22px 20px 24px;
  background:
    radial-gradient(90% 70% at 50% 118%, color-mix(in srgb, var(--glow) 13%, transparent), transparent 70%),
    var(--surface);
  transition: border-color .4s ease;
}
.season-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.season-card .s-head { display: flex; align-items: center; justify-content: space-between; color: var(--text2); }
.season-card h3 { font-size: 21px; margin-top: 12px; }
.season-card p { color: var(--text2); font-size: 13.5px; margin-top: 8px; }

/* ---------- CONTACT ---------- */
.contact-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(26px, 4vw, 60px); align-items: start; }
.contact-form {
  position: relative;
  border: 1px solid var(--hairline); border-radius: 16px;
  padding: clamp(22px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(23, 16, 9, .55), rgba(23, 16, 9, .15));
  overflow: hidden;
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text2); margin-bottom: 8px;
}
.field label .req { color: var(--tungsten); }
.field input, .field textarea {
  width: 100%; min-height: 52px;
  background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 12px;
  padding: 14px 18px; color: var(--text); font: inherit; font-size: 15px;
  transition: border-color .35s ease, box-shadow .35s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(156, 138, 118, .6); }
.field input:focus, .field textarea:focus, .loc-search input:focus {
  outline: none; border-color: var(--tungsten);
  box-shadow: 0 0 0 1px rgba(232, 162, 92, .3), 0 0 18px -6px var(--tungsten);
}
.send-btn { width: 100%; min-height: 54px; font-size: 12px; letter-spacing: .2em; }
.sms-note {
  margin-top: 16px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em;
  text-transform: uppercase; line-height: 2;
  color: var(--text2); opacity: .8;
}
.form-confirm {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 30px;
  background:
    radial-gradient(75% 65% at 50% 85%, rgba(201, 123, 46, .3), transparent 70%),
    rgba(13, 10, 7, .96);
  opacity: 0; pointer-events: none; transition: opacity .7s ease;
}
.form-confirm .lamp-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--tungsten); box-shadow: 0 0 22px 4px rgba(232, 162, 92, .65);
  animation: candle-still 4s ease-in-out infinite;
}
@keyframes candle-still { 0%, 100% { box-shadow: 0 0 18px 3px rgba(232, 162, 92, .5); } 50% { box-shadow: 0 0 30px 7px rgba(232, 162, 92, .75); } }
.form-confirm h3 { font-size: clamp(22px, 2.6vw, 30px); }
.form-confirm p { color: var(--text2); font-family: var(--disp); font-style: italic; font-size: 15.5px; }
.contact-form.sent .form-confirm { opacity: 1; pointer-events: auto; }
.contact-form.sent .cf-body { opacity: .05; }
.cf-body { transition: opacity .7s ease; }

.maggie-panel {
  border: 1px solid var(--hairline); border-radius: 16px;
  padding: clamp(26px, 3.4vw, 40px);
  text-align: center;
  background: radial-gradient(85% 100% at 50% 120%, rgba(201, 123, 46, .14), transparent 70%);
}
.maggie-panel .mono-eyebrow { color: var(--tungsten); display: block; }
.maggie-panel h2 { font-size: clamp(24px, 2.8vw, 34px); margin-top: 12px; }
.maggie-panel .dark-glass { margin-top: 24px; min-height: 54px; }
.maggie-panel .mp-note { margin-top: 16px; font-family: var(--disp); font-style: italic; color: var(--text2); font-size: 15px; }
.maggie-panel .mp-addr { margin-top: 22px; color: var(--text2); line-height: 2.1; }

/* ---------- EDUCATION JOURNAL ---------- */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 26px); margin-top: clamp(30px, 5vh, 50px); }
.journal-card {
  --lamp: .32;
  --glow: color-mix(in oklab, var(--tungsten) 75%, var(--accent) 25%);
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 16px;
  padding: 10px 10px 18px;
  transition: border-color .45s ease;
}
.j-arch {
  position: relative; border-radius: 999px 999px 10px 10px; overflow: hidden;
  aspect-ratio: 1 / .82;
  background: linear-gradient(180deg, #181109, #0f0b07);
  isolation: isolate;
}
.j-arch .smear.dry { opacity: .32; }
.j-arch .j-no {
  position: absolute; top: 16px; left: 50%; translate: -50% 0;
  color: var(--text2); letter-spacing: .22em;
}
.j-rows { padding: 16px 10px 0; display: flex; flex-direction: column; flex: 1; }
.j-meta { display: flex; align-items: center; justify-content: space-between; color: var(--text2); }
.j-title { font-family: var(--disp); font-size: 21px; line-height: 1.18; margin-top: 8px; }
.j-ex { color: var(--text2); font-size: 13.5px; margin-top: 6px; flex: 1; }
.j-go { margin-top: 14px; color: var(--tungsten); font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; }
@media (hover: hover) {
  .journal-card:hover { --lamp: .6; border-color: color-mix(in srgb, var(--glow) 45%, transparent); }
  .journal-card:hover .smear.wet { opacity: .42; }
  .journal-card:hover .smear.dry { opacity: .12; }
}

/* ---------- INGREDIENTS ---------- */
.mono-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 26px); margin-top: clamp(30px, 5vh, 50px); }
.mono-card {
  --lamp: .35;
  --glow: color-mix(in oklab, var(--tungsten) 75%, var(--accent) 25%);
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 16px;
  padding: 10px 10px 20px;
  transition: border-color .45s ease;
}
.mono-card:hover { border-color: color-mix(in srgb, var(--glow) 45%, transparent); }
.ing-photo {
  display: block;
  position: relative; border-radius: 999px 999px 10px 10px; overflow: hidden;
  aspect-ratio: 1 / .88;
  isolation: isolate;
  background: linear-gradient(180deg, #181109, #0f0b07);
}
.ing-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.82) brightness(.78) contrast(1.02);
}
.ing-photo::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13, 10, 7, .35), transparent 35%, rgba(13, 10, 7, .6) 92%);
}
.ing-photo::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(70% 55% at 50% 92%, color-mix(in srgb, var(--glow) 34%, transparent), transparent 72%);
  mix-blend-mode: screen;
}
.ing-rows { padding: 18px 10px 0; display: flex; flex-direction: column; flex: 1; }
.ing-date { color: var(--text2); }
.ing-name { font-family: var(--disp); font-size: 24px; margin-top: 8px; }
.ing-name .gloss { font-size: 14px; }
.ing-body { color: var(--text2); font-size: 13.5px; margin-top: 8px; flex: 1; }
.ing-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ing-chip {
  --glow: color-mix(in oklab, var(--tungsten) 75%, var(--accent) 25%);
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--hairline); border-radius: 999px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text2);
  transition: color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.ing-chip .accent-dot { flex: 0 0 auto; }
.ing-chip:hover { color: var(--text); border-color: var(--glow); box-shadow: 0 0 12px -6px var(--glow); }
.ing-go { margin-top: 16px; color: var(--tungsten); font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- phase-2 responsive ---------- */
@media (max-width: 1020px) {
  .season-grid { grid-template-columns: 1fr 1fr; }
  .journal-grid { grid-template-columns: 1fr 1fr; }
  .mono-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .contact-split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .specimen-wall { grid-template-columns: 1fr; }
  .journal-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .season-grid { grid-template-columns: 1fr; }
  .loc-search .dark-glass { width: 100%; }
}
@media (max-width: 400px) {
  /* phone pills may break between words in tight mounts — clusters stay whole (§26/§50) */
  .maggie-card .dark-glass, .maggie-panel .dark-glass, .menu-foot .dark-glass, .cta-band .dark-glass {
    white-space: normal; text-align: center; line-height: 1.5;
    padding-top: 10px; padding-bottom: 10px; max-width: 100%;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  .hero-beat { opacity: 1 !important; transform: none !important; animation: none !important; }
  .dial-warm { opacity: 1 !important; }
  .hold-gate { display: none !important; }
}

/* ============================================================
   MOBILE LAWS (§48–51)
   ============================================================ */
@media (max-width: 1020px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .pdp-split { grid-template-columns: 1fr; }
  .pdp-alcove-outer { position: static; max-width: 480px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; }
  .shelf-grid {
    display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px; padding: 4px 4px 18px;
    scrollbar-width: none;
  }
  .shelf-grid::-webkit-scrollbar { display: none; }
  .shelf-grid .card { flex: 0 0 72vw; scroll-snap-align: center; }
  .proof-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .ritual-steps { grid-template-columns: 1fr 1fr; }
  .dial-ui { justify-content: center; text-align: center; }
  .dial-copy { max-width: 100%; }
  .hold-gate { display: flex; justify-content: center; }
  .assay-rail { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 14px; }
  .assay-rail::-webkit-scrollbar { display: none; }
  .assay-rail::before { flex: 0 0 auto; }
  .chip { flex: 0 0 auto; }
  .card-name .gloss { display: block; margin-left: 0; margin-top: 2px; }
}

@media (max-width: 480px) {
  .head-icons a[aria-label="Account"] { display: none; }
  .quickadd { font-size: 10px; letter-spacing: .09em; padding: 0 12px; }
  .card-name .gloss { white-space: normal; }
}
@media (max-width: 374px) {
  .head-icons a[aria-label="Search"] { display: none; }
  .wordmark { font-size: 18px; }
}

@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-ctas .dark-glass { width: 100%; }
  .pdp-sheet h1 { font-size: clamp(42px, 13vw, 64px); }
  .trust-band .wrap { flex-direction: column; gap: 10px; }
  .label-thumbs button { width: 80px; height: 80px; }
}
