/* ============================================
   CARBON FOOTPRINT — Design System
   Theme: Light Green / White / Cream
   ============================================ */



/* ── Tokens ── */
:root {
  --paper: #FFFDF7;
  --paper-2: #F5F1EB;
  --ink: #2D3B2D;
  --ink-soft: #6B7E6B;
  --line: #D6DFD0;
  --clay: #3A7D44;
  --clay-soft: rgba(58, 125, 68, 0.08);
  --moss: #5BA66B;
  --moss-soft: rgba(91, 166, 107, 0.1);
  --rust: #8B6914;
  --card: #FFFFFF;
  --shadow: 0 4px 20px 0 rgba(58, 125, 68, 0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --glow: 0 16px 48px rgba(45, 112, 61, 0.14);
  --gradient: linear-gradient(135deg, #3A7D44, #5BA66B, #8BC34A);
  --gradient-soft: linear-gradient(135deg, rgba(58,125,68,0.06), rgba(91,166,107,0.06));
}

html.dark {
  --paper: #0F1A0F;
  --paper-2: #162016;
  --ink: #E0ECDE;
  --ink-soft: #8FA88E;
  --line: #2A3D2A;
  --clay: #5BA66B;
  --clay-soft: rgba(91, 166, 107, 0.12);
  --moss: #8BC34A;
  --moss-soft: rgba(139, 195, 74, 0.12);
  --rust: #D4A843;
  --card: #1A281A;
  --shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.3);
  --gradient: linear-gradient(135deg, #5BA66B, #8BC34A, #CDDC39);
  --gradient-soft: linear-gradient(135deg, rgba(91,166,107,0.1), rgba(139,195,74,0.1));
}

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

/* GPU acceleration for animated elements */
.anim-fade-up,
.anim-slide-right,
.leaf,
.preview-card,
.action-card,
.fc-node,
.method-card,
.stat-card {
  will-change: transform, opacity;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: background .4s ease, color .4s ease;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: radial-gradient(circle at 8% 10%, rgba(91,166,107,.07), transparent 25rem), radial-gradient(circle at 92% 65%, rgba(139,105,20,.045), transparent 28rem);
}

::selection {
  background: var(--clay-soft);
  color: var(--clay);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Typography ── */
.mono {
  font-family: 'IBM Plex Mono', monospace;
}

.display {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Header / Navigation ── */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  box-shadow: 0 8px 30px rgba(30, 65, 35, .025);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  transition: color .2s;
}

.brand:hover {
  color: var(--clay);
}

.brand svg {
  flex: none;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.navlinks a {
  text-decoration: none;
  transition: color .2s;
  position: relative;
  padding: 4px 0;
}

.navlinks a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clay);
  border-radius: 1px;
  transition: width .25s ease;
}

.navlinks a:hover {
  color: var(--ink);
}

.navlinks a:hover::after {
  width: 100%;
}

.navlinks a.active {
  color: var(--clay);
}

.navlinks a.active::after {
  width: 100%;
}

/* Theme Toggle */
.toggle {
  width: 54px;
  height: 30px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  position: relative;
  cursor: pointer;
  flex: none;
  transition: background .3s, border-color .3s;
}

.toggle:hover {
  border-color: var(--clay);
}

.toggle .dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--clay);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), background .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
}

html.dark .toggle .dot {
  transform: translateX(24px);
  background: var(--moss);
}

/* ── Buttons ── */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--clay);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(58, 125, 68, 0.25);
}

.btn-primary:hover {
  background: #2E6B38;
  box-shadow: 0 4px 16px rgba(58, 125, 68, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--clay);
  background: var(--clay-soft);
  color: var(--clay);
}

/* ── Eyebrow ── */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 500;
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
}

