@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* ══════════════════════════════════════════════════════════
   Tokens — "Warm Ember", carried over from The Culinary Index
   ══════════════════════════════════════════════════════════ */
:root {
  /* rewritten by the accent palette picker */
  --accent:        #e8734a;
  --accent-soft:   rgba(232, 115, 74, 0.16);
  --accent-glow:   rgba(232, 115, 74, 0.34);
  --gold:          #d4a843;

  /* fixed per-source identity, independent of the accent */
  --src-foodfusion: #58a866;
  --src-superchef:  #4e93d8;
  --src-tasty:      #e2506a;
  --src-web:        #9b8f80;

  --font:          'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display:  'Playfair Display', 'Iowan Old Style', Georgia, serif;

  --pad:           clamp(1.25rem, 4vw, 4.5rem);
  --measure:       58ch;
  --radius:        14px;
  --ease:          cubic-bezier(.22, .61, .36, 1);
  --ease-out:      cubic-bezier(.16, 1, .3, 1);
}

/* dark (default) */
:root, [data-theme="dark"] {
  --bg:            #14100c;
  --bg-2:          #1a1410;
  --surface:       rgba(42, 34, 24, 0.55);
  --surface-2:     rgba(26, 21, 16, 0.88);
  --border:        rgba(232, 214, 190, 0.13);
  --border-strong: rgba(232, 214, 190, 0.26);
  --text:          #f4ede2;
  --text-2:        #a89880;
  --text-dim:      #6a5e50;
  --shadow:        0 24px 60px -24px rgba(0, 0, 0, .85);
  --grain:         .05;
  --vignette:      .62;
}

[data-theme="light"] {
  --bg:            #f6f1e9;
  --bg-2:          #ffffff;
  --surface:       rgba(255, 255, 255, 0.66);
  --surface-2:     rgba(255, 253, 250, 0.93);
  --border:        rgba(26, 20, 16, 0.13);
  --border-strong: rgba(26, 20, 16, 0.24);
  --text:          #191310;
  --text-2:        #6a5e50;
  --text-dim:      #948877;
  --shadow:        0 24px 60px -28px rgba(70, 48, 30, .35);
  --grain:         .035;
  --vignette:      .20;
}

/* ══════════════════════════════════════════════════════════
   Reset
   ══════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* The UA rule for [hidden] is display:none at element specificity, which
   `.panel { display: flex }` and `.grid { display: grid }` both beat — the
   results panel would never actually hide. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .7s var(--ease), color .7s var(--ease);
}

body.is-loading { overflow: hidden; }
body.is-dragging { cursor: grabbing; user-select: none; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

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

.noscript-note {
  display: none; position: relative; z-index: 10;
  padding: 1rem var(--pad); text-align: center;
  color: var(--text-2); border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════════
   Loader
   ══════════════════════════════════════════════════════════ */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem; background: var(--bg);
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader__mark svg { width: 54px; height: 54px; overflow: visible; }
.loader__ring { fill: none; stroke: var(--border); stroke-width: 2; }
.loader__arc {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 30 90; transform-origin: center;
  animation: spin 1.1s linear infinite;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader__label {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.15rem; color: var(--text-2);
}
.loader__bar {
  width: min(220px, 50vw); height: 2px; overflow: hidden;
  background: var(--border); border-radius: 2px;
}
.loader__bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width .35s var(--ease-out);
}

/* ══════════════════════════════════════════════════════════
   3D stage
   ══════════════════════════════════════════════════════════ */
#stage {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%; display: block;
  touch-action: pan-y; cursor: grab;
}
body.is-dragging #stage { cursor: grabbing; }

.stage-vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 42%, transparent 38%, rgba(0,0,0,var(--vignette)) 100%);
  transition: background .7s var(--ease);
}

.stage-grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
}

