/* RxWarehouse — Sensatia Executive Warehouse Control Ecosystem
   Palette: Deep Forest (#102b25), Midnight Pine (#0b211c), Brushed Gold (#b99b60), Warm Ivory (#f7f4ed) */

:root {
  --forest: #102b25;
  --deep: #0b211c;
  --pine: #193b32;
  --sage: #2b5448;
  --gold: #b99b60;
  --gold-light: #dfd0a8;
  --gold-bright: #e7d4a1;
  --ivory: #f7f4ed;
  --paper: #fbf9f3;
  --card: #fffef9;
  --ink: #1b342c;
  --muted: #5f6c64;
  --line: #e2ddd0;
  --line-dark: rgba(185, 155, 96, 0.25);

  --accent-space: #2d5c4e;
  --accent-flow: #8b6a32;
  --accent-fefo: #38666e;
  --accent-clear: #7d4a3a;

  --ok: #2e7d57;
  --warn: #b77b1f;
  --danger: #b34237;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 8px;
  --shadow-sm: 0 4px 16px rgba(16, 43, 37, 0.05);
  --shadow-md: 0 14px 36px rgba(16, 43, 37, 0.09);
  --shadow-dark: 0 18px 40px rgba(0, 0, 0, 0.28);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #dac79a; color: var(--forest); }

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  background: transparent;
}
.progress-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8b713f, #e2cc94, #b99b60);
  transition: width 0.08s linear;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 250, 245, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #dcd4c0;
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--forest);
}
.brand img {
  height: 24px;
  width: auto;
  display: block;
}
.brand-divider {
  width: 1px;
  height: 20px;
  background: #cfc6b0;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #7b6639;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #46574f;
  padding: 7px 12px;
  border-radius: 5px;
  transition: background 0.18s, color 0.18s;
}
.nav-links a:hover,
.nav-links a.active {
  background: #eee8d7;
  color: var(--forest);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-outline {
  appearance: none;
  border: 1px solid #cbbd99;
  background: transparent;
  color: var(--forest);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s;
}
.btn-outline:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--gold-bright);
}
.mobile-toggle {
  display: none;
  appearance: none;
  border: 1px solid #cbbd99;
  background: transparent;
  color: var(--forest);
  padding: 7px 11px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HERO */
.hero {
  background:
    radial-gradient(ellipse at 88% 8%, rgba(56, 102, 86, 0.45), transparent 54%),
    radial-gradient(ellipse at 12% 95%, rgba(185, 155, 96, 0.14), transparent 48%),
    linear-gradient(145deg, #132e27 0%, #0b211c 100%);
  color: #f6f1e4;
  padding: 54px 0 68px;
  border-bottom: 2px solid var(--gold);
}
.hero-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 22px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: #b7c6ba;
  text-transform: uppercase;
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-bright);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 5px rgba(231, 212, 161, 0.15);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 36px;
  align-items: start;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(46px, 5.4vw, 72px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -1.5px;
  margin: 0 0 18px;
  color: #fbf7ee;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 600;
}
.hero-lead {
  font-size: 15.5px;
  line-height: 1.8;
  color: #c2cfc4;
  max-width: 760px;
  margin: 0 0 28px;
}
.hero-lead strong {
  color: #f5eedb;
  font-weight: 600;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--gold-bright);
  color: var(--forest);
  border: 1px solid var(--gold-bright);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s;
}
.btn-gold:hover {
  background: #f3e4bd;
  transform: translateY(-1px);
}
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  color: #e6dbc0;
  border: 1px solid rgba(185, 155, 96, 0.42);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s;
}
.btn-ghost-light:hover {
  background: rgba(185, 155, 96, 0.16);
  border-color: var(--gold-bright);
}

/* Author Card */
.author-card {
  border-left: 1px solid rgba(185, 155, 96, 0.4);
  padding: 6px 0 6px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.author-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-top img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(223, 208, 168, 0.55);
}
.author-name {
  font-size: 15px;
  font-weight: 700;
  color: #f6eedb;
  display: block;
}
.author-role {
  font-size: 11.5px;
  color: var(--gold-light);
  display: block;
}
.author-meta {
  font-size: 11.5px;
  line-height: 1.65;
  color: #a6b7a9;
  margin: 0;
}
.author-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mini-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 3px;
  background: rgba(185, 155, 96, 0.14);
  border: 1px solid rgba(185, 155, 96, 0.35);
  color: var(--gold-bright);
}

/* Hero Metrics Strip */
.hero-stats {
  margin-top: 38px;
  padding: 22px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 0 22px;
}
.stat-item:first-child { padding-left: 0; }
.stat-item + .stat-item { border-left: 1px solid rgba(185, 155, 96, 0.22); }
.stat-val {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.1;
  display: block;
}
.stat-label {
  font-size: 12px;
  color: #b4c3b6;
  display: block;
  margin-top: 5px;
}

