/* =========================================================
   Glenferrie Gourmet Meats — styles.css
   Static stylesheet, no build step, no dependencies.

     1.  Tokens, themes and reset
     2.  Base typography
     3.  Utilities: wrap, kicker, buttons, reveal
     4.  Grain and header
     5.  Hero
     6.  Ticker
     7.  The craft
     8.  The counter
     9.  Cut chart
     10. Dry-ageing room
     11. Roast calculator
     12. Provenance
     13. Boxes
     14. Order form
     15. FAQ
     16. Visit
     17. Footer
     18. Responsive
     19. Reduced motion, forced colours, print
   ========================================================= */

/* ---------- 1. Tokens, themes and reset ---------- */
:root {
  /* Warm neutrals — the cream the badge is designed to sit on */
  --paper:    #fbf7ef;
  --paper-2:  #fffdf9;
  --paper-3:  #f2ebdc;
  --line:     #e4dbc9;
  --line-2:   #cdbfa5;

  /* Ink */
  --ink:      #1c1a15;   /* 16.2:1 on --paper */
  --ink-2:    #4a453a;   /*  8.5:1 */
  --ink-3:    #6e6757;   /*  5.1:1 */

  /* Brand — sampled from the badge logo */
  --green:    #106e39;   /*  5.9:1 on --paper */
  --green-2:  #0f5a30;   /* shadows, borders, ribbon fold, hover */
  --on-green: #ffffff;   /*  6.3:1 on --green */
  --brown:    #784f23;   /*  6.7:1 on --paper — earthy accent, used sparingly */
  --gold:     #c9a227;   /* decorative only: rules, seals, glints */
  --gold-ink: #7a5f0e;   /*  5.7:1 — the readable gold, for text */
  --sage:     #106e39;   /* status green, same family as the brand */

  --shadow-s: 0 1px 2px rgba(30, 26, 12, .05), 0 3px 10px rgba(30, 26, 12, .05);
  --shadow-m: 0 2px 4px rgba(30, 26, 12, .05), 0 14px 32px rgba(30, 26, 12, .09);
  --shadow-l: 0 4px 10px rgba(30, 26, 12, .06), 0 30px 70px rgba(30, 26, 12, .14);

  --r-s: 4px;
  --r-m: 10px;
  --r-l: 18px;
  --r-xl: 28px;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --sec-y: clamp(76px, 10vw, 148px);

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino,
           "Hoefler Text", Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
           Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
           "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .8, .3, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

/* Dark theme. Same token names, so every component follows without
   a single component-level override. */
:root[data-theme="dark"] {
  --paper:    #1a1712;
  --paper-2:  #241f18;
  --paper-3:  #2e2820;
  --line:     #3a3227;
  --line-2:   #4e4535;

  --ink:      #f6f1e6;
  --ink-2:    #d6cebe;
  --ink-3:    #a79d89;

  --green:    #3fa76a;   /* 5.9:1 on --paper — the badge green, lifted */
  --green-2:  #57bc80;   /* hover goes lighter on a dark ground */
  --on-green: #10240f;
  --brown:    #b98a55;
  --gold:     #e0bc55;
  --gold-ink: #ddb54a;
  --sage:     #3fa76a;

  --shadow-s: 0 1px 2px rgba(0, 0, 0, .3), 0 3px 10px rgba(0, 0, 0, .3);
  --shadow-m: 0 2px 4px rgba(0, 0, 0, .3), 0 14px 32px rgba(0, 0, 0, .45);
  --shadow-l: 0 4px 10px rgba(0, 0, 0, .3), 0 30px 70px rgba(0, 0, 0, .6);

  color-scheme: dark;
}

/* Follow the OS when the visitor has never touched the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1a1712; --paper-2: #241f18; --paper-3: #2e2820;
    --line: #3a3227;  --line-2: #4e4535;
    --ink: #f6f1e6;   --ink-2: #d6cebe;   --ink-3: #a79d89;
    --green: #3fa76a; --green-2: #57bc80; --on-green: #10240f;
    --brown: #b98a55; --gold: #e0bc55;    --gold-ink: #ddb54a; --sage: #3fa76a;
    --shadow-s: 0 1px 2px rgba(0,0,0,.3), 0 3px 10px rgba(0,0,0,.3);
    --shadow-m: 0 2px 4px rgba(0,0,0,.3), 0 14px 32px rgba(0,0,0,.45);
    --shadow-l: 0 4px 10px rgba(0,0,0,.3), 0 30px 70px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: clamp(16px, .4vw + 15.2px, 17.5px);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
svg { display: block; }

::selection { background: var(--green); color: var(--on-green); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2.5px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}

.vh {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--r-m);
  font: 600 15px/1 var(--sans); text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---------- 2. Base typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.018em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 7.2vw, 5.6rem); letter-spacing: -.032em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); letter-spacing: -.026em; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); letter-spacing: -.012em; }

h1 em, h2 em {
  font-style: italic;
  color: var(--green);
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-2); }

hr.rule {
  border: 0; height: 1px; margin: 18px 0;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ---------- 3. Utilities ---------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

.sec { padding-block: var(--sec-y); position: relative; }

.sechead { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 68px); }
.sechead--center { max-width: 66ch; margin-inline: auto; text-align: center; }
.sechead--row {
  max-width: none; display: flex; gap: 32px;
  align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
}
.sechead--row > div { flex: 1 1 320px; }
.sechead__note, .sechead__lede { color: var(--ink-3); }
.sechead__note { flex: 0 1 44ch; font-size: .95rem; margin-bottom: .35em; }
.sechead__lede { font-size: clamp(1.02rem, 1.2vw, 1.18rem); }

.kicker, .eyebrow {
  font: 600 .72rem/1 var(--mono);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 1.1em;
  display: flex; align-items: center; gap: 10px;
}
.sechead--center .kicker { justify-content: center; }
.kicker::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6;
}
.sechead--center .kicker::after {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6;
}
.eyebrow__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* Buttons */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border: 1px solid var(--btn-bd); border-radius: 100px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 .95rem/1 var(--sans); letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease-out), background-color .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease),
              box-shadow .3s var(--ease);
  will-change: transform;
}
.btn--solid { --btn-bg: var(--green); --btn-fg: var(--on-green); --btn-bd: var(--green); }
.btn--solid:hover { --btn-bg: var(--green-2); --btn-bd: var(--green-2); color: var(--on-green); box-shadow: var(--shadow-m); }
.btn--ghost:hover { --btn-bd: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--full { width: 100%; }

.linkarrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 24px;
  font: 600 .92rem/1 var(--sans); text-decoration: none;
  color: var(--green); border-bottom: 1px solid color-mix(in srgb, var(--green) 35%, transparent);
  padding-bottom: 3px;
}
.linkarrow span { transition: transform .3s var(--ease-out); }
.linkarrow:hover span { transform: translateX(5px); }

