:root {
  /* How long the sequence takes to play, measured in scroll distance. Bigger = slower. */
  --hero-travel: 650vh;

  --ink: #050403;
  --cream: #f4e9d8;
  --cream-dim: rgba(244, 233, 216, 0.78);
  --accent: #d9a35b;
  --next-bg: #d3bea5;
  --espresso: #120d09;
  --roast: #1c1410;
  --bark: #2a1d12;
  --accent-on-light: #7a4812; /* sampled from the bottom edge of the final frame so the hand-off is seamless */

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (max-width: 700px) {
  :root { --hero-travel: 550vh; }
}

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

html {
  color-scheme: dark;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ───────────── Hero ───────────── */

.hero {
  position: relative;
  /* svh = the *small* viewport height, so the stage doesn't jump when mobile browser bars show/hide */
  height: calc(100vh + var(--hero-travel));
  height: calc(100svh + var(--hero-travel));
  background: var(--ink);
}

.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: var(--ink);
}

/* soft shade behind the text so it stays readable on brighter frames; fades with the text */
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(5, 4, 3, 0.72) 0%, rgba(5, 4, 3, 0.25) 38%, rgba(5, 4, 3, 0) 62%);
  opacity: var(--hero-fade, 1);
  will-change: opacity;
}

.hero__perspective {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding:
    clamp(24px, 6vw, 96px)
    clamp(20px, 6vw, 96px)
    clamp(72px, 12vh, 140px);
  perspective: 900px;
  perspective-origin: 30% 80%;
  pointer-events: none;
}

.hero__content {
  max-width: 34rem;
  transform-origin: 0% 100%;
  will-change: transform, opacity;
  pointer-events: none;
}

.hero__content.is-interactive { pointer-events: auto; }

.hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.7rem, 7.2vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-wrap: balance;
}

.hero__text {
  margin: 1.4rem 0 2rem;
  max-width: 28rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  color: var(--cream-dim);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 2.1rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(217, 163, 91, 0.35);
}

.hero__cta:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

.hero__cta:active { transform: scale(0.97); }

/* tiny "scroll" hint, fades with the text */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: var(--hero-fade, 1);
  pointer-events: none;
}

.hero__cue i {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--cream-dim), transparent);
  transform-origin: top;
  animation: cue 2s ease-in-out infinite;
}

@keyframes cue {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* thin load-progress line while frames stream in */
.hero__loader {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: transparent;
  transition: opacity 0.5s ease;
}
.hero__loader i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--load, 0));
}
.hero__loader.is-done { opacity: 0; }

@media (max-width: 700px) {
  .hero__perspective { perspective-origin: 20% 85%; }
  .hero__eyebrow { margin-bottom: 0.8rem; }
  .hero__text { margin: 1rem 0 1.5rem; }
  .hero__cta { width: 100%; }
  .hero__cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cue i { animation: none; transform: none; opacity: 0.6; }
}

/* ═════════════ Site ═════════════ */

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

[hidden] { display: none !important; }
img { display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }

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

.icon { width: 1.5rem; height: 1.5rem; display: block; overflow: visible; }
.icon--lg { width: 3rem; height: 3rem; }
.icon--xl { width: 4rem; height: 4rem; }

/* ───────────── Nav (floating pill, readable over any frame) ───────────── */

.nav {
  position: fixed;
  z-index: 50;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  translate: -50% 0;
  width: min(1120px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(18, 13, 9, 0.66);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(244, 233, 216, 0.1);
  color: var(--cream);
}

.nav__brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
}
.nav__brand .icon { width: 1.5rem; height: 1.5rem; color: var(--accent); transition: transform 0.6s cubic-bezier(.3,1.4,.5,1); }
.nav__brand:hover .icon { transform: rotate(200deg) scale(1.1); }
.nav__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.01em; }
.nav__am { font-family: "Noto Serif Ethiopic", var(--serif); font-size: 0.9rem; color: var(--cream-dim); }

.nav__links { display: flex; gap: 0.25rem; }
.nav__links a {
  position: relative;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--cream-dim);
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover { color: var(--cream); background: rgba(244, 233, 216, 0.08); }
.nav__links a.is-current { color: var(--ink); background: var(--cream); }

.nav__actions { display: flex; align-items: center; gap: 0.35rem; }

.nav__cart, .nav__menu {
  position: relative;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(244, 233, 216, 0.08);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.nav__cart:hover { background: var(--accent); color: var(--ink); }
.nav__cart:active { transform: scale(0.94); }
.nav__cart.is-bump { animation: bump 0.5s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 0% { transform: scale(1);} 40% { transform: scale(1.22) rotate(-8deg);} 100% { transform: scale(1);} }
.nav__badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--accent); color: var(--ink);
  font-size: 0.72rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.nav__menu { display: none; gap: 5px; align-content: center; }
