/* ==========================================================================
   INFOTOM — indian food top of mind
   Handwritten stylesheet. No build step, no Node.

   Sections are colour blocks. Each .sec--* theme sets --bg/--fg/--fg-dim/
   --line/--accent, and every component inside reads those, so a section can
   be recoloured by swapping one class.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */

:root {
  /* Spice palette */
  --chilli:     #B5342A;
  --chilli-dk:  #8E2A22;
  --byadgi:     #9C3325;
  --turmeric:   #E9A81C;
  --turmeric-dk:#C4880E;
  --saffron:    #E0761C;
  --cardamom:   #4A6B41;
  --cardamom-dk:#3A5533;
  --coriander:  #6E7B45;
  --cumin:      #8A6A3E;
  --clove:      #6B3F2A;
  --pepper:     #2B2724;
  --soil:       #4A3222;
  --gold:       #C79A4F;

  /* Ink & paper */
  --ink:        #1C1A17;
  --paper:      #F7F3EC;
  --sand:       #EFE7D9;

  /* Type */
  --display: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section: clamp(4.5rem, 9vw, 9rem);
  --maxw: 1560px;

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

  /* Defaults, overridden per section */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-dim: rgba(28, 26, 23, .68);
  --line: rgba(28, 26, 23, .14);
  --accent: var(--chilli);
}

/* --- 2. Section themes -------------------------------------------------- */

.sec { background: var(--bg); color: var(--fg); position: relative; }

.sec--cream {
  --bg: #F7F3EC; --fg: #1C1A17;
  --fg-dim: rgba(28, 26, 23, .68); --line: rgba(28, 26, 23, .13);
}
.sec--sand {
  --bg: #EFE7D9; --fg: #1C1A17;
  --fg-dim: rgba(28, 26, 23, .68); --line: rgba(28, 26, 23, .15);
}
.sec--ink {
  --bg: #1C1A17; --fg: #F7F3EC;
  --fg-dim: rgba(247, 243, 236, .72); --line: rgba(247, 243, 236, .18);
}
.sec--chilli {
  --bg: #B5342A; --fg: #FFF6EE; --accent: #FFD9A0;
  --fg-dim: rgba(255, 246, 238, .84); --line: rgba(255, 246, 238, .26);
}
.sec--turmeric {
  --bg: #E9A81C; --fg: #241A05; --accent: #7A2B12;
  --fg-dim: rgba(36, 26, 5, .76); --line: rgba(36, 26, 5, .22);
}
.sec--cardamom {
  --bg: #4A6B41; --fg: #F4F7EF; --accent: #DCE8B8;
  --fg-dim: rgba(244, 247, 239, .82); --line: rgba(244, 247, 239, .24);
}
.sec--soil {
  --bg: #4A3222; --fg: #F7EFE4; --accent: #E9B872;
  --fg-dim: rgba(247, 239, 228, .80); --line: rgba(247, 239, 228, .22);
}
.sec--saffron {
  --bg: #E0761C; --fg: #2A1403; --accent: #58210A;
  --fg-dim: rgba(42, 20, 3, .76); --line: rgba(42, 20, 3, .22);
}
.sec--pepper {
  --bg: #2B2724; --fg: #F4F1EC;
  --fg-dim: rgba(244, 241, 236, .74); --line: rgba(244, 241, 236, .2);
}