/* Scroll reveal. Only applied when JS is running. */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease-out) var(--d, 0s),
              transform .8s var(--ease-out) var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 4. Grain and header ---------- */
/* One turbulence tile, fixed to the viewport. Cheap, and it stops the
   large flat colour fields from banding on wide gradients. */
/* No blend mode on purpose. A blended full-viewport overlay pulls the whole
   page into one blend group, which flattens dark panels to grey in Chromium.
   Flat monochrome noise at a low opacity gets the same texture, safely. */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .grain { opacity: .04; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .grain { opacity: .04; }
}

.hdr {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.hdr.is-stuck { border-bottom-color: var(--line); }

.hdr__in {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  min-height: 74px;
}

.brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  color: var(--ink); flex: 0 0 auto;
  /* Holds a 24px target even while the logo file is missing and only the
     text fallback is rendering. */
  min-height: 44px;
}
.brand__logo {
  height: clamp(46px, 5.4vw, 60px); width: auto; display: block;
  /* The badge already carries its own white ground in the artwork. */
}
.brand__fallback { display: none; line-height: 1; }
.brand.is-nologo .brand__logo { display: none; }
.brand.is-nologo .brand__fallback { display: grid; }
.brand__name { font: 600 1.16rem/1 var(--serif); letter-spacing: -.02em; color: var(--green); }
.brand__sub {
  font: 500 .58rem/1 var(--mono); letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 4px;
}

.nav { display: flex; gap: clamp(14px, 2vw, 28px); margin-left: auto; }
.nav a {
  position: relative; text-decoration: none; color: var(--ink-2);
  font: 500 .93rem/1 var(--sans); padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav a:hover, .nav a.is-here { color: var(--ink); }
.nav a:hover::after, .nav a.is-here::after { transform: scaleX(1); }

.hdr__end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .hdr__end { margin-left: 0; }

.openpill {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); padding: 7px 12px 7px 10px;
  border: 1px solid var(--line); border-radius: 100px;
  white-space: nowrap;
}
.openpill__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3);
  box-shadow: 0 0 0 0 currentColor;
}
.openpill.is-open { color: var(--sage); border-color: color-mix(in srgb, var(--sage) 40%, transparent); }
.openpill.is-open .openpill__dot { background: var(--sage); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sage) 55%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.iconbtn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--ink-2); cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .3s var(--ease-out);
}
.iconbtn:hover { border-color: var(--ink-3); color: var(--ink); transform: rotate(18deg); }
.iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.ico-moon { display: none; }
:root[data-theme="dark"] .ico-sun { display: none; }
:root[data-theme="dark"] .ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico-sun { display: none; }
  :root:not([data-theme="light"]) .ico-moon { display: block; }
}