/* ══════════════════════════════════════════════════════════
   Nav
   ══════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--pad);
  border-bottom: 1px solid transparent;
  transition: background .45s var(--ease), backdrop-filter .45s,
              border-color .45s, padding .45s var(--ease);
}
.nav.is-stuck {
  padding-block: .7rem;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--border);
}

.nav__logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .93rem; letter-spacing: .02em;
}
.nav__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 14px var(--accent-glow);
  transition: background .6s var(--ease), box-shadow .6s var(--ease);
}

.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  font-size: .85rem; color: var(--text-2);
  letter-spacing: .04em; text-transform: uppercase;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px;
  padding: 0 .35rem; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: 0;
  transition: background .6s var(--ease), opacity .3s;
}
.nav__badge.is-zero { background: var(--border-strong); color: var(--text-dim); }

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

/* accent palette dots */
.palette {
  display: flex; align-items: center; gap: .4rem;
  padding: .35rem .5rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.dot {
  --sw: #e8734a;
  position: relative; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%,
              color-mix(in srgb, var(--sw) 80%, #fff), var(--sw) 68%);
  transition: transform .3s var(--ease-out);
}
.dot::after {
  content: ''; position: absolute; inset: -4px;
  border: 1.5px solid var(--sw); border-radius: 50%;
  opacity: 0; transform: scale(.7);
  transition: opacity .3s var(--ease), transform .3s var(--ease-out);
}
.dot:hover { transform: scale(1.18); }
.dot[aria-checked="true"]::after { opacity: .95; transform: scale(1); }

.icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s var(--ease), transform .3s var(--ease-out);
}
.icon-btn:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.icon-btn svg {
  width: 17px; height: 17px; grid-area: 1 / 1;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}
.icon-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="light"] .icon-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-theme="light"] .icon-sun  { opacity: 1; transform: none; }

.icon-still { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-motion="off"] .icon-motion { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-motion="off"] .icon-still  { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════════
   Buttons
   ══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .78rem 1.5rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease),
              background .5s var(--ease), border-color .3s var(--ease), color .3s;
}
.btn--sm { padding: .5rem 1rem; font-size: .8rem; }

.btn--solid {
  color: #fff; background: var(--accent);
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px var(--accent-glow); }

.btn--ghost {
  color: var(--text); border-color: var(--border-strong); background: var(--surface);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════════════════════════
   Layout
   ══════════════════════════════════════════════════════════ */
main { position: relative; z-index: 10; }

.panel {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 8rem var(--pad) 6rem;
}
.panel--hero   { justify-content: flex-start; }
.panel--right  { justify-content: flex-end; }   /* copy right, pot left  */
.panel--left   { justify-content: flex-start; } /* copy left,  pot right */
.panel--center { flex-direction: column; justify-content: center; text-align: center; }
.panel--results {
  align-items: flex-start; justify-content: center;
  padding-top: 7rem; padding-bottom: 5rem;
}

.wrap { position: relative; width: 100%; }
.wrap--hero   { max-width: 44rem; }
.wrap--half   { max-width: 34rem; }
.wrap--center { max-width: 44rem; }
.wrap--wide   { max-width: 84rem; margin-inline: auto; }

/* ══════════════════════════════════════════════════════════
   Type
   ══════════════════════════════════════════════════════════ */
.eyebrow {
  display: flex; align-items: center; gap: .8rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .19em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.5rem; transition: color .6s var(--ease);
}
.panel--center .eyebrow { justify-content: center; }
.eyebrow__rule {
  width: 34px; height: 1px; flex: none;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.panel--center .eyebrow__rule { display: none; }

.display {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.9rem, 8vw, 5.6rem);
  line-height: .98; letter-spacing: -.022em;
}
.display__line { display: block; }
.display__line--accent {
  font-style: italic;
  background: linear-gradient(105deg, var(--accent) 12%, var(--gold) 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.08; letter-spacing: -.018em; margin-bottom: 1.1rem;
}

.lede {
  max-width: 40ch; margin-top: 1.6rem;
  font-size: clamp(1rem, 1.35vw, 1.1rem); color: var(--text-2);
}
.body { max-width: var(--measure); color: var(--text-2); }
.body--center { margin-inline: auto; }
.title + .body { margin-top: 1.4rem; }

/* ══════════════════════════════════════════════════════════
   Search
   ══════════════════════════════════════════════════════════ */
.search {
  display: flex; gap: .6rem; margin-top: 2.4rem;
  max-width: 38rem;
}

.search__field {
  position: relative; flex: 1; display: flex; align-items: center;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface-2);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.search__field:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 0 4px var(--accent-soft);
}

.search__icon {
  position: absolute; left: 1.15rem; width: 18px; height: 18px;
  fill: none; stroke: var(--text-dim); stroke-width: 1.9;
  stroke-linecap: round; pointer-events: none;
}

.search input {
  flex: 1; min-width: 0;
  padding: 1rem 3.2rem 1rem 3rem;
  background: none; border: 0; border-radius: 999px;
  font-size: 1rem;
}
.search input::placeholder { color: var(--text-dim); }
.search input:focus { outline: none; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search__mic {
  position: absolute; right: .5rem;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  transition: background .3s var(--ease), color .3s;
}
.search__mic svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.search__mic:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.search__mic:disabled { opacity: .35; cursor: not-allowed; }
.search__mic.is-live {
  background: var(--accent); color: #fff;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%      { box-shadow: 0 0 0 9px transparent; }
}

.search__go { flex: none; padding-inline: 1.7rem; }
.search.is-busy .search__go { opacity: .6; pointer-events: none; }

.chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-top: 1.2rem;
}
.chips__label {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim); margin-right: .2rem;
}
.chip {
  padding: .4rem .85rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: .82rem; color: var(--text-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: color .25s, border-color .25s, transform .25s var(--ease-out);
}
.chip:hover {
  color: var(--accent); border-color: var(--accent); transform: translateY(-2px);
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 2.2rem; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: .65rem;
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-cue__line {
  position: relative; width: 1px; height: 46px; overflow: hidden;
  background: var(--border);
}
.scroll-cue__line::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: cue 2.1s var(--ease) infinite;
}
@keyframes cue {
  0%       { transform: translateY(-100%); }
  60%,100% { transform: translateY(100%); }
}

/* ══════════════════════════════════════════════════════════
   Results
   ══════════════════════════════════════════════════════════ */
.statusbar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--border);
}
.statusbar__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15;
}
.statusbar__meta { margin-top: .3rem; font-size: .85rem; color: var(--text-dim); }

