/* ==========================================================================
   Grow Native FL v2.5 — Living Field Guide + Motion Lab + Smart Yard Studio
   ========================================================================== */

@view-transition {
  navigation: auto;
}

:root {
  color-scheme: light dark;
  --bg: #f8f4e8;
  --bg-elev: #fffdf7;
  --bg-muted: #efe9d6;
  --canopy: #081c12;
  --canopy-mid: #103221;
  --pine: #164e34;
  --teal: #177867;
  --teal-bright: #209e88;
  --gold: #dca016;
  --gold-bright: #f2be3d;
  --gold-soft: rgba(220, 160, 22, 0.16);
  --coral: #d9512c;
  --ink: #17251c;
  --ink-soft: #4a5e51;
  --line: rgba(22, 78, 52, 0.15);
  --line-strong: rgba(22, 78, 52, 0.28);
  --warn-bg: #fdf1d6;
  --warn-ink: #7d4e04;
  --warn-line: #d6931e;
  --ffl-bg: rgba(23, 120, 103, 0.12);
  --ffl-ink: #125d50;
  --ffl-line: rgba(23, 120, 103, 0.35);
  --header-bg: rgba(248, 244, 232, 0.85);
  --shadow-sm: 0 4px 18px rgba(8, 28, 18, 0.06);
  --shadow-lg: 0 24px 55px rgba(8, 28, 18, 0.14);
  --radius: 18px;
  --maxw: 1240px;
}

:root[data-theme="dark"] {
  --bg: #06110b;
  --bg-elev: #0c1e15;
  --bg-muted: #122a1e;
  --canopy: #040b07;
  --canopy-mid: #0c2217;
  --pine: #6fd3a3;
  --teal: #49cdb6;
  --teal-bright: #6ae0cb;
  --gold: #f0b93d;
  --gold-bright: #fad165;
  --gold-soft: rgba(240, 185, 61, 0.16);
  --coral: #f07b55;
  --ink: #eef4ec;
  --ink-soft: #a6bcad;
  --line: rgba(111, 211, 163, 0.16);
  --line-strong: rgba(111, 211, 163, 0.32);
  --warn-bg: rgba(240, 185, 61, 0.12);
  --warn-ink: #f8d27d;
  --warn-line: rgba(240, 185, 61, 0.45);
  --ffl-bg: rgba(73, 205, 182, 0.14);
  --ffl-ink: #7ae5d3;
  --ffl-line: rgba(73, 205, 182, 0.42);
  --header-bg: rgba(6, 17, 11, 0.84);
  --shadow-sm: 0 6px 22px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 26px 65px rgba(0, 0, 0, 0.56);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: clip; max-width: 100%; }

body {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.62;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4 {
  font-family: "Bitter", Georgia, serif;
  line-height: 1.13;
  margin: 0;
  letter-spacing: -0.015em;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-bright); }
[id] { scroll-margin-top: 90px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Scroll Progress & Glass Header ---------- */
.scroll-rail {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  z-index: 95;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 11px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-lockup .brand-svg { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.brand-lockup:hover .brand-svg { transform: rotate(-4deg) scale(1.06); }
.brand-words { display: flex; flex-direction: column; }
.brand-title { font-family: "Bitter", serif; font-weight: 800; font-size: 1.14rem; line-height: 1.05; }
.brand-title em { font-style: normal; color: var(--gold); }
.brand-sub { font-size: 0.63rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 10px;
  border-radius: 9px;
  transition: color 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--gold-soft);
}

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--ink);
  border-radius: 10px;
  padding: 7px 11px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.icon-btn:hover { border-color: var(--teal); transform: translateY(-1px); }
.mobile-menu-btn { display: none; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}
@media (max-width: 520px) {
  .nav-bar { padding: 10px 14px; gap: 8px; }
  .brand-lockup .brand-svg { width: 32px; height: 32px; }
  .brand-title { font-size: 1.02rem; }
  .brand-sub { font-size: 0.56rem; letter-spacing: 0.1em; }
  #theme-label { display: none; }
  .wrap { padding: 0 16px; }
}

.mobile-drawer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 12px 18px 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.mobile-drawer a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-muted);
}

/* ---------- Buttons & Labels ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  border-radius: 12px;
  padding: 12px 20px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gold);
  color: #191202;
  box-shadow: 0 8px 24px rgba(220, 160, 22, 0.3);
}
.btn-primary:hover { background: var(--gold-bright); color: #191202; }
.btn-outline {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--teal); color: var(--pine); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

/* ---------- Splashy Launch Hero ---------- */
.launch-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(540px, 76vh, 760px);
  display: flex;
  align-items: center;
  background: var(--canopy);
  color: #f4f1e6;
  border-bottom: 3px solid var(--gold);
}
.hero-bg-photo {
  position: absolute;
  inset: -6% 0;
  background-size: cover;
  background-position: center;
  opacity: 0.34;
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.04);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(6, 18, 12, 0.94) 18%, rgba(8, 28, 18, 0.76) 56%, rgba(8, 28, 18, 0.54) 100%);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 58px 0 54px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid rgba(242, 190, 61, 0.45);
  background: rgba(242, 190, 61, 0.12);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}
