/* =====================================================================
   Mush Love: base design system ("Forest apothecary")
   Tokens · reset · type · layout · buttons · header · footer · cards · motion
   Page-specific styles live in their own files (home.css, shop.css, …).
   ===================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  --bg: #f5efe3;
  --bg-2: #eee5d3;
  --panel: #fbf7ee;
  --line: #e4d9c4;
  --line-2: #d6c8ad;
  --ink: #1d1a14;
  --ink-2: #3a342a;
  --muted: #6f6656;
  --moss: #3f4a2f;
  --moss-2: #56633f;
  --moss-ink: #fbf7ee;
  --moss-tint: #e6e8d3;
  --chip: #ede4d1;
  --amanita: #b3261e;
  --amanita-ink: #fff7f2;
  --amanita-tint: #f5ddd5;
  --gold: #b8873a;
  --accent: var(--amanita);       /* emphasis colour: red by day, mint at night */
  --glow: #3f4a2f;                /* becomes bioluminescent mint in Glow mode */
  --shadow: 60, 48, 28;
  --dark: #12160f;                /* fixed dark surfaces (video bands, footer) */
  --dark-ink: #f1ebdd;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.55, 0, .7, .2);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  --r-xs: 6px;
  --r-s: 10px;
  --r: 16px;
  --r-l: 24px;
  --r-xl: 36px;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 44px);
  --header-h: 72px;
  --announce-h: 34px;
  --section: clamp(80px, 11vw, 150px);

  color-scheme: light;
}