/* ── Section Shell ── */
section {
  padding: 100px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

h2.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ── Hero ── */
.hero {
  padding: 100px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  gap: 48px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(91,166,107,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

h1.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.05;
  margin: 0 0 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

h1.hero-title em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 14px;
  font-family: 'IBM Plex Mono', monospace;
}

/* Hero footprint graphic */
.print-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.depth-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}

.depth-label b {
  color: var(--clay);
  font-size: 16px;
  display: block;
}

/* ── Stat Counter Bar ── */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat-bar-item {
  padding: 32px 28px;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background .2s;
}

.stat-bar-item:last-child {
  border-right: none;
}

.stat-bar-item:hover {
  background: var(--clay-soft);
}

.stat-bar-num {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--clay);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-bar-label {
  font-size: 13px;
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
}

/* ── Preview Cards (Landing) ── */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.preview-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.preview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--clay);
}

.preview-card:hover::before {
  transform: scaleX(1);
}

.preview-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--moss-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--clay);
}

.preview-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 600;
}

.preview-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ── Calculator ── */
.calc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
}

.field label .val {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--clay);
  font-weight: 600;
}

select,
input[type=range] {
  width: 100%;
}

select {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%233A7D44'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color .2s;
}

select:hover {
  border-color: var(--clay);
}

select:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px var(--clay-soft);
}

input[type=range] {
  -webkit-appearance: none;
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  outline: none;
  transition: background .2s;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--clay);
  cursor: pointer;
  border: 3px solid var(--card);
  box-shadow: 0 0 0 1px var(--clay), 0 2px 6px rgba(58,125,68,0.2);
  transition: transform .15s;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.field-wide {
  grid-column: 1/-1;
}

.pillrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: var(--paper);
  transition: all .2s ease;
  user-select: none;
}

.pill.active {
  background: var(--clay);
  color: #FFFFFF;
  border-color: var(--clay);
  box-shadow: 0 2px 8px rgba(58,125,68,0.25);
}

.pill:hover:not(.active) {
  border-color: var(--clay);
  background: var(--clay-soft);
  color: var(--clay);
}

.calc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── Results ── */
#results {
  display: none;
}

#results.show {
  display: block;
}

.result-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .2s, box-shadow .2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-card .num {
  font-family: 'Fraunces', serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--clay);
  line-height: 1;
}

.stat-card .unit {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.stat-card .cmp {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 16px;
  line-height: 1.6;
}

/* Bar chart */
.bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.bar-label {
  width: 110px;
  font-size: 13px;
  color: var(--ink-soft);
  flex: none;
  font-family: 'IBM Plex Mono', monospace;
}

.bar-track {
  flex: 1;
  height: 10px;
  background: var(--paper-2);
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 6px;
  width: 0%;
  transition: width 1s cubic-bezier(.4, 0, .2, 1);
}

.bar-pct {
  width: 44px;
  text-align: right;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--ink-soft);
  flex: none;
}

/* ── Action Cards ── */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.action-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all .25s ease;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--clay);
}

.action-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--clay);
  font-weight: 600;
}

.action-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  margin: 0;
  font-weight: 600;
}

.action-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.action-impact {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--clay);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-weight: 500;
}

/* ── Methodology ── */
.method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.method ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.method li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.method li .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  background: var(--moss-soft);
  color: var(--clay);
  padding: 4px 10px;
  border-radius: 6px;
  flex: none;
  margin-top: 2px;
  font-weight: 600;
}

/* ── Research Impact Section ── */
.research-bg {
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ri-dash.pie-view {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.ri-pie-container {
  position: relative;
  width: 150px;
  height: 150px;
  flex: none;
}

.ri-pie {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  border-radius: 50%;
}

.ri-pie circle {
  fill: transparent;
  stroke-width: 32;
  transition: stroke-dasharray 1s ease-out, stroke-dashoffset 1s ease-out;
}

.ri-pie-center {
  position: absolute;
  inset: 22px;
  background: var(--card);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ri-pie-center .num {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--clay);
  line-height: 1;
  margin-bottom: 2px;
  letter-spacing: -0.03em;
}

.ri-pie-center .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.ri-legend {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.ri-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-soft);
}

.ri-legend-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
}