/* Accent overrides, usable on a section or any block inside one. */
.a-chilli    { --accent: var(--chilli); }
.a-byadgi    { --accent: var(--byadgi); }
.a-turmeric  { --accent: var(--turmeric); }
.a-saffron   { --accent: var(--saffron); }
.a-cardamom  { --accent: var(--cardamom); }
.a-coriander { --accent: var(--coriander); }
.a-cumin     { --accent: var(--cumin); }
.a-clove     { --accent: var(--clove); }
.a-pepper    { --accent: var(--pepper); }
.a-soil      { --accent: var(--soil); }
.a-gold      { --accent: var(--gold); }
.a-cream     { --accent: #FFE9C7; }

/* On a narrow screen the same point count compresses into far less width,
   which turns the tear into spikes — so use fewer, shallower points there. */
@media (max-width: 700px) {
  .sec--torn { margin-top: -22px; clip-path: polygon(0.00% 7px, 6.25% 8px, 12.50% 6px, 18.75% 6px, 25.00% 5px, 31.25% 9px, 37.50% 5px, 43.75% 4px, 50.00% 5px, 56.25% 5px, 62.50% 5px, 68.75% 5px, 75.00% 4px, 81.25% 5px, 87.50% 5px, 93.75% 6px, 100.00% 4px, 100% 100%, 0% 100%); }
}

/* Torn-paper top edge, for a colour block meeting the block above it. */
.sec--torn { margin-top: -22px; clip-path: polygon(0.00% 7px, 2.17% 5px, 4.35% 11px, 6.52% 4px, 8.70% 10px, 10.87% 8px, 13.04% 4px, 15.22% 10px, 17.39% 3px, 19.57% 9px, 21.74% 4px, 23.91% 4px, 26.09% 9px, 28.26% 14px, 30.43% 5px, 32.61% 6px, 34.78% 11px, 36.96% 15px, 39.13% 11px, 41.30% 8px, 43.48% 16px, 45.65% 4px, 47.83% 14px, 50.00% 7px, 52.17% 5px, 54.35% 5px, 56.52% 7px, 58.70% 14px, 60.87% 5px, 63.04% 11px, 65.22% 11px, 67.39% 8px, 69.57% 10px, 71.74% 4px, 73.91% 4px, 76.09% 6px, 78.26% 12px, 80.43% 9px, 82.61% 7px, 84.78% 11px, 86.96% 9px, 89.13% 7px, 91.30% 13px, 93.48% 12px, 95.65% 6px, 97.83% 10px, 100.00% 10px, 100% 100%, 0% 100%); }

/* --- 3. Reset ----------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }

/* --- 4. Typography ------------------------------------------------------ */

.display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.display em { font-style: normal; color: var(--accent); }

.d-xl { font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: 1.02; }
.d-lg { font-size: clamp(1.9rem, 3.6vw, 3.3rem); }
.d-md { font-size: clamp(1.5rem, 2.4vw, 2.3rem); }
.d-sm { font-size: clamp(1.2rem, 1.7vw, 1.55rem); line-height: 1.18; }

.eyebrow {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .8em;
}
.eyebrow::before {
  content: "";
  width: 1.9rem; height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex: none;
}

.eyebrow.is-plain::before { display: none; }

.lede {
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  line-height: 1.62;
  color: var(--fg-dim);
  text-wrap: pretty;
}
.body-text { color: var(--fg-dim); text-wrap: pretty; }
.body-text + .body-text { margin-top: 1.05em; }

.numeral {
  font-family: var(--display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--accent);
}

/* --- 5. Layout ---------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(3rem, 5.5vw, 5rem); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.s-head {
  padding-top: 1.5rem;
  border-top: 2px solid var(--line);
}
.s-head__aside {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .6rem 1.5rem;
  margin-bottom: clamp(1.1rem, 2vw, 1.6rem);
}
.s-head__main { max-width: none; }
.s-head__main .lede { margin-top: 1.3rem; max-width: 56ch; }

/* --- 6. Buttons & links ------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: .95em 1.7em;
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--fg);
  transition: color .4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--fg);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bg); }
.btn__arrow { transition: transform .4s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(.25em); }

.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid::before { background: var(--accent); }
.btn--solid:hover { color: var(--fg); }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding-bottom: .4em;
  border-bottom: 2px solid var(--line);
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.tlink:hover { border-bottom-color: var(--accent); color: var(--accent); }
.tlink--sm { font-size: .7rem; padding-bottom: .25em; }

/* --- 7. Header ---------------------------------------------------------- */

.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  padding-block: clamp(.8rem, 1.4vw, 1.15rem);
  transition: background .45s var(--ease), box-shadow .45s var(--ease),
              transform .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
/* Out of the way while reading down the page, back the moment you scroll up. */
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.hdr__mark { position: relative; display: block; width: clamp(112px, 11vw, 150px); flex: none; }
.hdr__mark img { width: 100%; transition: opacity .4s var(--ease); }
.hdr__mark img + img { position: absolute; inset: 0; height: auto; }
.hdr__mark .is-ink { opacity: 0; }

.hdr__nav { display: flex; align-items: center; gap: clamp(.6rem, 1.3vw, 1.45rem); }
.hdr__link {
  font-family: var(--display);
  font-size: .77rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: #F7F3EC;
  position: relative;
  padding: .5em 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  transition: color .35s var(--ease);
}
.hdr__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .1em;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.hdr__link:hover::after, .hdr__link.is-active::after { transform: scaleX(1); }
.hdr__caret { width: 9px; height: 9px; transition: transform .35s var(--ease); }

.hdr.is-solid {
  background: rgba(247, 243, 236, .95);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom-color: rgba(28, 26, 23, .12);
}
.hdr.is-solid .hdr__mark .is-cream { opacity: 0; }
.hdr.is-solid .hdr__mark .is-ink { opacity: 1; }
.hdr.is-solid .hdr__link { color: var(--ink); }

/* Product dropdown */
.hdr__has-menu { position: relative; }
.hdr__menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translate(-50%, .6rem);
  min-width: 15rem;
  background: #FFFDF9;
  border: 1px solid rgba(28, 26, 23, .12);
  border-radius: 4px;
  box-shadow: 0 1.6rem 3rem -1rem rgba(28, 26, 23, .28);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), transform .35s var(--ease-out), visibility .3s;
  margin-top: .6rem;
}
.hdr__has-menu:hover .hdr__menu,
.hdr__has-menu:focus-within .hdr__menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.hdr__menu a {
  display: block;
  padding: .62rem .9rem;
  font-size: .84rem;
  color: var(--ink);
  border-radius: 3px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.hdr__menu a:hover { background: var(--chilli); color: #FFF6EE; }

.burger { display: none; width: 2.3rem; height: 2.3rem; position: relative; z-index: 2; }
.burger span {
  position: absolute; left: .3rem; right: .3rem; height: 2px; border-radius: 2px;
  background: #F7F3EC;
  transition: transform .4s var(--ease-out), background .4s var(--ease);
}
.burger span:nth-child(1) { top: .8rem; }
.burger span:nth-child(2) { bottom: .8rem; }
.hdr.is-solid .burger span { background: var(--ink); }
.is-menu .burger span { background: #F7F3EC; }
.is-menu .burger span:nth-child(1) { transform: translateY(.33rem) rotate(45deg); }
.is-menu .burger span:nth-child(2) { transform: translateY(-.33rem) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 890;
  background: var(--ink);
  padding: 6.5rem var(--gutter) 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-out);
  overflow-y: auto;
}
.is-menu .drawer { clip-path: inset(0 0 0 0); }
.drawer__list { display: flex; flex-direction: column; }
.drawer__list a {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 5.5vw, 1.9rem);
  color: #F7F3EC;
  padding-block: .5em;
  border-bottom: 1px solid rgba(247, 243, 236, .16);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  opacity: 0; transform: translateY(1rem);
  transition: opacity .5s var(--ease), transform .5s var(--ease-out);
}
.is-menu .drawer__list a { opacity: 1; transform: none; }
.drawer__list a span { font-family: var(--sans); font-size: .68rem; letter-spacing: .16em; color: var(--gold); }
.drawer__foot { color: rgba(247, 243, 236, .6); font-size: .82rem; padding-top: 1.6rem; }

@media (max-width: 1200px) { .hdr__nav { display: none; } .burger { display: block; } }

/* --- 8. Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink);
  color: #F7F3EC;
  /* --bg has to be declared too, not just --fg: a filled button paints
     var(--fg) and sets its text to var(--bg). Without it the hero inherited
     the root paper colour and the label went cream-on-cream on hover. */
  --bg: var(--ink);
  --fg: #F7F3EC; --fg-dim: rgba(247, 243, 236, .8); --line: rgba(247, 243, 236, .2);
  --accent: var(--turmeric);
  overflow: hidden;
  padding-top: 8rem;
  isolation: isolate;
}
/* The admin-set still sits under the film: what is on screen before the
   video has loaded, and what stays there if it cannot play. */