.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: 50%; background: none; cursor: pointer; padding: 0; position: relative; }
.burger span {
  position: absolute; left: 11px; width: 18px; height: 1.6px; background: var(--ink);
  border-radius: 2px; transition: transform .35s var(--ease-out), opacity .2s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19.2px; }
.burger span:nth-child(3) { top: 24.4px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.2px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.2px) rotate(-45deg); }

.hdr__progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  transform: scaleX(var(--p, 0)); transform-origin: left;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

/* ---------- 5. Hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 7vw, 90px) clamp(60px, 8vw, 110px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__rings {
  position: absolute; right: -8%; top: 2%; width: min(44vw, 560px); height: auto;
  color: var(--green); opacity: .07;
  transform: translateY(var(--par, 0px));
}

.hero__in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 372px);
  gap: clamp(36px, 5vw, 72px); align-items: start;
}

.hero__h1 { margin-bottom: .34em; }
.hero__h1 span { display: block; }
.hero__lede { max-width: 52ch; font-size: clamp(1.05rem, 1.35vw, 1.24rem); color: var(--ink-2); }

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 34px 0 0; }

.hero__facts {
  display: flex; gap: clamp(24px, 4vw, 54px); flex-wrap: wrap;
  list-style: none; padding: 30px 0 0; margin: 38px 0 0;
  border-top: 1px solid var(--line);
}
.hero__facts li { display: grid; gap: 2px; }
.hero__facts strong {
  font: 600 clamp(1.9rem, 3vw, 2.5rem)/1 var(--serif);
  color: var(--ink); letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.hero__facts span { font: 500 .74rem/1.3 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }

/* Today-at-the-counter card */
.hero__card {
  position: relative; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 30px 26px 26px; box-shadow: var(--shadow-m);
}
.hero__card-k {
  font: 600 .68rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: .8em;
}
.hero__card-status { font: 600 1.06rem/1.4 var(--serif); color: var(--ink); margin-bottom: 1em; }
.hero__card-status b { color: var(--sage); font-weight: 600; }
.hero__card-status i { color: var(--green); font-style: normal; }

.estmark {
  position: absolute; top: -20px; right: -14px;
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  /* Pinned to the badge green in both themes. It is a brand mark, not a
     themed surface — letting it lighten in dark mode dropped the white
     lettering on it to 3:1. */
  background: #106e39; color: #fff;
  border: 3px solid #c9a227;
  box-shadow: var(--shadow-m);
}
.estmark__t { font: 600 .56rem/1 var(--mono); letter-spacing: .2em; opacity: .85; }
.estmark__y { font: 600 1.16rem/1.2 var(--serif); letter-spacing: -.01em; }

.pick { min-height: 96px; }
.pick__n { font: 600 1.22rem/1.2 var(--serif); color: var(--ink); margin-bottom: .3em; letter-spacing: -.015em; }
.pick__d { font-size: .9rem; color: var(--ink-3); margin-bottom: .5em; }
.pick__p { font: 600 .82rem/1 var(--mono); color: var(--gold-ink); letter-spacing: .04em; margin-bottom: 1.2em; }

.scrollcue { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; display: none; }
.scrollcue__line { display: block; width: 1px; height: 46px; background: linear-gradient(var(--line-2), transparent); }
@media (min-width: 1000px) { .scrollcue { display: block; } }