/* Hero 4 Pillars Cards */
.pillars-strip {
  margin-top: 38px;
}
.strip-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.strip-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.6px;
  color: var(--gold-light);
  text-transform: uppercase;
  display: block;
}
.strip-heading h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  margin: 4px 0 0;
  color: #f4eee0;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border-radius: 7px;
  background: linear-gradient(155deg, rgba(40, 74, 62, 0.72), rgba(20, 48, 39, 0.88));
  border: 1px solid rgba(185, 155, 96, 0.3);
  color: #f3ede0;
  text-decoration: none;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--p-color, var(--gold-bright)), transparent);
}
.pillar-card[data-mod="space"] { --p-color: #7cc9a8; }
.pillar-card[data-mod="flow"]  { --p-color: #e4c078; }
.pillar-card[data-mod="fefo"]  { --p-color: #82c4cf; }
.pillar-card[data-mod="clear"] { --p-color: #e29982; }

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--p-color);
  box-shadow: var(--shadow-dark);
}
.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.pillar-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--p-color);
  letter-spacing: 0.8px;
}
.pillar-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  display: grid;
  place-items: center;
  color: var(--p-color);
}
.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.08;
  color: #fbf7ed;
}
.pillar-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--p-color);
  margin-bottom: 10px;
}
.pillar-card p {
  font-size: 12.5px;
  line-height: 1.65;
  color: #c2cfc4;
  margin: 0 0 16px;
  flex: 1;
}
.pillar-foot {
  border-top: 1px solid rgba(185, 155, 96, 0.22);
  padding-top: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* SECTIONS */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
.section-alt {
  background: var(--paper);
}
.section-dark {
  background: linear-gradient(150deg, #132e27, #0b211c);
  color: #f4efe2;
  border-bottom: 1px solid var(--line-dark);
}
.section-header {
  max-width: 820px;
  margin-bottom: 38px;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #8c6c31;
  margin-bottom: 10px;
}
.section-dark .section-kicker { color: var(--gold-bright); }
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.6px;
  margin: 0 0 12px;
  color: var(--forest);
}
.section-dark .section-header h2 { color: #faf5e9; }
.section-header p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.section-dark .section-header p { color: #b7c6ba; }

/* Problem-Solution Bridge */
.bridge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.bridge-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.bridge-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.bridge-num {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--forest);
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.bridge-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--forest);
}
.bridge-problem {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}
.bridge-arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f1ece0;
  border-left: 3px solid var(--gold);
  font-size: 12.5px;
  color: var(--forest);
}
.bridge-arrow strong { color: #73541d; }

/* Loop Banner */
.cycle-banner {
  margin-top: 26px;
  background: var(--forest);
  color: #f3ede0;
  border-radius: var(--radius);
  padding: 22px 26px;
  border: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cycle-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.cycle-node {
  padding: 7px 12px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(223, 208, 168, 0.35);
  color: var(--gold-bright);
  font-weight: 600;
}
.cycle-sep { color: #8fa698; }

/* Module Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-btn {
  appearance: none;
  border: 1px solid #d4cbb7;
  background: var(--card);
  color: #46574f;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s;
}
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--forest);
}
.filter-btn.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--gold-bright);
}

/* Module Deep Dive Cards */
.modules-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.module-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.module-card.hidden { display: none; }

.module-head {
  padding: 24px 28px;
  background: linear-gradient(95deg, var(--mod-bg, #edf3ef), #fbf9f3);
  border-bottom: 1px solid var(--line);
  border-left: 5px solid var(--mod-accent, var(--forest));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.module-card[data-module="space"] { --mod-accent: var(--accent-space); --mod-bg: #eaf2ee; }
.module-card[data-module="flow"]  { --mod-accent: var(--accent-flow);  --mod-bg: #f6f0e2; }
.module-card[data-module="fefo"]  { --mod-accent: var(--accent-fefo);  --mod-bg: #ebf2f3; }
.module-card[data-module="clear"] { --mod-accent: var(--accent-clear); --mod-bg: #f6edea; }

.module-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--mod-accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.module-head h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  color: var(--forest);
  line-height: 1.1;
}
.module-subtitle {
  font-size: 13.5px;
  color: var(--muted);
  margin: 4px 0 0;
}
.module-impact-badge {
  background: var(--forest);
  color: var(--gold-bright);
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.module-body {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 28px;
}
.mod-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mod-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #84662e;
  margin-bottom: 6px;
  display: block;
}
.issue-list, .rule-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.issue-list li, .rule-list li {
  font-size: 13px;
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
  color: var(--ink);
}
.issue-list li::before {
  content: '•';
  position: absolute;
  left: 3px;
  color: var(--danger);
  font-weight: 900;
}
.rule-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 800;
}
.lock-box {
  background: #f3efe4;
  border: 1px solid #ddd3ba;
  border-left: 3px solid var(--mod-accent);
  border-radius: 6px;
  padding: 14px 16px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.step-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--mod-accent);
  border-radius: 7px;
  padding: 15px 16px;
}
.step-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--mod-accent);
}
.step-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 5px 0 6px;
  color: var(--forest);
}
.step-card p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.module-footer {
  padding: 15px 28px;
  background: #f5f2e8;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}
.dept-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dept-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--card);
  border: 1px solid #d5ccb7;
  color: var(--forest);
}

/* INTERACTIVE LAB */
.lab-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.lab-tab {
  appearance: none;
  text-align: left;
  padding: 16px 18px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(185, 155, 96, 0.28);
  color: #c7d4c8;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}
.lab-tab:hover {
  background: rgba(185, 155, 96, 0.12);
}
.lab-tab.active {
  background: rgba(185, 155, 96, 0.2);
  border-color: var(--gold-bright);
  color: #fbf7ed;
}
.lab-tab small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.lab-tab strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.lab-panel {
  display: none;
  background: rgba(7, 24, 19, 0.65);
  border: 1px solid rgba(185, 155, 96, 0.3);
  border-radius: 10px;
  padding: 26px;
}
.lab-panel.active { display: block; }

.lab-disclaimer {
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--gold);
  font-size: 11.5px;
  color: #aab9ac;
}

/* Lab 1: Rack Map & FEFO */
.rack-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.rack-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.rack-filter {
  appearance: none;
  border: 1px solid rgba(185, 155, 96, 0.35);
  background: transparent;
  color: #cbd7cc;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.16s;
}
.rack-filter.active, .rack-filter:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--forest);
}
.rack-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
  align-items: start;
}
.bin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.bin-tile {
  appearance: none;
  text-align: left;
  padding: 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f3ede0;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.18s;
  position: relative;
}
.bin-tile:hover, .bin-tile.selected {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  background: rgba(185, 155, 96, 0.16);
}
.bin-tile.dimmed { opacity: 0.25; }
.bin-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.dot-green  { background: #48b87d; box-shadow: 0 0 8px rgba(72, 184, 125, 0.6); }
.dot-yellow { background: #e8b339; box-shadow: 0 0 8px rgba(232, 179, 57, 0.6); }
.dot-red    { background: #e46354; box-shadow: 0 0 8px rgba(228, 99, 84, 0.65); }
.dot-purple { background: #c58af9; box-shadow: 0 0 8px rgba(197, 138, 249, 0.65); }

.bin-name {
  font-size: 12px;
  font-weight: 600;
  margin: 6px 0 4px;
  line-height: 1.35;
  display: block;
}
.bin-meta {
  font-size: 10.5px;
  color: #a8b8ab;
  display: block;
}

.bin-inspector {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(185, 155, 96, 0.35);
  border-radius: 8px;
  padding: 20px;
}
.inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.inspector-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-bright);
}
.inspector-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 4px;
}
.badge-green  { background: rgba(72, 184, 125, 0.2); color: #84e0ae; }
.badge-yellow { background: rgba(232, 179, 57, 0.2); color: #f6d075; }
.badge-red    { background: rgba(228, 99, 84, 0.22); color: #ff9c90; }
.badge-purple { background: rgba(197, 138, 249, 0.22); color: #dec0ff; }

.inspector-title {
  font-family: var(--font-serif);
  font-size: 25px;
  margin: 0 0 12px;
  color: #fffaf0;
}
.inspector-kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.kv-item {
  background: rgba(0, 0, 0, 0.22);
  padding: 9px 11px;
  border-radius: 5px;
}
.kv-item span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #9cb0a0;
}
.kv-item strong {
  font-size: 12.5px;
  color: #f3ede0;
}
.inspector-action {
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(185, 155, 96, 0.14);
  border-left: 3px solid var(--gold-bright);
  font-size: 12.5px;
  line-height: 1.6;
  color: #efe5cc;
}

/* Lab 2: 4-Gate Disposal & Handover Guard */
.gate-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}
.gate-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gate-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: all 0.18s;
}
.gate-item:hover {
  border-color: var(--gold);
}
.gate-item.checked {
  background: rgba(72, 184, 125, 0.12);
  border-color: rgba(72, 184, 125, 0.55);
}
.gate-item input {
  width: 19px;
  height: 19px;
  accent-color: #48b87d;
  margin-top: 2px;
  cursor: pointer;
}
.gate-item strong {
  display: block;
  font-size: 13.5px;
  color: #faf5e8;
}
.gate-item span {
  display: block;
  font-size: 12px;
  color: #adc0b0;
  margin-top: 2px;
}

.gate-console {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(185, 155, 96, 0.35);
  border-radius: 8px;
  padding: 20px;
}
.console-status {
  padding: 16px;
  border-radius: 7px;
  margin-bottom: 16px;
  border: 1px solid;
}
.console-status.locked {
  background: rgba(228, 99, 84, 0.14);
  border-color: rgba(228, 99, 84, 0.5);
  color: #ffb1a7;
}
.console-status.unlocked {
  background: rgba(72, 184, 125, 0.15);
  border-color: rgba(72, 184, 125, 0.55);
  color: #8ee7b6;
}
.console-status strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.console-status p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}
.gate-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 6px;
  border: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.gate-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: #87988b;
  cursor: not-allowed;
}
.gate-btn:not(:disabled) {
  background: var(--gold-bright);
  color: var(--forest);
}
.gate-btn:not(:disabled):hover {
  background: #f4e6c1;
}
.gate-log {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
  color: #b7c8ba;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
  border-radius: 6px;
}

