/* Alexander's: layout and components. Tokens live in tokens.css (see DESIGN.md). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
  background: radial-gradient(120% 60% at 50% 0%, var(--royal-deep), var(--night) 70%) fixed, var(--night);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-soft); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0 0 0.45em; letter-spacing: 0.02em; }
h2 { font-size: var(--step-3); color: var(--text); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 64ch; }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--text); }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter-r) 0 var(--gutter); }
.eyebrow { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--salt); margin: 0 0 1em; }
.eyebrow--light { color: var(--salt); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.meander { height: 14px; background: var(--meander) repeat-x center / auto 14px; opacity: 0.9; }

/* the brand wordmark: carved gold capitals, after the pouch lettering */
.wordmark {
  font-family: var(--wordmark); font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; line-height: 0.95;
  background: linear-gradient(180deg, #fff3c4 0%, #f5cf6a 28%, #d99a2b 52%, #a86a14 64%, #f1c35c 80%, #fbe2a0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #5a3208) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 48px;
  font-family: var(--display); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); background: var(--salt); border: 1px solid var(--salt);
  padding: 0.8em 1.6em; border-radius: 999px; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: #f8c2bb; box-shadow: 0 10px 30px -8px rgba(244, 167, 160, 0.45); }
.btn--gold { background: transparent; color: var(--text); border-color: rgba(244, 230, 205, 0.45); }
.btn--gold:hover { background: rgba(244, 230, 205, 0.08); border-color: var(--salt); box-shadow: none; }
.btn--small { min-height: 40px; padding: 0.55em 1.1em; font-size: 0.72rem; }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: max(10px, env(safe-area-inset-top, 0px)) var(--gutter-r) 10px var(--gutter);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.is-solid { background: rgba(28, 10, 34, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.nav__brand img { width: 40px; height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
.nav__brand span { font-family: var(--wordmark); font-weight: 900; font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-soft); }
.nav__links { display: flex; gap: 24px; }
.nav__links a { color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.nav__links a:hover { color: var(--gold-soft); opacity: 1; }
.nav__toggle { display: none; width: 44px; height: 44px; background: rgba(28, 10, 34, 0.6); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--gold-soft); transition: transform 0.3s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 40; background: rgba(28, 10, 34, 0.97); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--display); font-weight: 700; font-size: var(--step-2); color: var(--text); text-decoration: none; }
@media (max-width: 900px) { .nav__links, .nav > .btn { display: none; } .nav__toggle { display: block; } }

/* ---------- opener: the map on the desk ---------- */
.opener { position: relative; height: 260vh; }
.opener__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #241109; }
.opener__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transform-origin: 13% 39%; }
.opener__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s; }
.opener.has-3d .opener__canvas { opacity: 1; }
.opener.has-3d .opener__fallback { visibility: hidden; }
.opener__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(28, 10, 34, 0.75) 100%); }
.opener__title { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 90px var(--gutter-r) 120px var(--gutter); will-change: opacity, transform; }
.opener__title::before { content: ""; position: absolute; inset: 18% 8%; z-index: -1; background: radial-gradient(closest-side, rgba(28, 10, 34, 0.8), transparent); }
.opener__badge { width: clamp(84px, 12vw, 130px); height: auto; margin-bottom: 8px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6)); }
.opener h1 { margin: 0; display: grid; justify-items: center; }
.opener__brand { font-size: var(--step-4); }
.opener__brand { font-family: var(--wordmark); font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; line-height: 0.95;
  background: linear-gradient(180deg, #fff3c4 0%, #f5cf6a 28%, #d99a2b 52%, #a86a14 64%, #f1c35c 80%, #fbe2a0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #5a3208) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.7)); }
.opener__script { font-family: var(--script); font-style: italic; font-weight: 600; font-size: var(--step-2); color: var(--parchment); margin-top: 0.2em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.opener__line { margin: 1.2em 0 0; font-family: var(--display); font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; font-size: 0.78rem; color: var(--gold-soft); text-shadow: 0 2px 10px #000; }
.opener__line::before, .opener__line::after { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--gold); vertical-align: middle; margin: 0 14px; }
.opener__begin { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); text-align: center; opacity: 0; pointer-events: none; width: min(90vw, 560px); }
.opener__begin p:last-child { font-family: var(--display); font-weight: 700; font-size: var(--step-2); color: var(--parchment); text-shadow: 0 2px 18px #000; margin: 0 auto; }
.opener__scroll { position: absolute; bottom: max(22px, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: var(--parchment); text-decoration: none; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; text-shadow: 0 1px 6px #000; }
.opener__scroll i { width: 1px; height: 40px; background: linear-gradient(var(--gold-soft), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- the film ---------- */
.film { position: relative; background: var(--night); }
.chapter { position: relative; }
.chapter__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--night); }
.frame { position: absolute; inset: 0; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.frame img, .frame canvas { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); }
.frame__todo { position: absolute; top: 84px; right: var(--gutter-r); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(28, 10, 34, 0.75); color: var(--gold-soft); border: 1px dashed var(--gold); padding: 4px 10px; border-radius: 999px; }
.chapter__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(28, 10, 34, 0.45) 0%, transparent 18%, transparent 62%, rgba(28, 10, 34, 0.7) 100%);
  transition: background 0.6s var(--ease); }
.chapter__stage.is-intro::after { background: rgba(28, 10, 34, 0.62); }

.chapter__card { position: absolute; z-index: 3; left: 50%; top: 50%; width: min(88vw, 560px); transform: translate(-50%, -46%) scale(0.96); opacity: 0; pointer-events: none;
  text-align: center; color: var(--ink); padding: 34px 28px 30px; border-radius: 6px;
  background: linear-gradient(180deg, #fbf2dc, var(--parchment) 40%, var(--parchment-2));
  box-shadow: var(--shadow), inset 0 0 0 2px var(--gold), inset 0 0 0 7px var(--parchment), inset 0 0 0 8px var(--gold-deep);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.chapter__card.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.chapter__act { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); margin: 0 auto 6px; }
.chapter__num { width: 64px; height: 64px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--ink);
  background: radial-gradient(circle at 35% 30%, #fbe39b, var(--gold) 55%, #9a6a18); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35), 0 4px 10px rgba(0, 0, 0, 0.3); }
.chapter__title { font-family: var(--wordmark); font-weight: 900; font-size: var(--step-3); color: var(--royal); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.01em; }
.chapter__year { font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin: 0 auto 14px; }
.chapter__intro { font-family: var(--script); font-style: italic; font-size: var(--step-1); color: var(--ink); margin: 0 auto; max-width: 26ch; line-height: 1.35; }

.narration { position: absolute; z-index: 3; left: 50%; bottom: max(7vh, calc(env(safe-area-inset-bottom, 0px) + 28px)); width: min(calc(100vw - 32px), 720px);
  transform: translate(-50%, 16px); opacity: 0; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); pointer-events: none;
  background: linear-gradient(180deg, #fbf2dc, var(--parchment)); color: var(--ink); border-radius: 4px; padding: 16px 22px;
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.7), inset 0 0 0 1.5px var(--gold-deep); }
.narration::before, .narration::after { content: ""; position: absolute; top: -6px; bottom: -6px; width: 14px; border-radius: 6px; background: linear-gradient(90deg, #c9a66a, #f3e2bb 50%, #c9a66a); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.narration::before { left: -8px; } .narration::after { right: -8px; }
.narration.is-on { opacity: 1; transform: translate(-50%, 0); }
.narration__text { margin: 0 auto; max-width: none; font-family: var(--display); font-weight: 700; font-size: var(--step-1); line-height: 1.3; text-align: center; }
.chapter__progress { position: absolute; z-index: 3; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transform-origin: left; transform: scaleX(0); }

/* chapter rail */
.film__rail { position: fixed; z-index: 30; right: max(14px, var(--gutter-r)); top: 50%; transform: translateY(-50%); display: grid; gap: 6px; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); }
.film__rail.is-visible { opacity: 1; pointer-events: auto; }
.film__rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-decoration: none; color: var(--parchment); }
.film__rail b { order: 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-family: var(--display); font-size: 0.66rem; background: rgba(28, 10, 34, 0.7); border: 1px solid var(--gold); color: var(--gold-soft); transition: background 0.3s, color 0.3s, transform 0.3s; }
.film__rail span { font-family: var(--display); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; text-shadow: 0 1px 6px #000; opacity: 0; transform: translateX(6px); transition: opacity 0.3s, transform 0.3s; }
.film__rail a:hover span, .film__rail a.is-on span { opacity: 1; transform: none; }
.film__rail a.is-past b { background: var(--gold-deep); color: var(--parchment); }
.film__rail a.is-on b { background: var(--gold); color: var(--ink); transform: scale(1.15); }
@media (max-width: 760px) { .film__rail { display: none; } }

/* map chapter */
.map__stage { background: #241109; }
.map__frame { position: absolute; left: 0; top: 0; width: max(100vw, calc(100svh * 1672 / 941)); aspect-ratio: 1672 / 941; transform-origin: 0 0; will-change: transform; }
.map__frame img { width: 100%; height: 100%; }
.map__frame svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map__route-bg { fill: none; stroke: rgba(58, 34, 22, 0.45); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 12; }
.map__route { fill: none; stroke: #ffd36a; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(255, 196, 70, 0.95)); }
.map__dot { fill: #fff3c4; filter: drop-shadow(0 0 12px #ffc446); }
.map__stop circle { fill: var(--ink); stroke: #ffd36a; stroke-width: 3; transition: fill 0.4s var(--ease); }
.map__stop text { font-family: var(--display); font-weight: 800; font-size: 26px; fill: var(--ink); paint-order: stroke; stroke: var(--parchment); stroke-width: 7px; opacity: 0; transition: opacity 0.5s var(--ease); }
.map__stop .yr { font-family: var(--mono); font-weight: 500; font-size: 17px; }
.map__stop.is-on circle { fill: #ffd36a; }
.map__stop.is-on text { opacity: 1; }
.map__stop.is-final.is-on circle { fill: var(--salt); stroke: #fff; }
.map__vignette { position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(ellipse at center, transparent 45%, rgba(28, 10, 34, 0.7) 100%); }

/* reduced motion: chapters become plain stacked pictures */
.film.is-static .chapter { height: auto !important; }
.film.is-static .chapter__stage { position: relative; height: auto; aspect-ratio: 16 / 9; }
.film.is-static .frame:first-of-type { opacity: 1; visibility: visible; }
.film.is-static .chapter__card { display: none; }
.film__fallback { padding: 100px var(--gutter-r) 60px var(--gutter); }

/* ---------- content sections ---------- */
section.salt, section.range, section.wholesale, section.contact { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
section.salt::before, section.range::before, section.contact::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--meander) repeat-x center / auto 14px; opacity: 0.3; }

.salt { background: radial-gradient(60% 70% at 15% 40%, rgba(244, 167, 160, 0.14), transparent 70%), var(--royal-deep); }
.salt__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.salt__art { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow), 0 0 80px -20px rgba(244, 167, 160, 0.5); aspect-ratio: 470 / 530; }
.salt__art img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.facts li { padding: 16px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(74, 26, 90, 0.35); }
.facts b { display: block; font-family: var(--display); font-weight: 800; font-size: var(--step-1); color: var(--salt); }
.facts span { display: block; color: var(--text-dim); font-size: var(--step--1); line-height: 1.35; }
@media (max-width: 860px) { .salt__grid { grid-template-columns: 1fr; } .salt__art { aspect-ratio: 16 / 11; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }


.ticks { list-style: none; margin: 1.6em 0 2em; padding: 0; display: grid; gap: 16px; }
.ticks li { padding-left: 32px; position: relative; color: var(--text-dim); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 14px; transform: rotate(45deg); background: linear-gradient(135deg, var(--salt), var(--salt-deep)); box-shadow: 0 0 10px rgba(244, 167, 160, 0.5); }
.ticks b { display: block; color: var(--text); font-family: var(--display); font-weight: 700; letter-spacing: 0.03em; }

.range { background: var(--night); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.range__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { font: 700 0.74rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; min-height: 40px; cursor: pointer; }
.chip.is-on, .chip:hover { background: var(--salt); color: var(--ink); border-color: var(--salt); }
.range__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pack { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, rgba(74, 26, 90, 0.55), rgba(42, 15, 51, 0.8)); border: 1px solid var(--line); transition: transform 0.35s var(--ease), border-color 0.35s; }
.pack[hidden] { display: none; }
.pack:hover { transform: translateY(-4px); border-color: rgba(244, 167, 160, 0.6); }
.pack__img { aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, rgba(244, 167, 160, 0.2), transparent 70%); overflow: hidden; }
.pack__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.pack:hover .pack__img img { transform: scale(1.05); }
.pack__img { position: relative; }
.pack__tag { position: absolute; bottom: 12px; left: 12px; font: 500 0.62rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; background: rgba(28, 10, 34, 0.8); color: var(--gold-soft); border: 1px solid var(--gold); border-radius: 999px; padding: 3px 9px; }
.pack__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.pack__form { font: 500 0.66rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--salt); margin: 0 0 4px; }
.pack h3 { color: var(--text); margin-bottom: 0.3em; }
.pack p { color: var(--text-dim); font-size: var(--step--1); line-height: 1.5; margin-bottom: 1em; }
.pack__sizes { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.pack__sizes span { font: 500 0.68rem var(--mono); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--text); }
.range__note { margin-top: 22px; font-size: var(--step--1); color: var(--text-dim); }

.wholesale { overflow: hidden; background: var(--royal-deep); }
.wholesale__bg { position: absolute; inset: 0; background: url("../assets/story/m04-sm.webp") center / cover; opacity: 0.22; filter: saturate(0.7); }
.wholesale__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--royal-deep) 20%, rgba(42, 15, 51, 0.6)); }
.wholesale__grid, .contact__grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
@media (max-width: 860px) { .wholesale__grid, .contact__grid { grid-template-columns: 1fr; } }

.contact { background: var(--night); }
.contact__direct { color: var(--text-dim); }
.scroll-card { background: linear-gradient(180deg, #fbf2dc, var(--parchment) 50%, var(--parchment-2)); color: var(--ink); border-radius: 6px; padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--shadow), inset 0 0 0 2px var(--gold), inset 0 0 0 7px var(--parchment), inset 0 0 0 8px var(--gold-deep); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__row { display: grid; gap: 6px; }
.form__row--wide, .form .btn, .form__status { grid-column: 1 / -1; }
.form .btn { justify-self: start; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.form label { font: 500 0.7rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.form label span { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: rgba(255, 255, 255, 0.55); border: 1px solid var(--parchment-3); border-radius: 8px; padding: 12px 14px; min-height: 48px; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(217, 164, 58, 0.3); }
.form [aria-invalid="true"] { border-color: var(--salt-deep); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { min-height: 1.5em; margin: 0; color: var(--ink-soft); }
.form__status.is-ok { color: #2f6b2a; }
.form__status.is-error { color: #a3302a; }
.form__status a { color: var(--royal); }

.footer { background: #13061a; padding: 0 0 max(36px, env(safe-area-inset-bottom, 0px)); }
.footer .meander { margin-bottom: 52px; }
.footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; }
.footer__brand img { width: 84px; height: auto; margin-bottom: 12px; }
.footer__brand p { color: var(--text-dim); font-size: var(--step--1); }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer nav a { color: var(--text); text-decoration: none; font: 700 0.74rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; }
.footer nav a:hover { color: var(--gold-soft); }
.footer__small { grid-column: 1 / -1; font: 500 0.66rem var(--mono); color: var(--text-dim); opacity: 0.75; margin: 0; max-width: none; }
@media (max-width: 640px) { .footer__grid { grid-template-columns: 1fr; } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .opener__scroll i { animation: none; }
}

/* text-only chapters */
.text__stage { display: grid; place-items: center; background:
  radial-gradient(60% 55% at 50% 60%, rgba(244, 167, 160, calc(0.12 + 0.3 * var(--glow))), transparent 70%),
  radial-gradient(120% 80% at 50% 120%, rgba(217, 101, 95, calc(0.25 * var(--glow))), transparent 60%), var(--night); }
.text__sparks { position: absolute; inset: 0; opacity: calc(0.3 + 0.7 * var(--glow)); background-image:
  radial-gradient(1.5px 1.5px at 20% 30%, #ffd9d3, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 85% 65%, #ffd9d3, transparent), radial-gradient(1px 1px at 35% 80%, #fff, transparent),
  radial-gradient(2px 2px at 55% 45%, #f4a7a0, transparent), radial-gradient(1px 1px at 10% 70%, #fff, transparent);
  background-size: 340px 340px; animation: drift 30s linear infinite; }
@keyframes drift { to { background-position: 0 -340px; } }
.text__lines { position: relative; z-index: 2; width: min(calc(100vw - 40px), 900px); display: grid; text-align: center; }
.text__lines p { grid-area: 1 / 1; margin: 0 auto; max-width: 22ch; font-family: var(--display); font-weight: 700; font-size: var(--step-3); line-height: 1.15; color: var(--text);
  opacity: 0; transform: translateY(24px); filter: blur(4px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease); text-shadow: 0 0 40px rgba(244, 167, 160, 0.35); }
.text__lines p.is-on { opacity: 1; transform: none; filter: none; }
.film.is-static .text__lines p { opacity: 1; transform: none; filter: none; grid-area: auto; margin-bottom: 0.6em; }
.film.is-static .chapter--text .chapter__stage { aspect-ratio: auto; padding: 80px 0; }
@media (prefers-reduced-motion: reduce) { .text__sparks { animation: none; } }

/* range cards without a pack photo yet: typographic cards */
.pack--text .pack__body { padding: 26px 22px 22px; min-height: 260px; }
.pack--text .pack__body::before { content: ""; display: block; width: 44px; height: 44px; margin-bottom: 18px; background: var(--salt);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.pack--text h3 { font-size: var(--step-2); }
.pack[data-grain="coarse"], .pack[data-grain="bulk"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M8 30l6-9 8 3-2 10-9 1zM24 20l9-7 8 6-3 10-10 1zM20 38l4-8 9 1 2 8-8 3z'/%3E%3C/svg%3E"); }
.pack[data-grain="fine"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg%3E%3Cpath d='M10 14l3-3 3 2-1 4-4 0zM24 10l3-2 3 3-2 3-3-1zM36 16l3-2 2 3-2 3-3-1zM14 28l3-3 3 2-1 4-4 0zM28 24l3-2 3 3-2 3-3-1zM20 38l3-2 3 3-2 3-3-1zM34 36l3-3 3 2-1 4-4 0z'/%3E%3C/g%3E%3C/svg%3E"); }
.pack[data-grain="powder"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M4 40c6-14 14-22 20-22s14 8 20 22z'/%3E%3C/svg%3E"); }
.pack[data-grain="chunks"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M6 34l8-18 14-4 12 10 2 14-16 6z'/%3E%3C/svg%3E"); }
.pack[data-grain="slab"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M4 22l20-8 20 8-20 8zM4 26l20 8 20-8v6l-20 8-20-8z'/%3E%3C/svg%3E"); }

/* ---------- inner pages (our-story, the-salt, faq, wholesale, contact) ---------- */
.page-hero { position: relative; padding: clamp(120px, 16vw, 190px) 0 clamp(50px, 7vw, 90px); background: radial-gradient(70% 90% at 80% 0%, rgba(244, 167, 160, 0.14), transparent 70%), var(--royal-deep); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--meander) repeat-x center / auto 14px; opacity: 0.3; }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; }
.page-hero--image { min-height: min(78vh, 720px); display: grid; align-items: end; }
.page-hero--image .wrap { position: relative; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--royal-deep) 0%, rgba(42, 15, 51, 0.75) 35%, rgba(42, 15, 51, 0.15) 75%), linear-gradient(90deg, rgba(28, 10, 34, 0.7), transparent 60%); }
.page-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.page-hero--side .page-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.page-hero__copy { max-width: 720px; }
.page-hero h1 { font-family: var(--wordmark); font-weight: 900; font-size: var(--step-4); line-height: 1; color: var(--text); text-wrap: balance; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.page-hero__lede p { font-size: var(--step-1); line-height: 1.45; color: var(--text); }
.page-hero__lede .btn { margin: 0.4em 0.5em 0 0; }
.page-hero__lede p:has(.btn) { display: flex; flex-wrap: wrap; gap: 10px; }
.page-hero__side { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow), 0 0 80px -20px rgba(244, 167, 160, 0.45); }
@media (max-width: 760px) { .page-hero--side .page-hero__grid { grid-template-columns: 1fr; } .page-hero__side { max-width: 360px; } }

.prose-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); padding-block: clamp(50px, 7vw, 90px); align-items: start; }
.prose-layout:not(:has(.toc)) { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 90px; display: grid; gap: 2px; border-left: 1px solid var(--line); padding-left: 16px; }
.toc a { color: var(--text-dim); text-decoration: none; font-size: 0.95rem; padding: 5px 0; line-height: 1.3; }
.toc a:hover { color: var(--salt); }
@media (max-width: 900px) { .prose-layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static; border-left: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; } .toc .eyebrow { width: 100%; margin-bottom: 0; } .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; } }

.prose { max-width: 760px; min-width: 0; }
.prose-section { padding-bottom: clamp(36px, 5vw, 60px); margin-bottom: clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.prose-section:last-child { border-bottom: 0; }
.prose h2 { font-size: var(--step-3); color: var(--text); text-wrap: balance; }
.prose h3 { font-family: var(--display); font-size: var(--step-1); color: var(--salt); margin: 1.6em 0 0.5em; }
.prose p, .prose li { color: var(--text); }
.prose p + p { margin-top: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; display: grid; gap: 8px; }
.prose li::marker { color: var(--salt); }
.prose a:not(.btn) { color: var(--salt); }
.prose .btn { margin: 0.2em 0.6em 0.2em 0; }
.prose__figure { margin: 1.4em 0 1.8em; }
.prose__figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.prose__figure figcaption { font: 500 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-top: 10px; }
.page--the-salt .prose__figure { max-width: 380px; }

.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { font: 700 0.72rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--salt); background: rgba(74, 26, 90, 0.4); }
.prose tr:last-child td { border-bottom: 0; }

.faq { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; background: rgba(74, 26, 90, 0.22); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--salt); transition: transform 0.25s var(--ease); }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { padding: 0 18px 8px; }

.prose-band { margin: 10px 0 0; padding: clamp(28px, 5vw, 44px); border-radius: var(--radius); text-align: center; background: radial-gradient(80% 120% at 50% 0%, rgba(244, 167, 160, 0.18), transparent 70%), var(--royal); }
.prose-band p { margin-left: auto; margin-right: auto; }
.prose-band p:first-child strong { display: block; font-family: var(--wordmark); font-weight: 900; font-size: var(--step-2); line-height: 1.1; color: var(--text); }

.form__note { grid-column: 1 / -1; margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.page .scroll-card { margin-top: 20px; }

/* facts we still need from the business: highlighted until filled in */
mark.todo { background: rgba(244, 167, 160, 0.14); color: var(--salt); border: 1px dashed rgba(244, 167, 160, 0.6); border-radius: 4px; padding: 0 5px; font-size: 0.92em; }
.scroll-card mark.todo { color: #a3302a; }

.story-link { padding: clamp(60px, 9vw, 110px) 0; background: radial-gradient(60% 100% at 50% 100%, rgba(244, 167, 160, 0.16), transparent 70%), var(--night); text-align: center; }
.story-link__inner { display: grid; justify-items: center; gap: 6px; }
.story-link__line { font-family: var(--display); font-weight: 700; font-size: var(--step-2); line-height: 1.2; max-width: 26ch; text-wrap: balance; margin-bottom: 0.8em; }
.salt .more { margin-top: 26px; }
