:root {
  --bg: #f4efe4;
  --bg-strong: #efe2c1;
  --surface: rgba(255, 250, 243, 0.84);
  --surface-solid: #fffaf3;
  --surface-muted: #ece4d4;
  --line: rgba(43, 39, 27, 0.12);
  --ink: #1f2519;
  --ink-soft: #44503c;
  --olive: #6f8250;
  --olive-deep: #23321f;
  --forest: #152116;
  --gold: #dec85c;
  --orange: #c77715;
  --orange-deep: #9a5710;
  --shadow: 0 24px 80px rgba(37, 31, 16, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --content-width: min(1200px, calc(100vw - 48px));
  --body-glow: rgba(202, 120, 21, 0.2);
  --body-top: #f3e7c8;
  --body-bottom: #f5f0e8;
  --header-border: rgba(255, 255, 255, 0.28);
  --header-bg: rgba(255, 249, 241, 0.74);
  --header-shadow: 0 18px 46px rgba(56, 44, 18, 0.12);
  --nav-muted: rgba(31, 37, 25, 0.64);
  --nav-cta-start: #f2dc7c;
  --nav-cta-end: #fff1b9;
  --nav-cta-ink: #1f2519;
  --nav-cta-ring: rgba(24, 28, 18, 0.08);
  --nav-toggle-bg: rgba(35, 50, 31, 0.08);
  --theme-toggle-bg: rgba(255, 248, 240, 0.72);
  --theme-toggle-border: rgba(35, 50, 31, 0.08);
  --theme-toggle-text: #34402d;
  --theme-toggle-thumb: linear-gradient(135deg, #fff7dd, #efd46f);
  --theme-toggle-shadow: 0 10px 22px rgba(38, 31, 17, 0.12);
  --hero-title: #fff9f0;
  --hero-title-shadow: 0 12px 32px rgba(31, 19, 8, 0.18);
  --hero-copy: rgba(255, 246, 230, 0.92);
  --hero-copy-shadow: 0 8px 24px rgba(31, 19, 8, 0.12);
  --eyebrow-bg: rgba(255, 243, 219, 0.92);
  --button-primary-ink: #1e220f;
  --button-primary-bg: #fff8eb;
  --button-primary-shadow: 0 18px 34px rgba(20, 20, 12, 0.16);
  --button-secondary-ink: #fffdf6;
  --button-secondary-bg: rgba(255, 255, 255, 0.08);
  --button-secondary-ring: rgba(255, 250, 240, 0.28);
  --metric-bg: rgba(255, 247, 233, 0.95);
  --metric-ring: rgba(24, 22, 16, 0.05);
  --metric-copy: rgba(54, 62, 43, 0.8);
  --panel-bg: rgba(255, 250, 244, 0.96);
  --panel-shadow: 0 28px 90px rgba(23, 17, 7, 0.22);
  --tag-bg: #f0eadf;
  --section-kicker-bg: rgba(111, 130, 80, 0.14);
  --card-bg: rgba(255, 250, 243, 0.88);
  --card-border: rgba(35, 50, 31, 0.08);
  --card-shadow: 0 24px 80px rgba(37, 31, 16, 0.14);
  --system-image-shadow: 0 28px 90px rgba(31, 28, 18, 0.18);
  --system-image-border: #fff9ef;
  --mobile-nav-bg: rgba(255, 250, 243, 0.98);
  --mobile-nav-shadow: 0 20px 50px rgba(33, 34, 18, 0.14);
  --mobile-nav-item-bg: rgba(35, 50, 31, 0.04);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1511;
  --bg-strong: #162019;
  --surface: rgba(17, 24, 19, 0.9);
  --surface-solid: #121913;
  --surface-muted: #233026;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #f5efe2;
  --ink-soft: #bcc5b9;
  --olive: #92a96a;
  --olive-deep: #dbe5cc;
  --forest: #eef3e6;
  --gold: #e4c85a;
  --orange: #dda04b;
  --orange-deep: #b87628;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  --body-glow: rgba(127, 72, 14, 0.24);
  --body-top: #151c16;
  --body-bottom: #0a100d;
  --header-border: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(15, 21, 17, 0.82);
  --header-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
  --nav-muted: rgba(241, 234, 221, 0.72);
  --nav-cta-start: #dec05a;
  --nav-cta-end: #f1dd88;
  --nav-cta-ink: #171d13;
  --nav-cta-ring: rgba(255, 255, 255, 0.08);
  --nav-toggle-bg: rgba(255, 255, 255, 0.08);
  --theme-toggle-bg: rgba(255, 255, 255, 0.06);
  --theme-toggle-border: rgba(255, 255, 255, 0.08);
  --theme-toggle-text: #f1eadb;
  --theme-toggle-thumb: linear-gradient(135deg, #30402c, #698051);
  --theme-toggle-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
  --hero-title: #fff7eb;
  --hero-title-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
  --hero-copy: rgba(247, 240, 229, 0.9);
  --hero-copy-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  --eyebrow-bg: rgba(18, 28, 21, 0.78);
  --button-primary-ink: #151b12;
  --button-primary-bg: #f8edcf;
  --button-primary-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
  --button-secondary-ink: #fff8ef;
  --button-secondary-bg: rgba(255, 255, 255, 0.1);
  --button-secondary-ring: rgba(255, 255, 255, 0.2);
  --metric-bg: rgba(15, 23, 18, 0.86);
  --metric-ring: rgba(255, 255, 255, 0.06);
  --metric-copy: rgba(224, 232, 219, 0.74);
  --panel-bg: rgba(12, 18, 14, 0.94);
  --panel-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --tag-bg: rgba(255, 255, 255, 0.06);
  --section-kicker-bg: rgba(146, 169, 106, 0.18);
  --card-bg: rgba(16, 24, 19, 0.88);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --system-image-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  --system-image-border: #233026;
  --mobile-nav-bg: rgba(12, 18, 14, 0.98);
  --mobile-nav-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
  --mobile-nav-item-bg: rgba(255, 255, 255, 0.06);
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, var(--body-glow), transparent 28%),
    linear-gradient(180deg, var(--body-top) 0%, var(--bg) 33%, var(--body-bottom) 100%);
  min-height: 100vh;
  transition: background 240ms ease, color 240ms ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.section-shell {
  width: var(--content-width);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: var(--content-width);
  margin: 0;
  padding: 4px 14px 4px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--header-border);
  border-radius: var(--radius-sm);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  box-shadow: var(--header-shadow);
}

.section-shell[id],
.pathways-section[id] {
  scroll-margin-top: 132px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-badge {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: clamp(110px, 10vw, 152px);
  padding: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  box-shadow: none;
  transition: background 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}

.brand-badge img {
  width: 100%;
  height: auto;
}


.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--nav-muted);
}

.site-nav a {
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  color: var(--nav-cta-ink);
  background: linear-gradient(135deg, var(--nav-cta-start), var(--nav-cta-end));
  box-shadow: inset 0 0 0 1px var(--nav-cta-ring);
}

.theme-toggle {
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--theme-toggle-text);
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 82px;
  height: 38px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--theme-toggle-bg);
  box-shadow: inset 0 0 0 1px var(--theme-toggle-border);
  backdrop-filter: blur(10px);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.theme-toggle-label {
  position: relative;
  z-index: 1;
  width: 32px;
  text-align: center;
  transition: color 180ms ease, opacity 180ms ease;
}