[data-glow="on"] {
  --bg: #0c110b;
  --bg-2: #10170f;
  --panel: #131a12;
  --line: #253021;
  --line-2: #33412c;
  --ink: #efe9da;
  --ink-2: #d6cfbd;
  --muted: #a39d8b;
  --moss: #b5c98f;
  --moss-2: #c8d9a5;
  --moss-ink: #0c110b;
  --moss-tint: #1d2818;
  --chip: #1a2316;
  --amanita: #ff6b5b;
  --amanita-ink: #1a0b08;
  --amanita-tint: #3a1a16;
  --gold: #e3b866;
  --accent: #7cf3c4;
  --glow: #7cf3c4;
  --shadow: 0, 0, 0;
  color-scheme: dark;
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p, h1, h2, h3, h4, h5, h6, li, dt, dd { overflow-wrap: break-word; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
::selection { background: var(--moss); color: var(--moss-ink); }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; border-radius: 4px; }
[data-glow="on"] :focus-visible { outline-color: var(--glow); }
[hidden] { display: none !important; }
main { display: block; outline: none; }

.i { width: 20px; height: 20px; flex: none; }

/* Paper grain overlay: gives every surface a soft printed-paper feel. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.16 0 0 0 0 0.1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-glow="on"] body::after { mix-blend-mode: screen; opacity: .035; }

/* ------------------------------------------------------------ typography */
.display, .h1, .h2, .h3, .serif, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -.02em;
  line-height: 1.04;
}
.display {
  font-size: clamp(52px, 9vw, 136px);
  line-height: .92;
  letter-spacing: -.045em;
  font-weight: 350;
}
.h1, h1 { font-size: clamp(44px, 6vw, 84px); line-height: .98; letter-spacing: -.035em; }
.h2, h2 { font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -.03em; }
.h3, h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.015em; line-height: 1.15; }
.display em, .h1 em, .h2 em, h1 em, h2 em, .footer-big em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--accent);
  transition: color .6s var(--ease), text-shadow .6s var(--ease);
}
[data-glow="on"] :is(.display, .h1, .h2, h1, h2, .footer-big) em { text-shadow: 0 0 28px color-mix(in srgb, var(--glow) 55%, transparent); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}
.eyebrow--dot { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow--dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.prose { max-width: 68ch; font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 1.8em; color: var(--ink); }
.prose h3 { font-size: clamp(21px, 2vw, 25px); margin-top: 1.5em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--moss); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose strong { color: var(--ink); }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(860px + var(--gutter) * 2); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--dark { background: var(--dark); color: var(--dark-ink); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head > div { max-width: 720px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head :where(p:not(.eyebrow)) { margin-top: 18px; color: var(--muted); max-width: 56ch; }
.stack > * + * { margin-top: var(--stack, 16px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hide-sm { }
@media (max-width: 760px) { .hide-sm { display: none !important; } }
.rule { border: 0; height: 1px; background: var(--line); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 10000;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-s);
  font-weight: 700; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--moss);
  --btn-ink: var(--moss-ink);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink);
  border: 1px solid var(--btn-bg);
  font-size: 15px; font-weight: 800; letter-spacing: .01em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn::before { /* liquid fill on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover, var(--ink));
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { color: var(--btn-hover-ink, var(--bg)); border-color: var(--btn-hover, var(--ink)); }
.btn:active { transform: scale(.97); }
.btn .i { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:hover .i[aria-hidden]:first-child:not(:last-child) { transform: none; }
.btn--red { --btn-bg: var(--amanita); --btn-ink: var(--amanita-ink); }
.btn--ghost { --btn-bg: transparent; --btn-ink: var(--ink); border-color: var(--line-2); }
.btn--ghost::before { background: var(--ink); }
.btn--light { --btn-bg: var(--dark-ink); --btn-ink: var(--dark); --btn-hover: var(--amanita); --btn-hover-ink: #fff; }
.btn--ghost-light { --btn-bg: transparent; --btn-ink: var(--dark-ink); border-color: rgba(241, 235, 221, .35); --btn-hover: var(--dark-ink); --btn-hover-ink: var(--dark); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 13.5px; gap: 8px; }
.btn--sm .i { width: 16px; height: 16px; }
.btn--lg { height: 58px; padding: 0 30px; font-size: 16px; }
[data-glow="on"] .btn:not(.btn--ghost):not(.btn--light):not(.btn--ghost-light) { box-shadow: 0 0 0 1px color-mix(in srgb, var(--glow) 25%, transparent), 0 8px 30px -8px color-mix(in srgb, var(--glow) 45%, transparent); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.icon-btn:hover { border-color: var(--moss); }
.icon-btn:active { transform: scale(.92); }
.icon-btn .i { width: 18px; height: 18px; }
.icon-btn[aria-pressed="true"] { background: var(--moss); color: var(--moss-ink); border-color: var(--moss); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 14.5px; color: var(--ink);
  text-decoration: none; background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px; transition: background-size .4s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow .i { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover .i { transform: translateX(3px); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  font-size: 14px; font-weight: 700; color: var(--ink-2);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover { border-color: var(--moss); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip small { font-size: 11.5px; opacity: .65; font-weight: 700; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--chip); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
  background: var(--amanita); color: var(--amanita-ink);
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .i { width: 16px; height: 16px; fill: currentColor; }

/* ---------------------------------------------------------- announcement */
.announce {
  position: relative; z-index: 60;
  height: var(--announce-h);
  background: var(--moss); color: var(--moss-ink);
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  display: grid; place-items: center;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.announce p { display: flex; align-items: center; gap: 10px; padding-inline: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.announce .i { width: 16px; height: 16px; }
.announce a { display: inline-flex; align-items: center; gap: 4px; opacity: .85; text-decoration: underline; text-underline-offset: 3px; }
.announce a .i { width: 13px; height: 13px; }
.announce a:hover { opacity: 1; }
@media (max-width: 560px) { .announce a { display: none; } }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease), transform .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: auto; height: 38px; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__word {
  font-family: var(--font-display); font-size: 25px; font-weight: 450; letter-spacing: -.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1; line-height: 1;
}
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; padding: 0; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; height: 38px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; font-size: 14.5px; font-weight: 700; color: var(--ink-2);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.site-nav a:hover { background: var(--chip); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--moss-tint); }
.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-btn { display: none; }
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .brand__mark { height: 32px; }
  .brand__word { font-size: 22px; }
}

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: var(--bg);
  padding: calc(var(--header-h) + var(--announce-h) + 12px) var(--gutter) 28px;
  overflow-y: auto;
  animation: menu-in .5s var(--ease) both;
}
.mobile-menu.is-closing { animation: menu-out .3s var(--ease-in) both; }
@keyframes menu-in { from { clip-path: circle(0 at calc(100% - 40px) 40px); } to { clip-path: circle(150% at calc(100% - 40px) 40px); } }
@keyframes menu-out { from { opacity: 1; } to { opacity: 0; } }
.mobile-menu__inner { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.mobile-menu ul { list-style: none; padding: 0; }
.mobile-menu li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu li a {
  display: block; padding: 14px 0; text-decoration: none;
  font-family: var(--font-display); font-size: clamp(34px, 9vw, 52px); letter-spacing: -.03em; line-height: 1.05;
  animation: rise .7s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 120ms);
}
.mobile-menu li a[aria-current="page"] { font-style: italic; color: var(--accent); }
@keyframes rise { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--bg); border-bottom-color: transparent; }

.social-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ----------------------------------------------------------------- cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.pcard { --rx: 0deg; --ry: 0deg; perspective: 900px; }
.pcard__link {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: inherit;
  border-radius: var(--r-l); background: var(--panel); border: 1px solid var(--line);
  overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s var(--ease), background-color .6s var(--ease);
}
.pcard:hover .pcard__link { box-shadow: 0 30px 60px -30px rgba(var(--shadow), .35); border-color: var(--line-2); }
[data-glow="on"] .pcard:hover .pcard__link { box-shadow: 0 0 0 1px color-mix(in srgb, var(--glow) 30%, transparent), 0 24px 60px -24px color-mix(in srgb, var(--glow) 35%, transparent); }
.pcard__media { position: relative; aspect-ratio: 1 / 1; background: #e9e4d8; overflow: hidden; }
.pcard__img:not(.pcard__img--alt) { mix-blend-mode: darken; }
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .9s var(--ease), opacity .6s var(--ease); }
.pcard__img--alt { object-fit: cover; padding: 0; opacity: 0; transform: scale(1.08); }
.pcard:hover .pcard__img:not(.pcard__img--alt) { transform: scale(1.04); }
.pcard:hover .pcard__img--alt { opacity: 1; transform: scale(1); }
.pcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard__body .eyebrow { font-size: 10px; letter-spacing: .18em; }
.pcard__name { font-size: 23px; line-height: 1.12; margin-top: 4px; }
.pcard__short { font-size: 14px; color: var(--muted); }
.pcard__price { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 22px; }
.pcard__price s { color: var(--muted); font-size: 16px; }
.pcard__go {
  margin-left: auto; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--chip); color: var(--ink);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .4s var(--ease);
}
.pcard__go .i { width: 17px; height: 17px; }
.pcard:hover .pcard__go { background: var(--moss); color: var(--moss-ink); transform: rotate(-45deg); }