.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.6rem; }
.tab {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: .82rem; color: var(--text-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: color .25s, border-color .25s, background .25s;
}
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab[aria-selected="true"] {
  color: #fff; background: var(--accent); border-color: var(--accent);
}
.tab__n {
  min-width: 1.4em; padding: 0 .35em; border-radius: 999px;
  background: var(--border); color: var(--text-dim);
  font-size: .72rem; font-weight: 700; text-align: center;
}
.tab[aria-selected="true"] .tab__n {
  background: rgba(255,255,255,.24); color: #fff;
}

.grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
}

.card {
  display: flex; flex-direction: column; gap: .55rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease-out), border-color .3s var(--ease);
  animation: cardIn .5s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 28ms);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); }

/* a hairline in the source colour, so scanning by source is fast */
.card { border-top: 2px solid var(--src-web); }
.card[data-source="foodfusion"] { border-top-color: var(--src-foodfusion); }
.card[data-source="superchef"]  { border-top-color: var(--src-superchef); }
.card[data-source="tasty"]      { border-top-color: var(--src-tasty); }

.card__title {
  font-size: 1rem; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

.badge {
  display: inline-flex; align-items: center; gap: .38rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-2);
}
.badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--src-web); flex: none;
}
.badge--foodfusion::before { background: var(--src-foodfusion); }
.badge--superchef::before  { background: var(--src-superchef); }
.badge--tasty::before      { background: var(--src-tasty); }

.card__time { font-size: .74rem; color: var(--text-dim); }
.card__host {
  font-size: .74rem; color: var(--text-dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.card__actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; margin-top: auto; padding-top: .6rem;
}
.card__open {
  font-size: .84rem; font-weight: 600; color: var(--accent);
  transition: gap .25s var(--ease);
}
.card__open::after { content: ' →'; }
.card__open:hover { text-decoration: underline; text-underline-offset: 3px; }

.card__star {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1.05rem; line-height: 1; color: var(--text-dim);
  border: 1px solid var(--border);
  transition: color .25s, border-color .25s, transform .25s var(--ease-out);
}
.card__star:hover { color: var(--gold); border-color: var(--gold); transform: scale(1.1); }
.card__star.is-on { color: var(--gold); border-color: var(--gold); }

/* skeletons while the scrapers run */
.card--skeleton {
  min-height: 148px; border-top-color: var(--border);
  animation: none; position: relative; overflow: hidden;
}
.card--skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.empty {
  padding: 2.5rem 0; text-align: center; color: var(--text-2);
}

/* ══════════════════════════════════════════════════════════
   Sources / steps / figures
   ══════════════════════════════════════════════════════════ */
.sources { list-style: none; margin-top: 2.4rem; display: grid; gap: 1.3rem; }
.sources li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding-top: 1.3rem; border-top: 1px solid var(--border);
}
.sources__dot {
  width: 11px; height: 11px; border-radius: 50%; flex: none; margin-top: .45rem;
  background: var(--src-web);
}
.sources__dot.foodfusion { background: var(--src-foodfusion); box-shadow: 0 0 12px var(--src-foodfusion); }
.sources__dot.superchef  { background: var(--src-superchef);  box-shadow: 0 0 12px var(--src-superchef); }
.sources__dot.tasty      { background: var(--src-tasty);      box-shadow: 0 0 12px var(--src-tasty); }
.sources h3 { font-size: 1rem; font-weight: 600; margin-bottom: .2rem; }
.sources p  { font-size: .9rem; color: var(--text-2); }