.nav__menu span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s; }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav { padding-left: 0.9rem; }
  .nav__am { display: none; }
  .nav__menu { display: grid; }
  .nav__links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 0.5rem;
    border-radius: 24px;
    background: rgba(18, 13, 9, 0.94);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid rgba(244, 233, 216, 0.1);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 0.95rem 1.1rem; font-size: 1rem; }
}

/* ───────────── Bands & shared type ───────────── */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px));
}

.band { padding-block: clamp(4.5rem, 10vw, 8rem); position: relative; }

.band--light {
  --fg: var(--bark);
  --muted: rgba(42, 29, 18, 0.74);
  --line: rgba(42, 29, 18, 0.2);
  --surface: #e3d3bb;
  --accent-text: var(--accent-on-light);
  background: var(--next-bg);
  color: var(--fg);
}
.band--dark {
  --fg: var(--cream);
  --muted: var(--cream-dim);
  --line: rgba(244, 233, 216, 0.16);
  --surface: #1d1510;
  --accent-text: var(--accent);
  background: var(--espresso);
  color: var(--fg);
}
.band--deep { background: #0b0806; }

.kicker {
  margin: 0 0 1rem;
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent-text);
}

.h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem 3rem; flex-wrap: wrap;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head__note { margin: 0; max-width: 28rem; color: var(--muted); line-height: 1.65; }

.reveal-ready [data-reveal] { transform: translateY(26px); transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal-ready [data-reveal].is-in { transform: none; }

/* ───────────── Story ───────────── */

.statement {
  margin: 0;
  max-width: 24ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 22em;
  text-wrap: pretty;
}
.statement em { font-style: italic; color: var(--accent-text); }
.statement__am { font-family: "Noto Serif Ethiopic", var(--serif); font-weight: 700; }

.traits {
  list-style: none; padding: 0;
  margin: clamp(3rem, 7vw, 5rem) 0 0;
  display: grid; gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
}
.trait {
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: 1.8rem 1.5rem 2rem;
  background: var(--next-bg);
  cursor: default;
  transition: background-color 0.3s;
}
.trait:hover, .trait:focus-visible, .trait.is-on { background: var(--surface); }
.trait h3 { margin: 0.8rem 0 0; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1.1; }
.trait p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.95rem; }
.trait__icon { color: var(--accent-text); transition: transform 0.4s cubic-bezier(.3,1.5,.5,1); }
.trait:hover .trait__icon, .trait:focus-visible .trait__icon, .trait.is-on .trait__icon { transform: scale(1.14) rotate(-4deg); }

/* icon micro-animations (run on hover/focus/tap) */
.trait .flame-in { transform-origin: 24px 40px; }
.trait:hover .flame, .trait:focus-visible .flame, .trait.is-on .flame { animation: flicker 0.7s ease-in-out infinite alternate; transform-origin: 24px 40px; }
.trait:hover .flame-in, .trait:focus-visible .flame-in, .trait.is-on .flame-in { animation: flicker 0.5s ease-in-out infinite alternate-reverse; }
@keyframes flicker { from { transform: scale(1, 1) skewX(0); } to { transform: scale(0.94, 1.07) skewX(-3deg); } }

.trait .bean-a, .trait .bean-b { transform-box: fill-box; transform-origin: center; transition: transform 0.5s cubic-bezier(.3,1.5,.5,1); }
.trait:hover .bean-a, .trait:focus-visible .bean-a, .trait.is-on .bean-a { transform: translate(-3px, -3px) rotate(-18deg); }
.trait:hover .bean-b, .trait:focus-visible .bean-b, .trait.is-on .bean-b { transform: translate(3px, 3px) rotate(22deg); }

.trait .zip { transition: stroke-dashoffset 0.6s; stroke-dashoffset: 0; }
.trait:hover .zip, .trait:focus-visible .zip, .trait.is-on .zip { stroke-dashoffset: -36; stroke-dasharray: 3 3; }
.trait .seal-dot { transition: fill 0.3s; }
.trait:hover .seal-dot, .trait:focus-visible .seal-dot, .trait.is-on .seal-dot { fill: currentColor; }

.trait .steam path, .icon--xl .steam path { stroke-dasharray: 10; stroke-dashoffset: 0; }
.trait:hover .steam path, .trait:focus-visible .steam path, .trait.is-on .steam path { animation: rise 1.4s ease-in-out infinite; }
.trait:hover .steam path:nth-child(2), .trait.is-on .steam path:nth-child(2) { animation-delay: 0.25s; }
.trait:hover .steam path:nth-child(3), .trait.is-on .steam path:nth-child(3) { animation-delay: 0.5s; }
@keyframes rise { 0% { stroke-dashoffset: 10; opacity: 0; transform: translateY(3px);} 50% { opacity: 1; } 100% { stroke-dashoffset: -10; opacity: 0; transform: translateY(-4px);} }