/* ---------- 6. Ticker ---------- */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--paper-3);
  overflow: hidden; padding: 14px 0; position: relative; z-index: 2;
}
.ticker__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  animation: slide 42s linear infinite;
}
.ticker span {
  font: 600 .74rem/1 var(--mono); letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
}
.ticker i { color: var(--gold); font-size: .6rem; font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 7. The craft ---------- */
.sec--known { background: var(--paper); }
.craft { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.craft__step { background: var(--paper-2); padding: 34px 28px 36px; position: relative; }
.craft__step::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.craft__step:hover::after { transform: scaleX(1); }
.craft__num {
  font: 600 .72rem/1 var(--mono); letter-spacing: .16em; color: var(--gold-ink);
  display: block; margin-bottom: 22px;
}
.craft__step h3 { margin-bottom: .5em; }
.craft__step p { font-size: .95rem; color: var(--ink-3); margin: 0; }

/* ---------- 8. The counter ---------- */
.sec--counter { background: var(--paper-3); }

.filters {
  display: flex; gap: 18px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-bottom: 30px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  padding: 9px 16px; border-radius: 100px; cursor: pointer;
  font: 500 .87rem/1 var(--sans); white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.search { position: relative; flex: 0 1 300px; min-width: 220px; }
.search svg {
  position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 17px; height: 17px;
  fill: none; stroke: var(--ink-3); stroke-width: 1.7; stroke-linecap: round; pointer-events: none;
}
.search input {
  width: 100%; padding: 12px 16px 12px 40px; border-radius: 100px;
  border: 1px solid var(--line-2); background: var(--paper-2); color: var(--ink);
  font: 400 .92rem/1 var(--sans);
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-color: var(--ink-3); outline-offset: 1px; }

.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
}
.grid__empty { text-align: center; padding: 60px 0; color: var(--ink-3); }

.card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-m); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out),
              border-color .3s var(--ease), opacity .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--line-2); }
.card.is-out { display: none; }

.card__swatch { position: relative; aspect-ratio: 16 / 6.4; background: var(--paper-3); overflow: hidden; }
.card__swatch svg { width: 100%; height: 100%; }
.card__badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.badge {
  font: 600 .6rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 3px;
  background: rgba(255, 253, 248, .9); color: #3a2a18; backdrop-filter: blur(4px);
}
.badge--hero { background: var(--green); color: var(--on-green); }

.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card__top { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.card__n { font: 600 1.06rem/1.25 var(--serif); color: var(--ink); letter-spacing: -.015em; margin: 0; }
.card__p {
  font: 600 .9rem/1 var(--mono); color: var(--ink); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.card__p small { color: var(--ink-3); font-size: .74rem; font-weight: 500; }
.card__d { font-size: .88rem; color: var(--ink-3); margin: 0 0 14px; flex: 1; }
.card__m {
  font: 600 .66rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-ink); display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
}
.card__m::before { content: ""; width: 14px; height: 1px; background: currentColor; }

.counter__foot { margin-top: 30px; font-size: .9rem; color: var(--ink-3); text-align: center; }
.counter__foot span { color: var(--ink-2); font-weight: 600; }

/* ---------- 9. Cut chart ---------- */
.sec--chart { background: var(--paper); }

.chart__tabs {
  display: flex; gap: 6px; justify-content: center; margin-bottom: 26px;
  background: var(--paper-3); padding: 5px; border-radius: 100px;
  width: max-content; margin-inline: auto; border: 1px solid var(--line);
}
.chart__tab {
  border: 0; background: transparent; cursor: pointer; color: var(--ink-3);
  padding: 10px 26px; border-radius: 100px;
  font: 600 .9rem/1 var(--sans);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.chart__tab:hover { color: var(--ink); }
.chart__tab.is-on { background: var(--paper-2); color: var(--ink); box-shadow: var(--shadow-s); }

.chart__body {
  display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px); align-items: stretch;
}
.chart__stage {
  position: relative; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: clamp(14px, 2vw, 28px); display: grid; place-items: center;
}
.chart__svg { width: 100%; height: auto; }

.chart__hint {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0; margin: 0;
  font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); transition: opacity .4s var(--ease);
}
.chart__hint.is-gone { opacity: 0; }

/* Primal regions. Fill and stroke are set here, not inline, so the
   dark theme picks them up for free. */
.pr { cursor: pointer; transition: fill .3s var(--ease), opacity .3s var(--ease); outline: none; }
.pr__fill { fill: var(--paper-3); stroke: none; }
.pr:hover .pr__fill { fill: color-mix(in srgb, var(--green) 22%, var(--paper-3)); }
.pr.is-on .pr__fill { fill: var(--green); }
.pr:focus-visible .pr__fill { fill: color-mix(in srgb, var(--green) 35%, var(--paper-3)); }
.pr:focus-visible { outline: none; }
.pr:focus-visible .pr__hit { stroke: var(--ink); stroke-width: 3; stroke-dasharray: 5 4; }
.pr__hit { fill: transparent; stroke: none; }

