/* ==========================================================================
   Farm website — shared stylesheet
   Design: forest green / sage / cream with butter-yellow accents,
   rounded photo frames, floating pill navigation, big type.
   Mobile first. Light/dark via prefers-color-scheme. No external CSS libs.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #f4f2ec;
  --surface: #ffffff;
  --surface-2: #ebe8df;
  --ink: #1c2819;
  --muted: #5c6556;
  --line: #dcd8cc;

  --forest: #2c4226;
  --forest-2: #3b5733;
  --sage: #66714f;
  --sage-soft: #dfe3d2;
  --butter: #fbef9f;
  --butter-2: #f6e27a;
  --butter-ink: #3b3611;

  --paddy: #4c6b2f;
  --paddy-ink: #34511f;
  --paddy-soft: #e3e9d4;
  --pond: #2b6f8f;
  --pond-ink: #215a75;
  --pond-soft: #ddebf0;
  --soil: #8a5a36;
  --soil-ink: #6f4627;
  --soil-soft: #f1e6da;
  --turmeric: #b7811f;
  --turmeric-soft: #f8edd3;
  --danger: #a63d2f;
  --danger-soft: #f8e3de;

  --shadow: 0 1px 2px rgb(30 40 20 / .05), 0 10px 30px rgb(30 40 20 / .08);
  --radius: 22px;
  --radius-sm: 12px;
  --maxw: 1380px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 68px;

  --font: "Noto Sans Bengali", "Nirmala UI", "Vrinda", "Shonar Bangla", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10150e;
    --surface: #182016;
    --surface-2: #1f291c;
    --ink: #e8ecdf;
    --muted: #a6af9c;
    --line: #2f3a2b;

    --forest: #0b1109;
    --forest-2: #1c2a18;
    --sage: #3b4630;
    --sage-soft: #232c1e;
    --butter: #f2e48a;
    --butter-2: #e9d566;
    --butter-ink: #2b270a;

    --paddy: #9cc874;
    --paddy-ink: #b1d68d;
    --paddy-soft: #233119;
    --pond: #6bb3d6;
    --pond-ink: #8ccbe8;
    --pond-soft: #182c35;
    --soil: #c79670;
    --soil-ink: #dcb08d;
    --soil-soft: #31261d;
    --turmeric: #e0b04f;
    --turmeric-soft: #342a16;
    --danger: #ef8d7e;
    --danger-soft: #3a1f1b;

    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px rgb(0 0 0 / .3);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.8;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body:not([data-hero]) { padding-top: calc(var(--header-h) + 28px); }
img, svg { max-width: 100%; }
svg { display: block; }
a { color: var(--paddy-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--butter-2); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.3; margin: 1.6em 0 .55em; font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); margin-top: .3em; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: .3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
code, kbd { font-family: var(--mono); font-size: .86em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
pre { font-family: var(--mono); font-size: .85rem; line-height: 1.6; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem; overflow-x: auto; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -.22em; flex: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
main { display: block; }
.prose { max-width: 76ch; }
.grid { display: grid; gap: 1rem; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }

.band { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.band-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.band-cream { background: var(--surface-2); }
.band-white { background: var(--surface); }
.band-sage { background: var(--sage); color: #fff; }
.band-forest { background: var(--forest); color: #eef2e6; }
.band-sage .lead, .band-forest .lead, .band-sage .muted, .band-forest .muted { color: rgb(255 255 255 / .78); }
.band-sage a:not(.btn), .band-forest a:not(.btn) { color: var(--butter); }

.head-row { display: grid; gap: 1rem 4rem; margin-bottom: clamp(2rem, 4.5vw, 3.5rem); align-items: end; }
@media (min-width: 960px) { .head-row { grid-template-columns: 1.2fr 1fr; } }
.head-row h2, .title { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.5rem); line-height: 1.2; margin: .5rem 0 0; font-weight: 600; text-wrap: balance; }
.head-row p { margin: 0; }

/* Outline label pill */
.tag {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 600; line-height: 1; letter-spacing: .02em;
  padding: .42rem .8rem; border-radius: 999px; border: 1px solid currentColor;
  color: var(--muted);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.band-sage .tag, .band-forest .tag, .on-photo .tag { color: rgb(255 255 255 / .85); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  padding: .7rem 1.35rem; border-radius: 999px; border: 1px solid transparent; min-height: 48px;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: scale(1.6); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-butter { background: var(--butter); color: var(--butter-ink); }
.btn-butter:hover { background: var(--butter-2); box-shadow: 0 8px 24px rgb(240 220 100 / .35); }
.btn-white, .btn-light { background: #fff; color: #1c2819; }
.btn-dark, .btn-primary { background: var(--forest); color: #fff; }
.btn-dark:hover, .btn-primary:hover { background: var(--forest-2); }
@media (prefers-color-scheme: dark) { .btn-dark, .btn-primary { background: var(--butter); color: var(--butter-ink); } }
.btn-outline, .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover, .btn-ghost:hover { border-color: var(--ink); }
.btn-glass { background: rgb(255 255 255 / .12); color: #fff; border-color: rgb(255 255 255 / .35); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgb(255 255 255 / .22); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.5rem; }
.plus {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--butter); color: var(--butter-ink); text-decoration: none; font-weight: 700;
  transition: transform .35s var(--ease), background-color .25s;
}
.plus:hover { transform: rotate(90deg) scale(1.1); background: var(--butter-2); }
.text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link .icon { transition: transform .3s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Skip link / progress / back to top ---------- */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--forest); color: #fff; padding: .5rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; }
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; pointer-events: none; background: var(--butter-2); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--butter); color: var(--butter-ink); box-shadow: var(--shadow);
  display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top .icon { transform: rotate(-90deg); }

/* ---------- Header: floating pill ---------- */
.site-header { position: fixed; top: 12px; left: 0; right: 0; z-index: 60; pointer-events: none; }
.header-pill {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: .6rem; min-height: var(--header-h);
  padding: .5rem .6rem .5rem 1rem; border-radius: 20px; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: background-color .35s, border-color .35s, color .35s;
}
body[data-hero] .site-header:not(.is-scrolled):not(.menu-open):not(.search-open) .header-pill {
  background: rgb(20 28 16 / .28); border-color: rgb(255 255 255 / .18); box-shadow: none; color: #fff;
}
.brand { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; min-width: 0; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { opacity: .7; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .brand-text small { display: none; } }

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .1rem; }
.site-nav li { margin: 0; }
.site-nav a, .site-nav .is-planned {
  display: flex; align-items: center; gap: .45rem; padding: .45rem .7rem; border-radius: 999px;
  color: inherit; text-decoration: none; font-size: .95rem; font-weight: 500; white-space: nowrap; position: relative;
}
.site-nav a::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .3rem; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current] { background: var(--butter); color: var(--butter-ink); }
.site-nav a[aria-current]::after { display: none; }
.site-nav .icon { display: none; }
@media (min-width: 1180px) { .site-nav { display: block; } }

.header-actions { display: flex; align-items: center; gap: .4rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  background: transparent; color: inherit; cursor: pointer; flex: none;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.header-cta { display: none; padding: .55rem 1.05rem; min-height: 44px; font-size: .92rem; }
@media (min-width: 720px) { .header-cta { display: inline-flex; } }
.menu-toggle { display: inline-grid; }
@media (min-width: 1180px) { .menu-toggle { display: none; } }

/* Dropdown panels (menu, search) */
.menu-panel, .search-panel {
  pointer-events: auto; display: none; margin-top: .5rem; padding: .75rem; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink);
}
.menu-panel { max-height: calc(100vh - 110px); overflow-y: auto; }
.menu-open .menu-panel, .search-open .search-panel { display: block; animation: drop .35s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
@media (min-width: 560px) { .menu-panel ul { grid-template-columns: 1fr 1fr; } }
.menu-panel li { margin: 0; }
.menu-panel a, .menu-panel .is-planned { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu-panel a:hover { background: var(--surface-2); }
.menu-panel a[aria-current] { background: var(--butter); color: var(--butter-ink); }
.menu-panel .icon { color: var(--paddy); }
.search-field { position: relative; }
.search-field .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-panel input {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: .75rem 1rem .75rem 2.8rem; min-height: 52px;
}
.search-panel input:focus { outline: none; border-color: var(--paddy); box-shadow: 0 0 0 3px var(--paddy-soft); }
.search-results { list-style: none; margin: .5rem 0 0; padding: 0; max-height: min(60vh, 460px); overflow-y: auto; }
.search-results li { margin: 0; }
.search-results a, .search-results .sr-item { display: block; padding: .55rem .8rem; border-radius: 12px; color: var(--ink); text-decoration: none; line-height: 1.45; }
.search-results [aria-selected="true"] > a, .search-results [aria-selected="true"] > .sr-item, .search-results a:hover { background: var(--butter); color: var(--butter-ink); }
.sr-title { font-weight: 600; display: block; }
.sr-meta { font-size: .8rem; opacity: .75; display: block; }
.sr-empty { padding: .7rem; color: var(--muted); font-size: .92rem; }
.search-hint { font-size: .82rem; color: var(--muted); margin: .5rem .3rem 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin: .25rem 0 1rem; font-size: .9rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: .25rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; color: var(--line); padding-inline: .35rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Home hero ---------- */
.hero { padding: 12px; }
.hero-frame {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  border-radius: 28px; min-height: calc(100vh - 24px); min-height: calc(100svh - 24px);
  display: flex; flex-direction: column; justify-content: flex-end; background: #233318;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; margin: 0; padding: 0; list-style: none; }
.hero-slides li { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slides li.is-active { opacity: 1; }
.hero-slides img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.1); }
.hero-slides li.is-active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate3d(1%, 1%, 0); } to { transform: scale(1) translate3d(0, 0, 0); } }
.hero-frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(10 16 6 / .5) 0%, rgb(10 16 6 / .1) 35%, rgb(10 16 6 / .2) 60%, rgb(10 16 6 / .78) 100%);
}
.hero-body { padding: calc(var(--header-h) + 60px) clamp(1.25rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem); display: grid; gap: 1.5rem; }
.hero-top { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .hero-top { grid-template-columns: 1fr 320px; align-items: start; } }
.hero-title {
  font-size: clamp(2.6rem, 1.2rem + 6.2vw, 6.6rem); line-height: 1.15; font-weight: 700;
  color: var(--butter); margin: 0; max-width: 13ch; text-wrap: balance;
  text-shadow: 0 2px 30px rgb(0 0 0 / .25);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(.15s + var(--i, 0) * .12s); }
@keyframes rise { to { transform: none; } }
.hero-aside { font-size: .98rem; line-height: 1.7; color: rgb(255 255 255 / .9); margin: 0; }
@media (min-width: 960px) { .hero-aside { text-align: right; padding-top: .6rem; } }
.hero-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-top: clamp(2rem, 10vh, 7rem); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; }
.hero-ctas .text-link { color: #fff; }
.hero-card {
  position: relative; display: block; width: 260px; aspect-ratio: 16 / 11; border-radius: 18px; overflow: hidden;
  color: #fff; text-decoration: none; border: 1px solid rgb(255 255 255 / .3); box-shadow: 0 20px 40px rgb(0 0 0 / .3);
  isolation: isolate;
}
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.hero-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(0 0 0 / .65), transparent 60%); }
.hero-card:hover img { transform: scale(1.08); }
.hero-card .play { position: absolute; top: 14px; left: 14px; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #1c2819; display: grid; place-items: center; }
.hero-card .play::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .6); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.hero-card strong { position: absolute; left: 16px; bottom: 12px; font-size: 1rem; }
@media (max-width: 640px) { .hero-card { width: 100%; aspect-ratio: 16 / 7; } }
.hero-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .2); }
.hero-caption { font-size: .85rem; color: rgb(255 255 255 / .8); margin: 0; }
.hero-caption a { color: #fff; }
.hero-dots { display: flex; gap: .45rem; align-items: center; }
.hero-dots button { width: 30px; height: 4px; border-radius: 4px; border: 0; padding: 0; cursor: pointer; background: rgb(255 255 255 / .35); position: relative; overflow: hidden; }
.hero-dots button[aria-current="true"]::after { content: ""; position: absolute; inset: 0; background: var(--butter); transform-origin: 0 50%; animation: dotfill var(--slide-ms, 7000ms) linear forwards; }
.hero-dots.is-paused button[aria-current="true"]::after { animation: none; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-dots .pause { width: 34px; height: 34px; border-radius: 50%; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .35); color: #fff; display: grid; place-items: center; margin-left: .3rem; }

/* ---------- Mission + bubbles ---------- */
.mission { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 960px) { .mission { grid-template-columns: 1fr 1fr; align-items: start; } }
.mission h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.4rem); line-height: 1.22; font-weight: 600; margin: .9rem 0 0; }
.mission p { color: rgb(255 255 255 / .85); }
.bubbles { position: relative; height: clamp(360px, 46vw, 560px); margin-top: clamp(2rem, 5vw, 4rem); overflow: hidden; }
.bubble-text {
  position: absolute; top: 4%; left: 0; display: flex; width: max-content; white-space: nowrap;
  font-size: clamp(3.5rem, 2rem + 7vw, 8.5rem); font-weight: 700; line-height: 1.1; color: rgb(255 255 255 / .16);
  animation: marquee 40s linear infinite; user-select: none;
}
.bubble-text span { padding-right: .5em; }
.bubble {
  position: absolute; border-radius: 50%; overflow: hidden; margin: 0;
  box-shadow: 0 20px 40px rgb(0 0 0 / .18);
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform .9s var(--ease);
}
.bubble img { width: 100%; height: 100%; object-fit: cover; display: block; animation: floaty 7s ease-in-out infinite; animation-delay: var(--fd, 0s); }
@keyframes floaty { 0%, 100% { transform: scale(1.06) translateY(0); } 50% { transform: scale(1.06) translateY(-10px); } }
.bubble.b1 { width: 22%; aspect-ratio: 1; left: 0; top: 22%; }
.bubble.b2 { width: 8%; aspect-ratio: 1; left: 24%; top: 26%; }
.bubble.b3 { width: 15%; aspect-ratio: 1; left: 31%; top: 50%; }
.bubble.b4 { width: 10%; aspect-ratio: 1; left: 45%; top: 14%; }
.bubble.b5 { width: 6%; aspect-ratio: 1; left: 49%; top: 62%; }
.bubble.b6 { width: 25%; aspect-ratio: 1; left: 58%; top: 30%; }
.bubble.b7 { width: 13%; aspect-ratio: 1; left: 86%; top: 6%; }
.bubble.b8 { width: 9%; aspect-ratio: 1; left: 88%; top: 62%; }
.bubble.b9 { width: 9%; aspect-ratio: 1; left: 17%; top: 72%; }
@media (max-width: 640px) {
  .bubble.b1 { width: 38%; top: 30%; } .bubble.b6 { width: 40%; left: 55%; top: 40%; }
  .bubble.b3 { width: 24%; left: 33%; top: 64%; } .bubble.b7 { width: 22%; left: 74%; top: 12%; }
  .bubble.b2, .bubble.b5, .bubble.b8 { display: none; } .bubble.b4 { width: 18%; left: 42%; top: 22%; } .bubble.b9 { width: 16%; left: 6%; top: 80%; }
}