.steps { list-style: none; margin-top: 2.4rem; display: grid; gap: 1.4rem; }
.steps li {
  display: flex; gap: 1.1rem;
  padding-top: 1.4rem; border-top: 1px solid var(--border);
}
.steps__no {
  font-family: var(--font-display); font-size: .9rem; flex: none;
  color: var(--accent); padding-top: .15rem; transition: color .6s var(--ease);
}
.steps h3 { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; }
.steps p  { font-size: .9rem; color: var(--text-2); }

.figures { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 2.6rem; }
.figure strong {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1;
  background: linear-gradient(105deg, var(--accent), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-variant-numeric: tabular-nums;
}
.figure span { display: block; margin-top: .35rem; font-size: .78rem; color: var(--text-dim); }

/* ══════════════════════════════════════════════════════════
   Saved shelf
   ══════════════════════════════════════════════════════════ */
#saved { flex-direction: column; gap: 2.5rem; }
#saved .wrap--wide { margin-top: 0; }

/* ══════════════════════════════════════════════════════════
   Footer
   ══════════════════════════════════════════════════════════ */
.foot {
  position: relative; z-index: 10;
  padding: 2.4rem var(--pad);
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.foot__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .7rem 1.6rem;
}
.foot__logo { font-weight: 600; font-size: .9rem; }
.foot__meta { font-size: .78rem; color: var(--text-dim); }

/* ══════════════════════════════════════════════════════════
   Scroll reveal
   ══════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition:
    opacity .95s var(--ease-out) var(--d, 0s),
    transform .95s var(--ease-out) var(--d, 0s),
    filter .95s var(--ease-out) var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
[data-reveal-delay="1"] { --d: .07s; }
[data-reveal-delay="2"] { --d: .14s; }
[data-reveal-delay="3"] { --d: .21s; }
[data-reveal-delay="4"] { --d: .28s; }
[data-reveal-delay="5"] { --d: .35s; }
[data-reveal-delay="6"] { --d: .42s; }

/* ══════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .panel { min-height: auto; padding-block: 6rem; }
  .panel--hero { min-height: 100svh; }
  .panel--right, .panel--left { justify-content: center; }
  .wrap--half { max-width: 40rem; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
}

@media (max-width: 760px) {
  .panel { padding-block: 5rem; }
  .panel--hero { padding-top: 6.5rem; }

  /* keep copy legible where the pot sits behind it */
  .wrap--hero, .wrap--half, .wrap--center {
    padding: 1.6rem 1.4rem;
    border: 1px solid var(--border); border-radius: 18px;
    background: color-mix(in srgb, var(--bg) 74%, transparent);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
  }

  .search { flex-direction: column; }
  .search__go { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .figures { gap: 1.6rem; }
  .scroll-cue { display: none; }
  .palette { display: none; }
}

/* ══════════════════════════════════════════════════════════
   Reduced motion

   These key off [data-motion="off"] rather than the media query directly,
   because the OS preference is only the default here — the header toggle
   overrides it in either direction. The boot script in index.html stamps the
   attribute before first paint, so there is no flash.

   The media query is kept solely as the no-JS fallback: without scripts the
   attribute is never stamped, and :not([data-motion]) is the only way that
   selector matches.
   ══════════════════════════════════════════════════════════ */
:root[data-motion="off"] { scroll-behavior: auto; }
:root[data-motion="off"] *,
:root[data-motion="off"] *::before,
:root[data-motion="off"] *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
}
:root[data-motion="off"] [data-reveal] { opacity: 1; transform: none; filter: none; }
:root[data-motion="off"] .card { animation: none; }
:root[data-motion="off"] .stage-grain { display: none; }

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion]) { scroll-behavior: auto; }
  :root:not([data-motion]) *,
  :root:not([data-motion]) *::before,
  :root:not([data-motion]) *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  :root:not([data-motion]) [data-reveal] { opacity: 1; transform: none; filter: none; }
  :root:not([data-motion]) .stage-grain { display: none; }
}