.chart__seams { stroke: var(--paper-2); stroke-width: 3.4; fill: none; pointer-events: none; }
.chart__outline { fill: none; stroke: var(--ink); stroke-width: 3.4; pointer-events: none; }

.pr__label {
  font: 600 19px var(--mono); letter-spacing: .01em; fill: var(--ink-2);
  text-anchor: middle; pointer-events: none; transition: fill .3s var(--ease);
}
/* Labels live in their own group above the seams, so the selected state
   is toggled on the label itself rather than inherited from the region. */
.pr__label.is-on { fill: var(--on-green); }

/* Panels that stay dark in both themes. Painting them with --ink and --paper
   made them flip to light in dark mode, which left their brass and cream
   accents sitting on a near-white ground at 1.6:1. Pinning the palette keeps
   them readable, and keeps the page's rhythm of light and dark intact. */
.chart__panel, .ftr {
  --panel-bg:   #0f3d22;   /* the badge green, taken down to a panel depth */
  --panel-fg:   #f4f1e6;
  --panel-dim:  #bfcfc2;
  --panel-acc:  #e0bc55;
  --panel-line: rgba(244, 241, 230, .22);
}

.chart__panel {
  background: var(--panel-bg); color: var(--panel-dim);
  border-radius: var(--r-l); padding: clamp(26px, 3vw, 36px);
  display: flex; flex-direction: column;
}
.chart__panel-k {
  font: 600 .68rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--panel-acc); margin-bottom: 1.1em;
}
.chart__panel-n {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem); color: var(--panel-fg);
  margin-bottom: .45em; letter-spacing: -.025em;
}
.chart__panel-d { font-size: .98rem; margin-bottom: 1.6em; }
.chart__panel-tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.chart__panel-tags li {
  font: 600 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 100px;
  border: 1px solid var(--panel-line);
  color: var(--panel-fg);
}

/* ---------- 10. The nugget price game ----------
   The one full-bleed green moment on the page. Scoping the tokens at section
   level flips the whole palette in one place: the ground becomes the badge
   green, and the accent becomes the badge gold — the same pairing as the
   tagline inside the logo. Every component inside follows for free. */
.sec--game {
  --paper:    #0f3d22;
  --paper-2:  #14512d;
  --paper-3:  #0c3319;
  --line:     #1c5c36;
  --line-2:   #2a7146;
  --ink:      #f4f1e6;
  --ink-2:    #cfdcd2;
  --ink-3:    #a6bdae;
  --green:    #e0bc55;   /* on green, the accent is gold */
  --green-2:  #ecca6c;
  --on-green: #10240f;
  --gold-ink: #e0bc55;
  background: var(--paper); color: var(--ink-2);
  position: relative; overflow: hidden;
}
.sec--game::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(224, 188, 85, .13), transparent 62%);
}
.sec--game .wrap { position: relative; }
.sec--game h2 { color: var(--ink); }

.game {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px); align-items: stretch;
  max-width: 940px; margin-inline: auto;
}
.game__panel {
  background: var(--paper-2); border: 1px solid var(--line-2);
  border-radius: var(--r-l); padding: clamp(26px, 3vw, 38px);
  display: flex; flex-direction: column; text-align: center;
}
.game__k {
  font: 600 .68rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 1.4em;
}
.game__bag {
  font: 600 clamp(2.6rem, 6vw, 3.8rem)/1 var(--serif); color: var(--gold-ink);
  letter-spacing: -.04em; margin-bottom: .3em; font-variant-numeric: tabular-nums;
}
.game__hint { font-size: .94rem; color: var(--ink-2); margin-bottom: 1.6em; }
.game__new { margin-top: auto; align-self: center; }

.game__control { display: flex; flex-direction: column; }
.game__label {
  font: 600 .78rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); display: flex; justify-content: space-between;
  align-items: baseline; gap: 12px; margin-bottom: 10px;
}
.game__label output {
  color: var(--gold-ink); font-weight: 600; font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.game__scale {
  display: flex; justify-content: space-between;
  font: 500 .68rem/1 var(--mono); letter-spacing: .1em; color: var(--ink-3);
  margin: 8px 0 26px;
}
.game__result {
  margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line-2);
}
.game__verdict {
  font: 600 clamp(1.4rem, 2.4vw, 1.9rem)/1.1 var(--serif); color: var(--ink);
  letter-spacing: -.02em; margin-bottom: .35em;
}
.game__detail { color: var(--ink-2); margin-bottom: .8em; }
.game__actual {
  font: 500 .84rem/1.5 var(--mono); color: var(--ink-3);
  font-variant-numeric: tabular-nums; margin: 0;
}
.game__disclaimer {
  text-align: center; margin: 30px auto 0; max-width: 56ch;
  font-size: .89rem; color: var(--ink-3);
}