/* Lab 3: Calculator */
.calc-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 26px;
  align-items: start;
}
.slider-group {
  margin-bottom: 18px;
}
.slider-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  gap: 12px;
}
.slider-top label {
  font-size: 13px;
  font-weight: 600;
  color: #e9e4d5;
}
.slider-top output {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-bright);
}
input[type="range"] {
  width: 100%;
  accent-color: #dfd0a8;
  cursor: pointer;
}
.slider-hint {
  font-size: 11px;
  color: #95a899;
  margin-top: 2px;
}
.calc-result {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(185, 155, 96, 0.4);
  border-radius: 8px;
  padding: 22px;
}
.calc-total-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-light);
}
.calc-total {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.1;
  margin: 6px 0 4px;
}
.calc-sub {
  font-size: 12.5px;
  color: #b7c8ba;
  margin-bottom: 18px;
}
.bar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bar-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 5px;
  color: #e4ded0;
}
.bar-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #b99b60, #e7d4a1);
  transition: width 0.25s ease;
}

/* ROADMAP & KPI */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 34px;
}
.phase-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--forest);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.phase-card.highlight { border-top-color: var(--gold); }
.phase-time {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #8a6a2e;
  text-transform: uppercase;
}
.phase-card h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin: 6px 0 12px;
  color: var(--forest);
  line-height: 1.15;
}
.phase-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* KPI Table */
.kpi-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.kpi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.kpi-table th {
  text-align: left;
  padding: 14px 18px;
  background: var(--forest);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.kpi-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.kpi-table tr:last-child td { border-bottom: 0; }
.kpi-table tr:nth-child(even) td { background: #faf8f2; }
.kpi-mod {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: #ece6d5;
  color: var(--forest);
  display: inline-block;
}

/* ECOSYSTEM TIMELINE */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.eco-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.eco-card.current {
  background: var(--forest);
  border-color: var(--gold);
  color: #f6f1e4;
}
.eco-ver {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #8c6c31;
}
.eco-card.current .eco-ver { color: var(--gold-bright); }
.eco-card h4 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 0;
  line-height: 1.15;
}
.eco-card p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.eco-card.current p { color: #c0cec2; }
.eco-badge {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background: #efe9d8;
  color: #6f5321;
  align-self: flex-start;
}
.eco-card.current .eco-badge {
  background: var(--gold-bright);
  color: var(--forest);
}

/* FOOTER */
.site-footer {
  background: var(--deep);
  color: #c2cfc4;
  padding: 44px 0;
  border-top: 2px solid var(--gold);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-quote {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--gold-bright);
  margin: 0 0 6px;
}
.footer-meta {
  font-size: 12px;
  color: #93a698;
  margin: 0;
}

/* Responsive */
@media (max-width: 1080px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .stat-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .module-body { grid-template-columns: 1fr; }
  .rack-layout, .gate-layout, .calc-layout { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fcfaf5;
    border-bottom: 1px solid #d8cfba;
    padding: 12px 24px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .author-card { border-left: 0; border-top: 1px solid var(--line-dark); padding: 18px 0 0; }
  .bridge-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .lab-tabs { grid-template-columns: 1fr; }
  .bin-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .pillars-grid, .eco-grid, .hero-stats { grid-template-columns: 1fr; }
  .stat-item + .stat-item { border-left: 0; border-top: 1px solid var(--line-dark); padding: 14px 0 0; }
  .kpi-wrap { overflow-x: auto; }
  .kpi-table { min-width: 600px; }
}

@media print {
  .site-header, .progress-bar, .hero-cta-row, .filter-bar, .lab-tabs, .rack-toolbar { display: none !important; }
  .module-card.hidden { display: block !important; }
  body { background: #fff; }
  .hero, .section-dark { background: #102b25 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