.ri-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.ri-legend-val {
  font-weight: 600;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
}

.ri-controls {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.ri-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ri-search {
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--paper);
  color: var(--ink);
  width: 240px;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s, box-shadow .2s;
}

.ri-search:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px var(--clay-soft);
}

.flowchart-container {
  position: relative;
  padding: 20px 0;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--clay) var(--paper);
}

.flowchart-container::-webkit-scrollbar {
  height: 6px;
}

.flowchart-container::-webkit-scrollbar-track {
  background: var(--paper-2);
  border-radius: 4px;
}

.flowchart-container::-webkit-scrollbar-thumb {
  background: var(--clay);
  border-radius: 4px;
}

.fc-node {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 280px;
  max-width: 280px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.fc-node::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.fc-node:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--clay);
}

.fc-node:hover::before {
  transform: scaleX(1);
}

.fc-node.dimmed {
  opacity: 0.4;
}

.fc-cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.fc-title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.02em;
}

.fc-problem {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ── Panel / Modal ── */
.ri-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 460px;
  max-width: 100vw;
  height: 100vh;
  background: var(--card);
  z-index: 100;
  box-shadow: -10px 0 40px rgba(58, 125, 68, 0.1);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}

.ri-panel.open {
  right: 0;
}

.ri-panel-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--paper);
}

.ri-panel-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--clay);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0;
}

.close-panel {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--ink);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 6px;
  transition: background .2s;
}

.close-panel:hover {
  background: var(--clay-soft);
  color: var(--clay);
}

.ri-panel-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ri-flow-step {
  position: relative;
  padding-left: 28px;
}

.ri-flow-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: -30px;
  width: 2px;
  background: var(--line);
}

.ri-flow-step:last-child::before {
  display: none;
}

.ri-flow-step::after {
  content: '';
  position: absolute;
  left: -4px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clay);
  border: 2px solid var(--card);
}

.ri-flow-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.ri-flow-val {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
  font-weight: 500;
}

.ri-kpi {
  background: var(--moss-soft);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin: 10px 0;
  border: 1px solid var(--line);
}

.ri-kpi-num {
  font-family: 'Fraunces', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--clay);
  line-height: 1;
  margin-bottom: 8px;
}

.ri-kpi-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.ri-panel-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.ri-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 59, 45, 0.4);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}

.ri-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--paper);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .2s;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--clay);
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(3deg); }
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translate3d(40px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.anim-fade-up {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

.anim-fade-up-1 { animation-delay: 0.1s; }
.anim-fade-up-2 { animation-delay: 0.25s; }
.anim-fade-up-3 { animation-delay: 0.4s; }
.anim-fade-up-4 { animation-delay: 0.55s; }
.anim-fade-up-5 { animation-delay: 0.7s; }

.anim-slide-right {
  opacity: 0;
  animation: slideInRight 0.7s ease forwards;
  animation-delay: 0.3s;
}

/* Floating leaf particles */
.leaf-particle {
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.leaf-particle svg {
  width: 100%;
  height: 100%;
  fill: var(--clay);
}

/* ── Methodology Cards (for methodology page) ── */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.method-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: all .25s ease;
}

.method-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.method-card .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  background: var(--moss-soft);
  color: var(--clay);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 14px;
  font-weight: 600;
}

.method-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  margin: 0 0 10px;
  font-weight: 600;
}

.method-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ── WHO Compliance Dashboard ── */
.compliance-box {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compliance-alert {
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-left: 4px solid #DC2626;
  border-radius: var(--radius);
  padding: 20px 24px;
}

.compliance-alert-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #DC2626;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compliance-alert p {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 12px;
}

.compliance-alt {
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--card);
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--line);
  margin: 0;
  display: flex;
  gap: 8px;
}