@media (max-width: 960px) { .traits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .traits { grid-template-columns: 1fr; } }

/* ───────────── Shop ───────────── */

.band--shop { padding-top: 0; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.products__fallback { grid-column: 1 / -1; color: var(--muted); }

.product {
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s;
}
.product:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(42, 29, 18, 0.55); }

.product__media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: #cdb89c; }
.product__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.product:hover .product__media img { transform: scale(1.06); }
.product__tag {
  position: absolute; top: 14px; left: 14px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(18, 13, 9, 0.82); color: var(--cream);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}

.product__body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.4rem 1.4rem 1.5rem; flex: 1; }
.product__title { margin: 0; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.product__desc { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; flex: 1; }
.product__meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: 0.6rem; }
.product__price { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.product__size { font-size: 0.85rem; color: var(--muted); }
.product__buy { display: flex; gap: 0.6rem; margin-top: 0.9rem; }

.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
}
.qty button {
  width: 40px; height: 44px; border: 0; background: none; cursor: pointer;
  font-size: 1.15rem; border-radius: 999px;
}
.qty button:hover { background: rgba(122, 72, 18, 0.12); }
.qty output { min-width: 1.6rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 960px) { .products { grid-template-columns: 1fr; } .product { flex-direction: row; } .product__media { width: 40%; aspect-ratio: auto; } }
@media (max-width: 620px) { .product { flex-direction: column; } .product__media { width: 100%; aspect-ratio: 5 / 3.4; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0 1.4rem;
  border: 0; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--accent { background: var(--bark); color: var(--cream); flex: 1; }
.band--dark .btn--accent, .drawer .btn--accent, .timer__buttons .btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover:not(:disabled) { background: var(--accent-deep, #a8702b); color: var(--cream); }
.band--dark .btn--accent:hover:not(:disabled), .drawer .btn--accent:hover:not(:disabled) { background: var(--cream); color: var(--ink); }
.btn--accent.is-added { background: #3f6b3a !important; color: #fff !important; }
.btn--dark { background: var(--bark); color: var(--cream); }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--fg); }
.btn--ghost:hover { background: rgba(244, 233, 216, 0.1); }
.btn--ghost-dark { background: transparent; border: 1px solid rgba(244, 233, 216, 0.3); color: var(--cream); }
.btn--ghost-dark:hover { background: rgba(244, 233, 216, 0.1); }
.btn--block { width: 100%; }

/* ───────────── Ritual ───────────── */

.ritual { --brew-top: #2a140a; --brew-bottom: #0f0603; --level: 74; }
.ritual__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 1.8rem; }
.ritual__tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line); border-radius: 18px;
  background: transparent; cursor: pointer; text-align: left;
  transition: background-color 0.25s, border-color 0.25s, transform 0.2s;
}
.ritual__tab:hover { border-color: rgba(217, 163, 91, 0.6); }
.ritual__tab.is-active { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.ritual__tab-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1; }
.ritual__tab-sub { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }

.ritual__panel {
  display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 28px;
  background: radial-gradient(120% 120% at 20% 0%, #2a1b11 0%, #170f0a 60%);
  border: 1px solid var(--line);
}
.cup { width: 100%; height: auto; overflow: visible; }
.cup__body, .cup__handle, .cup__saucer { fill: none; stroke: var(--cream); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cup__liquid { transform: translateY(calc((100 - var(--level)) * 1.3px)); transition: transform 1s cubic-bezier(.3,1,.4,1); }
.cup__steam path { fill: none; stroke: var(--cream); stroke-width: 3; stroke-linecap: round; opacity: 0.5; stroke-dasharray: 60; animation: steam 3.2s ease-in-out infinite; }
.cup__steam path:nth-child(2) { animation-delay: 0.6s; }
.cup__steam path:nth-child(3) { animation-delay: 1.2s; }
@keyframes steam { 0% { stroke-dashoffset: 60; opacity: 0; } 40% { opacity: 0.6; } 100% { stroke-dashoffset: -60; opacity: 0; } }
:root { --brew-top: #2a140a; --brew-bottom: #0f0603; }
.ritual { --brew-top: #2a140a; --brew-bottom: #0f0603; }
.ritual[data-round="1"] { --brew-top: #5b3319; --brew-bottom: #2b1609; }
.ritual[data-round="2"] { --brew-top: #a77a47; --brew-bottom: #7a5229; }
.ritual__cup { transition: transform 0.6s cubic-bezier(.3,1.4,.5,1); }
.ritual__cup.is-swap { transform: scale(0.94) rotate(-3deg); }

.ritual__round { margin: 0 0 0.4rem; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.ritual__title { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 8vw, 5.5rem); line-height: 0.95; font-weight: 600; }
.ritual__text { margin: 1.1rem 0 1.6rem; max-width: 34rem; line-height: 1.7; color: var(--cream-dim); font-size: 1.05rem; }

.meter { display: grid; grid-template-columns: auto 1fr auto; gap: 0.9rem; align-items: center; max-width: 30rem; font-size: 0.85rem; }
.meter__label { text-transform: uppercase; letter-spacing: 0.14em; color: var(--cream-dim); font-size: 0.74rem; }
.meter__bar { height: 6px; border-radius: 6px; background: rgba(244, 233, 216, 0.14); overflow: hidden; }
.meter__bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--meter, 1)); transition: transform 0.9s cubic-bezier(.3,1,.4,1); border-radius: 6px; }
.meter__value { font-weight: 600; min-width: 5.5rem; text-align: right; }

.ritual__aside { margin: 1.5rem 0 0; color: var(--cream-dim); font-size: 0.95rem; }

@media (max-width: 760px) {
  .ritual__panel { grid-template-columns: 1fr; }
  .ritual__cup { max-width: 220px; margin: 0 auto; }
  .ritual__tab { padding: 0.8rem 0.8rem; }
  .ritual__tab-name { font-size: 1.35rem; }
  .ritual__tab-sub { font-size: 0.66rem; letter-spacing: 0.06em; }
}

/* ───────────── Brew guide ───────────── */

.brew { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.brew__controls, .brew__result { min-width: 0; }
.brew__field { margin: 0 0 2rem; padding: 0; border: 0; }
.brew__field legend, .brew__field > label {
  display: flex; align-items: baseline; justify-content: space-between;
  width: 100%; padding: 0; margin-bottom: 0.9rem;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream-dim);
}
.brew__field output { font-family: var(--serif); font-size: 2rem; letter-spacing: 0; color: var(--cream); line-height: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  min-height: 46px; padding: 0 1.15rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; cursor: pointer;
  font-size: 0.92rem; font-weight: 500;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: rgba(217, 163, 91, 0.7); }
.chip[aria-checked="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--accent) var(--fill, 0%), rgba(244, 233, 216, 0.16) var(--fill, 0%)); outline-offset: 8px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--cream); border: 4px solid var(--accent); cursor: grab; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--cream); border: 4px solid var(--accent); cursor: grab; }
.brew__hint { margin: 0.8rem 0 0; font-size: 0.88rem; color: var(--cream-dim); }

.brew__steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 0.8rem; }
.brew__steps li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; gap: 0.9rem; line-height: 1.6; color: var(--cream-dim); }
.brew__steps li::before {
  content: counter(s);
  display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; border: 1px solid var(--line);
  font-size: 0.82rem; font-weight: 600; color: var(--accent);
}

.brew__result { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 28px; background: #16100c; border: 1px solid var(--line); }
.stats { margin: 0 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; }
.stat { margin: 0; padding: 1.1rem 1.2rem; background: #16100c; }
.stat--wide { grid-column: 1 / -1; }
.stat dt { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 0.35rem; }
.stat dd { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.stat dd b { font-family: var(--serif); font-weight: 600; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat dd small { margin-left: 0.3rem; font-size: 0.95rem; color: var(--cream-dim); }

.timer { position: relative; width: min(220px, 62vw); margin: 0 auto 1.5rem; aspect-ratio: 1; }
.timer__ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer__track, .timer__bar { fill: none; stroke-width: 5; }
.timer__track { stroke: rgba(244, 233, 216, 0.14); }
.timer__bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 0; transition: stroke-dashoffset 0.25s linear; }
.timer__inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; }
.timer__time { font-family: var(--serif); font-size: clamp(2.6rem, 8vw, 3.4rem); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.timer__label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim); }
.timer.is-done .timer__bar { stroke: #8cc084; }
.timer.is-done .timer__time { animation: pulse 0.9s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.08); } }
.timer__buttons { display: flex; gap: 0.6rem; justify-content: center; }
.timer__buttons .btn--accent { flex: 0 1 auto; min-width: 9rem; }

@media (max-width: 860px) { .brew { grid-template-columns: 1fr; } }

/* ───────────── Gallery ───────────── */

.band--gallery { padding-block: 0; }
.gallery {
  display: flex; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 12px max(12px, env(safe-area-inset-left, 0px));
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { position: relative; margin: 0; flex: 0 0 min(78vw, 640px); scroll-snap-align: center; border-radius: 20px; overflow: hidden; background: #000; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.2rem 1rem;
  background: linear-gradient(to top, rgba(5, 4, 3, 0.8), transparent);
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--cream);
}

/* ───────────── Visit / signup ───────────── */

.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: center; }
.visit__text { margin: 1rem 0 0; color: var(--muted); max-width: 26rem; line-height: 1.65; }
.signup { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.signup input {
  flex: 1 1 14rem; min-width: 0; min-height: 52px; padding: 0 1.3rem;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.35);
  font: inherit; color: var(--bark);
}
.signup input::placeholder { color: rgba(42, 29, 18, 0.5); }
.signup .btn { min-height: 52px; }
.signup__msg { flex: 1 0 100%; margin: 0.3rem 0 0; min-height: 1.4rem; font-size: 0.92rem; color: var(--accent-on-light); }
.signup__msg.is-error { color: #8c2a1a; }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }

/* ───────────── Footer ───────────── */

.footer { background: var(--ink); color: var(--cream-dim); padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer__brand { display: flex; align-items: baseline; gap: 0.8rem; }
.footer__name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--cream); }
.footer__am { font-family: "Noto Serif Ethiopic", var(--serif); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer__nav a { text-decoration: none; font-size: 0.9rem; }
.footer__nav a:hover { color: var(--cream); }
.footer__legal { margin: 0; font-size: 0.82rem; flex-basis: 100%; }

/* ───────────── Cart drawer ───────────── */

.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(5, 4, 3, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.3s; }
.scrim.is-open { opacity: 1; }

.drawer {
  position: fixed; z-index: 70; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: var(--espresso); color: var(--cream);
  border-left: 1px solid var(--line, rgba(244, 233, 216, 0.14));
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(.3,.9,.3,1), visibility 0.4s;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.drawer.is-open { transform: none; visibility: visible; }

.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.3rem; border-bottom: 1px solid rgba(244, 233, 216, 0.12); }
.drawer__head h2 { margin: 0; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; }
.drawer__close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(244, 233, 216, 0.08); cursor: pointer; }
.drawer__close:hover { background: rgba(244, 233, 216, 0.18); }

.drawer__body { flex: 1; overflow-y: auto; padding: 1.2rem 1.3rem; overscroll-behavior: contain; }
.drawer__foot { padding: 1.1rem 1.3rem 1.3rem; border-top: 1px solid rgba(244, 233, 216, 0.12); display: grid; gap: 0.9rem; }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; }
.subtotal b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }

.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 0.9rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid rgba(244, 233, 216, 0.1); }
.line img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.line__name { margin: 0; font-weight: 600; line-height: 1.3; }
.line__sub { margin: 0.15rem 0 0.5rem; font-size: 0.82rem; color: var(--cream-dim); }
.line .qty { border-color: rgba(244, 233, 216, 0.22); }
.line .qty button { width: 34px; height: 34px; }
.line .qty button:hover { background: rgba(244, 233, 216, 0.1); }
.line__right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; font-variant-numeric: tabular-nums; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font-size: 0.82rem; color: var(--cream-dim); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--cream); }

.empty { display: grid; justify-items: center; gap: 1rem; padding: 3rem 1rem; text-align: center; color: var(--cream-dim); }
.empty .icon { color: var(--accent); }
.empty p { margin: 0; }
.empty:hover .steam path { animation: rise 1.4s ease-in-out infinite; }

.checkout { display: grid; gap: 1rem; }
.checkout__lead { margin: 0; color: var(--cream-dim); line-height: 1.6; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-dim); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 0.8rem 1rem;
  border-radius: 14px; border: 1px solid rgba(244, 233, 216, 0.22);
  background: rgba(244, 233, 216, 0.06); color: var(--cream);
  font: inherit; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field.has-error input, .field.has-error textarea { border-color: #e4806c; }
.checkout__error { margin: 0; min-height: 1.2rem; color: #f0a392; font-size: 0.9rem; }

.done { display: grid; justify-items: center; gap: 0.8rem; padding: 2rem 0; text-align: center; }
.done h3 { margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.done p { margin: 0; color: var(--cream-dim); line-height: 1.6; max-width: 22rem; }
.done__tick { color: var(--accent); }
.done__tick .tick { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.7s 0.2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__summary { width: 100%; margin: 0.5rem 0 0; padding: 1rem; border-radius: 14px; background: rgba(244, 233, 216, 0.06); text-align: left; white-space: pre-wrap; font: 0.82rem/1.55 ui-monospace, Menlo, monospace; color: var(--cream); overflow-x: auto; }
.done__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 0.6rem; }
.done__actions .btn--accent { flex: 0 1 auto; }

.toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 0.8rem 1.3rem; border-radius: 999px;
  background: var(--cream); color: var(--ink); font-size: 0.92rem; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s, translate 0.25s;
  max-width: calc(100% - 32px);
}
.toast.is-on { opacity: 1; translate: -50% 0; }

body.is-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal-ready [data-reveal] { transform: none; }
}


/* ═══════════ Bisrat editorial refresh — non-hero sections only ═══════════
   The hero, floating navigation, frame sequence, and hero hand-off palette
   are intentionally left untouched.
*/

/* Story: retain the frame-matched hand-off colour at the very top. */
#story.band--light {
  background-color: var(--next-bg);
  background-image:
    linear-gradient(180deg, rgba(211, 190, 165, 0) 0%, rgba(244, 233, 216, 0.34) 45%, rgba(244, 233, 216, 0.12) 100%),
    radial-gradient(68% 72% at 96% 70%, rgba(122, 72, 18, 0.10), transparent 72%);
}