/* ---------- Features (3 columns with thin icons) ---------- */
.feature-media { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
@media (min-width: 960px) { .feature-media { grid-template-columns: 1fr 1.05fr; } }
.photo-frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; margin: 0; background: var(--surface-2); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.photo-frame:hover img { transform: scale(1.05); }
.photo-frame.tall { aspect-ratio: 4 / 5; }
.credit, .photo-frame figcaption {
  position: absolute; right: .6rem; bottom: .6rem; font-size: .72rem; line-height: 1.3; color: #fff;
  background: rgb(0 0 0 / .45); padding: .22rem .55rem; border-radius: 8px; backdrop-filter: blur(4px); z-index: 2;
}
.credit a, .photo-frame figcaption a { color: #fff; }
.features { display: grid; gap: 2rem 2.5rem; margin-top: clamp(2.5rem, 5vw, 4.5rem); grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { display: flex; flex-direction: column; gap: .5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.feature .ficon { color: var(--paddy); }
.feature .ficon .icon { width: 40px; height: 40px; stroke-width: 1.2; }
.feature h3 { margin: .3rem 0 0; font-size: 1.2rem; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }
.feature .plus { margin-top: .6rem; }

/* ---------- Offer cards (numbered, photo at bottom) ---------- */
.offers { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .offers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .offers { grid-template-columns: repeat(4, 1fr); } }
.offer {
  position: relative; display: flex; flex-direction: column; min-height: 390px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; color: var(--ink); text-decoration: none;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .35s;
}
.offer:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.offer .o-head { padding: 1.3rem 1.4rem .5rem; }
.offer .o-num { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.offer h3 { margin: .4rem 0 .3rem; font-size: 1.25rem; line-height: 1.35; }
.offer p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.6; }
.offer .o-arrow { display: inline-block; margin-top: .6rem; transition: transform .35s var(--ease); }
.offer:hover .o-arrow { transform: translateX(6px); }
.offer .o-img { margin-top: auto; height: 170px; position: relative; overflow: hidden; }
.offer .o-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.offer:hover .o-img img { transform: scale(1.08); }
.offer .o-count { position: absolute; top: 1.2rem; right: 1.2rem; font-size: .78rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.offer.is-butter { background: var(--butter); color: var(--butter-ink); border-color: transparent; }
.offer.is-butter p, .offer.is-butter .o-num { color: rgb(59 54 17 / .75); }
.offer.is-butter .o-count { background: rgb(255 255 255 / .55); color: var(--butter-ink); }

/* ---------- Stats over photo + big list ---------- */
.photo-band { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--forest); }
.photo-band > .pb-img { position: absolute; left: 0; right: 0; top: 0; height: 900px; z-index: -2; overflow: hidden; }
.photo-band > .pb-img img { width: 100%; height: 120%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.photo-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 900px; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgb(244 242 236 / 0) 16%, rgb(20 30 15 / .3) 45%, var(--forest) 100%); }
@media (prefers-color-scheme: dark) { .photo-band::before { background: linear-gradient(180deg, var(--bg) 0%, rgb(16 21 14 / 0) 16%, rgb(10 15 8 / .35) 45%, var(--forest) 100%); } }
.big-stats { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); padding-top: clamp(7rem, 16vw, 13rem); }
@media (min-width: 900px) { .big-stats { grid-template-columns: repeat(4, 1fr); } .big-stats > :nth-child(2) { margin-top: 3.5rem; } .big-stats > :nth-child(3) { margin-top: 7rem; } .big-stats > :nth-child(4) { margin-top: 10.5rem; } }
.big-stat .n { display: block; font-size: clamp(3rem, 1.6rem + 5vw, 6.2rem); font-weight: 700; line-height: 1.05; color: var(--butter); font-variant-numeric: tabular-nums; text-shadow: 0 4px 30px rgb(0 0 0 / .3); }
.big-stat .n small { font-size: .3em; font-weight: 600; margin-left: .2em; }
.photo-band .lead { color: rgb(255 255 255 / .78); }
.big-stat .l { display: block; margin-top: .6rem; font-size: .95rem; line-height: 1.55; color: rgb(255 255 255 / .9); max-width: 22ch; }

.big-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid rgb(255 255 255 / .16); }
.big-list li { margin: 0; border-top: 1px solid rgb(255 255 255 / .16); }
.big-list a, .big-list .is-planned {
  display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: center; gap: 1rem;
  padding: clamp(.8rem, 1.8vw, 1.3rem) 0; color: #fff !important; text-decoration: none; opacity: 1;
}
.big-list .bl-num { font-size: .82rem; color: var(--butter); font-variant-numeric: tabular-nums; }
.big-list .bl-title { font-size: clamp(1.6rem, 1rem + 3vw, 3.8rem); font-weight: 600; line-height: 1.2; transition: color .35s, transform .5s var(--ease); }
.big-list .bl-sum { display: none; max-width: 30ch; font-size: .92rem; color: rgb(255 255 255 / .7); text-align: right; line-height: 1.55; }
@media (min-width: 1000px) { .big-list .bl-sum { display: block; } }
.big-list a:hover .bl-title, .big-list a:focus-visible .bl-title { color: var(--butter); transform: translateX(14px); }
.cursor-dot {
  position: fixed; left: 0; top: 0; z-index: 30; width: 96px; height: 96px; border-radius: 50%;
  background: var(--butter); color: var(--butter-ink); display: grid; place-items: center; font-size: .85rem; font-weight: 700;
  pointer-events: none; transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) translate(-50%, -50%) scale(0);
  transition: transform .25s var(--ease);
}
.cursor-dot.show { transform: translate3d(var(--cx), var(--cy), 0) translate(-50%, -50%) scale(1); }
@media (hover: none) { .cursor-dot { display: none; } }