.compliance-success {
  background: var(--moss-soft);
  border: 1px solid var(--moss);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--clay);
  font-weight: 600;
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--gradient-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}

.cta-banner h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.cta-banner p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 24px;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

/* ── Season Selector ── */
.season-info {
  font-size: 12px;
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 4px;
  font-style: italic;
  min-height: 18px;
}

.pill[data-val="summer"] .pill-icon,
.pill[data-val="monsoon"] .pill-icon,
.pill[data-val="winter"] .pill-icon,
.pill[data-val="autumn"] .pill-icon { 
  margin-right: 4px;
}

/* ── Mobile Menu ── */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
}

.mobile-toggle svg {
  display: block;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .preview-grid,
  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .wrap {
    padding: 0 20px;
  }

  .hero {
    padding: 60px 0 40px;
  }

  h1.hero-title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .calc {
    padding: 24px;
  }

  .result-top {
    grid-template-columns: 1fr;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

  .method {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .stat-bar {
    grid-template-columns: 1fr;
  }

  .stat-bar-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 20px;
  }

  .stat-bar-item:last-child {
    border-bottom: none;
  }

  .navlinks {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    font-size: 20px;
    z-index: 90;
    display: none;
  }

  .navlinks.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
    z-index: 91;
  }

  .ri-dash.pie-view {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    padding: 20px;
  }

  .ri-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .ri-search {
    width: 100%;
  }

  .flowchart-container {
    flex-direction: column;
    padding-bottom: 20px;
    align-items: stretch;
  }

  .fc-node {
    min-width: 100%;
    max-width: 100%;
  }

  .cta-banner {
    padding: 32px 20px;
  }

  section {
    padding: 60px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0 30px;
  }

  h1.hero-title {
    font-size: 28px;
  }

  .hero p.lede {
    font-size: 15px;
  }

  .btn {
    padding: 11px 20px;
    font-size: 13.5px;
    width: 100%;
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
  }

  .pillrow {
    gap: 6px;
  }

  .pill {
    padding: 7px 14px;
    font-size: 12px;
  }

  .stat-card .num {
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Interface refinement: elevated analytical workspace ── */
.hero {
  min-height: 650px;
  padding: 88px 0 72px;
  display: block;
  text-align: left;
}

.hero::before {
  top: -38%;
  left: 70%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(91,166,107,.16) 0%, rgba(91,166,107,.045) 34%, transparent 68%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
}

h1.hero-title {
  max-width: 720px;
  font-family: 'Fraunces', serif;
  font-size: clamp(52px, 5.3vw, 76px);
  letter-spacing: -.055em;
}

.hero p.lede { margin-left: 0; font-size: 16px; }
.hero-cta { justify-content: flex-start; }
.hero-note { letter-spacing: .015em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--clay) 25%, transparent);
  background: color-mix(in srgb, var(--card) 72%, transparent);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(36, 85, 46, .04);
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 24px;
  color: var(--ink-soft);
  font: 500 11px/1.3 'IBM Plex Mono', monospace;
}

.signal-row span { display: inline-flex; align-items: center; gap: 7px; }
.signal-row i, .hero-panel-label span {
  width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #62b86c;
  box-shadow: 0 0 0 4px rgba(98,184,108,.16); animation: signal-pulse 2.2s ease infinite;
}

.print-wrap {
  min-height: 470px;
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--line) 92%, transparent);
  border-radius: 26px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--card) 88%, transparent), color-mix(in srgb, var(--moss-soft) 52%, var(--card)));
  box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.65);
  overflow: hidden;
}