#story .wrap,
.band--shop .wrap,
.band--dark .wrap,
#visit .wrap,
.footer .wrap {
  max-width: 1200px;
}

#story .statement {
  position: relative;
  max-width: 24ch;
  padding-left: clamp(1.2rem, 2.5vw, 2rem);
  font-size: clamp(2.15rem, 4.6vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

#story .statement::before {
  content: "";
  position: absolute;
  top: 0.16em;
  bottom: 0.12em;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #a9672b, rgba(169, 103, 43, 0.12));
}

#story .statement em {
  color: #92551f;
  text-decoration: underline;
  text-decoration-color: rgba(146, 85, 31, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.13em;
}

#story .traits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: clamp(3.2rem, 6vw, 5rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

#story .trait {
  position: relative;
  min-height: 245px;
  gap: 0.8rem;
  padding: 1.65rem 1.45rem 1.8rem;
  border: 1px solid rgba(70, 47, 27, 0.16);
  border-radius: 20px;
  background: rgba(247, 239, 225, 0.46);
  box-shadow: 0 10px 26px rgba(64, 42, 22, 0.045);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#story .trait:hover,
#story .trait:focus-visible,
#story .trait.is-on {
  transform: translateY(-5px);
  border-color: rgba(146, 85, 31, 0.32);
  background: rgba(250, 244, 234, 0.82);
  box-shadow: 0 18px 34px rgba(64, 42, 22, 0.10);
}

