/* Layout concept: field rows — content runs in furrow-like bands; one pine hero band carries the farm-to-plate scene; data in mono. */
:root {
  --pine: #0F4C3A;
  --emerald: #2E9E6B;
  --amber: #E6A23C;
  --ink: #17211E;
  --bg: #F4F7F2;
  --surface: #FFFFFF;
  --fg: #17211E;
  --muted: #4E5F57;
  --line: #D5DFD7;
  --chip: #E7EFE8;
  --accent: #0F4C3A;
  --accent-2: #2E9E6B;
  --warn: #B4471F;
  --warn-bg: #FBEBE3;
  --hero-bg: #0F4C3A;
  --hero-fg: #F4F7F2;
  --hero-muted: #B9D3C6;
  --font-display: "Bricolage Grotesque", "Poppins", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Noto Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-indic: "Noto Sans Telugu", "Noto Sans Devanagari", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: 2.3rem;
  --step-4: clamp(2.4rem, 6vw, 4.2rem);
  --radius: 10px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1713; --surface: #12211B; --fg: #E6EEE8; --muted: #9DB2A7; --line: #24382F;
    --chip: #1A2E25; --accent: #7FD3A8; --accent-2: #4CC28A; --warn: #F0956B; --warn-bg: #2E1A12;
    --hero-bg: #0A3528; --hero-fg: #EEF5F0; --hero-muted: #A7C7B8; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1713; --surface: #12211B; --fg: #E6EEE8; --muted: #9DB2A7; --line: #24382F;
  --chip: #1A2E25; --accent: #7FD3A8; --accent-2: #4CC28A; --warn: #F0956B; --warn-bg: #2E1A12;
  --hero-bg: #0A3528; --hero-fg: #EEF5F0; --hero-muted: #A7C7B8; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--hero-bg);
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); }
.measure { max-width: 65ch; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--hero-bg); color: var(--hero-fg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--hero-fg); }
.wordmark { font-family: "Poppins", var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.wordmark .i1, .wordmark .tld { color: var(--amber); }
.brand small { font-family: var(--font-mono); font-size: 0.72rem; color: var(--hero-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--hero-fg); text-decoration: none; font-size: 0.95rem; padding: 6px 10px; border-radius: 999px;
}
.nav a:hover { background: rgba(255,255,255,0.1); }
.nav a[aria-current="page"] { background: var(--amber); color: #17211E; font-weight: 700; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; background: transparent; color: var(--hero-fg); border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 0.9rem; cursor: pointer;
  }
  .nav { display: none; width: 100%; flex-direction: column; padding-bottom: 8px; }
  .nav.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero { background: var(--hero-bg); color: var(--hero-fg); overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; padding-block: 56px 48px; }
.hero h1 { color: var(--hero-fg); }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { color: var(--hero-muted); margin-top: 18px; }
.hero .eyebrow { color: var(--amber); margin-bottom: 14px; display: block; }
.hero-copy { min-width: 0; }
.indic { margin-top: 18px; display: grid; gap: 4px; font-family: var(--font-indic); color: var(--hero-fg); font-size: 1.02rem; border-left: 3px solid var(--amber); padding-left: 12px; }
.indic span { opacity: 0.9; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 12px 18px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: #17211E; }
.btn-ghost { border-color: rgba(255,255,255,0.45); color: var(--hero-fg); background: transparent; }
.btn-solid { background: var(--accent); color: var(--bg); }
.scene { min-width: 0; }
.scene svg { width: 100%; height: auto; display: block; max-width: 100%; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 36px 28px; }
}

/* page hero (inner pages) */
.page-hero { background: var(--hero-bg); color: var(--hero-fg); }
.page-hero .wrap { padding-block: 40px 36px; display: grid; gap: 14px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero .lede { color: var(--hero-muted); }
.page-hero .eyebrow { color: var(--amber); }

/* furrow divider (motion) */
.furrows { height: 18px; background:
  repeating-linear-gradient(90deg, var(--line) 0 18px, transparent 18px 30px);
  mask: linear-gradient(transparent 7px, #000 7px 11px, transparent 11px);
  -webkit-mask: linear-gradient(transparent 7px, #000 7px 11px, transparent 11px);
  animation: furrow 6s linear infinite;
}
@keyframes furrow { to { background-position: 60px 0; } }

/* ---------- Sections ---------- */
section.band { padding-block: 56px; }
section.band.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 70ch; }
.section-head p { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.stat { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 8px; align-content: start; }
.stat .num { font-family: var(--font-mono); font-size: var(--step-3); font-weight: 600; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: 0.45em; color: var(--muted); font-weight: 500; }
.stat p { color: var(--fg); }
.stat cite { font-style: normal; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

.plate-test { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.plate-test ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: q; }
.plate-test li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; font-size: var(--step-1); line-height: 1.35; }
.plate-test li::before {
  counter-increment: q; content: counter(q); font-family: var(--font-mono); font-size: 1rem; font-weight: 600;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #17211E;
}
.plate-test li span { color: var(--muted); font-size: var(--step-0); display: block; margin-top: 4px; }
@media (max-width: 760px) { .plate-test { grid-template-columns: 1fr; } .plate-test svg { max-width: 240px; } }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.card-link {
  display: grid; gap: 8px; padding: 22px; border-radius: var(--radius); text-decoration: none; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.card-link:hover { border-color: var(--accent-2); transform: translateY(-3px); }
.card-link .go { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent-2); }
.card-link p { color: var(--muted); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; background: var(--chip); }
tr:last-child td { border-bottom: 0; }
td.when { font-family: var(--font-mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: var(--step--1); margin-top: 12px; max-width: 75ch; }

/* comparison chart */
.compare { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 90px; gap: 12px; align-items: center; }
.bar-row .label { font-weight: 700; }
.bar-track { height: 22px; background: var(--chip); border-radius: 6px; position: relative; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: var(--accent-2); transform-origin: left; animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both; }
.bar-fill.strict { background: var(--amber); }
.bar-row .val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
@keyframes grow { from { transform: scaleX(0.15); } to { transform: scaleX(1); } }

.hotspots { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.hotspot { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.hotspot h3 { font-size: 1.15rem; }
.hotspot .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--font-mono); font-size: 0.75rem; padding: 3px 8px; border-radius: 999px; background: var(--chip); color: var(--fg); }
.tag.risk { background: var(--warn-bg); color: var(--warn); }
.hotspot p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .hotspots { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .hotspots { grid-template-columns: 1fr; } }

/* timeline (field to plate) */
.journey { position: relative; display: grid; gap: 22px; padding-left: 64px; }
.journey-line { position: absolute; left: 22px; top: 8px; bottom: 8px; width: 4px; }
.journey-line svg { width: 4px; height: 100%; display: block; overflow: visible; }
.journey-line path { stroke: var(--amber); stroke-width: 4; fill: none; stroke-dasharray: 1; stroke-dashoffset: 0; }
.stage { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 12px; }
.stage-dot {
  position: absolute; left: -58px; top: 18px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--hero-bg); color: var(--amber); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; border: 3px solid var(--bg);
}
.stage-meta { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); }
.stage .cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.stage ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.stage .never { background: var(--warn-bg); border-radius: 8px; padding: 12px 14px; }
.stage .never strong { color: var(--warn); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.stage .never ul { color: var(--fg); }
@media (max-width: 760px) { .stage .cols { grid-template-columns: 1fr; } .journey { padding-left: 52px; } .stage-dot { left: -50px; width: 34px; height: 34px; font-size: .85rem; } .journey-line { left: 15px; } }

/* waiting period tool */
.tool { display: grid; gap: 22px; }
.crop-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.crop-picker button {
  font: inherit; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--fg); cursor: pointer; transition: background .2s, border-color .2s;
}
.crop-picker button:hover { border-color: var(--accent-2); }
.crop-picker button[aria-pressed="true"] { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.market-toggle { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; }
.market-toggle input { width: 20px; height: 20px; accent-color: var(--emerald); }
.phi-list { display: grid; gap: 10px; }
.phi-row { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.phi-row > summary { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) 74px; gap: 14px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; }
.phi-row > summary::-webkit-details-marker { display: none; }
.phi-row[open] > summary { border-bottom: 1px solid var(--line); }
.phi-row .name { font-weight: 700; min-width: 0; }
.phi-row .name small { display: block; font-family: var(--font-mono); font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.phi-row .name::after { content: "Details"; display: inline-block; margin-top: 4px; font-family: var(--font-mono); font-weight: 400; font-size: 0.7rem; color: var(--accent-2); }
.phi-row[open] .name::after { content: "Hide details"; }
.phi-row .days { font-family: var(--font-mono); font-weight: 600; font-size: 1.15rem; text-align: right; font-variant-numeric: tabular-nums; }
.phi-row .days small { font-size: 0.7rem; color: var(--muted); font-weight: 400; display: block; }
.phi-row.flag { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.phi-row.flag .bar-fill { background: var(--warn); }
.flag-badge { display: block; width: fit-content; margin-top: 4px; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); }
.flag-badge.soft { background: var(--chip); color: var(--muted); }
.phi-detail { margin: 0; padding: 12px 14px 14px; display: grid; gap: 8px; font-size: 0.95rem; }
.phi-detail div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.phi-detail dt { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 3px; }
.phi-detail dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.empty { padding: 18px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }
.scale-axis { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) 74px; gap: 14px; padding: 0 14px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.scale-axis .ticks { display: flex; justify-content: space-between; }
.tool-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: 0.95rem; }
.field input, .field select { font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); min-width: 0; }
.field input { width: min(320px, 100%); }
.notice { padding: 14px 16px; border-radius: var(--radius); border: 1.5px solid var(--amber); background: color-mix(in srgb, var(--amber) 12%, var(--surface)); }
.notice strong { display: block; font-family: var(--font-display); margin-bottom: 4px; }
.label-warning { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: var(--radius); background: var(--hero-bg); color: var(--hero-fg); }
.label-warning .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--amber); color: #17211E; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; }
.label-warning p { color: var(--hero-muted); }
.label-warning strong { color: var(--hero-fg); }
.dataset-meta { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
@media (max-width: 640px) {
  .phi-row > summary, .scale-axis { grid-template-columns: minmax(0, 1fr) 64px; }
  .phi-row > summary .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .scale-axis { display: none; }
  .phi-detail div { grid-template-columns: 1fr; gap: 2px; }
}
.roles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.role { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent-2); }
.role.fpo { border-top-color: var(--amber); }
.role.proc { border-top-color: var(--pine); }
.role p { color: var(--muted); }
.role ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: .95rem; }
.role .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 860px) { .roles { grid-template-columns: 1fr; } }
.review-badge { display: inline-flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: .78rem; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.1); color: var(--hero-fg); width: fit-content; }
.review-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.rules-box { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.rules-box div { padding: 18px; border-radius: var(--radius); background: var(--chip); }
.rules-box strong { display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 1.1rem; }
@media (max-width: 820px) { .rules-box { grid-template-columns: 1fr; } }

/* ten rules */
.ten { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; counter-reset: r; }
.ten li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.ten li::before { counter-increment: r; content: counter(r, decimal-leading-zero); font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; color: var(--amber); line-height: 1; }
.ten h3 { font-size: 1.15rem; margin-bottom: 4px; }
.ten p { color: var(--muted); }
@media (max-width: 760px) { .ten { grid-template-columns: 1fr; } }
.copy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.copy-status { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent-2); }
.list-plain { display: grid; gap: 8px; padding-left: 1.1em; margin: 0; }