.print-wrap::before, .print-wrap::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
}
.print-wrap::before { background-image: linear-gradient(rgba(58,125,68,.065) 1px, transparent 1px), linear-gradient(90deg, rgba(58,125,68,.065) 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(to bottom, #000, transparent 88%); }
.print-wrap::after { width: 240px; height: 240px; inset: auto -80px -100px auto; border-radius: 50%; background: rgba(91,166,107,.13); filter: blur(12px); }
.print-wrap #printSvg { width: min(85%, 390px); height: auto; position: relative; z-index: 1; }

.hero-panel-label { position: absolute; top: 22px; left: 24px; z-index: 2; display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font: 600 10px/1 'IBM Plex Mono', monospace; letter-spacing: .1em; }
.hero-panel-label span { width: 6px; height: 6px; }
.depth-label { z-index: 2; bottom: 26px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--card) 75%, transparent); backdrop-filter: blur(10px); white-space: nowrap; }

.hero-orbit-card { position: absolute; z-index: 2; width: 136px; padding: 12px; border: 1px solid color-mix(in srgb, var(--line) 90%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--card) 82%, transparent); box-shadow: 0 12px 28px rgba(31,78,39,.10); backdrop-filter: blur(10px); }
.hero-orbit-card small { display: block; margin-bottom: 4px; color: var(--ink-soft); font: 600 9px/1 'IBM Plex Mono', monospace; letter-spacing: .07em; }
.hero-orbit-card strong { font: 600 18px/1.2 'Fraunces', serif; }
.hero-orbit-card div { height: 4px; margin-top: 10px; border-radius: 4px; overflow: hidden; background: var(--moss-soft); }
.hero-orbit-card b { display: block; height: 100%; border-radius: inherit; background: var(--gradient); }
.orbit-one { top: 88px; right: 16px; }.orbit-one b { width: 68%; }.orbit-two { bottom: 76px; left: 13px; }.orbit-two b { width: 82%; }

.stat-bar, .calc, .method-card, .preview-card, .action-card { box-shadow: 0 14px 34px rgba(37, 81, 43, .07); }
.stat-bar { border-radius: 20px; }
.stat-bar-item { position: relative; }
.stat-bar-item:hover { background: linear-gradient(135deg, var(--clay-soft), transparent); }
.preview-card, .method-card, .action-card { border-radius: 18px; }
.preview-card:hover, .method-card:hover, .action-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(37, 81, 43, .12); }
.calc { border-radius: 20px; }
.field input[type='range'] { accent-color: var(--clay); }

@keyframes signal-pulse { 50% { box-shadow: 0 0 0 7px rgba(98,184,108,0); } }

@media (max-width: 860px) {
  .hero { min-height: 0; padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero p.lede { margin-left: 0; }
  .print-wrap { min-height: 380px; }
}

@media (max-width: 480px) {
  .hero-orbit-card { transform: scale(.8); }.orbit-one { transform-origin: top right; }.orbit-two { transform-origin: bottom left; }
  .signal-row { gap: 9px 12px; }
}

/* Interactive controls share the same precise, product-like language. */
select, input, button { font: inherit; }

.field select {
  min-height: 46px;
  border-radius: 10px;
  border-color: var(--line);
  background-color: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.field select:focus, .field input:focus-visible, .pill:focus-visible,
.btn:focus-visible, .navlinks a:focus-visible, .toggle:focus-visible {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--clay) 16%, transparent);
}

.field select:hover { border-color: color-mix(in srgb, var(--clay) 55%, var(--line)); }
.pill { border-radius: 999px; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.pill:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(36,85,46,.08); }
.pill.active { box-shadow: 0 7px 17px rgba(58,125,68,.17); }

/* Softer information density for research and result surfaces. */
.result-card, .stat-card, .chart-card, .research-card, .insight-card {
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(37,81,43,.07);
}

table { border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 12px; }
th { background: color-mix(in srgb, var(--moss-soft) 65%, var(--card)); }
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: var(--clay-soft); }

footer { margin-top: 28px; background: color-mix(in srgb, var(--paper-2) 42%, var(--paper)); }

/* ── Organic, eco-forward character ── */
:root {
  --sky: #d9f1ee;
  --fern: #267451;
  --sun: #e6bb58;
}