.media-frame { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--chip); }
.media-frame > img, .media-frame > video { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ forms */
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.input, .field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--panel); color: var(--ink);
  font-size: 16px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.input:focus, .field :is(input, textarea, select):focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 4px color-mix(in srgb, var(--moss) 18%, transparent); }

/* ------------------------------------------------------------------ marquee */
.marquee { --speed: 38s; overflow: hidden; display: flex; user-select: none; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; flex: none; align-items: center; gap: 0; animation: marquee var(--speed) linear infinite; animation-play-state: running !important; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- footer */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--dark); color: var(--dark-ink);
  padding: clamp(72px, 10vw, 130px) 0 28px;
  --line: rgba(241, 235, 221, .14);
  --muted: rgba(241, 235, 221, .62);
  --ink: var(--dark-ink);
  --panel: rgba(241, 235, 221, .06);
  --chip: rgba(241, 235, 221, .1);
  --moss: #b5c98f;
  --moss-ink: #12160f;
}
.site-footer .eyebrow { color: rgba(241, 235, 221, .55); margin-bottom: 18px; }
.footer-hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.footer-big {
  font-family: var(--font-display); font-weight: 350; letter-spacing: -.05em; line-height: .9;
  font-size: clamp(54px, 11vw, 168px); font-variation-settings: "SOFT" 100, "WONK" 0;
}
.footer-big em { color: #ff7a6b; }
[data-glow="on"] .footer-big em { color: var(--glow); }
.footer-mark { width: clamp(72px, 10vw, 128px); height: auto; flex: none; transform: rotate(8deg); transition: transform .8s var(--ease); }
.footer-hero:hover .footer-mark { transform: rotate(-6deg) translateY(-6px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding: 56px 0; }
.footer-brand p { margin: 18px 0 22px; color: var(--muted); max-width: 40ch; font-size: 15px; }
.footer-brand .brand { color: var(--dark-ink); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: rgba(241, 235, 221, .85); font-weight: 600; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col .link-arrow { color: var(--dark-ink); }
.footer-col .i { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }
.footer-small { font-size: 14px; color: var(--muted); }
.footer-small a { color: rgba(241, 235, 221, .85); }
.footer-news { display: flex; gap: 8px; margin-bottom: 10px; }
.footer-news input { flex: 1; min-width: 0; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; padding: 0 16px; color: var(--dark-ink); }
.site-footer .icon-btn { background: transparent; border-color: var(--line); color: var(--dark-ink); }
.site-footer .icon-btn:hover { border-color: var(--dark-ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 40px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.footer-fda { max-width: 72ch; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ page hero */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 72px); }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero .lede { margin-top: 24px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb .i { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- motion */
/* Reveal on scroll (site.js adds .is-in). Only hide things when JS is running. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(12% 12% 12% 12% round var(--r-l)); transition: clip-path 1.3s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--r-l)); }

/* Split-text headings: site.js wraps words in .w > span */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .1em .12em 0; margin: 0 -.1em -.12em 0; }
/* Glow: the italic accent glows via filter on each word box, so overflow:hidden (the rise mask) can't clip it */
[data-glow="on"] .js [data-split] em, .js[data-glow="on"] [data-split] em { text-shadow: none; }
.js[data-glow="on"] [data-split] em .w { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--glow) 55%, transparent)); }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--wi, 0) * 45ms + var(--d, 0ms)); }
.js [data-split].is-in .w > span { transform: none; }

/* Cross-document view transitions (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-split] .w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  /* the marquee never stops, by design */
  .marquee__track { animation-duration: var(--speed) !important; animation-iteration-count: infinite !important; }
}