.theme-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 34px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--theme-toggle-thumb);
  box-shadow: var(--theme-toggle-shadow);
  transition: transform 220ms ease, background 220ms ease;
}

.theme-toggle[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(40px);
}

.theme-toggle[data-theme="light"] .theme-toggle-label:first-child,
.theme-toggle[data-theme="dark"] .theme-toggle-label:last-child {
  color: var(--ink);
}

.theme-toggle[data-theme="light"] .theme-toggle-label:last-child,
.theme-toggle[data-theme="dark"] .theme-toggle-label:first-child {
  opacity: 0.6;
}

.theme-toggle:hover .theme-toggle-track,
.theme-toggle:focus-visible .theme-toggle-track {
  box-shadow: inset 0 0 0 1px var(--theme-toggle-border), 0 10px 24px rgba(18, 18, 14, 0.08);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--nav-toggle-bg);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 0 56px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(57, 29, 7, 0.48) 0%, rgba(87, 46, 10, 0.28) 34%, rgba(80, 92, 39, 0.14) 74%, rgba(80, 92, 39, 0.08) 100%),
    linear-gradient(180deg, rgba(208, 112, 12, 0.18) 0%, rgba(208, 112, 12, 0.06) 55%, rgba(17, 22, 15, 0.12) 100%),
    url("/assets/carbonmax-refresh/hero-field.png") center 72% / cover no-repeat;
  filter: saturate(1.08) contrast(1.04);
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