.launch-hero h1 {
  font-size: clamp(2.45rem, 5.2vw, 4.1rem);
  font-weight: 800;
  color: #fcfaf2;
  margin-bottom: 16px;
}
.launch-hero h1 .accent {
  background: linear-gradient(92deg, #6fd3a3, #f2be3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.launch-hero .lead {
  font-size: 1.08rem;
  color: #dbe6da;
  max-width: 36em;
  margin: 0 0 26px;
}
.hero-glass-panel {
  background: rgba(8, 24, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(111, 211, 163, 0.28);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.48);
  display: grid;
  gap: 14px;
}
.hero-glass-photo {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-glass-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-stats-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hero-stat-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(111, 211, 163, 0.18);
  border-radius: 12px;
  padding: 11px 13px;
}
.hero-stat-tile b { display: block; font-family: "Bitter", serif; font-size: 1.35rem; color: var(--gold-bright); line-height: 1.05; }
.hero-stat-tile span { display: block; font-size: 0.76rem; color: #c4d6c4; margin-top: 2px; }
@media (max-width: 920px) { .hero-content { grid-template-columns: 1fr; } }

/* ---------- Photorealistic Before/After Transformation Slider ---------- */
.ba-shell {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.ba-viewport {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  user-select: none;
  touch-action: pan-y;
  border: 1px solid var(--line-strong);
  background: #081c12;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-before-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
}
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--gold-bright);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1202;
  border: 3px solid #fcfaf2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  z-index: 5;
}
.ba-tag {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(6, 18, 12, 0.8);
  color: #fcfaf2;
  backdrop-filter: blur(8px);
  z-index: 4;
}
.ba-tag.left { left: 14px; }
.ba-tag.right { right: 14px; border: 1px solid rgba(111, 211, 163, 0.45); color: #8be8bd; }
.ba-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 760px) { .ba-metrics { grid-template-columns: repeat(2, 1fr); } }
.ba-metric {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 13px 14px;
}
.ba-metric b { display: block; font-family: "Bitter", serif; font-size: 1.15rem; color: var(--pine); }
.ba-metric span { font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- Launch Portal Bento Cards (3D Tilt Ready) ---------- */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 820px) { .portal-grid { grid-template-columns: 1fr; } }

.portal-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.28s ease;
  transform-style: preserve-3d;
}
.portal-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
}
.portal-media {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background: var(--canopy);
}
.portal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.portal-card:hover .portal-media img { transform: scale(1.06); }
.portal-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.portal-body h3 { font-size: 1.32rem; color: var(--pine); }
.portal-body p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.portal-go { font-size: 0.88rem; font-weight: 700; color: var(--teal); }
@media (max-width: 560px) { .portal-card { grid-template-columns: 1fr; } .portal-media { min-height: 170px; } }

/* ---------- Shared Grids & Cards ---------- */
section.section { padding: 56px 0 8px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.section-head-copy { max-width: 44em; }
.section-head h1, .section-head h2 { color: var(--pine); margin-bottom: 8px; }
.section-head p { color: var(--ink-soft); margin: 0; }

.bento-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 940px) { .bento-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .bento-3, .bento-2 { grid-template-columns: 1fr; } }

.surface-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, border-color 0.2s ease, box-shadow 0.24s ease;
}
.surface-card:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: var(--shadow-lg); }

/* ---------- Plant Atlas Cards & Origin Badges ---------- */
.matcher-box {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.matcher-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .matcher-controls { grid-template-columns: 1fr; } }
.filter-label { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 8px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; }
.pill-btn {
  font: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.18s ease;
}
.pill-btn:hover { border-color: var(--teal); color: var(--ink); }
.pill-btn[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: #faf6ea; }
:root[data-theme="dark"] .pill-btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #161102; }

.plant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .plant-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plant-grid { grid-template-columns: 1fr; } }