/* ---------- Pill marquee ---------- */
.pill-marquee { overflow: hidden; padding-block: .6rem; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pill-track { display: flex; gap: .7rem; width: max-content; animation: marquee 55s linear infinite; }
.pill-marquee:hover .pill-track { animation-play-state: paused; }
.pill-marquee.reverse .pill-track { animation-direction: reverse; }
.pill { display: inline-flex; align-items: center; height: 58px; border-radius: 999px; white-space: nowrap; flex: none; }
.pill.label { padding: 0 1.5rem; background: var(--butter); color: var(--butter-ink); font-weight: 600; font-size: 1.02rem; }
.pill.label.alt { background: var(--forest); color: #fff; }
.pill.photo { width: 140px; overflow: hidden; }
.pill.photo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards (general) ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; position: relative; }
.card h3 { margin: .2rem 0 .4rem; font-size: 1.15rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--paddy-soft); color: var(--paddy-ink); margin-bottom: .6rem; }
.card-icon .icon { width: 24px; height: 24px; }
.card.pond .card-icon { background: var(--pond-soft); color: var(--pond-ink); }
.card.soil .card-icon { background: var(--soil-soft); color: var(--soil-ink); }
.card.turmeric .card-icon { background: var(--turmeric-soft); color: var(--turmeric); }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
a.card:hover { transform: translateY(-4px); border-color: var(--paddy); box-shadow: var(--shadow); }
.card-count { font-size: .82rem; color: var(--muted); }