#story .trait__icon {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 10px;
  box-sizing: content-box;
  border: 1px solid rgba(146, 85, 31, 0.18);
  border-radius: 15px;
  background: rgba(169, 103, 43, 0.09);
  color: #92551f;
}

#story .trait h3 {
  margin-top: 0.45rem;
  font-size: clamp(1.25rem, 1.65vw, 1.55rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

#story .trait p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(42, 29, 18, 0.74);
}

/* Shop: a quieter oat-coloured field with more deliberate product cards. */
.band--shop {
  padding-top: clamp(4.5rem, 8vw, 7rem);
  background-color: #e8dece;
  background-image:
    radial-gradient(75% 85% at 4% 0%, rgba(255, 252, 245, 0.52), transparent 70%),
    linear-gradient(135deg, rgba(112, 75, 43, 0.035), transparent 55%);
  border-top: 1px solid rgba(63, 43, 26, 0.08);
}

.band--shop .section-head {
  align-items: end;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}

.band--shop .kicker,
#story .kicker,
#visit .kicker {
  color: #92551f;
}

.band--shop .h2,
#visit .h2 {
  color: #24180f;
  letter-spacing: -0.035em;
}

.band--shop .section-head__note {
  max-width: 26rem;
  color: rgba(42, 29, 18, 0.68);
}

.band--shop .products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.band--shop .product {
  border: 1px solid rgba(65, 44, 27, 0.13);
  border-radius: 22px;
  background: #f4ecdf;
  box-shadow: 0 10px 28px rgba(58, 38, 22, 0.07);
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s, border-color 0.35s;
}

.band--shop .product:hover {
  transform: translateY(-7px);
  border-color: rgba(146, 85, 31, 0.28);
  box-shadow: 0 24px 48px -24px rgba(42, 29, 18, 0.38);
}

.band--shop .product__media {
  aspect-ratio: 5 / 4;
  background: #d9c7ad;
}

.band--shop .product__media img {
  transition: transform 0.9s cubic-bezier(.2, .7, .2, 1), filter 0.9s ease;
}

.band--shop .product:hover .product__media img {
  transform: scale(1.055);
  filter: saturate(1.06);
}

.band--shop .product__body {
  gap: 0.65rem;
  padding: 1.5rem 1.45rem 1.55rem;
}

.band--shop .product__title {
  color: #2a1d12;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.band--shop .product__desc {
  color: rgba(42, 29, 18, 0.7);
  line-height: 1.65;
}

.band--shop .product__price {
  color: #774719;
}

.band--shop .product__tag {
  background: rgba(33, 22, 14, 0.88);
  color: #f5ead8;
  backdrop-filter: blur(8px);
}