.hero__still,
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.03);
}
.hero__still { z-index: 0; }
.hero__video { z-index: 1; }

/* Keeps the headline readable whatever frame the video is on. Strength is set
   per site from the home page header, defaulting to the original .55. */
.hero__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(20,17,14,calc(var(--scrim, .55) * 1.05)) 0%,
      rgba(20,17,14,calc(var(--scrim, .55) * .25)) 18%,
      rgba(20,17,14,calc(var(--scrim, .55) * .11)) 40%,
      rgba(20,17,14,calc(var(--scrim, .55) * .62)) 60%,
      rgba(20,17,14,calc(var(--scrim, .55) * 1.20)) 82%,
      rgba(20,17,14,calc(var(--scrim, .55) * 1.53)) 100%),
    linear-gradient(90deg,
      rgba(20,17,14,.34) 0%,
      rgba(20,17,14,.10) 46%,
      rgba(20,17,14,0) 78%);
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .34;
  background:
    radial-gradient(56% 46% at 74% 22%, rgba(181, 52, 42, .58) 0%, transparent 68%),
    radial-gradient(44% 40% at 16% 74%, rgba(233, 168, 28, .28) 0%, transparent 70%),
    radial-gradient(50% 48% at 52% 108%, rgba(74, 107, 65, .34) 0%, transparent 70%);
  animation: drift 26s var(--ease) infinite alternate;
}
@keyframes drift {
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(-1.4%, 1.4%, 0); }
}
.hero h1,
.hero__eyebrow,
.hero__foot .lede {
  text-shadow: 0 1px 2px rgba(12, 10, 8, .38), 0 2px 26px rgba(12, 10, 8, .55);
}
.hero__inner { position: relative; z-index: 3; padding-bottom: clamp(1.6rem, 3vw, 3rem); }
.hero__eyebrow { margin-bottom: clamp(1.2rem, 2.4vw, 2rem); }
.hero h1 { max-width: 17ch; }
/* The mask that the words slide up through. Its box has to reach below the
   baseline or it clips the descender of a "g" or a "p" — so it is padded down
   and pulled back by the same amount, which extends the clip without moving
   the text or changing the line box. */
.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .3em;
  margin-bottom: -.3em;
}
.hero h1 .word > span {
  display: inline-block;
  /* Far enough to clear the taller mask before the reveal starts. */
  transform: translateY(150%);
  transition: transform 1s var(--ease-out);
}
.hero.is-in h1 .word > span { transform: translateY(0); }

.hero__foot {
  position: relative; z-index: 3;
  border-top: 1px solid var(--line);
  padding-block: clamp(1.2rem, 2.2vw, 2rem);
}
.hero__foot .lede { max-width: 52ch; }
.hero__actions {
  display: flex; flex-wrap: wrap; gap: .7rem;
  margin-top: clamp(1.2rem, 2vw, 1.8rem);
}

/* --- 9. Acronym --------------------------------------------------------- */

.acronym { text-align: left; }
.acronym__word {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 4rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  display: flex; flex-wrap: wrap; gap: 0 .4em;
}
.acronym__word span { color: color-mix(in srgb, var(--fg) 32%, transparent); }
.acronym__word b { font-weight: 600; color: var(--fg); position: relative; }
.acronym__word b::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.06em;
  height: 3px; border-radius: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease-out); transition-delay: var(--d, 0s);
}
.acronym.is-in .acronym__word b::after { transform: scaleX(1); }