html[data-theme="dark"] .hero::before {
  background:
    linear-gradient(98deg, rgba(18, 16, 12, 0.54) 0%, rgba(52, 34, 12, 0.34) 32%, rgba(38, 49, 28, 0.2) 72%, rgba(20, 24, 18, 0.22) 100%),
    linear-gradient(180deg, rgba(123, 72, 16, 0.18) 0%, rgba(16, 21, 17, 0.28) 100%),
    url("/assets/carbonmax-refresh/hero-field.png") center 72% / cover no-repeat;
  filter: saturate(0.98) contrast(1.06) brightness(0.86);
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: var(--content-width);
  margin: 0 auto;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 940px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 408px;
  align-items: center;
  gap: 28px;
  padding: 168px 0 36px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.panel-kicker,
.story-label,
.pathway-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--forest);
  background: var(--eyebrow-bg);
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(4rem, 7vw, 6.45rem);
  color: var(--hero-title);
  text-shadow: var(--hero-title-shadow);
}

.hero-text {
  max-width: 620px;
  margin-top: 24px;
  font-size: 1.12rem;
  color: var(--hero-copy);
  text-shadow: var(--hero-copy-shadow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--button-primary-ink);
  background: var(--button-primary-bg);
  box-shadow: var(--button-primary-shadow);
}

.button-secondary {
  color: var(--button-secondary-ink);
  background: var(--button-secondary-bg);
  box-shadow: inset 0 0 0 1px var(--button-secondary-ring);
  backdrop-filter: blur(10px);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.metric-card {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: var(--metric-bg);
  box-shadow: inset 0 0 0 1px var(--metric-ring);
}

.metric-card strong {
  display: block;
  font-size: 1.16rem;
  color: var(--orange);
}

.metric-card span {
  display: block;
  margin-top: 8px;
  color: var(--metric-copy);
  font-size: 0.94rem;
  line-height: 1.45;
}

.hero-panel {
  justify-self: end;
  width: min(100%, 408px);
  margin-top: 10px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
}

.hero-panel-image {
  padding: 16px 16px 0;
}

.hero-panel-image img {
  height: 268px;
  object-fit: cover;
  border-radius: 22px;
}

.hero-panel-body {
  padding: 18px 24px 24px;
}

.panel-kicker {
  margin-bottom: 12px;
  color: var(--olive-deep);
  background: var(--surface-muted);
}

.hero-panel h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--ink);
}

.hero-panel p:last-of-type {
  margin-top: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-row span {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--olive-deep);
  background: var(--tag-bg);
}

.section-heading,
.workflow-heading,
.pathways-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-kicker {
  margin-bottom: 14px;
  color: var(--olive-deep);
  background: var(--section-kicker-bg);
}

.section-heading h2,
.workflow-heading h2,
.pathways-heading h2,
.soc-copy h2,
.system-copy h2,
.cta-banner h2 {
  font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  color: var(--ink);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.story-card,
.benefit-card,
.proof-card,
.workflow-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.story-card {
  overflow: hidden;
  border-radius: 26px;
}

.story-card img {
  height: 220px;
  object-fit: cover;
}

.story-card-body {
  padding: 22px 22px 24px;
}

.story-label {
  margin-bottom: 12px;
  padding: 0;
  background: none;
  color: var(--olive);
  letter-spacing: 0.06em;
}

.story-card h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.soc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.soc-copy {
  max-width: 900px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.benefit-card {
  padding: 24px;
  border-radius: 24px;
}

.benefit-card h3,
.proof-card h3,
.workflow-card h3,
.principle-card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.system-layout {
  display: grid;
  grid-template-columns: minmax(460px, 0.92fr) minmax(520px, 1.08fr);
  gap: 84px;
  align-items: start;
}

.system-media {
  position: relative;
  min-height: 620px;
  padding-right: 34px;
}

.system-image {
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--system-image-shadow);
}

.system-image img {
  height: 100%;
  object-fit: cover;
}

.system-image-large {
  width: min(100%, 560px);
  height: 500px;
}

.system-image-small {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: min(50%, 248px);
  height: 176px;
  border: 10px solid var(--system-image-border);
}

.system-copy {
  max-width: 620px;
  padding-top: 18px;
}

.system-copy h2 {
  font-size: clamp(3rem, 3.9vw, 4.4rem);
  line-height: 1;
}

.system-copy > p:not(.section-kicker) {
  max-width: 56ch;
  font-size: 1.06rem;
}

.proof-stack {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.proof-card {
  padding: 22px 24px;
  border-radius: 22px;
}

.pathways-section {
  padding: 80px 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(73, 107, 46, 0.22), transparent 24%),
    linear-gradient(180deg, #182518 0%, #0f1811 100%);
  color: #f8f3e6;
}

.pathways-section p,
.pathways-section .section-kicker,
.pathways-section .pathway-label {
  color: rgba(244, 239, 226, 0.82);
}

.pathways-section .section-kicker {
  background: rgba(255, 255, 255, 0.08);
}

.pathways-section h2,
.pathways-section h3 {
  color: #fff9ee;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.pathway-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 30px;
  isolation: isolate;
}

.pathway-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.pathway-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 26, 16, 0.12), rgba(8, 12, 9, 0.84));
}

