/* Spentra Materials — site styles
   One bold thing: the dark "material stage" on the homepage where the
   grounds move. Everything around it stays quiet.
   Motion: transforms + opacity, finite, off under prefers-reduced-motion.
   Content is never hidden waiting for an animation. */

/* Brand type. Architype Ballmer (display) and Garet (body) are the brand
   fonts but need paid web licences, so the site uses close open-licence
   stand-ins until those are bought: Sora for display, Urbanist for body
   (both SIL Open Font Licence, files and licences in fonts/). */
@font-face {
  font-family: "Sora";
  src: url("fonts/sora-latin-var.woff") format("woff");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("fonts/urbanist-latin-var.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ECE8E0;
  --surface: #F6F3EE;
  --surface-2: #E4DDD2;
  /* Brand palette: cream #ECE8E0, espresso #2C150C, deep green #013B1F, amber #E7A13A */
  --ink: #2C150C;
  --ink-2: #5E4A3D;
  --line: #D3C8BA;
  --green: #013B1F;
  --green-ink: #ECE8E0;
  --green-muted: #B8C9BE;
  --accent: #E7A13A;
  --accent-hover: #D89025;
  --accent-ink: #2C150C;
  --clay: #8E4F33;
  --roast: #2C150C;
  --roast-2: #3D2216;
  --roast-ink: #F3E9DE;
  --roast-muted: #CDB8A6;
  --ember: #E9873B;
  --footer-bg: #E4DDD2;
  --footer-ink: #2C150C;
  --footer-muted: #5E4A3D;
  --focus: #013B1F;
  --field-bg: #FBF9F6;
  --ok: #1F6B47;
  --warn: #8A3B12;

  --font: "Urbanist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-display: "Sora", "Urbanist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
svg svg { max-width: none; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
/* Anything you can jump to lands below the sticky header. */
main [id] { scroll-margin-top: calc(var(--header-h) + 20px); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600;
}
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.t-display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.t-h2 {
  font-size: clamp(1.7rem, 1.15rem + 1.9vw, 2.55rem);
  font-stretch: 112%; font-weight: 720; letter-spacing: -0.008em; max-width: 22ch;
}
.t-h3 { font-size: 1.2rem; font-stretch: 108%; font-weight: 680; line-height: 1.2; }
.t-lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.27rem); line-height: 1.55; color: var(--ink-2); max-width: 52ch; }
.prose { max-width: 62ch; }
.prose p { font-size: 1.1rem; }
.source { font-size: 0.9rem; color: var(--ink-2); }
.source a { color: var(--ink-2); }
.source a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.25em;
  border-radius: var(--r-sm); border: 2px solid transparent;
  font-weight: 650; font-stretch: 108%; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[disabled] { cursor: progress; opacity: .85; }
.text-link { font-weight: 650; color: inherit; }
.spinner {
  width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 0%, transparent);
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-solid, .site-header.menu-open, html:not(.js) .site-header {
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 18px -14px rgba(36, 33, 31, .45);
}
/* Homepage: the header is the only pinned bar and looks the same from first load to the bottom.
   Solid, so nothing scrolling under it (like the Explore strip) shows through as a second layer. */
.page-home .site-header {
  background: var(--bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: var(--line);
}
.page-home .site-header.is-solid:not(.menu-open) { box-shadow: none; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
/* The approved logo artwork, used as supplied: never recoloured or redrawn. */
.brand-logo { height: 42px; width: auto; }
@media (max-width: 380px) { .brand-logo { height: 36px; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a {
  position: relative;
  text-decoration: none; font-size: 0.97rem; font-weight: 520; color: var(--ink-2);
  padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(.6); }
.nav-links a[aria-current] { color: var(--green); font-weight: 650; }
.nav-links a[aria-current]::after { transform: scaleX(1); }
.nav .btn { min-height: 42px; padding: 0.55em 1em; font-size: 0.95rem; }
.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  min-height: 44px; padding: 0 14px; font-weight: 600; cursor: pointer;
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 18px;
    box-shadow: 0 16px 24px -20px rgba(36, 33, 31, .5);
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  html:not(.js) .nav { display: flex; position: static; box-shadow: none; padding: 0 0 12px; border: 0; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; }
  html:not(.js) .nav-toggle { display: none; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a::after { bottom: -1px; }
  .nav .btn { margin-top: 14px; min-height: 48px; }
}

/* ---------- inner page heads ---------- */
.page-head { padding: clamp(32px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); }
.page-head h1 { font-size: clamp(2.1rem, 1.1rem + 3.2vw, 3.6rem); line-height: 1.03; max-width: 18ch; }
.page-head .t-lead { margin-top: 18px; }
.crumb { font-size: .95rem; color: var(--ink-2); margin-bottom: 14px; }
.crumb a { color: inherit; }
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section-tight { padding: clamp(28px, 4vw, 48px) 0; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* The homepage's own styles (the scroll story) live in home.css, loaded on index.html only. */

/* ---------- tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 3px 10px; border: 1.5px solid currentColor; border-radius: 999px;
  font-size: 0.85rem; font-weight: 650; font-stretch: 92%;
}
.tag svg { width: 14px; height: 14px; }

/* ---------- COFFIRE wordmark ---------- */
.coffire-wm {
  font-family: var(--font-display);
  display: inline-flex; align-items: center;
  font-stretch: 125%; font-weight: 800; letter-spacing: 0.02em; line-height: 1; white-space: nowrap;
}
.coffire-wm .bean { width: 0.74em; height: 0.92em; margin: 0 0.04em; transform: translateY(-0.02em); overflow: visible; }
.bean .bean-turn { transform-box: fill-box; transform-origin: center; transition: transform .45s var(--ease); }
.bean .bean-body { fill: var(--ember); }
.bean .bean-line { fill: none; stroke: var(--roast); stroke-width: 2.2; stroke-linecap: round; }
a:hover .bean-turn, a:focus-visible .bean-turn, .coffire-wm:hover .bean-turn { transform: rotate(-22deg); }
html.motion .bean.is-spun .bean-turn { animation: bean-revolve 1.1s var(--ease) both; }
@keyframes bean-revolve {
  from { transform: rotate(-360deg) scale(.85); }
  60% { transform: rotate(12deg) scale(1.04); }
  to { transform: rotate(0) scale(1); }
}

/* ---------- QR bin drawing (pickup page, how it works) ---------- */
.bin-svg { width: 132px; height: auto; color: var(--ink); overflow: visible; }
.bin-svg .bin-body { fill: var(--surface-2); stroke: currentColor; stroke-width: 2; }
.bin-svg .bin-lid { fill: var(--accent); stroke: currentColor; stroke-width: 2; }
.bin-svg .qr-label { fill: #fff; stroke: currentColor; stroke-width: 1.5; }
.bin-svg .qr { fill: var(--ink); }
.bin-svg .scan { fill: var(--accent); opacity: 0; }
html.motion .is-scanning .scan { animation: scan 1.6s var(--ease) .3s 2; }
@keyframes scan {
  0% { opacity: 0; transform: translateY(0); }
  15% { opacity: .9; }
  80% { opacity: .9; transform: translateY(40px); }
  100% { opacity: 0; transform: translateY(40px); }
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.flow-wrap { position: relative; }
.progress {
  position: sticky; top: calc(var(--header-h) + 6px); z-index: 5;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; margin-bottom: 8px;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border: 1px solid var(--line); border-radius: 999px;
}
.progress-text { flex: none; font-weight: 650; font-size: .95rem; min-width: 8.5ch; }
.progress-bar { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress-bar span { height: 6px; border-radius: 3px; background: var(--line); transition: background-color .3s var(--ease); }
.progress-bar span.is-on { background: var(--ink); }
html:not(.js) .progress { display: none; }
.flow { counter-reset: step; }
.flow-step {
  counter-increment: step;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(160px, 230px);
  gap: 8px 24px; align-items: start;
  padding: 28px 0; border-top: 1px solid var(--line);
}
main .flow-step { scroll-margin-top: calc(var(--header-h) + 76px); }
.flow-step:last-child { border-bottom: 1px solid var(--line); }
.flow-num {
  font-size: 2.6rem; font-stretch: 125%; font-weight: 760; line-height: 1; color: var(--clay);
  transition: color .3s var(--ease);
}
html.js .flow-step:not(.is-active):not(.is-seen) .flow-num { color: color-mix(in srgb, var(--clay) 45%, var(--bg)); }
.flow-body h2 { font-size: 1.35rem; font-stretch: 110%; font-weight: 700; line-height: 1.2; }
.flow-line { color: var(--ink-2); margin: 8px 0 0; }
.flow-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  margin-top: 8px; padding: 0 12px 0 0; background: none; border: 0; cursor: pointer;
  font-weight: 650; font-stretch: 105%;
}
.flow-toggle:hover .flow-toggle-text { text-decoration: underline; text-underline-offset: .2em; }
.plus {
  flex: none; width: 26px; height: 26px;
  border: 1.5px solid var(--ink-2); border-radius: 50%;
  display: grid; place-items: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.plus::before, .plus::after { content: ""; grid-area: 1 / 1; width: 10px; height: 1.5px; background: var(--ink); }
.plus::after { transform: rotate(90deg); transition: transform .25s var(--ease); }
.flow-toggle:hover .plus, .flow-toggle:focus-visible .plus { background: var(--surface-2); border-color: var(--ink); }
[aria-expanded="true"] > .plus::after { transform: rotate(0deg); }
.flow-detail { color: var(--ink-2); padding-top: 8px; max-width: 58ch; }
.flow-detail p:last-child { margin-bottom: 0; }
.flow-detail a { color: var(--ink); font-weight: 600; }
.fit-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.fit-lists h3 { font-size: 0.97rem; font-weight: 650; color: var(--ink); margin: 0 0 4px; }
.fit-lists li { padding: 2px 0 2px 18px; position: relative; }
.fit-lists li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 9px; height: 2px; background: var(--warn); }
.fit-lists .yes li::before { background: var(--ok); width: 8px; height: 8px; border-radius: 50%; top: 0.55em; }
.flow-visual { color: var(--ink); }
.flow-visual > svg { width: 100%; height: auto; overflow: visible; }
.fv-ground { stroke: var(--line); stroke-width: 2; }
.fv-bin { fill: var(--surface-2); stroke: var(--ink); stroke-width: 2; }
.fv-lid { fill: var(--accent); stroke: var(--ink); stroke-width: 2; }
.fv-grain { fill: #5a3d2c; }
.fv-grain.g2 { fill: #7a5640; }
.fv-phone { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.fv-check { fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fv-arrow { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fv-full { fill: #7a5640; }
/* each visual plays once when its step becomes active (motion only) */
html.motion .flow-step:not(.is-played) .fv-drop { transform: translateY(-26px); opacity: 0; }
html.motion .flow-step.is-played .fv-drop { animation: fv-drop .7s var(--ease) both; }
@keyframes fv-drop { from { transform: translateY(-26px); opacity: 0; } 70% { transform: translateY(2px); opacity: 1; } to { transform: none; opacity: 1; } }
html.motion .flow-step:not(.is-played) .fv-fall { opacity: 0; }
html.motion .flow-step.is-played .fv-fall { animation: fv-fall .9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes fv-fall { from { transform: translateY(-40px); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
html.motion .flow-step:not(.is-played) .fv-phone-g { transform: translateX(40px); opacity: 0; }
html.motion .flow-step.is-played .fv-phone-g { animation: fv-slide .6s var(--ease) both; }
html.motion .flow-step:not(.is-played) .fv-check { stroke-dasharray: 40; stroke-dashoffset: 40; }
html.motion .flow-step.is-played .fv-check { stroke-dasharray: 40; animation: draw .4s var(--ease) 3.2s both; }
html.motion .flow-step.is-played .fv-scanline { animation: fv-scan 1.2s var(--ease) .7s 2; }
@keyframes fv-scan { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .95; } 85% { opacity: .95; transform: translateY(28px); } 100% { opacity: 0; transform: translateY(28px); } }
@keyframes fv-slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
html.motion .flow-step:not(.is-played) .fv-out { transform: none; }
html.motion .flow-step.is-played .fv-out { animation: fv-out .9s var(--ease) .2s both; }
html.motion .flow-step:not(.is-played) .fv-in { transform: translateX(70px); opacity: 0; }
html.motion .flow-step.is-played .fv-in { animation: fv-in .9s var(--ease) .7s both; }
@keyframes fv-out { to { transform: translateX(-24px); opacity: .3; } }
@keyframes fv-in { from { transform: translateX(70px); opacity: 0; } to { transform: none; opacity: 1; } }
/* without motion the swap shows its end state: only the clean bin */
html.js:not(.motion) .fv-out { opacity: .3; transform: translateX(-24px); }


@media (max-width: 760px) {
  .flow-step { grid-template-columns: 44px minmax(0, 1fr); }
  .flow-num { font-size: 1.9rem; }
  .flow-visual { grid-column: 2; max-width: 240px; }
  .fit-lists { grid-template-columns: 1fr; }
  .progress { gap: 10px; padding: 10px 14px; }
}

/* ---------- forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-grid .t-lead { margin-top: 14px; }
.alt-contact { margin-top: 18px; color: var(--ink-2); }
.alt-contact a { color: var(--ink); font-weight: 600; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 620; font-size: 0.97rem; }
.field .hint { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--field-bg);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  min-height: 48px; padding: 10px 12px; width: 100%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--warn); }
.field-error { margin: 0; font-size: 0.9rem; color: var(--warn); font-weight: 550; }
.field-hint { margin: 0; font-size: .9rem; color: var(--ink-2); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.form-note { font-size: 0.92rem; color: var(--ink-2); margin: 0; }
.form-status {
  grid-column: 1 / -1; margin: 0; padding: 12px 14px;
  border-radius: var(--r-sm); border: 1.5px solid currentColor; font-weight: 520;
}
.form-status.is-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.form-status.is-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 6%, transparent); }
.form-status a { font-weight: 650; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-weight: 620; font-size: .97rem; padding: 0; margin-bottom: 8px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* =========================================================
   PICKUP (/pickup)
   ========================================================= */
.pk { padding: clamp(24px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); }
.pk-grid {
  display: grid; gap: clamp(20px, 3vw, 32px) clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-areas: "intro card" "how card";
  grid-template-rows: auto 1fr; align-items: start;
}
.pk-intro { grid-area: intro; }
.pk-card { grid-area: card; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(18px, 3vw, 30px); }
.pk-how { grid-area: how; }
.pk h1 { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.4rem); line-height: 1.02; }
.bin-chip {
  display: inline-flex; align-items: baseline; gap: .45em; margin: 16px 0 0;
  padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 1.15rem; font-stretch: 110%; font-weight: 560;
}
.bin-chip strong { font-stretch: 120%; font-weight: 780; letter-spacing: .02em; }
.pk-lead { margin: 16px 0 0; color: var(--ink-2); font-size: 1.1rem; max-width: 40ch; }
.pk-nobin { margin: 10px 0 0; font-weight: 600; color: var(--ink); }
.pk-form { grid-template-columns: 1fr 1fr; }
#p-bin { font-stretch: 112%; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; }
#p-bin::placeholder { text-transform: none; font-stretch: 100%; font-weight: 400; letter-spacing: 0; }
.level-options { display: flex; flex-wrap: wrap; gap: 10px; }
.level-option { position: relative; cursor: pointer; }
.level-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.level-option span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--field-bg);
  font-weight: 600; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.level-option span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-2); box-sizing: border-box; }
.level-option:hover span { border-color: var(--ink-2); }
.level-option input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.level-option input:checked + span::before { border: 4px solid var(--accent); }
.level-option input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
fieldset[aria-invalid="true"] .level-option span { border-color: var(--warn); }
.pk-submit { width: 100%; min-height: 54px; font-size: 1.05rem; }
.pk-done h2 { font-size: 1.8rem; font-stretch: 115%; margin: 10px 0 10px; }
.pk-done h2:focus { outline: none; }
.pk-done p { color: var(--ink-2); }
.pk-done strong { color: var(--ink); }
.pk-done .btn-row { margin-top: 18px; }
.pk-check { width: 48px; height: 48px; }
.pk-check circle { fill: var(--ok); }
.pk-check path { fill: none; stroke: var(--surface); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
html.motion .pk-done:not([hidden]) .pk-check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s var(--ease) .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bin-card {
  margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(18px, 3vw, 26px);
  display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: center;
}
.bin-card .bin-svg { width: 110px; }
.bin-card figcaption { font-size: 0.98rem; color: var(--ink-2); }
.bin-card figcaption strong { display: block; color: var(--ink); font-stretch: 108%; font-size: 1.08rem; margin-bottom: 4px; }
.printed-url { font-weight: 650; color: var(--ink); white-space: nowrap; }
.pk-nobin-cta { margin: 16px 0 0; color: var(--ink-2); }
.pk-nobin-cta a { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .pk-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "card" "how"; grid-template-rows: none; }
}
@media (max-width: 520px) {
  .pk-form { grid-template-columns: 1fr; }
  .bin-card { grid-template-columns: 84px 1fr; gap: 14px; }
  .bin-card .bin-svg { width: 84px; }
  .printed-url { white-space: normal; }
}

/* =========================================================
   COFFIRE (/coffire/)
   ========================================================= */
.cf-hero { background: radial-gradient(90% 120% at 85% 30%, #4a2a18 0%, var(--roast) 58%); color: var(--roast-ink); }
.cf-hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding-block: clamp(28px, 4vw, 52px);
}
.cf-hero .crumb { color: var(--roast-muted); }
.cf-hero h1 { font-size: clamp(1.7rem, 1rem + 2vw, 2.5rem); line-height: 1.1; }
.cf-hero h1 .coffire-wm { display: flex; width: max-content; font-size: clamp(2.8rem, 1.6rem + 4vw, 4.6rem); margin-bottom: 10px; }
.cf-hero .t-lead { color: var(--roast-muted); margin-top: 14px; }
.cf-hero :focus-visible { outline-color: var(--accent); }

.cf-explorer { display: flex; flex-direction: column; gap: 12px; }
.cf-scene { border-radius: var(--r-lg); background: #1c120d; overflow: hidden; aspect-ratio: 16 / 11; }
.cf-scene svg { width: 100%; height: 100%; }
.cf-tabs { display: flex; gap: 8px; }
.cf-tab {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--roast-muted);
  border: 1.5px solid color-mix(in srgb, var(--roast-ink) 30%, transparent);
  font-weight: 650; font-stretch: 105%;
}
.cf-tab:hover { color: var(--roast-ink); border-color: var(--roast-ink); }
.cf-tab[aria-selected="true"] { background: var(--roast-ink); color: var(--roast); border-color: var(--roast-ink); }
.cf-info { color: var(--roast-muted); min-height: 3.2em; }
.cf-info h2 { color: var(--roast-ink); font-size: 1.2rem; font-stretch: 110%; margin-bottom: 4px; }
.cf-info p { margin: 0; }
html:not(.js) .cf-tabs { display: none; }
html:not(.js) .cf-info[hidden] { display: block !important; }
/* scene: which product is lit */
.cf-scene .prod { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.cf-scene .glow { transition: opacity .6s var(--ease); }
html.motion .cf-scene.is-lit .flick { animation: flick 1.4s ease-in-out 2; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes flick { 0%, 100% { transform: scaleY(1); } 40% { transform: scaleY(1.08) skewX(-2deg); } 70% { transform: scaleY(.95) skewX(2deg); } }

.cf-origin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.cf-origin p { color: var(--ink-2); font-size: 1.1rem; max-width: 46ch; }
.cf-origin .btn-row { margin-top: 18px; }
.origin-visual { display: flex; align-items: center; justify-content: center; gap: 18px; }
.origin-visual .bin-svg { width: 104px; }
.origin-visual .bean-big { width: 92px; height: auto; }
.origin-visual .link-line { width: 80px; height: 20px; color: var(--ink-2); }
@media (max-width: 860px) {
  .cf-hero .wrap, .cf-origin { grid-template-columns: 1fr; }
}

/* =========================================================
   OUR STORY (/our-story/)
   ========================================================= */
.story-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.story-art { display: block; width: 100%; max-width: 440px; height: auto; color: var(--ink); background: #E5D5C0; border-radius: var(--r-md); }
.founders { border-top: 2px solid var(--ink); margin-top: 28px; }
.founders li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.founders .name { font-weight: 680; font-stretch: 110%; font-size: 1.15rem; display: block; }
.founders .role { color: var(--ink-2); font-size: 0.95rem; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; text-decoration: none;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease);
}
.pill svg { width: 15px; height: 15px; }
.pill:hover { background: var(--ink); color: var(--bg); }
.pill:active { transform: scale(.97); }
.next-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } .story-art { max-width: 440px; } }

/* ---------- 404 ---------- */
.nf-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 24px; max-width: 760px; }
.nf-links a {
  display: flex; align-items: center; min-height: 56px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  font-weight: 650; text-decoration: none;
}
.nf-links a:hover { border-color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 40px 0 28px; }
.site-footer a { color: var(--footer-ink); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.site-footer .brand-logo { height: 48px; }
.footer-tag { color: var(--footer-muted); margin: 6px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { text-decoration: none; color: var(--footer-muted); padding: 10px 0; display: inline-block; }
.footer-links a:hover { color: var(--green); text-decoration: underline; }
.footer-legal {
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--footer-ink) 18%, transparent);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 0.88rem; color: var(--footer-muted);
}
.site-footer :focus-visible { outline-color: var(--green); }

/* ---------- reduced motion: everything static ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .spinner { animation: none; border-right-color: currentColor; opacity: .6; }
}

/* page head directly followed by its content: no double gap */
.page-head + .section-tight { padding-top: 0; }

/* ---------- brand colour roles ----------
   Green: company identity, navigation, links, selected headings.
   Espresso: text, major headings, borders, dark sections.
   Amber: buttons, calls to action, highlights. Cream: background. */
main p a:not(.btn), main li a:not(.btn), .t-lead a:not(.btn) { color: var(--green); text-decoration-thickness: 1px; }
main p a:not(.btn):hover, main li a:not(.btn):hover { text-decoration-thickness: 2px; }
.cf-hero a:not(.btn), .hp-card a:not(.btn), .chapter a:not(.btn), .rail a, .pi-follow { color: inherit; }

/* long web address in the pickup QR note: wrap on narrow phones */
.pk-how figcaption strong, .printed-url { overflow-wrap: anywhere; }