/* ---------- 10b. Range input (shared) ----------
   Used by the nugget game and the roast calculator. Lives on its own rather
   than inside either section, so removing a section cannot take it with it. */
.range {
  -webkit-appearance: none; appearance: none; width: 100%; background: transparent;
  cursor: pointer; margin: 6px 0;
  /* Tall enough to be a 24px target in its own right — the visible track
     is only 3px, but the input is what actually receives the touch. */
  height: 28px;
}
.range::-webkit-slider-runnable-track {
  height: 3px; border-radius: 100px; background: var(--line-2);
}
.range::-moz-range-track { height: 3px; border-radius: 100px; background: var(--line-2); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -10.5px; border-radius: 50%;
  background: var(--green); border: 3px solid var(--paper);
  box-shadow: var(--shadow-m); transition: transform .25s var(--ease-out);
}
.range::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--paper);
  background: var(--green); box-shadow: var(--shadow-m);
}
.range:active::-webkit-slider-thumb { transform: scale(1.18); }

.field__scale {
  display: flex; justify-content: space-between;
  font: 500 .68rem/1 var(--mono); letter-spacing: .1em; color: var(--ink-3); margin-top: 8px;
}

/* ---------- 11. Roast calculator ---------- */
.sec--cook { background: var(--paper); }
.calc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden;
}
.calc__form { background: var(--paper-2); padding: clamp(26px, 3.2vw, 40px); display: grid; gap: 26px; align-content: start; }
.calc__out { background: var(--paper-3); padding: clamp(26px, 3.2vw, 40px); display: flex; flex-direction: column; }

.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend {
  font: 600 .78rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); padding: 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%;
}
.field output { color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums; }
.field .opt { text-transform: none; letter-spacing: 0; opacity: .7; font-family: var(--sans); }

.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r-s);
  border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%236f6153' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field__help { font-size: .82rem; color: var(--ink-3); margin: 0; }
.field.is-bad input, .field.is-bad textarea { border-color: var(--green); }
.field__err { font-size: .8rem; color: var(--green); margin: 0; }