.band--shop .qty {
  border-color: rgba(42, 29, 18, 0.2);
  background: rgba(255, 255, 255, 0.22);
}

.band--shop .qty button:hover {
  background: rgba(146, 85, 31, 0.12);
}

.band--shop .btn--accent,
#visit .btn--dark {
  background: #332116;
  color: #f7eddf;
  box-shadow: 0 8px 18px rgba(42, 29, 18, 0.12);
}

.band--shop .btn--accent:hover:not(:disabled),
#visit .btn--dark:hover {
  background: #92551f;
  color: #fff8ed;
  box-shadow: 0 12px 24px rgba(146, 85, 31, 0.22);
}

/* Ritual: deepen the backdrop and give the three ceremony stages presence. */
#ritual.band--dark {
  background-color: #17100b;
  background-image:
    radial-gradient(75% 85% at 10% 5%, rgba(128, 78, 37, 0.18), transparent 70%),
    radial-gradient(60% 75% at 100% 100%, rgba(75, 43, 22, 0.2), transparent 70%);
}

#ritual .section-head__note,
#brew .section-head__note {
  max-width: 27rem;
  color: rgba(244, 233, 216, 0.68);
}

#ritual .ritual__tabs {
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

#ritual .ritual__tab {
  position: relative;
  min-height: 82px;
  justify-content: center;
  padding: 1rem 1.3rem;
  border: 1px solid rgba(244, 233, 216, 0.17);
  border-radius: 16px;
  background: rgba(244, 233, 216, 0.035);
}

#ritual .ritual__tab:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 163, 91, 0.58);
  background: rgba(244, 233, 216, 0.07);
}

#ritual .ritual__tab.is-active {
  border-color: #d9a35b;
  background: #d9a35b;
  color: #1b120b;
  box-shadow: 0 10px 28px rgba(217, 163, 91, 0.18);
}

#ritual .ritual__tab-name {
  font-size: 1.85rem;
}

#ritual .ritual__tab-sub {
  letter-spacing: 0.13em;
}

#ritual .ritual__panel {
  min-height: 350px;
  border: 1px solid rgba(244, 233, 216, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(80% 120% at 18% 15%, rgba(120, 74, 39, 0.34), transparent 70%),
    linear-gradient(135deg, #24170f 0%, #130d08 72%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

#ritual .ritual__title {
  letter-spacing: -0.035em;
  color: #f4e9d8;
}

#ritual .ritual__text {
  color: rgba(244, 233, 216, 0.76);
}

#ritual .ritual__aside {
  color: rgba(244, 233, 216, 0.62);
}

/* Brew guide: turn the calculator into a clear, tactile work surface. */
#brew.band--dark {
  background-color: #0d0906;
  background-image: linear-gradient(180deg, rgba(33, 22, 14, 0.48), rgba(13, 9, 6, 0.96));
}

#brew .brew {
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: stretch;
}

#brew .brew__controls {
  padding: clamp(1.35rem, 3vw, 2.3rem);
  border: 1px solid rgba(244, 233, 216, 0.12);
  border-radius: 24px;
  background: rgba(244, 233, 216, 0.035);
}

#brew .brew__field legend,
#brew .brew__field > label {
  color: rgba(244, 233, 216, 0.72);
}

#brew .chip {
  border-color: rgba(244, 233, 216, 0.2);
  background: rgba(244, 233, 216, 0.035);
}

#brew .chip:hover {
  border-color: rgba(217, 163, 91, 0.7);
  background: rgba(217, 163, 91, 0.08);
}

#brew .chip[aria-checked="true"] {
  border-color: #d9a35b;
  background: #d9a35b;
  color: #1b120b;
}

#brew .brew__steps li {
  color: rgba(244, 233, 216, 0.74);
}

#brew .brew__steps li::before {
  border-color: rgba(217, 163, 91, 0.44);
  background: rgba(217, 163, 91, 0.07);
  color: #e2b675;
}

#brew .brew__result {
  border: 1px solid rgba(244, 233, 216, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(132, 81, 42, 0.17), transparent 70%),
    #17100b;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

#brew .stats {
  gap: 1px;
  background: rgba(244, 233, 216, 0.12);
}

#brew .stat {
  background: rgba(244, 233, 216, 0.035);
}

#brew .stat dd b {
  color: #f5dfbd;
}

#brew .timer__track {
  stroke: rgba(244, 233, 216, 0.12);
}

/* Gallery: a cinematic strip, separated from the darker calculator section. */
.band--gallery {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(125, 75, 37, 0.18), transparent 75%),
    #090705;
  border-top: 1px solid rgba(244, 233, 216, 0.08);
  border-bottom: 1px solid rgba(244, 233, 216, 0.08);
}