/* --- 10. FFF ------------------------------------------------------------ */

.chain {
  display: flex; align-items: center;
  gap: clamp(.7rem, 2vw, 1.6rem); flex-wrap: wrap;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1rem, 1.9vw, 1.7rem);
}
.chain i { color: var(--accent); font-style: normal; }

/* --- Philosophy cards --------------------------------------------------- */

/* Three dark cards on the warm ground, taking it in turn on a loop. Every
   card is fully readable at all times; the loop only moves the emphasis. */
.fff {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.6vw, 1.5rem);
  perspective: 1200px;
}
@media (max-width: 960px) { .fff { grid-template-columns: 1fr; } }

.fff__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.7rem, 2.5vw, 2.4rem);
  border-radius: 14px;
  /* A warm paper card on the gold ground — the section's own colours, lifted,
     rather than a slab of black dropped on top of them. */
  background: linear-gradient(168deg, #FFFDF7 0%, #F5ECDB 100%);
  color: #241A05;
  --bg: #FFFDF7;
  --fg: #241A05; --fg-dim: rgba(36, 26, 5, .7); --line: rgba(36, 26, 5, .15);
  border: 1px solid rgba(36, 26, 5, .12);
  box-shadow: 0 .9rem 1.8rem -1.1rem rgba(84, 55, 6, .45);
  /* Lift is a variable so the reveal, the loop and hover share one transform. */
  --lift: 0rem;
  transform: translateY(var(--lift));
  transition: transform .8s var(--ease-out), border-color .6s var(--ease),
              box-shadow .8s var(--ease);
}
.fff__panel.is-live {
  --lift: -.6rem;
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  box-shadow: 0 2rem 3.2rem -1.3rem rgba(84, 55, 6, .58);
}

/* The card's own colour rises from the base as it takes its turn. */
.fff__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 84% at 50% 116%,
              var(--accent) 0%, transparent 66%);
  opacity: .07; transition: opacity .9s var(--ease);
}
.fff__panel.is-live .fff__glow { opacity: .2; }

/* Fills across the top for exactly as long as the card holds its turn. */
.fff__bar {
  position: absolute; inset: 0 0 auto; z-index: 2;
  height: 3px; background: rgba(36, 26, 5, .1);
  opacity: 0; transition: opacity .5s var(--ease);
}
.fff__panel.is-live .fff__bar { opacity: 1; }
.fff__bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.fff__panel.is-live .fff__bar i { animation: fill var(--dwell, 4200ms) linear forwards; }

.fff__no {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1;
  color: var(--accent); opacity: .32;
  transition: opacity .6s var(--ease);
}
.fff__panel.is-live .fff__no { opacity: 1; }

/* The mark sits on a disc that gains a slow ring while the card is live. */
.fff__plate {
  position: relative;
  display: grid; place-items: center;
  width: clamp(3.6rem, 5vw, 4.4rem); aspect-ratio: 1; border-radius: 50%;
  margin: clamp(.9rem, 1.6vw, 1.3rem) 0 clamp(1rem, 1.8vw, 1.4rem);
  background: radial-gradient(circle at 38% 30%,
              color-mix(in srgb, var(--accent) 18%, #FFFDF7) 0%,
              color-mix(in srgb, var(--accent) 8%, #FFFDF7) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent);
  transition: transform .7s var(--ease-out);
}
.fff__panel.is-live .fff__plate { transform: scale(1.06); }
.fff__plate::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0;
}
.fff__panel.is-live .fff__plate::after { animation: pulse 2.6s var(--ease) infinite; }
.fff__icon { width: 52%; height: auto; color: var(--accent); }

.fff__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.08;
  letter-spacing: -.018em;
}
.fff__lede {
  font-family: var(--display); font-weight: 600;
  color: var(--accent); margin: .5rem 0 .9rem;
  font-size: clamp(.98rem, 1.3vw, 1.1rem);
}
.fff__body { color: var(--fg-dim); font-size: .93rem; }

.fff__points {
  margin-top: 1.4rem; padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .55rem;
}
.fff__points li {
  font-size: .8rem; color: var(--fg-dim);
  padding-left: 1.3rem; position: relative;
}
.fff__points li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: .7rem; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(.45); transform-origin: 0 50%;
  transition: transform .5s var(--ease-out);
}
/* The dashes run out one after another as the card takes its turn. */
.fff__panel.is-live .fff__points li::before {
  transform: scaleX(1);
  transition-delay: calc(var(--i, 0) * .1s);
}

/* The chain above keeps step with the cards. */
.chain span {
  opacity: .45; position: relative;
  transition: opacity .6s var(--ease), color .6s var(--ease);
}
.chain span.is-live { opacity: 1; color: var(--accent); }
.chain i { transition: transform .6s var(--ease-out), opacity .6s var(--ease); opacity: .5; }