.sources { display: grid; gap: 28px; }
.sources ul { display: grid; gap: 8px; padding-left: 1.1em; margin: 10px 0 0; }

/* footer */
.site-footer { background: var(--ink); color: #C9D6CF; margin-top: 0; }
.site-footer .wrap { padding-block: 36px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.site-footer a { color: #F4F7F2; }
.site-footer p { font-size: var(--step--1); max-width: 60ch; }
.site-footer .wordmark { color: #F4F7F2; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* hero scene animation */
.sun { animation: sun 12s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sun { 0%,100% { transform: translateY(8px); } 50% { transform: translateY(-6px); } }
.sprout { transform-box: fill-box; transform-origin: bottom center; animation: sprout 10s ease-in-out infinite; }
.sprout.s2 { animation-delay: .3s; } .sprout.s3 { animation-delay: .6s; } .sprout.s4 { animation-delay: .9s; } .sprout.s5 { animation-delay: 1.2s; }
@keyframes sprout { 0% { transform: scaleY(0.35); } 25%, 92% { transform: scaleY(1); } 100% { transform: scaleY(0.35); } }
.route { stroke-dasharray: 3 9; animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -24; } }
.crate { offset-path: path("M118 262 C 170 240, 200 214, 252 214 S 360 252, 410 246 S 520 210, 548 168"); offset-rotate: 0deg; animation: travel 10s cubic-bezier(.45,.05,.55,.95) infinite; }
@keyframes travel { 0%, 22% { offset-distance: 0%; opacity: 1; } 88% { offset-distance: 100%; opacity: 1; } 96% { offset-distance: 100%; opacity: 0; } 100% { offset-distance: 0%; opacity: 0; } }
.stop-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 10s ease-out infinite; }
.stop-pulse.p2 { animation-delay: 3.6s; } .stop-pulse.p3 { animation-delay: 5.9s; } .stop-pulse.p4 { animation-delay: 8.2s; }
.stop-pulse.p1 { animation-delay: 1.2s; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 8% { transform: scale(1.9); opacity: 0; } 100% { transform: scale(1.9); opacity: 0; } }
.steam { animation: steam 3.2s ease-in-out infinite; }
.steam.st2 { animation-delay: 1s; } .steam.st3 { animation-delay: 2s; }
@keyframes steam { 0% { transform: translateY(4px); opacity: 0; } 40% { opacity: .9; } 100% { transform: translateY(-10px); opacity: 0; } }
.plate-glow { animation: glow 10s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes glow { 0%, 80% { opacity: .0; } 88% { opacity: .55; } 100% { opacity: 0; } }

.reveal { animation: rise .7s ease both; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .crate { offset-distance: 60%; }
}

/* scene colours */
.sc-amber { fill: var(--amber); }
.sc-halo { fill: var(--amber); opacity: .12; }
.sc-hill { fill: rgba(255,255,255,0.06); }
.sc-hill2 { fill: rgba(255,255,255,0.04); }
.sc-furrow path { fill: none; stroke: rgba(255,255,255,0.22); stroke-width: 2; stroke-linecap: round; }
.sc-crop path { fill: #6FD19C; stroke: #6FD19C; stroke-width: 2.5; stroke-linecap: round; }
.sc-route { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; }
.sc-stop { fill: var(--amber); }
.sc-stopbg { fill: #0B3B2D; stroke: var(--amber); stroke-width: 2; }
.sc-pulse { fill: none; stroke: var(--amber); stroke-width: 2; }
.sc-icon { fill: #F4F7F2; }
.sc-iconcut { fill: #0B3B2D; }
.sc-plate { fill: #F4F7F2; }
.sc-plate-in { fill: #E3EAE4; }
.sc-rice { fill: #FFFFFF; stroke: #CBD6CE; stroke-width: 1; }
.sc-chilli { fill: #C8462B; }
.sc-leaf { fill: #2E9E6B; }
.sc-steam { fill: none; stroke: rgba(255,255,255,0.7); stroke-width: 2; stroke-linecap: round; }
.sc-crate { fill: #C98A2B; stroke: #8A5A15; stroke-width: 1.5; }
.sc-crate-line { fill: none; stroke: #8A5A15; stroke-width: 1.2; }
.sc-label text { fill: var(--hero-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; }

/* plate test */
.pt-plate { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.pt-inner { fill: var(--chip); }
.pt-rice { fill: color-mix(in srgb, var(--surface) 70%, var(--amber)); }
.pt-dal { fill: var(--amber); opacity: .85; }
.pt-veg { fill: var(--accent-2); opacity: .85; }
.pt-center { fill: var(--hero-bg); }
.pt-text { fill: var(--amber); font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.plate-test svg { width: 100%; height: auto; }
.pt-spin { transform-box: view-box; transform-origin: 150px 150px; animation: spin-slow 60s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.scale-ticks { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.journey-line path { vector-effect: non-scaling-stroke; animation: draw 2.4s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ISRI–S360 programme */
.programme { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 18px; align-items: stretch; }
.prog { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.prog ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.prog .contact { font-size: .95rem; color: var(--muted); }
.prog.isri { border-top: 4px solid var(--amber); }
.prog.s360 { border-top: 4px solid var(--accent-2); }
.prog-flow { display: grid; align-content: center; gap: 8px; }
.prog-flow span { font-family: var(--font-mono); font-size: .75rem; text-align: center; padding: 5px 10px; border-radius: 999px; background: var(--chip); color: var(--fg); position: relative; animation: flowpulse 4s ease-in-out infinite; }
.prog-flow span:nth-child(2) { animation-delay: 1s; } .prog-flow span:nth-child(3) { animation-delay: 2s; } .prog-flow span:nth-child(4) { animation-delay: 3s; }
@keyframes flowpulse { 0%, 30%, 100% { background: var(--chip); } 12% { background: color-mix(in srgb, var(--amber) 40%, var(--chip)); } }
@media (max-width: 860px) { .programme { grid-template-columns: 1fr; } .prog-flow { grid-auto-flow: column; overflow-x: auto; } }

.stage-chip { display: block; width: fit-content; margin-top: 4px; font-family: var(--font-mono); font-size: 0.7rem; padding: 2px 7px; border-radius: 999px; border: 1px dashed var(--muted); color: var(--muted); }
.stage-chip.ok { border-style: solid; border-color: var(--accent-2); color: var(--accent-2); }

.status-strip { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 5; padding: 10px 14px; border-radius: 8px; background: var(--warn-bg); color: var(--fg); border: 1.5px solid var(--warn); font-size: .95rem; }
.status-strip strong { color: var(--warn); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; }
.bar-note { font-size: var(--step--1); color: var(--muted); margin-top: -6px; }
.levels { margin: 10px 0 0; padding-left: 1.2em; color: var(--muted); font-size: var(--step--1); display: grid; gap: 4px; }
@media (max-width: 760px) { .status-strip { position: static; } }

.four-checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; counter-reset: fc; }
.four-checks li { position: relative; padding: 18px 18px 18px 64px; border-radius: var(--radius); background: var(--chip); }
.four-checks li::before { counter-increment: fc; content: counter(fc); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--hero-bg); color: var(--amber); font-family: var(--font-mono); font-weight: 600; }
.four-checks strong { display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 1.1rem; }
@media (max-width: 760px) { .four-checks { grid-template-columns: 1fr; } }

.phi-row.verified { border-color: var(--accent-2); border-width: 2px; }
.phi-row.draft-muted { opacity: .7; }
.phi-row.draft-muted .bar-fill { background: var(--muted); }