.plant-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.28s ease;
}
.plant-card:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: var(--shadow-lg); }
.plant-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-muted); }
.plant-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.plant-card:hover .plant-card-media img { transform: scale(1.05); }
.plant-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(8, 22, 15, 0.8);
  color: #f4f1e6;
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 999px;
}
.plant-card-origin {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.plant-card-origin.native { background: rgba(22, 78, 52, 0.88); color: #a7f3d0; }
.plant-card-origin.ffl { background: rgba(23, 120, 103, 0.9); color: #eefdf9; }

.plant-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.plant-card-body h3 { font-size: 1.15rem; color: var(--pine); }
.plant-sci { font-style: italic; font-size: 0.86rem; color: var(--ink-soft); }
.plant-facts { font-size: 0.85rem; color: var(--ink-soft); margin: 4px 0 8px; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.badge { font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg-muted); color: var(--pine); }
.badge.host { background: rgba(23, 120, 103, 0.14); color: var(--teal); }
.badge.gold { background: var(--gold-soft); color: var(--warn-ink); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.badge.ffl { background: var(--ffl-bg); color: var(--ffl-ink); border: 1px solid var(--ffl-line); }

/* ---------- Smart Yard Drawing Studio (/yard-studio/) ---------- */
.studio-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 22px;
  align-items: start;
}
.studio-layout > *, .bento-2 > *, .bento-3 > *, .portal-grid > *, .plant-hero-split > * {
  min-width: 0;
}
@media (max-width: 1020px) { .studio-layout { grid-template-columns: 1fr; } }

.studio-panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  min-width: 0;
}
.studio-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.studio-toolbar select, .ai-select-row select { max-width: 100%; min-width: 0; }
.ai-select-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 0.78rem;
}
@media (max-width: 600px) {
  .ai-select-row { grid-template-columns: 1fr; }
  .studio-panel { padding: 14px; }
}
.studio-canvas-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--line-strong);
  background: #0a1e14;
  aspect-ratio: 4 / 3;
}
#yard-desk-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
}
.studio-hud-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}
.palette-scroll {
  max-height: 310px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-right: 4px;
}
@media (max-width: 520px) { .palette-scroll { grid-template-columns: 1fr; } }
.palette-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.palette-item:hover,
.palette-item.is-selected {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-1px);
}
.palette-item img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.ai-dropzone {
  border: 1.5px dashed var(--teal);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  background: rgba(23, 120, 103, 0.06);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ai-dropzone:hover { background: rgba(23, 120, 103, 0.12); border-color: var(--gold); }

/* ---------- Callouts, Concept Visualizers & Subpages ---------- */
.callout {
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
}
.callout h3 { font-size: 1.06rem; margin-bottom: 6px; color: var(--warn-ink); }
.callout p { margin: 0; font-size: 0.94rem; }

.visualizer-shell { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-sm); }
.visualizer-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .visualizer-grid { grid-template-columns: 1fr; } }
@media (max-width: 740px) { .season-layout { grid-template-columns: 1fr !important; } }

.svg-stage { border-radius: 16px; border: 1px solid var(--line); background: var(--canopy); padding: 12px; overflow: hidden; }
.inspector-pane { border-radius: 16px; border: 1px solid var(--line); background: var(--bg); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }

@keyframes dropPercolate { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 0.9; } 85% { opacity: 0.85; } 100% { transform: translateY(84px); opacity: 0; } }
@keyframes pulseSpot { 0% { transform: scale(0.88); opacity: 0.72; } 75% { transform: scale(1.48); opacity: 0; } 100% { transform: scale(1.48); opacity: 0; } }
@keyframes wingBeat { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(0.42); } }
@keyframes floatGentle { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-5px); } }
.anim-drop-a { animation: dropPercolate 2.1s ease-in infinite; }
.anim-drop-b { animation: dropPercolate 2.1s ease-in 0.7s infinite; }
.anim-drop-c { animation: dropPercolate 2.1s ease-in 1.4s infinite; }
.anim-pulse { transform-origin: center; animation: pulseSpot 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) infinite; }
.anim-wing { transform-origin: center; animation: wingBeat 0.36s ease-in-out infinite; }
.anim-float { animation: floatGentle 4.8s ease-in-out infinite; }

.bed-node { cursor: pointer; transition: transform 0.2s ease, opacity 0.25s ease; }
.bed-node:hover, .bed-node.is-active { filter: drop-shadow(0 0 8px rgba(242, 190, 61, 0.75)); }

.video-ready-card {
  border: 1.5px dashed rgba(217, 81, 44, 0.45);
  background: rgba(217, 81, 44, 0.05);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.video-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--coral); }

.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumb a { font-weight: 600; text-decoration: none; }
.plant-hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 820px) { .plant-hero-split { grid-template-columns: 1fr; } }
.plant-photo-showcase { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.plant-photo-showcase img { width: 100%; max-height: 440px; object-fit: cover; }
.photo-credit-bar { padding: 12px 16px; font-size: 0.8rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.spec-table th { width: 130px; color: var(--pine); font-family: "Bitter", serif; }
.prose { max-width: 74ch; }
.prose h2, .prose h3 { color: var(--pine); margin: 28px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 6px 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .anim-drop-a, .anim-drop-b, .anim-drop-c, .anim-pulse, .anim-wing, .anim-float { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .plant-card:hover, .surface-card:hover, .portal-card:hover, .btn:hover { transform: none !important; }
}

footer.site-footer {
  margin-top: 72px;
  background: var(--canopy);
  color: #cbd9cb;
  border-top: 3px solid var(--gold);
  padding: 46px 0 32px;
}
footer.site-footer h3 { color: #fcfaf2; font-size: 1.05rem; margin-bottom: 10px; }
footer.site-footer a { color: var(--gold-bright); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 28px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; font-size: 0.9rem; }
.footer-grid p { font-size: 0.9rem; margin: 0; }
.footer-fine {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  color: #9cb29d;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