html.dark { --sky: #143837; --fern: #7bcf9b; --sun: #edc96a; }

.hero {
  background: linear-gradient(135deg, color-mix(in srgb, var(--paper) 88%, var(--sky)) 0%, var(--paper) 56%, color-mix(in srgb, var(--paper) 86%, #e3f1d7) 100%);
}

.hero::before { background: radial-gradient(circle, rgba(123, 207, 155, .23), rgba(230, 187, 88, .08) 30%, transparent 69%); }
.hero-title em { color: var(--fern); font-style: italic; }
.btn-primary { background: linear-gradient(135deg, var(--fern), var(--clay)); box-shadow: 0 10px 22px rgba(38,116,81,.22); }
.btn-primary:hover { background: linear-gradient(135deg, #1d5d41, var(--fern)); transform: translateY(-3px); }
.preview-icon { background: linear-gradient(135deg, rgba(123,207,155,.22), rgba(230,187,88,.14)); }
.cta-banner { position: relative; overflow: hidden; background: linear-gradient(120deg, color-mix(in srgb, var(--moss-soft) 68%, var(--card)), color-mix(in srgb, var(--sky) 36%, var(--card))); }
.cta-banner::after { content: '✦'; position: absolute; right: 8%; bottom: -34px; color: var(--fern); font-size: 130px; opacity: .09; transform: rotate(18deg); }

.eco-atmosphere { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; color: var(--fern); opacity: .58; }
.eco-vine { position: absolute; width: 230px; height: 330px; bottom: -67px; left: -32px; transform: rotate(-7deg); }
.eco-leaf { position: absolute; display: block; color: var(--fern); text-shadow: 0 7px 18px rgba(35,104,67,.12); }
.leaf-a { top: 18%; left: 8%; font-size: 19px; animation: drift-leaf 8s ease-in-out infinite; }
.leaf-b { top: 73%; left: 19%; font-size: 9px; color: var(--sun); animation: drift-leaf 10s ease-in-out infinite -4s; }
.leaf-c { top: 11%; right: 9%; font-size: 13px; color: var(--sun); animation: drift-leaf 7s ease-in-out infinite -2s; }

.print-wrap { background: linear-gradient(150deg, color-mix(in srgb, var(--card) 78%, var(--sky)), color-mix(in srgb, var(--card) 86%, #e5f4d8)); }
.print-wrap::before { background-image: radial-gradient(circle at 1px 1px, rgba(38,116,81,.14) 1px, transparent 0); background-size: 20px 20px; }
.hero-panel-label { color: var(--fern); }
.signal-row i, .hero-panel-label span { background: var(--fern); }
.orbit-one { animation: sway-card 6s ease-in-out infinite; }.orbit-two { animation: sway-card 7s ease-in-out infinite -2s; }

@keyframes drift-leaf { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(18px, -18px) rotate(25deg); } }
@keyframes sway-card { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

@media (max-width: 860px) { .eco-vine { left: -102px; opacity: .45; } .leaf-c { right: 4%; } }

/* ── Living planet & pointer trail ── */
.leaf-trail { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.trail-leaf {
  position: fixed;
  color: var(--fern);
  font-size: 18px;
  line-height: 1;
  translate: -50% -50%;
  opacity: .78;
  filter: drop-shadow(0 4px 5px rgba(28,102,67,.17));
  animation: trail-fall 1.15s cubic-bezier(.16,.75,.32,1) forwards;
}

@keyframes trail-fall {
  from { transform: rotate(0deg) scale(var(--scale)); opacity: .82; }
  to { transform: translate(var(--drift), 54px) rotate(var(--turn)) scale(0); opacity: 0; }
}

.earth-scene { position: absolute; z-index: 0; right: clamp(-210px, -12vw, -70px); top: 25px; width: min(52vw, 600px); aspect-ratio: 1; pointer-events: none; opacity: .52; }
.earth-glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(149,220,182,.38), transparent 66%); filter: blur(22px); animation: globe-breathe 7s ease-in-out infinite; }
.earth {
  position: absolute; inset: 14%; overflow: hidden; border-radius: 50%;
  background: radial-gradient(circle at 32% 27%, #d6f2ef 0 3%, transparent 3.5%), radial-gradient(circle at 30% 25%, #75bfcb 0, #3d95ad 28%, #1c6588 68%, #10425f 100%);
  box-shadow: inset -34px -20px 50px rgba(7,42,67,.55), inset 14px 10px 22px rgba(234,255,250,.35), 0 30px 60px rgba(29,99,108,.15);
  animation: earth-turn 24s linear infinite;
}
.earth::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(96deg, rgba(255,255,255,.09) 0 1px, transparent 1px 15px); mix-blend-mode: overlay; opacity: .5; }
.land { position: absolute; display: block; background: #63a861; border-radius: 45% 55% 50% 48% / 48% 40% 60% 52%; box-shadow: inset -8px -7px 10px rgba(28,98,48,.18); }
.land-one { width: 43%; height: 24%; top: 23%; left: 7%; transform: rotate(-17deg); }
.land-two { width: 29%; height: 38%; top: 48%; left: 35%; transform: rotate(23deg); }
.land-three { width: 27%; height: 18%; top: 17%; right: 5%; transform: rotate(-8deg); }
.earth-shade { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(110deg, transparent 44%, rgba(4,32,54,.4) 75%, rgba(4,32,54,.68)); }
@keyframes earth-turn { to { rotate: 360deg; } }
@keyframes globe-breathe { 50% { scale: 1.08; opacity: .65; } }

/* The inner pages retain a subtle sense of growth without competing with data. */
body:not(:has(.hero))::before, body:not(:has(.hero))::after { content: ''; position: fixed; border-radius: 50%; z-index: -1; pointer-events: none; filter: blur(1px); }
body:not(:has(.hero))::before { width: 310px; height: 310px; top: 14%; left: -155px; background: radial-gradient(circle, rgba(123,207,155,.13), transparent 68%); }
body:not(:has(.hero))::after { width: 360px; height: 360px; right: -190px; bottom: 8%; background: radial-gradient(circle, rgba(230,187,88,.11), transparent 68%); }

@media (max-width: 860px) { .earth-scene { right: -180px; top: 170px; width: 490px; opacity: .3; } }
@media (prefers-reduced-motion: reduce), (pointer: coarse) { .earth, .earth-glow, .orbit-one, .orbit-two { animation: none; } }

/* Real Earth asset: calmer and more credible than a CSS-drawn globe. */
.earth-scene { right: clamp(-130px, -7vw, -35px); top: 26px; width: min(52vw, 580px); opacity: .42; animation: earth-float 12s ease-in-out infinite; }
.earth-glow { inset: 13%; background: radial-gradient(circle, rgba(102, 210, 236, .26), transparent 64%); filter: blur(34px); }
.earth-image { position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: contain; filter: saturate(.83) contrast(.98); mix-blend-mode: multiply; }
html.dark .earth-image { opacity: .72; mix-blend-mode: screen; filter: saturate(.72) brightness(.82); }
.earth-scene .earth { display: none; }
@keyframes earth-float { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); } 50% { transform: translate3d(-12px, -14px, 0) rotate(1deg); } }
@media (max-width: 860px) { .earth-scene { right: -128px; top: 185px; width: 430px; opacity: .22; } }
@media (prefers-reduced-motion: reduce), (pointer: coarse) { .earth-scene { animation: none; } }

/* ── Design Thinking experience: future comparison, action, feedback ── */
.future-mirror { margin-top: 56px; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--sky) 34%, var(--card)), color-mix(in srgb, #eff8df 36%, var(--card))); box-shadow: 0 18px 42px rgba(33,90,57,.1); }
.mirror-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }.mirror-head .eyebrow { margin-bottom: 12px; }.mirror-head h2, .challenge-intro h2 { margin: 0; font: 600 clamp(24px, 3vw, 34px)/1.15 'Fraunces', serif; letter-spacing: -.03em; }.mirror-head p { max-width: 30ch; margin: 0; color: var(--ink-soft); font-size: 14px; }
.mirror-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }.future-card { min-height: 220px; padding: 28px; border-radius: 18px; display: flex; flex-direction: column; align-items: flex-start; }.future-card > span { color: var(--ink-soft); font: 600 10px/1 'IBM Plex Mono', monospace; letter-spacing: .09em; }.future-card strong { margin-top: 20px; font: 600 clamp(44px, 5vw, 64px)/.95 'Fraunces', serif; letter-spacing: -.06em; }.future-card small { margin-top: 8px; color: var(--ink-soft); font: 500 11px/1.3 'IBM Plex Mono', monospace; }.future-card p { margin: auto 0 0; color: var(--ink-soft); font-size: 14px; }.current-path { background: color-mix(in srgb, var(--paper) 76%, #eadfce); border: 1px solid color-mix(in srgb, var(--rust) 25%, var(--line)); }.greener-path { background: linear-gradient(145deg, var(--fern), var(--clay)); color: #fff; box-shadow: 0 14px 26px rgba(38,116,81,.23); }.greener-path > span, .greener-path small, .greener-path p { color: rgba(255,255,255,.76); }.future-arrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--card); color: var(--fern); font-size: 22px; box-shadow: 0 5px 15px rgba(34,85,48,.12); }.savings-chip { margin-top: 16px; padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,.16); font: 600 10px/1.3 'IBM Plex Mono', monospace; }
.challenge-box { margin-top: 32px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: 0 14px 34px rgba(37,81,43,.07); }.challenge-intro { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 26px; }.challenge-intro .eyebrow { margin-bottom: 10px; }.challenge-intro p { margin: 9px 0 0; color: var(--ink-soft); font-size: 14px; }.challenge-sprout { display: grid; flex: none; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--moss-soft); font-size: 25px; }.challenge-list { display: grid; gap: 10px; }.challenge-item { display: grid; grid-template-columns: 24px 1fr; gap: 13px; align-items: start; padding: 15px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }.challenge-item:hover { transform: translateX(3px); border-color: var(--clay); }.challenge-item input { position: absolute; opacity: 0; }.challenge-check { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid var(--line); border-radius: 7px; color: transparent; transition: all .2s; }.challenge-item:has(input:checked) { background: var(--moss-soft); border-color: var(--moss); }.challenge-item:has(input:checked) .challenge-check { color: #fff; background: var(--fern); border-color: var(--fern); }.challenge-item b { display: block; font-size: 14px; }.challenge-item small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.5; }.challenge-progress { margin: 17px 0 0; color: var(--fern); font: 600 11px/1.4 'IBM Plex Mono', monospace; }
.feedback-box { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: 24px; padding: 20px 22px; border: 1px dashed color-mix(in srgb, var(--clay) 42%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--paper) 70%, transparent); }.feedback-box strong, .feedback-box span { display: block; }.feedback-box strong { font-size: 14px; }.feedback-box span, .feedback-box p { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; }.feedback-actions { display: flex; flex-wrap: wrap; gap: 8px; }.feedback-actions button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-soft); font-size: 12px; cursor: pointer; transition: all .2s; }.feedback-actions button:hover, .feedback-actions button.selected { border-color: var(--fern); background: var(--moss-soft); color: var(--fern); }
@media (max-width: 720px) { .mirror-head, .feedback-box { align-items: flex-start; flex-direction: column; }.mirror-grid { grid-template-columns: 1fr; }.future-arrow { margin: -8px auto; rotate: 90deg; z-index: 1; }.future-card { min-height: 190px; }.challenge-intro { gap: 12px; }.challenge-sprout { width: 42px; height: 42px; font-size: 20px; } }