@media (min-width: 1024px) and (min-height: 700px) {
  .section--viewport {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(2.5rem, 5.5vh, 4.5rem);
  }
  .section--viewport .s-head { padding-top: 1.1rem; }
  .section--viewport .s-head__aside { margin-bottom: .9rem; }
  .section--viewport .s-head__main .lede { margin-top: .8rem; max-width: none; }
  .section--viewport .s-head .d-lg { font-size: clamp(1.7rem, 2.6vw, 2.5rem); }

  .section--viewport .map-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    margin-top: clamp(.8rem, 2vh, 1.6rem);
    align-items: center;
  }
  /* Size the map by the height available, not the column width, and keep it
     on the same left rail as the heading above it. */
  .section--viewport .map-stage { display: flex; justify-content: flex-start; }
  .section--viewport .map-stage svg {
    height: min(60vh, 620px);
    width: auto;
    max-width: 100%;
  }

  /* One scrolling row of regions rather than three wrapped ones. */
  .section--viewport .origin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: clamp(.9rem, 2vh, 1.4rem);
    padding-bottom: .35rem;
    scrollbar-width: none;
  }
  .section--viewport .origin-tabs::-webkit-scrollbar { display: none; }
  /* Fade the last chip rather than slicing it at the container edge. */
  .section--viewport .origin-tabs {
    -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 90%, transparent 100%);
  }
  .section--viewport .origin-tabs button { flex: none; }

  .section--viewport .origin-card__head { margin-bottom: .8rem; }
  .section--viewport .origin-card__spice { font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
  .section--viewport .origin-card__place { margin-top: .45rem; }
  /* Let the note use the full column so it wraps to fewer lines. */
  .section--viewport .origin-card__note { max-width: none; font-size: .93rem; }
  .section--viewport .origin-card__meta { margin-top: .9rem; padding-top: .8rem; gap: 1.6rem; }
  .section--viewport .origin-card__meta dd { font-size: 1rem; margin-top: .3rem; }
  .section--viewport .origin-progress { margin-top: clamp(.8rem, 1.8vh, 1.4rem); }
  .section--viewport .origin-play { margin-top: .6rem; }
  .section--viewport .mt-l { margin-top: clamp(.8rem, 1.8vh, 1.4rem); }
}

/* --- 11. Origin map ----------------------------------------------------- */

.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, .68fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
@media (max-width: 1000px) { .map-grid { grid-template-columns: 1fr; } }

.map-stage { position: relative; }
/* The layer JS pans and scales to frame the region on show. */
.map__zoom {
  transform-box: view-box;
  transform-origin: 0 0;
  transition: transform 1.5s cubic-bezier(.66, 0, .28, 1);
}
/* The out-of-focus country stays present, just quieter. */
.map__bleed { opacity: .62; }
@media (prefers-reduced-motion: reduce) {
  .map__zoom { transition: none; }
}
.map-stage { position: relative; }
.map-stage svg { width: 100%; height: auto; overflow: visible; }
.map__land { fill: color-mix(in srgb, var(--fg) 7%, transparent); }
.map__states { fill: none; stroke: color-mix(in srgb, var(--fg) 16%, transparent); stroke-width: 1; }
.map__outline {
  fill: none;
  stroke: color-mix(in srgb, var(--fg) 46%, transparent);
  stroke-width: 2; stroke-linejoin: round;
}

.pin { cursor: pointer; opacity: .5; transition: transform 1.5s cubic-bezier(.66, 0, .28, 1), opacity .8s var(--ease); }
.pin.is-active, .pin:hover, .pin:focus-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pin { transition: none; } }
.pin__halo { fill: var(--pin); opacity: .16; transform-box: fill-box; transform-origin: center; }
.pin__dot { fill: var(--pin); stroke: var(--bg); stroke-width: 3; transition: r .45s var(--ease-out); }
.pin__label {
  font-family: var(--display); font-weight: 600;
  font-size: 30px; letter-spacing: .01em;
  fill: var(--fg);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
/* Only the region being shown is named, so labels never collide. */
.pin.is-active .pin__label, .pin:hover .pin__label { opacity: 1; }
/* The picture floating at the pin, under its label. Hidden on every pin but
   the one on show, so the map never fills with boxes. */
.pin__shot { opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.pin.is-active .pin__shot, .pin:hover .pin__shot { opacity: 1; }
.pin__shot-bg { fill: var(--bg); fill-opacity: .85; }
.pin__shot-frame { fill: none; stroke: var(--pin); stroke-opacity: .5; stroke-width: 2; }

.pin__tick { opacity: 0; transition: opacity .4s var(--ease); }
.pin.is-active .pin__tick, .pin:hover .pin__tick { opacity: .5; }
.pin.is-active .pin__dot { r: 13; }
.pin.is-active .pin__halo { opacity: .34; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .3; }
  50%      { transform: scale(1.5); opacity: .06; }
}

/* --- 12. Origin showcase (auto-rotating) -------------------------------- */

.origin-show { position: relative; }
.origin-card { display: grid; }
.origin-card__panel {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transform: translateY(1.6rem);
  transition: opacity .6s var(--ease), transform .7s var(--ease-out), visibility .6s;
}
.origin-card__panel.is-on { opacity: 1; visibility: visible; transform: none; }

.origin-card__head { margin-bottom: clamp(1rem, 2vw, 1.5rem); }

.origin-card__spice { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3.2vw, 2.9rem); line-height: 1.06; }
.origin-card__place {
  font-family: var(--display); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-top: .7rem;
}
.origin-card__note { color: var(--fg-dim); max-width: 46ch; }
.origin-card__meta { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.origin-card__meta dt { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: color-mix(in srgb, var(--fg) 50%, transparent); }
.origin-card__meta dd { margin: .4rem 0 0; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }

.origin-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.8rem; }
.origin-tabs button {
  font-family: var(--display); font-weight: 600;
  font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .58em 1em;
  border: 2px solid var(--line); border-radius: 999px;
  color: var(--fg-dim);
  transition: all .35s var(--ease);
}
.origin-tabs button:hover { color: var(--fg); border-color: var(--fg); }
.origin-tabs button.is-active { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* Progress bar showing time to the next region */
.origin-progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 1.8rem; }
.origin-progress i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; }
.origin-progress.is-running i { animation: fill var(--dwell, 5s) linear forwards; }
@keyframes fill { from { width: 0; } to { width: 100%; } }