.segs { display: flex; gap: 6px; flex-wrap: wrap; }
.seg {
  flex: 1 1 auto; border: 1px solid var(--line-2); background: transparent;
  color: var(--ink-2); border-radius: 100px; padding: 10px 14px; cursor: pointer;
  font: 500 .84rem/1 var(--sans); white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.seg:hover { border-color: var(--ink-3); color: var(--ink); }
.seg[aria-checked="true"] { background: var(--green); border-color: var(--green); color: var(--on-green); }
.seg:disabled { opacity: .34; cursor: not-allowed; }

.calc__k { font: 600 .7rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9em; }
.calc__time {
  font: 600 clamp(3rem, 7vw, 4.6rem)/1 var(--serif); color: var(--ink);
  letter-spacing: -.045em; margin: 0 0 .12em; font-variant-numeric: tabular-nums;
}
.calc__time small { font-size: .32em; letter-spacing: .04em; color: var(--ink-3); font-family: var(--mono); font-weight: 500; }
.calc__sub { font-size: .9rem; color: var(--ink-3); margin-bottom: 1.6em; }

.calc__rows { margin: 0 0 22px; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.calc__rows > div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; background: var(--paper-3); padding: 13px 0; }
.calc__rows dt { font: 500 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.calc__rows dd { margin: 0; font: 600 1.02rem/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }

.calc__note { font-size: .88rem; color: var(--ink-3); margin: auto 0 0; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.calc__disclaimer { margin: 26px 0 0; text-align: center; font-size: .9rem; color: var(--ink-3); }

/* ---------- 12. Reviews ---------- */
.sec--reviews { background: var(--paper-3); }

.rating { text-align: center; margin-bottom: clamp(34px, 4vw, 54px); }
.rating__num {
  font: 600 clamp(3.4rem, 8vw, 5rem)/1 var(--serif); color: var(--ink);
  letter-spacing: -.045em; margin-bottom: .1em; font-variant-numeric: tabular-nums;
}
.rating__stars { display: flex; gap: 5px; justify-content: center; margin-bottom: 14px; }
.star { width: 26px; height: 26px; }
.star__bg { fill: var(--line-2); }
.star__fg { fill: var(--gold); }
.rating__meta { color: var(--ink-3); font-size: .95rem; margin-bottom: 1em; }
.rating__meta strong { color: var(--ink); }

.reviews { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.reviews__lead {
  grid-column: 1 / -1; text-align: center; max-width: 62ch; margin: 0 auto 8px;
  font-size: .93rem; color: var(--ink-3);
}
.theme, .review {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 26px 24px;
  border-top: 3px solid var(--green);
}
.theme__k {
  font-size: 1.14rem; margin-bottom: .45em; color: var(--ink);
}
.theme__d { font-size: .93rem; color: var(--ink-3); margin: 0; }

.review__t {
  font: 400 1.02rem/1.55 var(--serif); color: var(--ink-2);
  margin-bottom: 1.1em; text-wrap: pretty;
}
.review__a { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin: 0; }
.review__who { font-weight: 600; color: var(--ink); font-size: .93rem; }
.review__src {
  font: 600 .62rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- 13. Boxes ---------- */
.sec--boxes { background: var(--paper); }
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.box {
  position: relative; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 32px 28px 28px; display: flex; flex-direction: column;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.box:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.box--feature { border-color: var(--green); box-shadow: var(--shadow-m); }
.box__flag {
  position: absolute; top: -11px; left: 28px;
  background: var(--green); color: var(--on-green);
  font: 600 .62rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 100px;
}
.box__k { font: 600 .68rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1em; }
.box__n { font-size: clamp(1.5rem, 2.1vw, 1.85rem); margin-bottom: .2em; }
.box__p { font: 600 2.6rem/1 var(--serif); color: var(--ink); letter-spacing: -.04em; margin-bottom: .7em; }
.box__p span { font-size: .46em; vertical-align: .5em; color: var(--ink-3); margin-right: 2px; }
.box__l { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.box__l li { font-size: .92rem; color: var(--ink-3); padding-left: 20px; position: relative; }
.box__l li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 1.5px;
  background: var(--gold-ink);
}
.box__cta { margin-top: auto; }
.boxes__note { text-align: center; margin: 26px 0 0; font-size: .9rem; color: var(--ink-3); }

/* ---------- 14. Order form ---------- */
.sec--order { background: var(--paper-3); }
.order { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 76px); align-items: start; }
.order__copy p { color: var(--ink-3); }
.order__pts { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.order__pts li { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; color: var(--ink-2); }
.order__pts span { color: var(--sage); font-weight: 700; }
.order__phone { font-size: .95rem; }

.order__form {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: clamp(26px, 3.4vw, 40px);
  display: grid; gap: 20px; box-shadow: var(--shadow-s);
}
.order__form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__status { margin: 0; font-size: .9rem; min-height: 1.4em; }
.form__status.is-bad { color: var(--green); }
.form__status.is-good { color: var(--sage); }

/* ---------- 15. FAQ ---------- */
.sec--faq { background: var(--paper); }
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: flex-start; gap: 20px; justify-content: space-between;
  padding: 24px 4px; color: var(--ink);
  font: 600 clamp(1.02rem, 1.4vw, 1.18rem)/1.4 var(--serif); letter-spacing: -.012em;
}
.faq__q:hover { color: var(--green); }
.faq__ico { flex: 0 0 auto; width: 20px; height: 20px; position: relative; margin-top: 4px; }
.faq__ico::before, .faq__ico::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 1.6px;
  background: currentColor; transition: transform .4s var(--ease-out);
}
.faq__ico::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__ico::after { transform: rotate(0); }
.faq__a { overflow: hidden; height: 0; transition: height .45s var(--ease-out); }
.faq__a p { padding: 0 46px 26px 4px; margin: 0; color: var(--ink-3); font-size: .98rem; max-width: 68ch; }

/* ---------- 16. Visit ---------- */
.sec--visit { background: var(--paper-3); }
.visit { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.visit__card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 30px 28px; display: flex; flex-direction: column;
}
.visit__card h3 {
  font: 600 .72rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 1.6em;
}
.visit__addr { font: 600 1.24rem/1.45 var(--serif); color: var(--ink); letter-spacing: -.015em; margin-bottom: 1em; }
.visit__mode { display: grid; gap: 7px; margin-bottom: 1.5em; }
.visit__mode span { font-size: .89rem; color: var(--ink-3); padding-left: 18px; position: relative; }
.visit__mode span::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1.5px; background: var(--line-2); }
.visit__card .linkarrow { margin-top: auto; align-self: flex-start; }
.visit__note { font-size: .82rem; color: var(--ink-3); margin: 14px 0 0; }
.visit__card--call p { font-size: .94rem; color: var(--ink-3); margin-bottom: 22px; }
.visit__card--call .btn { margin-top: 10px; }
.visit__card--call .btn:first-of-type { margin-top: auto; }

.hours { width: 100%; border-collapse: collapse; font-size: .94rem; }
.hours td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:first-child { color: var(--ink-3); }
.hours td:last-child { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours tr.is-today td { color: var(--ink); font-weight: 600; }
.hours tr.is-today td:first-child::before {
  content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); margin-right: 8px; vertical-align: middle;
}
.hours .shut { color: var(--ink-3); }

/* ---------- 17. Footer ---------- */
.ftr { background: var(--panel-bg); color: var(--panel-dim); padding-block: clamp(48px, 6vw, 76px) 34px; position: relative; z-index: 2; }
.ftr__in { display: grid; gap: 34px; }
.ftr__name { font: 600 1.5rem/1 var(--serif); color: var(--panel-fg); letter-spacing: -.02em; margin-bottom: .5em; }
.ftr__line { margin: 0 0 .3em; font-size: .94rem; }
.ftr__line a {
  color: var(--panel-fg); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 24px;
}
.ftr__line a:hover { color: #fff; }
.ftr__nav { display: flex; gap: 8px 26px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--panel-line); }
.ftr__nav a {
  color: var(--panel-dim); text-decoration: none;
  font-size: .92rem; display: inline-flex; align-items: center; min-height: 24px;
}
.ftr__nav a:hover { color: var(--panel-fg); }
.ftr__legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font: 500 .78rem/1.5 var(--mono); letter-spacing: .04em;
  color: var(--panel-dim);
  padding-top: 26px; border-top: 1px solid var(--panel-line); margin: 0;
}
.ftr__by a {
  color: var(--panel-fg);
  display: inline-flex; align-items: center; min-height: 24px;
}

/* ---------- 18. Responsive ---------- */
@media (min-width: 760px) {
  .ftr__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; }
  .ftr__nav { grid-column: 2; border-top: 0; padding-top: 6px; justify-content: flex-end; }
  .ftr__legal { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
  .chart__body { grid-template-columns: 1fr; }
  .chart__panel { min-height: 0; }
  .order { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .game { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__card { max-width: 460px; }
  .estmark { top: -18px; right: 16px; }
}

/* Mobile navigation: the same links, dropped into a sheet under the bar. */
@media (max-width: 860px) {
  .burger { display: block; }
  .hdr__cta { display: none; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; z-index: 99;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 22px;
    box-shadow: var(--shadow-l);
    clip-path: inset(0 0 100% 0); opacity: 0;
    transition: clip-path .45s var(--ease-out), opacity .3s var(--ease);
    pointer-events: none;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.06rem; }
  .nav a::after { display: none; }
  .nav a:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  .openpill { display: none; }
  .hero__rings { display: none; }
  .hero__facts { gap: 22px 30px; }
  .order__form .row { grid-template-columns: 1fr; }
  .chart__tabs { width: 100%; }
  .chart__tab { flex: 1; padding: 10px 8px; }
  .calc__rows > div { flex-direction: column; gap: 4px; padding: 12px 0; }
  .calc__rows dd { text-align: left; }
  .faq__a p { padding-right: 4px; }
  .visit__card--call .btn:first-of-type { margin-top: 0; }
}

@media (max-width: 420px) {
  .brand__sub { display: none; }
  .box { padding: 28px 22px 24px; }
}

/* Hover effects are a lie on touch screens — they stick until you tap
   somewhere else. Only wire them up for real pointers. */
@media (hover: none) {
  .card:hover, .box:hover { transform: none; box-shadow: none; }
  .iconbtn:hover { transform: none; }
}

/* ---------- 19. Reduced motion, forced colours, print ---------- */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .hero__rings { transform: none; }
}

@media (forced-colors: active) {
  .btn, .chip, .seg, .card, .box, .visit__card { border: 1px solid CanvasText; }
  .pr__fill { fill: Canvas; stroke: CanvasText; stroke-width: 1; }
  .pr.is-on .pr__fill { fill: Highlight; }
  .hdr__progress { background: CanvasText; }
}

@media print {
  .hdr, .ticker, .scrollcue, .grain, .hero__bg, .chart__tabs, .game,
  .filters, .btn, .order__form, .ftr__nav { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .sec { padding-block: 18pt; }
  .card, .box, .visit__card, .theme { break-inside: avoid; border: 1px solid #999; }
  .faq__a { height: auto !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