/* ---------- Tabs / seasons ---------- */
.tablist { display: inline-flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 2rem; padding: .35rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tablist [role="tab"] {
  font: inherit; font-weight: 600; cursor: pointer; padding: .6rem 1.3rem; border-radius: 999px;
  border: 0; background: transparent; color: var(--muted); min-height: 44px; transition: background-color .3s, color .3s;
}
.tablist [role="tab"]:hover { color: var(--ink); }
.tablist [role="tab"][aria-selected="true"] { background: var(--forest); color: #fff; }
@media (prefers-color-scheme: dark) { .tablist [role="tab"][aria-selected="true"] { background: var(--butter); color: var(--butter-ink); } }
[role="tabpanel"]:not([hidden]) { animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.season-panel { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 960px) { .season-panel { grid-template-columns: 1.1fr 1fr; } }
.season-panel h3 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); font-weight: 600; margin: .8rem 0 .6rem; line-height: 1.25; }
.crop-tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; }
.crop-tags li { margin: 0; padding: .35rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: .95rem; animation: tagIn .5s both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes tagIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.ritu-row { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.ritu-row li { margin: 0; }
.ritu-row a, .ritu-row .is-planned { display: inline-flex; gap: .4rem; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .92rem; }
.ritu-row a:hover { background: var(--butter); border-color: var(--butter); color: var(--butter-ink); }

/* ---------- Cycle ---------- */
.cycle { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; counter-reset: cyc; grid-template-columns: 1fr; background: rgb(255 255 255 / .12); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .cycle { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cycle { grid-template-columns: repeat(3, 1fr); } }
.cycle li { counter-increment: cyc; margin: 0; position: relative; background: var(--forest); color: rgb(255 255 255 / .78); padding: 1.6rem 1.5rem; cursor: pointer; transition: background-color .45s var(--ease), color .45s; min-height: 210px; }
.cycle li::before { content: "(০" counter(cyc, bengali) ")"; display: block; font-size: .82rem; color: var(--butter); margin-bottom: .8rem; }
.cycle strong { display: block; font-size: 1.3rem; margin-bottom: .4rem; color: #fff; }
.cycle li:hover { background: var(--forest-2); }
.cycle li.is-active { background: var(--butter); color: var(--butter-ink); }
.cycle li.is-active strong, .cycle li.is-active::before { color: var(--butter-ink); }

/* ---------- Ownership split + donut ---------- */
.own-split { display: grid; border-radius: 28px; overflow: hidden; }
@media (min-width: 960px) { .own-split { grid-template-columns: 1fr 1fr; } }
.own-split > div { padding: clamp(1.75rem, 4vw, 3.5rem); }
.own-text { background: var(--forest); color: #eef2e6; }
.own-text p { color: rgb(255 255 255 / .8); }
.own-text a:not(.btn) { color: var(--butter); }
.own-text h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); font-weight: 600; line-height: 1.22; margin: .8rem 0 1rem; }
.own-chart { background: var(--surface); display: grid; align-items: center; }
.donut-wrap { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 640px) { .donut-wrap { grid-template-columns: 240px 1fr; } }
.donut { width: 240px; height: 240px; margin-inline: auto; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 7; }
.donut .track { stroke: var(--surface-2); }
.donut [class^="seg-"] { transition: stroke-dasharray 1.3s var(--ease); transition-delay: var(--d, 0s); }
.seg-1 { stroke: var(--forest-2); } .sw-1 { background: var(--forest-2); }
.seg-2 { stroke: var(--butter-2); } .sw-2 { background: var(--butter-2); }
.seg-3 { stroke: var(--sage); } .sw-3 { background: var(--sage); }
.seg-4 { stroke: var(--pond); } .sw-4 { background: var(--pond); }
.seg-5 { stroke: var(--soil); } .sw-5 { background: var(--soil); }
@media (prefers-color-scheme: dark) { .seg-1 { stroke: var(--paddy); } .sw-1 { background: var(--paddy); } .seg-3 { stroke: #8c9a73; } .sw-3 { background: #8c9a73; } }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.legend li { display: flex; align-items: center; gap: .6rem; margin: 0; }
.swatch { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.legend .pct { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Gallery + lightbox ---------- */
.gallery { columns: 2 220px; column-gap: clamp(.6rem, 1.2vw, 1rem); }
@media (min-width: 1100px) { .gallery { columns: 4; } }
.gallery button { display: block; width: 100%; padding: 0; margin: 0 0 clamp(.6rem, 1.2vw, 1rem); border: 0; cursor: zoom-in; border-radius: 18px; overflow: hidden; background: var(--surface-2); break-inside: avoid; position: relative; }
.gallery img { display: block; width: 100%; height: auto; transition: transform .9s var(--ease), filter .4s; }
.gallery button:hover img { transform: scale(1.06); filter: saturate(1.15); }
.gallery .g-cap { position: absolute; inset: auto 0 0 0; padding: .7rem .9rem; color: #fff; font-size: .88rem; text-align: left; background: linear-gradient(0deg, rgb(0 0 0 / .7), transparent); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.gallery button:hover .g-cap, .gallery button:focus-visible .g-cap { opacity: 1; transform: none; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgb(8 12 6 / .92); backdrop-filter: blur(4px); }
.lightbox[open] { animation: lbIn .35s ease; }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lightbox img { display: block; max-width: 100%; max-height: 80vh; margin-inline: auto; border-radius: 16px; }
.lightbox .lb-cap { text-align: center; margin-top: .7rem; font-size: .95rem; }
.lightbox .lb-cap a { color: var(--butter); }
.lightbox .lb-btn, .lightbox .lb-close { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--butter); color: var(--butter-ink); cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-btn { top: 50%; translate: 0 -50%; }
.lightbox .lb-prev { left: 10px; } .lightbox .lb-next { right: 10px; }
.lightbox .lb-close { top: -56px; right: 0; }

/* ---------- Roadmap ---------- */
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .roadmap { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .roadmap { grid-template-columns: repeat(5, 1fr); } }
.roadmap li { margin: 0; position: relative; padding: 1.5rem 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), background-color .3s, color .3s; }
.roadmap li:hover { transform: translateY(-6px); background: var(--butter); color: var(--butter-ink); border-color: transparent; }
.roadmap li:hover p { color: rgb(59 54 17 / .8); }
.roadmap .phase { display: block; font-size: 2.8rem; font-weight: 700; line-height: 1; color: var(--paddy); margin-bottom: .8rem; }
.roadmap li:hover .phase { color: var(--butter-ink); }
.roadmap h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.roadmap p { margin: 0; font-size: .94rem; color: var(--muted); line-height: 1.65; }

/* ---------- CTA banner (rounded photo) ---------- */
.cta-banner { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; color: #fff; min-height: 480px; display: grid; align-items: end; }
.cta-banner > img { position: absolute; left: 0; width: 100%; height: 130%; top: -15%; object-fit: cover; z-index: -2; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.cta-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 16 6 / .85), rgb(10 16 6 / .3)); }
.cta-inner { padding: clamp(1.75rem, 5vw, 4rem); display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .cta-inner { grid-template-columns: 1fr auto; align-items: end; } }
.cta-inner h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.4rem); font-weight: 600; line-height: 1.22; margin: .8rem 0 .8rem; max-width: 18ch; }
.cta-inner p { color: rgb(255 255 255 / .85); max-width: 60ch; margin: 0; }
.quote-bar { border-left: 3px solid var(--butter); padding-left: 1.2rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 1rem 0 1.75rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--paddy-ink); font-weight: 600; }
.page-hero h1 { margin: .4rem 0 .6rem; }
.page-hero.has-photo { position: relative; isolation: isolate; color: #fff; border: 0; border-radius: 28px; overflow: hidden; padding: clamp(2.5rem, 7vw, 6rem) clamp(1.3rem, 4vw, 3.5rem); }
.page-hero.has-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 16 6 / .85), rgb(10 16 6 / .3)); }
.page-hero.has-photo h1 { color: var(--butter); font-size: clamp(2.2rem, 1.3rem + 4vw, 4.6rem); }
.page-hero.has-photo .lead, .page-hero.has-photo .eyebrow { color: rgb(255 255 255 / .9); }

/* ---------- Callouts ---------- */
.callout { display: flex; gap: .8rem; align-items: flex-start; border-radius: 16px; padding: 1rem 1.15rem; margin: 1.25rem 0; background: var(--pond-soft); border: 1px solid color-mix(in srgb, var(--pond) 25%, transparent); }
.callout > .icon { margin-top: .3rem; color: var(--pond-ink); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout strong:first-child { display: block; margin-bottom: .2rem; }
.callout.tip { background: var(--paddy-soft); border-color: color-mix(in srgb, var(--paddy) 25%, transparent); }
.callout.tip > .icon { color: var(--paddy-ink); }
.callout.warn { background: var(--turmeric-soft); border-color: color-mix(in srgb, var(--turmeric) 30%, transparent); }
.callout.warn > .icon { color: var(--turmeric); }
.callout.legal { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.callout.legal > .icon { color: var(--danger); }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .78rem; font-weight: 600; line-height: 1.4; padding: .14rem .6rem; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.badge.ok, .badge.op { background: var(--paddy-soft); color: var(--paddy-ink); }
.badge.hybrid { background: var(--danger-soft); color: var(--danger); }
.badge.planned { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.badge.season { background: var(--butter); color: var(--butter-ink); }
.badge.pond { background: var(--pond-soft); color: var(--pond-ink); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 1rem; }
.chip { font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; min-height: 38px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
@media (prefers-color-scheme: dark) { .chip[aria-pressed="true"] { background: var(--butter); color: var(--butter-ink); border-color: var(--butter); } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.6; }
.data-table caption { text-align: left; padding: .75rem 1rem; font-weight: 600; caption-side: top; }
.data-table th, .data-table td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background-color .2s; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--butter) 30%, transparent); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table code { white-space: nowrap; }

/* Fact sheet (seed / species template) */
.fact-sheet { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); margin: 1rem 0 1.75rem; }
.fact-sheet > div { display: grid; gap: .15rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); }
.fact-sheet > div:last-child { border-bottom: 0; }
.fact-sheet dt { font-weight: 600; color: var(--paddy-ink); font-size: .92rem; }
.fact-sheet dd { margin: 0; }
@media (min-width: 640px) { .fact-sheet > div { grid-template-columns: 12rem 1fr; gap: 1rem; } }

/* Season cards (inner pages) */
.card.season { border-top: 5px solid var(--paddy); }
.card.season.kharif1 { border-top-color: var(--turmeric); }
.card.season.kharif2 { border-top-color: var(--pond); }
.card.season.rabi { border-top-color: var(--soil); }
.season .months { font-size: .9rem; color: var(--muted); }

/* Vertical timeline (inner pages) */
.timeline { list-style: none; padding: 0; margin: 1rem 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline > li { position: relative; padding-left: 3rem; margin-bottom: 1.25rem; }
.timeline .dot { position: absolute; left: 0; top: .1rem; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--butter); color: var(--butter-ink); }
.timeline h3 { margin: 0 0 .25rem; font-size: 1.08rem; }
.timeline p { margin: 0; }

/* TOC */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0 1.75rem; }
.toc h2 { font-size: 1rem; margin: 0 0 .4rem; }
.toc ol, .toc ul { margin: 0; padding-left: 1.2rem; }
@media (min-width: 720px) { .toc ol, .toc ul { columns: 2; column-gap: 2rem; } }
.toc li { break-inside: avoid; }