.origin-play {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-dim); margin-top: 1rem;
  transition: color .3s var(--ease);
}
.origin-play:hover { color: var(--fg); }

/* --- 13. Spice grid ----------------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.2rem; }
.filters button {
  font-family: var(--display); font-weight: 600;
  font-size: .74rem; letter-spacing: .05em; text-transform: uppercase;
  padding: .68em 1.2em;
  border: 2px solid var(--line); border-radius: 999px;
  color: var(--fg-dim);
  transition: all .35s var(--ease);
}
.filters button:hover { border-color: var(--fg); color: var(--fg); }
.filters button.is-active { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.spices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.4rem;
  margin-top: clamp(1.8rem, 3.5vw, 3rem);
}
.spice {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-height: 20rem;
  display: flex; flex-direction: column;
  transition: border-color .45s var(--ease), transform .45s var(--ease-out);
}
.spice.is-hidden { display: none; }
.spice:hover,
.spice:focus-within { border-color: var(--accent); transform: translateY(-4px); }
.spice::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(110% 80% at 50% 118%, var(--accent) 0%, transparent 60%);
  opacity: .08; transition: opacity .5s var(--ease);
}
.spice:hover::before,
.spice:focus-within::before { opacity: .2; }

/* The whole card is the link, so the hit area matches what it looks like. */
.spice__link {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; flex: 1;
  padding: clamp(1.5rem, 2.2vw, 2.1rem);
  color: inherit;
}
.spice__link:focus-visible { outline-offset: -4px; }

.spice__art {
  width: 5.6rem; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 38% 30%, #FFFDF8 0%, color-mix(in srgb, var(--accent) 16%, #FFF8EC) 100%);
  box-shadow: 0 .9rem 1.6rem -.7rem rgba(0, 0, 0, .3),
              inset 0 0 0 2px color-mix(in srgb, var(--accent) 32%, transparent);
}
.spice__art svg { width: 74%; height: auto; }

/* Photographic cards: a square frame the whole photograph fits inside, with a
   second shot crossfading over the first on hover or keyboard focus.
   object-fit is contain, not cover, so a pack shot is never cropped — the
   frame letterboxes around it instead. */
.spice__media {
  position: relative; display: block; overflow: hidden;
  margin: calc(clamp(1.5rem, 2.2vw, 2.1rem) * -1);
  margin-bottom: 0;
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
}
.spice__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity .55s var(--ease);
}
.spice__img--alt { opacity: 0; }
.spice:hover .spice__img--alt,
.spice:focus-within .spice__img--alt { opacity: 1; }

.spice__cat {
  font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.spice:not(.spice--photo) .spice__cat {
  position: absolute; top: clamp(1.5rem, 2.2vw, 2.1rem); right: clamp(1.5rem, 2.2vw, 2.1rem);
}
.spice--photo .spice__cat { display: block; margin-top: clamp(1.2rem, 2vw, 1.6rem); }
.spice--photo .spice__name { padding-top: .35rem; }

.spice__name { font-family: var(--display); font-weight: 600; font-size: 1.32rem; line-height: 1.14; padding-top: 1.5rem; }
.spice__note { color: var(--accent); margin-top: .45rem; font-size: .92rem; font-weight: 500; }
.spice__origin {
  margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line);
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-dim);
}
.spice__detail { font-size: .86rem; color: var(--fg-dim); margin-top: .8rem; }

/* --- 14. Journey rail --------------------------------------------------- */