.band--gallery .gallery {
  gap: 1.15rem;
  padding: 0 max(20px, calc((100vw - 1200px) / 2));
  scroll-padding-inline: max(20px, calc((100vw - 1200px) / 2));
}

.band--gallery .gallery figure {
  flex-basis: min(72vw, 600px);
  border: 1px solid rgba(244, 233, 216, 0.16);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.band--gallery .gallery img {
  aspect-ratio: 16 / 10;
  filter: saturate(0.9);
}

.band--gallery .gallery figure:hover img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.band--gallery .gallery figcaption {
  padding: 3.5rem 1.5rem 1.25rem;
  font-size: 1.5rem;
  background: linear-gradient(to top, rgba(5, 4, 3, 0.88), rgba(5, 4, 3, 0.18) 58%, transparent);
}

/* Stay close: a warm paper panel instead of a bare two-column form. */
#visit.band--light {
  background-color: #e8dece;
  background-image:
    radial-gradient(80% 100% at 90% 10%, rgba(255, 252, 245, 0.58), transparent 70%),
    linear-gradient(135deg, rgba(112, 75, 43, 0.04), transparent 60%);
}

#visit .visit {
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
  padding: clamp(1.6rem, 4vw, 3.5rem);
  border: 1px solid rgba(65, 44, 27, 0.14);
  border-radius: 28px;
  background: rgba(249, 243, 233, 0.52);
  box-shadow: 0 16px 42px rgba(58, 38, 22, 0.06);
}

#visit .visit__text {
  color: rgba(42, 29, 18, 0.7);
}

#visit .signup {
  align-items: start;
  gap: 0.7rem;
}

#visit .signup input {
  min-height: 54px;
  padding-inline: 1.25rem;
  border-color: rgba(65, 44, 27, 0.2);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: inset 0 1px 2px rgba(42, 29, 18, 0.03);
}

#visit .signup input:focus {
  outline: 2px solid rgba(146, 85, 31, 0.55);
  outline-offset: 2px;
}

#visit .signup .btn {
  min-height: 54px;
}

/* Footer: a more intentional final brand signature. */
.footer {
  padding-block: 3rem calc(3rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(244, 233, 216, 0.12);
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(132, 81, 42, 0.13), transparent 70%),
    #100b07;
}

.footer__row {
  gap: 1.25rem 2rem;
}

.footer__brand {
  align-items: center;
  gap: 0.9rem;
}

.footer__name {
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.footer__am {
  color: rgba(244, 233, 216, 0.56);
  font-size: 0.88rem;
}

.footer__nav a {
  padding: 0.4rem 0;
  color: rgba(244, 233, 216, 0.68);
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: #e2b675;
}

.footer__legal {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(244, 233, 216, 0.09);
  color: rgba(244, 233, 216, 0.42);
}

/* Refined focus and motion states for non-hero controls. */
.band--shop .btn:focus-visible,
.band--dark .btn:focus-visible,
#visit .signup input:focus-visible,
#ritual .ritual__tab:focus-visible,
#brew .chip:focus-visible {
  outline-color: #d9a35b;
  outline-offset: 4px;
}

@media (max-width: 960px) {
  #story .traits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .band--shop .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .band--shop .product {
    flex-direction: column;
  }

  .band--shop .product__media {
    width: 100%;
    aspect-ratio: 5 / 4;
  }
}

@media (max-width: 760px) {
  #ritual .ritual__tabs {
    gap: 0.5rem;
  }

  #ritual .ritual__tab {
    min-height: 74px;
    padding-inline: 0.8rem;
  }

  #ritual .ritual__tab-name {
    font-size: 1.45rem;
  }

  #ritual .ritual__tab-sub {
    font-size: 0.64rem;
  }

  #visit .visit {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  #story .statement {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 3rem);
  }

  #story .traits {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  #story .trait {
    min-height: auto;
    padding: 1.35rem;
  }

  .band--shop .products {
    grid-template-columns: 1fr;
  }

  .band--shop .product__media {
    aspect-ratio: 5 / 3.6;
  }

  .band--shop .product__body {
    padding: 1.25rem;
  }

  #ritual .ritual__panel {
    padding: 1.25rem;
  }

  #brew .brew__controls {
    padding: 1.15rem;
  }

  .band--gallery .gallery {
    padding-inline: 16px;
  }

  .band--gallery .gallery figure {
    flex-basis: min(88vw, 520px);
  }

  #visit .visit {
    padding: 1.35rem;
    border-radius: 22px;
  }

  #visit .signup {
    display: grid;
    grid-template-columns: 1fr;
  }

  #visit .signup input,
  #visit .signup .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #story .trait,
  .band--shop .product,
  #ritual .ritual__tab {
    transition: none;
  }
}