.pathway-card-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 28px;
}

.pathway-label {
  margin-bottom: 12px;
  padding: 0;
  background: none;
  font-weight: 700;
}

.pathway-card h3 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 12px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
}

.principle-card {
  padding: 24px;
  background: rgba(244, 239, 226, 0.04);
}

.principle-card + .principle-card {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.workflow-card {
  padding: 22px;
  border-radius: 24px;
}

.workflow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff8ef;
  background: linear-gradient(135deg, var(--olive-deep), var(--olive));
}

.contact-section {
  padding-bottom: 96px;
}

.cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 38px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(134, 171, 83, 0.18), transparent 50%),
    linear-gradient(180deg, #23331d 0%, #314723 100%);
  box-shadow: 0 30px 70px rgba(22, 30, 18, 0.2);
}

.cta-banner h2,
.cta-banner p {
  color: #f6f1e3;
}

.cta-button {
  min-width: 186px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 540ms ease, transform 540ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1140px) {
  .hero-grid,
  .section-heading,
  .workflow-heading,
  .pathways-heading,
  .cta-banner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
    padding-top: 118px;
  }

  .hero-panel {
    justify-self: start;
  }

  .story-grid,
  .benefit-grid,
  .workflow-grid,
  .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .system-layout {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
    gap: 48px;
  }

  .system-media {
    min-height: 540px;
    padding-right: 14px;
  }

  .system-image-large {
    width: 100%;
    height: 460px;
  }

  .system-image-small {
    right: -6px;
    bottom: 14px;
    width: min(48%, 220px);
    height: 158px;
  }

  .system-copy {
    max-width: none;
    padding-top: 8px;
  }

  .system-copy h2 {
    font-size: clamp(2.7rem, 5vw, 3.8rem);
  }

  .system-copy > p:not(.section-kicker) {
    max-width: 48ch;
    font-size: 1.02rem;
  }
}

@media (max-width: 860px) {
  :root {
    --content-width: min(100vw - 24px, 1200px);
  }

  body {
    padding-top: calc(82px + env(safe-area-inset-top));
  }

  .site-header {
    top: max(8px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
    padding: 2px 10px 2px 14px;
    align-items: center;
  }

  .brand-badge {
    width: clamp(86px, 26vw, 108px);
  }

  .nav-toggle {
    display: block;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .theme-toggle-track {
    min-width: 78px;
    height: 36px;
    padding: 4px 8px;
    font-size: 0.64rem;
  }

  .theme-toggle-label {
    width: 24px;
    font-size: 0;
  }

  .theme-toggle-label:first-child::before {
    content: "L";
    font-size: 0.64rem;
  }

  .theme-toggle-label:last-child::before {
    content: "D";
    font-size: 0.64rem;
  }

  .theme-toggle-thumb {
    width: 26px;
    height: 28px;
  }

  .theme-toggle[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(40px);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    border-radius: 28px;
    background: var(--mobile-nav-bg);
    box-shadow: var(--mobile-nav-shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--mobile-nav-item-bg);
  }

  .nav-cta {
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 11vw, 4.8rem);
  }

  .hero {
    padding-bottom: 42px;
  }

  .metric-row,
  .story-grid,
  .benefit-grid,
  .workflow-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .system-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .system-media {
    min-height: 0;
    padding-right: 0;
    padding-bottom: 96px;
    width: min(100%, 640px);
    margin: 0 auto;
  }

  .system-image-large {
    width: 100%;
    height: 420px;
  }

  .system-image-small {
    right: 18px;
    bottom: 0;
    width: min(58%, 220px);
    height: 150px;
  }

  .system-copy {
    max-width: none;
    padding-top: 0;
  }

  .system-copy h2 {
    font-size: clamp(2.5rem, 7vw, 4rem);
  }

  .system-copy > p:not(.section-kicker) {
    max-width: none;
  }

  .cta-banner {
    padding: 30px;
  }
}

@media (max-width: 640px) {
  .hero::before {
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
  }

  .hero-grid {
    padding-top: 72px;
  }

  .hero-panel-body,
  .story-card-body,
  .benefit-card,
  .proof-card,
  .workflow-card,
  .principle-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section,
  .pathways-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-heading h2,
  .workflow-heading h2,
  .pathways-heading h2,
  .soc-copy h2,
  .system-copy h2,
  .cta-banner h2 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .story-card h3,
  .hero-panel h2,
  .pathway-card h3 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .cta-banner {
    padding: 24px;
    border-radius: 28px;
  }
}