.journey { position: relative; }
.journey::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0;
  width: clamp(2rem, 5vw, 5rem);
  background: linear-gradient(90deg, transparent, var(--bg));
  pointer-events: none;
}
.journey__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(14.5rem, 1fr);
  overflow-x: auto; scroll-snap-type: x proximity;
  margin-top: clamp(2rem, 4vw, 3.2rem);
  border-top: 2px solid var(--line);
  scrollbar-width: thin;
}
.journey__rail::-webkit-scrollbar { height: 3px; }
.journey__rail::-webkit-scrollbar-thumb { background: var(--line); }
.step {
  scroll-snap-align: start;
  padding: 2rem clamp(1rem, 1.8vw, 1.8rem) 2.4rem;
  border-right: 1px solid var(--line);
  position: relative;
}
.step::before {
  content: ""; position: absolute; top: -6px; left: 0;
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.step__no { font-family: var(--display); font-weight: 700; font-size: 1.8rem; color: var(--accent); line-height: 1; }
.step__title { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin-top: .7rem; }
.step__text { font-size: .87rem; color: var(--fg-dim); margin-top: .5rem; }

/* --- 15. Channels & cards ---------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: clamp(2rem, 4vw, 3.2rem); }
.card {
  padding: clamp(1.4rem, 2.2vw, 2.1rem);
  border: 2px solid var(--line); border-radius: 8px;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease-out);
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card__no { font-family: var(--display); font-weight: 700; font-size: .82rem; color: var(--accent); }
.card__icon { width: 2.6rem; height: 2.6rem; color: var(--accent); margin: 1.2rem 0 .4rem; }
.card__title { font-family: var(--display); font-weight: 600; font-size: 1.22rem; margin-top: 1.6rem; line-height: 1.16; }
.card__text { font-size: .87rem; color: var(--fg-dim); margin-top: .5rem; }
@media (max-width: 1150px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .cards { grid-template-columns: 1fr; } }

/* --- 16. Capability band ------------------------------------------------ */

.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.caps > div { padding: clamp(1.3rem, 2.4vw, 2rem); border: 2px solid var(--line); border-radius: 8px; }
.caps__value { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1; }
.caps__label { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-dim); margin-top: .8rem; }
@media (max-width: 800px) { .caps { grid-template-columns: repeat(2, 1fr); } }

/* --- 17. Pull quote ----------------------------------------------------- */

.quote { text-align: left; }
.quote blockquote {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 2.9rem);
  line-height: 1.2; letter-spacing: -.02em;
  max-width: 20ch; text-wrap: balance;
}
.quote blockquote em { font-style: normal; color: var(--accent); }
.quote figcaption {
  margin-top: 2rem; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-dim);
}

/* --- 18. Split ---------------------------------------------------------- */

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4.5vw, 5rem); align-items: center;
}
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.split--reverse > *:first-child { order: 2; }
@media (max-width: 960px) { .split--reverse > *:first-child { order: 0; } }

.plate {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, #FFFDF8 0%, color-mix(in srgb, var(--accent) 20%, #FFF6E8) 100%);
  box-shadow: 0 3rem 5rem -2rem rgba(0, 0, 0, .4),
              inset 0 0 0 3px color-mix(in srgb, var(--accent) 34%, transparent);
  display: grid; place-items: center;
}
.plate svg { width: 56%; height: auto; }
.plate__ring { position: absolute; inset: -5%; border: 2px solid var(--line); border-radius: 50%; }

/* --- 19. Stack ---------------------------------------------------------- */

.stack { border-top: 2px solid var(--line); margin-top: clamp(1.8rem, 3.5vw, 3rem); }
.stack__row {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1.05fr) minmax(0, 1.5fr);
  gap: clamp(.9rem, 2.5vw, 2.5rem);
  padding-block: clamp(1.3rem, 2.2vw, 2rem);
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding-left .5s var(--ease-out);
}
.stack__row:hover { padding-left: 1rem; }
.stack__no { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: .95rem; padding-top: .35em; }
.stack__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.16; }
.stack__text { color: var(--fg-dim); font-size: .93rem; }
@media (max-width: 820px) {
  .stack__row { grid-template-columns: 3rem 1fr; }
  .stack__text { grid-column: 2; }
}

/* An uploaded photograph standing in for a section's drawn plate. Square and
   contained, so nothing is cropped whatever shape the source is. */
.section-photo {
  margin: 0; border-radius: 12px; overflow: hidden;
  border: 2px solid var(--line);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  aspect-ratio: 1;
}
.section-photo img { width: 100%; height: 100%; object-fit: contain; }

/* A region photograph, where one has been uploaded, in place of the plate. */
.origin-photo {
  margin: 0; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--line);
  aspect-ratio: 4 / 3;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
}
.origin-photo img { width: 100%; height: 100%; object-fit: cover; }

/* --- 19b. Product detail ------------------------------------------------ */

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4.5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 960px) { .pdp { grid-template-columns: 1fr; } }

.pdp__origin {
  margin-top: 1.4rem; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-dim);
}
.pdp__origin span {
  color: var(--accent); font-weight: 600; margin-right: .6rem;
  padding-right: .6rem; border-right: 1px solid var(--line);
}

.pdp__stage {
  margin: 0; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--line);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  aspect-ratio: 1;
}
.pdp__stage img { width: 100%; height: 100%; object-fit: contain; }

.pdp__thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.pdp__thumb {
  width: 4.6rem; aspect-ratio: 1; padding: 0; border-radius: 7px; overflow: hidden;
  border: 2px solid var(--line); background: none; cursor: pointer;
  transition: border-color .3s var(--ease), transform .3s var(--ease-out);
}
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp__thumb:hover { transform: translateY(-2px); }
.pdp__thumb.is-on { border-color: var(--accent); }