/* ---------- Related / prev-next ---------- */
.related { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; font-size: 1.4rem; }
.related-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .related-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .related-list { grid-template-columns: repeat(3, 1fr); } }
.related-list li { margin: 0; }
.related-list a, .related-list .is-planned { display: block; height: 100%; padding: .9rem 1.05rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); line-height: 1.5; transition: transform .3s var(--ease), border-color .3s; }
.related-list a:hover { border-color: var(--ink); transform: translateY(-3px); }
.related-list .t { font-weight: 600; display: block; }
.related-list .s { font-size: .85rem; color: var(--muted); display: block; }
.prev-next { display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .prev-next { grid-template-columns: 1fr auto 1fr; } }
.prev-next a, .prev-next .is-planned, .prev-next span.spacer { display: flex; align-items: center; gap: .45rem; padding: .7rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-size: .95rem; }
.prev-next span.spacer { visibility: hidden; }
.prev-next .next { justify-content: flex-end; text-align: right; }
.prev-next .hub { justify-content: center; font-weight: 600; background: var(--butter); color: var(--butter-ink); border-color: transparent; }

/* Pages not built yet: search results and sitemap rows (.is-planned); links keep their look ([data-planned]) */
.is-planned { color: var(--muted) !important; cursor: not-allowed; text-decoration: none; opacity: .75; }
a[data-planned] { cursor: pointer; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; max-width: calc(100vw - 32px);
  padding: .75rem 1.2rem; border-radius: 999px; background: var(--forest); color: #fff; font-size: .95rem;
  box-shadow: var(--shadow); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-color-scheme: dark) { .toast { background: var(--butter); color: var(--butter-ink); } }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(3rem, 6vw, 5rem); background: var(--forest); color: #e4eadb; padding: clamp(3rem, 6vw, 5rem) 0 1.5rem; font-size: .95rem; overflow: hidden; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer h2 { font-size: .9rem; margin: 0 0 .8rem; color: var(--butter); font-weight: 600; }