.pdp__spec {
  margin-top: clamp(1.4rem, 2.6vw, 2.2rem);
  border-top: 2px solid var(--line);
}
.pdp__spec > div {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem; padding-block: .75rem; border-bottom: 1px solid var(--line);
}
.pdp__spec dt {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-dim); font-weight: 600; padding-top: .15em;
}
.pdp__spec dd { margin: 0; font-weight: 500; }
@media (max-width: 560px) {
  .pdp__spec > div { grid-template-columns: 1fr; gap: .2rem; }
}

/* --- 20. Page masthead -------------------------------------------------- */

.masthead {
  position: relative;
  padding-top: clamp(8rem, 14vw, 12rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}
.masthead h1 { max-width: 18ch; margin-top: clamp(1rem, 2.4vw, 1.8rem); }

/* An admin-uploaded background turns the masthead into a photographic block.
   The scrim strength is set per page so a light photo can be pushed further
   down without darkening every other page. */
.masthead--image { position: relative; isolation: isolate; background: var(--ink); }
.masthead__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.masthead__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(20, 17, 14, calc(var(--scrim, .55) * 1.25)) 0%,
      rgba(20, 17, 14, calc(var(--scrim, .55) * .68)) 42%,
      rgba(20, 17, 14, calc(var(--scrim, .55) * 1.1)) 100%),
    linear-gradient(90deg, rgba(20, 17, 14, .42) 0%, rgba(20, 17, 14, 0) 72%);
}
.masthead__inner { position: relative; z-index: 2; }
.masthead--image .crumb,
.masthead--image h1,
.masthead--image .lede { text-shadow: 0 1px 2px rgba(12, 10, 8, .4), 0 2px 22px rgba(12, 10, 8, .5); }
.masthead .lede { margin-top: 1.5rem; max-width: 56ch; }
.crumb { font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-dim); }
.crumb a:hover { color: var(--fg); }

/* --- 21. Forms ---------------------------------------------------------- */

.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.3rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: inherit;
  background: transparent; border: 0; border-bottom: 2px solid var(--line);
  padding: .65em 0; border-radius: 0; appearance: none;
  transition: border-color .35s var(--ease);
}
.field select option { color: #1C1A17; background: #fff; }
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field .err { font-size: .74rem; color: var(--chilli); }
.sec--chilli .field .err, .sec--ink .field .err, .sec--soil .field .err { color: #FFC9B4; }
@media (max-width: 720px) { .form { grid-template-columns: 1fr; } }

.notice {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.1rem 1.3rem;
  border: 2px solid var(--cardamom); border-radius: 6px;
  background: color-mix(in srgb, var(--cardamom) 12%, transparent);
  margin-bottom: 2rem; font-size: .93rem;
}
.notice b { display: block; margin-bottom: .15rem; }

/* --- 22. Footer --------------------------------------------------------- */

.ftr { background: var(--ink); color: #F7F3EC; --bg: var(--ink); --fg: #F7F3EC; --fg-dim: rgba(247,243,236,.68); --line: rgba(247,243,236,.18); padding-top: clamp(3.5rem, 7vw, 6rem); }
.ftr__top {
  display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, .72fr));
  gap: clamp(1.8rem, 3.5vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 1000px) { .ftr__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .ftr__top { grid-template-columns: 1fr; } }
.ftr__mark { width: min(220px, 68%); margin-bottom: 1.5rem; }
.ftr__promise { font-family: var(--display); font-weight: 500; font-size: 1.05rem; max-width: 32ch; line-height: 1.5; }
.ftr__h { font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.ftr__list { display: flex; flex-direction: column; gap: .6rem; }
.ftr__list a, .ftr__list li { font-size: .89rem; color: var(--fg-dim); transition: color .35s var(--ease); }
.ftr__list a:hover { color: #F7F3EC; }
.ftr__bar {
  border-top: 1px solid var(--line); padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between;
  font-size: .74rem; color: rgba(247, 243, 236, .5);
}

/* --- 23. Reveal --------------------------------------------------------- */

[data-reveal] {
  opacity: 0; transform: translateY(1.6rem);
  transition: opacity .8s var(--ease), transform .9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .word > span { transform: none; }
}

/* --- 24. Utility -------------------------------------------------------- */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; top: -100px; left: var(--gutter); z-index: 1000; background: #F7F3EC; color: #1C1A17; padding: .8rem 1.2rem; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.mt-l { margin-top: clamp(1.8rem, 3.5vw, 3rem); }
.mt-m { margin-top: clamp(1.1rem, 2vw, 1.8rem); }
.center { text-align: center; }
.is-locked { overflow: hidden; }

/* --- 25. Empty state ---------------------------------------------------- */

.empty {
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin-top: clamp(1.8rem, 3.5vw, 3rem);
}
.empty__icon { width: 3rem; height: 3rem; color: var(--accent); margin: 0 auto 1.2rem; }
.empty__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.6rem); }
.empty__text { color: var(--fg-dim); margin-top: .7rem; max-width: 46ch; margin-inline: auto; font-size: .95rem; }

.cert { padding: clamp(1.4rem, 2.2vw, 2rem); border: 2px solid var(--line); border-radius: 8px; }
.cert__name { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.cert__issuer { color: var(--accent); font-size: .85rem; font-weight: 500; margin-top: .3rem; }
.cert__meta { color: var(--fg-dim); font-size: .85rem; margin-top: .8rem; }