.site-footer p { color: rgb(255 255 255 / .72); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--butter); }
.site-footer .is-planned { color: rgb(255 255 255 / .5) !important; }
.footer-word { font-size: clamp(3.5rem, 1rem + 11vw, 11rem); font-weight: 700; line-height: 1.1; color: rgb(255 255 255 / .07); margin: 2.5rem 0 0; white-space: nowrap; }
.footer-bottom { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .14); color: rgb(255 255 255 / .6); font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.footer-bottom a { color: rgb(255 255 255 / .85); }

/* ---------- Sitemap ---------- */
.sitemap-section { margin-bottom: 3rem; }
.sitemap-section h2 { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.sitemap-section h2 .icon { color: var(--paddy); }
.sitemap-section .count { font-size: .85rem; font-weight: 500; color: var(--muted); }
.sitemap-jump { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 2.5rem; padding: 0; list-style: none; }
.sitemap-jump li { margin: 0; }
.sitemap-jump a { display: inline-block; padding: .4rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-size: .9rem; }
.sitemap-jump a:hover { background: var(--butter); border-color: var(--butter); color: var(--butter-ink); }

/* ---------- Misc lists ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .5rem 0 1rem; }
.pill-list li { margin: 0; padding: .25rem .8rem; border-radius: 999px; background: var(--surface-2); font-size: .9rem; }
.note { font-size: .9rem; color: var(--muted); }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 2.1rem; margin-bottom: .7rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: .2em; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: var(--butter); color: var(--butter-ink); font-weight: 700; }
.cross-list { list-style: none; padding: 0; }
.cross-list li { position: relative; padding-left: 1.7rem; }
.cross-list li::before { content: "✕"; position: absolute; left: 0; color: var(--danger); font-weight: 700; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .8rem 1.1rem; margin-bottom: .6rem; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: .5rem; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.from-left, .js .reveal.from-right { transform: translateY(36px); }
@media (min-width: 960px) {
  .js .reveal.from-left { transform: translateX(-44px); }
  .js .reveal.from-right { transform: translateX(44px); }
}
.js .reveal.zoom { transform: scale(.93); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
  .hero-slides img { transform: none; }
}
@media print {
  .site-header, .site-footer, .related, .skip-link, .btn-row, .to-top, .scroll-progress { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; padding-top: 0 !important; }
  a { color: #000; }
  .card, .table-wrap { box-shadow: none; break-inside: avoid; }
}

/* ==========================================================================
   3D aerial view (farm-3d.html)
   ========================================================================== */
main:not(.container) > .breadcrumb, main:not(.container) > .related { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.v-head { display: grid; gap: .5rem 3rem; align-items: end; padding-bottom: 1.25rem; }
@media (min-width: 960px) { .v-head { grid-template-columns: 1fr 1fr; } }
.v-head h1 { margin: .5rem 0 0; font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); font-weight: 600; line-height: 1.2; }
.v-head p { margin: 0; }
.viewer { padding: 0 12px; }
.viewer-frame {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 28px;
  height: calc(100vh - var(--header-h) - 60px); height: calc(100svh - var(--header-h) - 60px);
  min-height: 520px; background: linear-gradient(180deg, #a9cbe0, #eef1e4);
}
.viewer-frame canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
.viewer-frame canvas:active { cursor: grabbing; }
.viewer-frame canvas.is-pointer { cursor: pointer; }
.v-glass {
  background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.v-toolbar { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; flex-wrap: wrap; gap: .45rem; pointer-events: none; }
.v-btn {
  pointer-events: auto; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px;
  padding: .45rem 1rem; border-radius: 999px; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.v-btn:hover { transform: translateY(-2px); }
.v-btn[aria-pressed="true"] { background: var(--butter); color: var(--butter-ink); border-color: transparent; }
.v-btn .icon { width: 1.1em; height: 1.1em; }
.v-legend-toggle { display: none; }
@media (max-width: 899px) { .v-legend-toggle { display: inline-flex; } }
.v-legend {
  position: absolute; top: 14px; left: 14px; z-index: 3; width: 260px; max-height: calc(100% - 92px);
  overflow-y: auto; border-radius: 20px; padding: .7rem .55rem; transition: transform .45s var(--ease), opacity .3s;
  scrollbar-width: thin;
}
.v-legend h2 { font-size: .95rem; margin: .2rem .5rem .3rem; }
.lg-group { font-size: .74rem; font-weight: 600; color: var(--muted); margin: .7rem .55rem .15rem; }
.v-legend button {
  display: flex; align-items: center; gap: .55rem; width: 100%; text-align: left; font: inherit; font-size: .88rem; line-height: 1.35;
  border: 0; background: transparent; color: var(--ink); padding: .38rem .55rem; border-radius: 10px; cursor: pointer;
}
.v-legend button:hover, .v-legend button[aria-current="true"] { background: var(--butter); color: var(--butter-ink); }
.lg-dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.lg-dot.dashed { background: transparent !important; border: 2px dashed var(--lg-c); }
@media (max-width: 899px) {
  .v-legend { transform: translateX(calc(-100% - 20px)); opacity: 0; max-height: calc(100% - 92px); }
  .v-legend.open { transform: none; opacity: 1; }
}
.v-panel {
  position: absolute; top: 14px; right: 14px; z-index: 4; width: min(360px, calc(100% - 28px)); max-height: calc(100% - 90px);
  overflow-y: auto; border-radius: 22px; padding: 1.25rem 1.3rem; transform: translateX(calc(100% + 30px));
  transition: transform .5s var(--ease); visibility: hidden;
}
.v-panel.open { transform: none; visibility: visible; }
@media (max-width: 640px) {
  .v-panel { top: auto; left: 10px; right: 10px; bottom: 70px; width: auto; max-height: 58%; transform: translateY(calc(100% + 90px)); }
}
.v-panel h2 { font-size: 1.45rem; line-height: 1.3; margin: .35rem 0 .6rem; padding-right: 2.5rem; }
.v-panel p { font-size: .96rem; }
.v-panel .v-group { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.v-panel .v-fact { display: inline-block; font-size: .85rem; font-weight: 600; padding: .25rem .75rem; border-radius: 999px; background: var(--surface-2); margin-bottom: 1rem; }
.v-panel .btn-row { margin-top: .5rem; }
.v-close { position: absolute; top: 12px; right: 12px; }
.v-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.v-label {
  position: absolute; left: 0; top: 0; padding: .28rem .75rem; border-radius: 999px; white-space: nowrap;
  background: var(--forest); color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.3;
  transform: translate(-50%, -100%); box-shadow: 0 6px 18px rgb(0 0 0 / .2); will-change: transform;
}
.v-label::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; z-index: -1; }
.v-label.small { font-size: .72rem; padding: .12rem .55rem; background: rgb(28 40 25 / .82); }
.v-label.hover { background: var(--butter); color: var(--butter-ink); font-size: .92rem; z-index: 2; }
.v-hint {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 2; margin: 0; pointer-events: none;
  padding: .4rem 1rem; border-radius: 999px; font-size: .85rem; white-space: nowrap; transition: opacity .6s;
}
.v-hint.hide { opacity: 0; }
@media (max-width: 899px) { .v-hint { font-size: .78rem; } }
.v-status { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; text-align: center; padding: 2rem; background: linear-gradient(180deg, #a9cbe0, #eef1e4); color: #1c2819; transition: opacity .6s; }
.v-status.done { opacity: 0; pointer-events: none; }
.v-status p { max-width: 46ch; margin: .8rem auto 0; }
.v-spinner { width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; border: 4px solid rgb(44 66 38 / .2); border-top-color: var(--forest); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.v-status[data-state="error"] .v-spinner { display: none; }
.v-mode { position: absolute; top: 14px; right: 14px; z-index: 2; padding: .35rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }
@media (max-width: 899px) { .v-mode { display: none; } }

/* Top-down plan (SVG) */
.plan-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.plan-map svg { display: block; width: 100%; height: auto; }
.plan-map .pz rect { transition: fill-opacity .25s; }
.plan-map a:hover .pz rect, .plan-map a:focus .pz rect { fill-opacity: .95; }
.plan-map text { font-family: var(--font); fill: #1c2819; pointer-events: none; }
.plan-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: .8rem 0 0; padding: 0; list-style: none; font-size: .85rem; color: var(--muted); }
.plan-legend li { display: flex; align-items: center; gap: .4rem; margin: 0; }

/* ==========================================================================
   Long-form pages: body + sticky "on this page" box
   ========================================================================== */
.doc { display: grid; gap: 2rem 3.5rem; margin-top: 1rem; }
@media (min-width: 1100px) { .doc { grid-template-columns: minmax(0, 1fr) 290px; align-items: start; } }
.doc-body { max-width: 82ch; min-width: 0; }
.doc-body > h2 { scroll-margin-top: 110px; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.doc-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body h3 { margin-top: 1.8rem; }
.doc-toc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1rem .8rem; font-size: .92rem; line-height: 1.5; }
@media (min-width: 1100px) { .doc-toc { position: sticky; top: 104px; max-height: calc(100vh - 130px); overflow-y: auto; } }
@media (max-width: 1099px) { .doc-toc { order: -1; } .doc-toc ol { columns: 2 220px; } }
.toc-title { font-weight: 700; margin: 0 .5rem .5rem; font-size: .85rem; color: var(--muted); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; }
.doc-toc li { margin: 0 0 .1rem; break-inside: avoid; }
.doc-toc a { display: block; padding: .38rem .6rem; border-radius: 10px; color: var(--ink); text-decoration: none; transition: background-color .25s; }
.doc-toc a:hover { background: var(--surface-2); }
.doc-toc a.active { background: var(--butter); color: var(--butter-ink); font-weight: 600; }
.doc-aside-cta { margin-top: 1rem; padding: 1rem; border-radius: 16px; background: var(--forest); color: #eef2e6; font-size: .9rem; }
.doc-aside-cta a { color: var(--butter); }

/* Key figures row inside a page */
.kpis { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); margin: 1.25rem 0 1.75rem; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1rem; }
.kpi b { display: block; font-size: 1.6rem; line-height: 1.2; color: var(--paddy-ink); }
.kpi span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.45; margin-top: .2rem; }

/* Glossary */
.alpha { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1rem 0 1.5rem; padding: 0; list-style: none; }
.alpha li { margin: 0; }
.alpha a { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .6rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; }
.alpha a:hover { background: var(--butter); border-color: var(--butter); color: var(--butter-ink); }
.terms { margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.terms > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .85rem 1.1rem; }
.terms dt { font-weight: 700; }
.terms dt small { font-weight: 500; color: var(--muted); margin-left: .4rem; }
.terms dd { margin: .25rem 0 0; color: var(--ink); }
.terms > div[hidden] { display: none; }
.filter-input { width: 100%; max-width: 520px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .7rem 1rem; min-height: 50px; }
.filter-input:focus { outline: none; border-color: var(--paddy); box-shadow: 0 0 0 3px var(--paddy-soft); }

/* FAQ */
.faq details { padding: 0; overflow: hidden; }
.faq summary { list-style: none; padding: 1rem 3rem 1rem 1.2rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--butter); color: var(--butter-ink); font-weight: 700; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 1.2rem 1rem; }
.faq details[open] > div { animation: panelIn .45s var(--ease); }

/* ==========================================================================
   Crop calendar
   ========================================================================== */
.cal-controls { display: grid; gap: 1rem; margin: 1rem 0 1.5rem; }
.cal-controls .chips { margin: .35rem 0 0; }
.cal-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.cal-summary { display: grid; gap: 1rem; margin: 0 0 2rem; }
@media (min-width: 900px) { .cal-summary { grid-template-columns: repeat(3, 1fr); } }
.cal-summary .card h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.cal-summary .card ul { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.cal-summary .card li { margin: 0; }
.cal-summary .card li a, .cal-summary .card li span { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: .9rem; }
.cal-summary .card li a:hover { background: var(--butter); color: var(--butter-ink); }
.cal-summary .empty { color: var(--muted); font-size: .9rem; }
.cal-month-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); font-weight: 600; margin: 0 0 .25rem; }
.key { display: inline-flex; align-items: center; gap: .4rem; margin-right: 1rem; font-size: .88rem; color: var(--muted); }
.key i { display: inline-block; width: 22px; height: 8px; border-radius: 4px; }
.key i.sd { width: 9px; height: 9px; border-radius: 50%; }
.cal-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); margin: 1rem 0 1.5rem; }
.cal { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 940px; font-size: .9rem; }
.cal th, .cal td { padding: .4rem .3rem; border-bottom: 1px solid var(--line); text-align: center; transition: background-color .25s, opacity .25s; }
.cal .crop { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; min-width: 160px; padding-left: .9rem; box-shadow: 1px 0 0 var(--line); }
.cal thead th { background: var(--surface-2); font-weight: 600; font-size: .82rem; line-height: 1.3; }
.cal thead th small { display: block; font-weight: 400; color: var(--muted); font-size: .68rem; }
.cal thead .crop { background: var(--surface-2); }
.cal .srow th { font-size: .75rem; font-weight: 600; padding: .3rem; }
.cal .s-k1 { background: var(--turmeric-soft) !important; }
.cal .s-k2 { background: var(--pond-soft) !important; }
.cal .s-rabi { background: var(--soil-soft) !important; }
.cal td.crop a { color: var(--ink); text-decoration: none; font-weight: 600; }
.cal td.crop a:hover { color: var(--paddy-ink); text-decoration: underline; }
.cal td.crop small { display: block; color: var(--muted); font-weight: 400; font-size: .75rem; }
.cal .bar { display: flex; flex-direction: column; gap: 3px; align-items: stretch; min-height: 26px; justify-content: center; }
.cal .bar i, .key i { background: var(--line); }
.cal .bar i { display: block; height: 7px; border-radius: 4px; }
.cal i.sow, .key i.sow { background: var(--paddy); }
.cal i.hv, .key i.hv { background: var(--butter-2); }
.cal i.sd, .key i.sd { background: var(--soil); }
.cal .bar i.sd { width: 9px; height: 9px; border-radius: 50%; align-self: center; }
.cal .on { background: color-mix(in srgb, var(--butter) 38%, transparent); }
.cal thead .on { background: var(--butter); color: var(--butter-ink); }
.cal tbody tr:hover td { background: color-mix(in srgb, var(--paddy-soft) 60%, transparent); }
.cal tbody tr:hover td.crop { background: var(--paddy-soft); }
.cal tr.dim { opacity: .3; }
.cal tr.type-row td { background: var(--surface-2); text-align: left; font-weight: 700; font-size: .82rem; color: var(--muted); padding-left: .9rem; }

.cal thead th[data-col] { cursor: pointer; }

/* ==========================================================================
   Energy section: system diagram, calculators
   ========================================================================== */
.sys { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(.8rem, 2vw, 1.4rem); margin: 1rem 0 1.75rem; overflow-x: auto; }
.sys svg { width: 100%; min-width: 640px; height: auto; display: block; }
.sys .node rect { fill: var(--surface-2); stroke: var(--line); }
.sys .node.sun rect { fill: var(--butter); stroke: var(--butter-2); }
.sys .node.gas rect { fill: var(--pond-soft); }
.sys .node.soil rect { fill: var(--soil-soft); }
.sys .node.key rect { fill: var(--paddy-soft); stroke: var(--paddy); }
.sys text { font-family: var(--font); fill: var(--ink); font-size: 13px; }
.sys text.sub { fill: var(--muted); font-size: 11px; }
.sys .flow { fill: none; stroke: var(--butter-2); stroke-width: 3; stroke-dasharray: 7 7; animation: flow 1.1s linear infinite; }
.sys .flow.gasline { stroke: var(--pond); }
.sys .flow.slurryline { stroke: var(--soil); }
@keyframes flow { to { stroke-dashoffset: -14; } }
@media (prefers-reduced-motion: reduce) { .sys .flow { animation: none; } }

.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.1rem 1.2rem; margin: 1rem 0 1.5rem; }
.tool-grid { display: grid; gap: .9rem; }
@media (min-width: 720px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.tool label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.tool input[type=number], .tool select {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .55rem .8rem; min-height: 46px;
}
.tool input:focus, .tool select:focus { outline: none; border-color: var(--paddy); box-shadow: 0 0 0 3px var(--paddy-soft); }
.results { display: grid; gap: .7rem; grid-template-columns: repeat(2, 1fr); margin-top: 1rem; }
@media (min-width: 900px) { .results { grid-template-columns: repeat(4, 1fr); } }
.result { border-radius: 16px; padding: .85rem 1rem; background: var(--surface-2); }
.result b { display: block; font-size: 1.45rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.result span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.45; margin-top: .2rem; }
.result.good { background: var(--paddy-soft); } .result.good b { color: var(--paddy-ink); }
.result.warn { background: var(--turmeric-soft); } .result.warn b { color: var(--turmeric); }
.result.bad { background: var(--danger-soft); } .result.bad b { color: var(--danger); }
.load-table input[type=number] { width: 5.5rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .3rem .5rem; text-align: right; }
.load-table td.wh { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.load-table .tagday { font-size: .72rem; padding: .05rem .45rem; border-radius: 999px; background: var(--butter); color: var(--butter-ink); margin-left: .35rem; white-space: nowrap; }
.load-table tr.off td:not(:last-child) { opacity: .45; }
.prio { display: grid; gap: 1rem; }
@media (min-width: 900px) { .prio { grid-template-columns: repeat(3, 1fr); } }
.prio .card h3 { display: flex; align-items: center; gap: .5rem; }
.prio .card ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* ==========================================================================
   Seed pages: badges row + 12-month strip
   ========================================================================== */
.seed-badges { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; }
.seed-badges .badge { font-size: .85rem; padding: .3rem .8rem; }
.strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin: .5rem 0 .4rem; }
.strip div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .45rem .2rem .5rem; text-align: center; font-size: .78rem; line-height: 1.3; min-width: 0; }
.strip div b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip div i { display: block; height: 6px; border-radius: 3px; margin: .35rem .2rem 0; background: var(--surface-2); }
.strip div i.s { background: var(--paddy); } .strip div i.h { background: var(--butter-2); } .strip div i.d { background: var(--soil); width: 8px; height: 8px; border-radius: 50%; margin: .35rem auto 0; }
.strip div.now { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
@media (max-width: 700px) { .strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.strip-key { font-size: .82rem; color: var(--muted); }
