:root {
  --paper: #f9f8f5;
  --paper-soft: #fffdfa;
  --paper-warm: #f0eee8;
  --ink: #1f1d1a;
  --ink-soft: #383530;
  --muted: #5e5b55;
  --faint: #a09c94;
  --line: #e3dec9;
  --green-deep: #123f2a;
  --green: #1f6b43;
  --accent: #1f6b43;
  --accent-deep: #123f2a;
  --accent-soft: rgba(31, 107, 67, 0.12);
  --accent-warm: #a37f38;
  --white: #ffffff;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1440px;
  --gutter: clamp(20px, 5vw, 72px);
  --type-label-track: 0.082em;
  --type-serif-leading: 1.035;
  --type-serif-leading-tight: 0.985;
  --type-copy-leading: 1.64;
}

body.theme-solar {
  --accent: #d29f2f;
  --accent-deep: #163642;
  --accent-soft: rgba(210, 159, 47, 0.16);
  --accent-warm: #70a7b8;
}

body.theme-ecochar {
  --accent: #2b8a64;
  --accent-deep: #0d3026;
  --accent-soft: rgba(43, 138, 100, 0.16);
  --accent-warm: #b78343;
}

body.theme-frio {
  --accent: #6bb7c9;
  --accent-deep: #173c49;
  --accent-soft: rgba(107, 183, 201, 0.18);
  --accent-warm: #b85f82;
}

body.theme-sgc {
  --accent: #2b8f78;
  --accent-deep: #0b2f32;
  --accent-soft: rgba(43, 143, 120, 0.16);
  --accent-warm: #87a846;
}

body.theme-glow-floriculture {
  --accent: #b85f82;
  --accent-deep: #1e3d31;
  --accent-soft: rgba(184, 95, 130, 0.16);
  --accent-warm: #d4a33c;
}

body.theme-mavh {
  --accent: #7a9c42;
  --accent-deep: #24391f;
  --accent-soft: rgba(122, 156, 66, 0.16);
  --accent-warm: #b78343;
}

body.theme-green-flame {
  --accent: #b96b35;
  --accent-deep: #17351e;
  --accent-soft: rgba(185, 107, 53, 0.16);
  --accent-warm: #d0a33a;
}

body.theme-solar-supply {
  --accent: #d6a43a;
  --accent-deep: #172f3a;
  --accent-soft: rgba(214, 164, 58, 0.16);
  --accent-warm: #5f9f8d;
}

body.theme-glow-coastal {
  --accent: #4fae9a;
  --accent-deep: #12343a;
  --accent-soft: rgba(79, 174, 154, 0.16);
  --accent-warm: #c79b52;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--paper) 0%, #fffdfa 54%, var(--paper) 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

img,
video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--paper-warm);
}

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

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: var(--type-label-track);
  font-size: 0.64rem;
  font-weight: 560;
  line-height: 1.35;
}

h1,
h2,
h3,
.hero-title,
.section-title {
  text-wrap: balance;
}

p,
li,
.hero-copy,
.section-copy {
  text-wrap: pretty;
}

.page-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(31, 29, 26, 0.08);
  background: rgba(249, 248, 245, 0.9);
  backdrop-filter: blur(18px);
}

.nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: block;
  width: 132px;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: rgba(31, 29, 26, 0.66);
}

.nav-links a:hover {
  color: var(--green-deep);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(31, 29, 26, 0.18);
  border-radius: 999px;
  color: var(--ink);
}

.hero {
  padding: clamp(58px, 8vw, 110px) 0 clamp(36px, 6vw, 76px);
  border-bottom: 1px solid var(--ink);
}

.hero.cinematic {
  padding: 0;
  min-height: calc(100svh - 68px);
  border-bottom: 0;
  background:
    radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 34%),
    linear-gradient(135deg, var(--accent-deep), var(--ink) 58%);
  color: var(--white);
  overflow: hidden;
}

.hero.cinematic .container {
  max-width: none;
  padding-inline: 0;
}

.hero.cinematic .hero-grid {
  min-height: calc(100svh - 68px);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 0;
  align-items: stretch;
}

.hero-copy-panel {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 5.8vw, 84px) var(--gutter) 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-copy-top {
  max-width: 880px;
}

.hero.cinematic .breadcrumb,
.hero.cinematic .breadcrumb a,
.hero.cinematic .kicker,
.hero.cinematic .hero-copy {
  color: rgba(255, 255, 255, 0.72);
}

.hero.cinematic .kicker {
  color: color-mix(in srgb, var(--accent) 76%, white);
}

.hero.cinematic .hero-title {
  max-width: 11.2ch;
  color: var(--white);
  font-size: clamp(3rem, 6.9vw, 7.25rem);
  font-weight: 520;
  line-height: 0.96;
}

.hero.cinematic .hero-copy {
  max-width: 46ch;
  font-size: clamp(1rem, 1.3vw, 1.22rem);
}

.hero.cinematic .button {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
}

.hero.cinematic .button.primary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.hero-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-inline: calc(-1 * var(--gutter));
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.signal-chip {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(15px, 2vw, 24px) var(--gutter);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.035);
}

.signal-chip:last-child {
  border-right: 0;
}

.signal-chip strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.7vw, 3rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
}

.signal-chip span {
  color: rgba(255, 255, 255, 0.62);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(34px, 7vw, 104px);
  align-items: end;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--green);
}

.kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.62;
}

.hero-title {
  max-width: 900px;
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6.1vw, 5.8rem);
  font-weight: 520;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 640px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.68;
  font-weight: 360;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(31, 29, 26, 0.2);
  border-radius: 999px;
  transition: background 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
}

.button.primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-media {
  margin: 0;
  min-height: clamp(340px, 48vw, 690px);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-warm);
}

.hero.cinematic .hero-media {
  position: relative;
  min-height: inherit;
  height: 100%;
  border-radius: 0;
}

.hero.cinematic .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 17, 15, 0.42), transparent 42%),
    linear-gradient(0deg, rgba(13, 17, 15, 0.52), transparent 38%);
  pointer-events: none;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 132px;
  padding: 22px clamp(16px, 2vw, 26px);
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  display: block;
  margin-bottom: 12px;
  color: var(--faint);
}

.metric strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.metric small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.data-board {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: stretch;
}

.data-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.36);
  padding: clamp(22px, 3vw, 34px);
}

.data-panel.dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.data-panel.dark .mono,
.data-panel.dark p,
.data-panel.dark small {
  color: rgba(255, 255, 255, 0.68);
}

.data-number {
  display: block;
  margin: 14px 0 8px;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5.8vw, 6.1rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: 0;
}

.data-label {
  margin: 0;
  max-width: 32ch;
  color: var(--muted);
  font-weight: 360;
  line-height: 1.55;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.signal {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.34);
}

.signal strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 2.65rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.signal span {
  color: var(--faint);
}

.bar-list {
  display: grid;
  gap: 18px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 29, 26, 0.08);
}

.bar-fill {
  display: block;
  height: 100%;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-deep), var(--green));
}

.route-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.route-step {
  position: relative;
  min-height: 230px;
  padding: clamp(22px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.route-step:last-child {
  border-right: 0;
}

.route-step::before {
  content: attr(data-step);
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  border: 1px solid rgba(31, 29, 26, 0.24);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.route-step h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 2.15rem);
  line-height: 1;
  letter-spacing: 0;
}

.route-step p {
  margin: 0;
  color: var(--muted);
  font-weight: 360;
  line-height: 1.6;
}

.visual-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
}

.visual-frame {
  min-height: 460px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-warm);
}

.model-stack {
  display: grid;
  gap: 10px;
}

.stack-item {
  display: grid;
  grid-template-columns: minmax(112px, 0.36fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.stack-item strong {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 2.8rem);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.stack-item span {
  color: var(--muted);
  line-height: 1.55;
}

.project-intel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: stretch;
}

.project-intel-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-intel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.project-intel-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 11px;
  border: 1px solid rgba(31, 29, 26, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  color: var(--ink-soft);
}

.project-intel-board {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 63, 42, 0.05), transparent 38%),
    rgba(255, 255, 255, 0.34);
}

.project-intel-map {
  position: relative;
  min-width: 0;
  min-height: 320px;
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.project-intel-map .mono {
  color: rgba(255, 255, 255, 0.62);
}

.project-intel-map strong {
  display: block;
  position: relative;
  z-index: 1;
  width: min(100%, 16ch);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 3.95rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.project-intel-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
  contain: size paint;
  pointer-events: none;
  opacity: 0.76;
}

.project-intel-rings span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.project-intel-rings span:nth-child(1) {
  width: 210px;
  height: 210px;
  right: 0;
  top: 34px;
}

.project-intel-rings span:nth-child(2) {
  width: 128px;
  height: 128px;
  right: 58px;
  bottom: 40px;
  background: rgba(31, 107, 67, 0.46);
}

.project-intel-rings span:nth-child(3) {
  width: 18px;
  height: 18px;
  right: 118px;
  bottom: 95px;
  background: var(--white);
}

.project-intel-metrics {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.project-intel-metrics div {
  min-height: 106px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line);
}

.project-intel-metrics div:last-child {
  border-bottom: 0;
}

.project-intel-metrics span {
  color: var(--faint);
}

.project-intel-metrics strong {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.7vw, 3.25rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.project-intel-source {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px clamp(18px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
}

.project-intel-source span {
  color: var(--green);
}

.project-intel-source p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.section {
  padding: clamp(52px, 8vw, 104px) 0;
}

main > .section:last-of-type {
  padding-bottom: 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(260px, 0.58fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 58px);
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.05rem, 4vw, 4.2rem);
  font-weight: 520;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-copy {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-weight: 360;
  line-height: 1.7;
}

.logic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logic-block {
  min-height: 230px;
  padding: clamp(22px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.logic-block:last-child {
  border-right: 0;
}

.logic-block h3 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  line-height: 1;
  letter-spacing: 0;
}

.logic-block p {
  margin: 0;
  color: var(--muted);
  font-weight: 360;
  line-height: 1.65;
}

.evidence-table {
  display: grid;
  border-top: 1px solid var(--line);
}

.evidence-row {
  display: grid;
  grid-template-columns: 0.8fr 0.65fr 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.evidence-row strong {
  font-size: 1rem;
}

.evidence-row span {
  color: var(--muted);
}

.evidence-register {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
}

.record-panel {
  padding: clamp(24px, 4vw, 48px);
}

.record-panel:first-child {
  border-right: 1px solid var(--line);
  background: var(--paper-warm);
}

.record-panel h3,
.compare-panel h3,
.gate h3 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.record-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.record-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.record-list b {
  color: var(--accent);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.compare-panel {
  padding: clamp(24px, 4vw, 48px);
  background: var(--paper-warm);
}

.compare-panel + .compare-panel {
  border-left: 1px solid var(--line);
  background: var(--paper-soft);
}

.compare-visual {
  position: relative;
  min-height: 220px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

.compare-visual::before,
.compare-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.compare-visual.loose::before {
  width: 74%;
  height: 1px;
  left: 13%;
  top: 52%;
  background: repeating-linear-gradient(90deg, rgba(31,29,26,.52) 0 8px, transparent 8px 16px);
  transform: rotate(-18deg);
}

.compare-visual.tight::before {
  width: 46%;
  aspect-ratio: 1;
  left: 27%;
  top: 17%;
  border: 1px dashed var(--accent);
  background: var(--accent-soft);
}

.compare-visual.tight::after {
  width: 14px;
  height: 14px;
  left: calc(50% - 7px);
  top: calc(50% - 7px);
  background: var(--accent);
  box-shadow:
    -54px -35px 0 var(--accent),
    50px -28px 0 var(--accent),
    -42px 48px 0 var(--accent),
    56px 42px 0 var(--accent);
}

.compare-points {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-points li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.gate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.gate {
  min-height: 220px;
  padding: clamp(22px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.gate:nth-child(3n) {
  border-right: 0;
}

.gate:nth-child(n+4) {
  border-top: 1px solid var(--line);
}

.gate b {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent);
}

.gate p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.decision-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(28px, 7vw, 90px);
  padding: clamp(42px, 8vw, 92px) var(--gutter);
  margin-inline: calc(-1 * var(--gutter));
  background:
    radial-gradient(circle at 88% 14%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 34%),
    linear-gradient(135deg, var(--accent-deep), var(--ink));
  color: var(--white);
  align-items: end;
}

.decision-band .section-title {
  max-width: 930px;
  color: var(--white);
}

.decision-band .section-copy {
  color: rgba(255, 255, 255, 0.72);
}

.decision-steps {
  display: grid;
  gap: 10px;
}

.decision-step {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.decision-step b {
  display: block;
  margin-bottom: 8px;
  color: color-mix(in srgb, var(--accent) 70%, white);
}

.decision-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.partner-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 7vw, 100px);
  padding: clamp(34px, 7vw, 78px) var(--gutter);
  margin-inline: calc(-1 * var(--gutter));
  background: var(--ink);
  color: var(--white);
  align-items: end;
}

.partner-band .kicker,
.partner-band .section-copy {
  color: rgba(255, 255, 255, 0.72);
}

.partner-band .section-title {
  color: var(--white);
}

.partner-band .button {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 980px) {
  .hero-grid,
  .section-head,
  .data-board,
  .visual-split,
  .project-intel,
  .partner-band,
  .hero.cinematic .hero-grid,
  .evidence-register,
  .comparison-grid,
  .decision-band {
    grid-template-columns: 1fr;
  }

  .hero.cinematic,
  .hero.cinematic .hero-grid,
  .hero-copy-panel {
    min-height: auto;
  }

  .hero-copy-panel {
    border-right: 0;
    padding-top: clamp(24px, 4.5vw, 48px);
  }

  .hero.cinematic .hero-media {
    height: clamp(292px, 46vw, 360px);
    min-height: 0;
  }

  .hero.cinematic .signal-chip {
    min-height: 96px;
  }

  .logic-grid,
  .metric-strip,
  .route-map,
  .gate-grid {
    grid-template-columns: 1fr;
  }

  .metric,
  .logic-block,
  .route-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child,
  .logic-block:last-child,
  .route-step:last-child {
    border-bottom: 0;
  }

  .evidence-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .record-panel:first-child,
  .compare-panel + .compare-panel,
  .gate,
  .gate:nth-child(3n) {
    border-right: 0;
  }

  .record-panel:first-child,
  .compare-panel + .compare-panel,
  .gate + .gate {
    border-top: 1px solid var(--line);
  }

  .project-intel-board,
  .project-intel-source {
    grid-template-columns: 1fr;
  }

  .project-intel-source .button {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .page-nav {
    position: sticky;
  }

  .nav-inner {
    min-height: 72px;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    padding-block: 12px 10px;
  }

  .brand-logo {
    width: 126px;
  }

  .nav-links {
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(31, 29, 26, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    color: var(--ink-soft);
  }

  .nav-links .back-link {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
  }

  .hero {
    padding-top: 34px;
  }

  .hero.cinematic {
    padding-top: 0;
  }

  .hero.cinematic .hero-title {
    max-width: 12ch;
  }

  .hero-signals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .signal-chip {
    min-height: 92px;
    padding: 12px;
  }

  .signal-chip strong {
    font-size: clamp(1.05rem, 6vw, 1.55rem);
  }

  .signal-chip span {
    font-size: 0.54rem;
  }

  .hero-title {
    font-size: clamp(2.35rem, 11.4vw, 3.55rem);
    line-height: 1;
  }

  .hero-media {
    min-height: 280px;
  }

  .hero.cinematic .hero-media {
    height: clamp(250px, 64vw, 310px);
    min-height: 0;
  }

}

/* Creative director pass: priority project pages.
   Cinematic heroes, proof rows, and bullet-free conversion flow. */
body.project-theme {
  background: #f7f7f1;
}

body.project-theme .page-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 248, 245, 0.82);
  border-bottom-color: rgba(31, 29, 26, 0.08);
  box-shadow: 0 8px 30px rgba(22, 32, 25, 0.045);
}

body.project-theme .back-link {
  border-color: rgba(31, 29, 26, 0.72);
  background: rgba(31, 29, 26, 0.92);
  color: var(--white);
}

body.project-theme ul,
body.project-theme ol {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

body.project-theme li::marker {
  content: "";
}

body.project-theme .hero.cinematic {
  position: relative;
  min-height: calc(100svh - 68px);
  display: grid;
  color: var(--white);
  background: #0c1611;
  isolation: isolate;
}

@supports (height: 100dvh) {
  body.project-theme .hero.cinematic {
    min-height: calc(100dvh - 68px);
  }
}

body.project-theme .hero.cinematic .hero-grid {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

body.project-theme .hero.cinematic .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  background: #0c1611;
  transform: none;
}

body.project-theme .hero.cinematic .hero-media img,
body.project-theme .hero.cinematic .hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  filter: saturate(0.9) contrast(1.08) brightness(0.8);
}

body.project-theme.theme-solar .hero.cinematic .hero-media img,
body.project-theme.theme-solar .hero.cinematic .hero-media video,
body.project-theme.theme-solar-supply .hero.cinematic .hero-media img,
body.project-theme.theme-solar-supply .hero.cinematic .hero-media video {
  object-position: 54% 52%;
}

body.project-theme.theme-ecochar .hero.cinematic .hero-media video,
body.project-theme.theme-sgc .hero.cinematic .hero-media video {
  object-position: 50% 50%;
}

body.project-theme.theme-green-flame .hero.cinematic .hero-media img {
  object-position: 50% 54%;
}

body.project-theme.theme-glow-floriculture .hero.cinematic .hero-media img,
body.project-theme.theme-mavh .hero.cinematic .hero-media img {
  object-position: 50% 58%;
}

body.project-theme .hero.cinematic .hero-media::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 11, 8, 0.92) 0%, rgba(5, 11, 8, 0.72) 34%, rgba(5, 11, 8, 0.22) 68%, rgba(5, 11, 8, 0.52) 100%),
    linear-gradient(0deg, rgba(5, 11, 8, 0.76) 0%, rgba(5, 11, 8, 0.12) 42%, rgba(5, 11, 8, 0.62) 100%),
    radial-gradient(circle at 22% 24%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 30rem);
}

body.project-theme .hero-copy-panel {
  position: relative;
  z-index: 2;
  min-height: inherit;
  width: min(100%, 1060px);
  padding: 72px var(--gutter) 34px;
  border: 0;
  background: linear-gradient(90deg, rgba(5, 11, 8, 0.5), rgba(5, 11, 8, 0));
}

body.project-theme .hero-copy-top {
  max-width: 830px;
  padding-top: 2px;
}

body.project-theme .hero.cinematic .breadcrumb {
  margin-bottom: 28px;
}

body.project-theme .hero.cinematic .breadcrumb,
body.project-theme .hero.cinematic .breadcrumb a,
body.project-theme .hero.cinematic .kicker {
  color: rgba(255, 255, 255, 0.74);
}

body.project-theme .hero.cinematic .kicker {
  margin-bottom: 18px;
  color: color-mix(in srgb, var(--accent) 62%, white);
}

body.project-theme .hero.cinematic .hero-title {
  max-width: 11.8ch;
  margin-bottom: 20px;
  color: #fffdf8;
  font-size: clamp(4.6rem, 7.2vw, 6.6rem);
  font-weight: 520;
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 20px 70px rgba(0, 0, 0, 0.36);
}

body.project-theme .hero.cinematic .hero-copy {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.18rem;
  line-height: 1.62;
  text-wrap: pretty;
}

body.project-theme .hero-actions {
  gap: 10px;
  margin-top: 28px;
}

body.project-theme .button {
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 999px;
  letter-spacing: 0;
  line-height: 1.12;
  font-weight: 600;
}

body.project-theme .hero.cinematic .button {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.project-theme .hero.cinematic .button.primary {
  color: #111712;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.94);
}

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

body.project-theme .hero-signals {
  width: min(100%, 760px);
  margin: 34px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(7, 14, 10, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.project-theme .signal-chip {
  min-height: 104px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.055);
}

body.project-theme .signal-chip strong {
  font-size: 2rem;
  line-height: 0.96;
}

body.project-theme .signal-chip span {
  color: rgba(255, 255, 255, 0.72);
}

body.project-theme .section {
  padding: 72px 0;
}

body.project-theme .section-head {
  margin-bottom: 38px;
}

body.project-theme .section-title {
  max-width: 17ch;
  font-size: 3.65rem;
  line-height: 1.03;
}

body.project-theme .section-copy {
  font-size: 1rem;
  line-height: 1.68;
}

body.project-theme .data-panel,
body.project-theme .signal,
body.project-theme .project-intel-board,
body.project-theme .comparison-grid,
body.project-theme .gate-grid {
  border-radius: 8px;
}

body.project-theme .record-list li {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top-color: rgba(31, 29, 26, 0.13);
}

body.project-theme .record-list b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: 999px;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

body.project-theme .record-list span,
body.project-theme .compare-points li {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

body.project-theme .compare-points li {
  padding: 15px 0;
  border-top-color: rgba(31, 29, 26, 0.13);
}

body.project-theme .decision-band {
  min-height: 430px;
  border-radius: 0;
  background:
    radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 26rem),
    linear-gradient(135deg, #0d1812 0%, var(--accent-deep) 100%);
}

body.project-theme .decision-band .button.primary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

body.project-theme .decision-step {
  padding-block: 20px;
}

@media (min-width: 1280px) {
  body.project-theme .hero.cinematic .hero-title {
    font-size: clamp(5.5rem, 6vw, 6.55rem);
  }
}

@media (max-width: 1100px) {
  body.project-theme .hero.cinematic .hero-title {
    font-size: 5rem;
  }

  body.project-theme .hero.cinematic .hero-copy {
    font-size: 1.08rem;
  }

}

@media (max-width: 980px) {
  body.project-theme .hero.cinematic,
  body.project-theme .hero.cinematic .hero-grid,
  body.project-theme .hero-copy-panel {
    min-height: calc(100svh - 68px);
  }

  body.project-theme .hero-copy-panel {
    width: 100%;
    padding-top: 48px;
  }

  body.project-theme .hero.cinematic .hero-media {
    height: 100%;
  }

  body.project-theme .hero-signals {
    width: min(100%, 760px);
    margin-top: 28px;
  }
}

@media (max-width: 720px) {
  body.project-theme .page-nav {
    position: sticky;
  }

  body.project-theme .nav-links .back-link {
    order: -1;
    position: static;
    z-index: 2;
    box-shadow: none;
  }

  body.project-theme .hero.cinematic,
  body.project-theme .hero.cinematic .hero-grid,
  body.project-theme .hero-copy-panel {
    min-height: calc(100svh - 72px);
  }

  body.project-theme .hero-copy-panel {
    justify-content: flex-end;
    padding: 46px var(--gutter) 22px;
    background: linear-gradient(180deg, rgba(5, 11, 8, 0.04), rgba(5, 11, 8, 0.84) 48%, rgba(5, 11, 8, 0.94));
  }

  body.project-theme .hero.cinematic .hero-title {
    max-width: 11ch;
    margin-bottom: 14px;
    font-size: 3.35rem;
    line-height: 1;
  }

  body.project-theme .hero.cinematic .hero-copy {
    font-size: 0.98rem;
    line-height: 1.52;
  }

  body.project-theme .hero-actions {
    gap: 8px;
    margin-top: 20px;
  }

  body.project-theme .hero-actions .button {
    min-height: 44px;
    padding-inline: 15px;
    font-size: 0.66rem;
  }

  body.project-theme .hero-signals {
    grid-template-columns: repeat(3, minmax(112px, 1fr));
    margin-top: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.project-theme .hero-signals::-webkit-scrollbar {
    display: none;
  }

  body.project-theme .signal-chip {
    min-height: 80px;
    padding: 13px 14px;
  }

  body.project-theme .signal-chip strong {
    font-size: 1.28rem;
  }

  body.project-theme .signal-chip span {
    font-size: 0.52rem;
  }

  body.project-theme .section {
    padding: 56px 0;
  }

  body.project-theme .section-head {
    margin-bottom: 26px;
  }

  body.project-theme .section-title {
    font-size: 2.55rem;
  }

  body.project-theme .record-list li {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  body.project-theme .record-list b {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 380px) {
  body.project-theme .hero.cinematic .hero-title {
    font-size: 3rem;
  }

  body.project-theme .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Final DTP hardening for project pages. */
html,
body {
  overflow-x: clip;
}

body.project-theme .hero.cinematic .hero-title,
body.project-theme .section-title,
body.project-theme .metric strong,
body.project-theme .signal-chip strong {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

body.project-theme .hero.cinematic .hero-title {
  font-size: clamp(4rem, 6.2vw, 6rem);
  line-height: 0.98;
}

body.project-theme .hero-copy {
  max-width: 34rem;
}

body.project-theme .decision-band {
  gap: clamp(24px, 5vw, 70px);
}

@media (max-width: 720px) {
  body.project-theme .hero.cinematic,
  body.project-theme .hero.cinematic .hero-grid,
  body.project-theme .hero-copy-panel {
    min-height: auto;
  }

  body.project-theme .hero-copy-panel {
    padding-block: 88px 26px;
  }

  body.project-theme .hero.cinematic .hero-title {
    max-width: 12ch;
    font-size: clamp(2.7rem, 10.8vw, 3.25rem);
    line-height: 1.02;
  }

  body.project-theme .hero-actions {
    width: 100%;
    align-items: stretch;
  }

  body.project-theme .hero-actions .button {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  body.project-theme .section-title {
    font-size: clamp(2rem, 8.2vw, 2.8rem);
    line-height: 1.06;
  }
}

/* Unified project-page close: partner ask and footer read as one memorable ending. */
body.project-theme {
  --close-bg: #0b2016;
  --close-panel: #102c1f;
  --close-panel-2: #153827;
  --close-ink: #f4f7ef;
  --close-muted: rgba(232, 240, 231, 0.72);
  --close-line: rgba(255, 255, 255, 0.14);
  --close-accent: #b7df62;
  --close-warm: #d5b56b;
}

body.project-theme main > .section:last-of-type {
  margin-bottom: 0;
  padding-block: clamp(46px, 6vw, 82px) 0;
  background:
    linear-gradient(180deg, rgba(247, 247, 241, 0) 0, rgba(11, 32, 22, 0.06) 44%, var(--close-bg) 44%);
}

body.project-theme main > .section:last-of-type > .container {
  max-width: none;
  padding-inline: var(--gutter);
}

body.project-theme .decision-band {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 34vw, 460px);
  margin-inline: 0;
  border: 1px solid var(--close-line);
  border-radius: 18px 18px 0 0;
  padding: clamp(34px, 5.2vw, 76px);
  background:
    linear-gradient(135deg, var(--close-panel) 0%, var(--close-panel-2) 62%, #091910 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08), 0 26px 90px rgba(2, 13, 8, 0.24);
}

body.project-theme .decision-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--close-accent), transparent 24%, transparent 76%, var(--close-warm)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 96px);
  background-size: 100% 3px, auto;
  background-repeat: no-repeat, repeat;
  opacity: 0.72;
}

body.project-theme .decision-band > * {
  position: relative;
  z-index: 1;
}

body.project-theme .decision-band .kicker {
  color: rgba(209, 232, 168, 0.78);
}

body.project-theme .decision-band .section-title {
  max-width: 13ch;
  color: var(--close-ink);
}

body.project-theme .decision-band .section-copy,
body.project-theme .decision-step p {
  color: var(--close-muted);
}

body.project-theme .decision-step {
  border-top-color: rgba(255, 255, 255, 0.18);
}

body.project-theme .decision-step b {
  color: rgba(213, 181, 107, 0.88);
}

body.project-theme .decision-band .button.primary {
  border-color: var(--close-accent);
  background: var(--close-accent);
  color: #102014;
  box-shadow: 0 12px 28px rgba(183, 223, 98, 0.18);
}

body.project-theme .decision-band .button:not(.primary) {
  border-color: rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 720px) {
  body.project-theme main > .section:last-of-type {
    padding-top: 34px;
  }

  body.project-theme .hero-actions .button {
    font-size: 0.74rem;
    line-height: 1.15;
  }

  body.project-theme .signal-chip span {
    font-size: 0.64rem;
    line-height: 1.22;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.project-theme .decision-band {
    min-height: 0;
    border-radius: 14px 14px 0 0;
    padding: 28px 20px;
  }

}

/* Final project nav and button standardisation. */
body.project-theme {
  --nav-height-final: 68px;
  --nav-bg-final: rgba(247, 248, 244, 0.88);
  --nav-bg-scrolled-final: rgba(247, 248, 244, 0.96);
  --nav-line-final: rgba(31, 29, 26, 0.10);
  --nav-ink-final: #1f1d1a;
  --nav-muted-final: rgba(31, 29, 26, 0.66);
  --nav-active-final: rgba(31, 107, 67, 0.10);
  --button-bg-final: #1f1d1a;
  --button-bg-hover-final: var(--accent-deep);
  --button-line-final: rgba(31, 29, 26, 0.16);
}

body.project-theme .page-nav {
  min-height: var(--nav-height-final);
  z-index: 100;
  background: var(--nav-bg-final);
  border-bottom: 1px solid var(--nav-line-final);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

body.project-theme .page-nav.is-scrolled {
  background: var(--nav-bg-scrolled-final);
  box-shadow: 0 8px 28px rgba(20, 30, 23, 0.055);
}

body.project-theme .nav-inner {
  min-height: var(--nav-height-final);
  gap: clamp(18px, 2.2vw, 34px);
}

body.project-theme .brand-logo {
  width: clamp(128px, 10vw, 150px);
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  mix-blend-mode: multiply;
}

body.project-theme .nav-links {
  gap: clamp(4px, 0.55vw, 8px);
  color: var(--nav-muted-final);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 560;
  letter-spacing: 0;
  text-transform: none;
}

body.project-theme .nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 11px;
  color: inherit;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

body.project-theme .nav-links a:hover,
body.project-theme .nav-links a:focus-visible {
  background: var(--nav-active-final);
  color: var(--nav-ink-final);
}

body.project-theme .nav-links .back-link {
  border-color: rgba(31, 29, 26, 0.18);
  background: rgba(255, 255, 255, 0.64);
  color: var(--nav-ink-final);
  box-shadow: none;
}

body.project-theme .mobile-menu-button {
  display: none;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--button-line-final);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.70);
  color: var(--nav-ink-final);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(20, 30, 23, 0.045);
}

body.project-theme .mobile-menu-button:hover,
body.project-theme .mobile-menu-button:focus-visible {
  border-color: rgba(18, 103, 70, 0.34);
  background: #fff;
  color: #0d2f20;
  transform: translateY(-1px);
}

body.project-theme .mobile-panel {
  display: none;
  border-top: 1px solid rgba(31, 29, 26, 0.08);
  border-bottom: 1px solid var(--nav-line-final);
  background: rgba(247, 248, 244, 0.98);
  box-shadow: 0 18px 34px rgba(20, 30, 23, 0.06);
}

body.project-theme .mobile-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(20, 23, 20, 0.08);
  padding: 0 22px;
  color: var(--nav-ink-final);
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 560;
  letter-spacing: 0;
}

body.project-theme .mobile-panel a:last-child {
  border-bottom: 0;
  color: var(--accent-deep);
  font-weight: 680;
}

body.project-theme .button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 20px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.12;
  white-space: normal;
  text-align: center;
}

body.project-theme .button.primary {
  border-color: var(--button-bg-final);
  background: var(--button-bg-final);
  color: #fff;
}

body.project-theme .button.primary:hover,
body.project-theme .button.primary:focus-visible {
  border-color: var(--button-bg-hover-final);
  background: var(--button-bg-hover-final);
}

body.project-theme .button:not(.primary) {
  border-color: var(--button-line-final);
  background: rgba(255, 255, 255, 0.54);
  color: var(--button-bg-final);
}

body.project-theme .button:not(.primary):hover,
body.project-theme .button:not(.primary):focus-visible {
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  background: #fff;
  color: var(--accent-deep);
}

body.project-theme .decision-band .button.primary {
  border-color: var(--close-accent);
  background: var(--close-accent);
  color: #102014;
}

body.project-theme .decision-band .button:not(.primary) {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 720px) {
  body.project-theme {
    --nav-height-final: 66px;
  }

  body.project-theme .nav-inner {
    min-height: var(--nav-height-final);
    padding-block: 10px;
    flex-wrap: nowrap;
    align-items: center;
  }

  body.project-theme .nav-links {
    display: none;
  }

  body.project-theme .mobile-menu-button {
    display: inline-flex;
    min-width: 78px;
  }

  body.project-theme .mobile-panel.is-open {
    display: grid;
  }

  body.project-theme .button,
  body.project-theme .hero-actions .button {
    min-height: 44px;
    padding-inline: 16px;
    font-size: 0.78rem;
  }
}

/* Final project hero viewport fit. */
body.project-theme {
  --project-hero-nav-offset: 69px;
}

body.project-theme .hero.cinematic {
  min-height: calc(100svh - var(--project-hero-nav-offset));
}

@supports (height: 100dvh) {
  body.project-theme .hero.cinematic {
    min-height: calc(100dvh - var(--project-hero-nav-offset));
  }
}

body.project-theme .hero.cinematic .hero-grid,
body.project-theme .hero-copy-panel {
  min-height: inherit;
}

body.project-theme .hero-copy-panel {
  justify-content: center;
  padding-top: clamp(48px, 6vh, 72px);
  padding-bottom: clamp(26px, 4.2vh, 38px);
}

body.project-theme .hero-copy-top {
  max-width: 800px;
}

body.project-theme .hero.cinematic .breadcrumb {
  margin-bottom: clamp(18px, 2.6vh, 28px);
}

body.project-theme .hero.cinematic .kicker {
  margin-bottom: clamp(12px, 2vh, 18px);
}

body.project-theme .hero.cinematic .hero-title {
  font-size: clamp(4.15rem, 5.8vw, 5.85rem);
  line-height: 0.98;
}

body.project-theme .hero.cinematic .hero-copy {
  max-width: 45ch;
  font-size: clamp(1.03rem, 1.08vw, 1.14rem);
  line-height: 1.56;
}

body.project-theme .hero-actions {
  margin-top: clamp(20px, 3vh, 28px);
}

body.project-theme .hero-signals {
  margin-top: clamp(24px, 3.7vh, 34px);
}

body.project-theme .signal-chip {
  min-height: clamp(88px, 10.4vh, 104px);
}

@media (max-width: 1100px) {
  body.project-theme .hero.cinematic .hero-title {
    font-size: clamp(3.4rem, 7.8vw, 4.8rem);
  }
}

@media (max-width: 720px) {
  body.project-theme {
    --project-hero-nav-offset: 67px;
  }

  body.project-theme .hero.cinematic {
    min-height: calc(100svh - var(--project-hero-nav-offset));
  }

  @supports (height: 100dvh) {
    body.project-theme .hero.cinematic {
      min-height: calc(100dvh - var(--project-hero-nav-offset));
    }
  }

  body.project-theme .hero-copy-panel {
    justify-content: center;
    padding-top: clamp(24px, 5vh, 42px);
    padding-bottom: clamp(24px, 5vh, 42px);
  }

  body.project-theme .hero.cinematic .breadcrumb {
    margin-bottom: 14px;
  }

  body.project-theme .hero.cinematic .kicker {
    margin-bottom: 10px;
  }

  body.project-theme .hero.cinematic .hero-title {
    max-width: 11.6ch;
    margin-bottom: 12px;
    font-size: clamp(2.55rem, 9.6vw, 3.08rem);
    line-height: 1.02;
  }

  body.project-theme .hero.cinematic .hero-copy {
    max-width: 39ch;
    font-size: 0.94rem;
    line-height: 1.46;
  }

  body.project-theme .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
    gap: 8px;
  }

  body.project-theme .hero-actions .button {
    width: auto;
    min-height: 42px;
    padding-inline: 14px;
    font-size: 0.72rem;
  }

  body.project-theme .hero-signals {
    margin-top: 14px;
  }

  body.project-theme .signal-chip {
    min-height: 74px;
    padding: 11px 12px;
  }

  body.project-theme .signal-chip strong {
    font-size: 1.18rem;
  }

  body.project-theme .signal-chip span {
    font-size: 0.58rem;
    line-height: 1.22;
  }
}

@media (max-width: 390px) and (max-height: 740px) {
  body.project-theme .hero-copy-panel {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  body.project-theme .hero.cinematic .breadcrumb {
    margin-bottom: 10px;
  }

  body.project-theme .hero.cinematic .hero-copy {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  body.project-theme .hero-signals {
    grid-template-columns: repeat(3, minmax(104px, 1fr));
  }
}

@media (max-width: 360px) {
  body.project-theme .hero-actions {
    grid-template-columns: 1fr;
  }
}

/* Batch 1 master pass: keep project pages aligned with the main-site editorial system. */
body.project-theme {
  --project-caption-line: rgba(31, 29, 26, 0.16);
  --project-caption-ink: rgba(31, 29, 26, 0.72);
}

body.project-theme .hero.cinematic .hero-title,
body.project-theme .section-title {
  font-weight: 500;
  letter-spacing: 0;
}

body.project-theme .hero.cinematic .hero-copy,
body.project-theme .section-copy,
body.project-theme .decision-step p {
  max-width: 62ch;
}

body.project-theme figure > figcaption,
body.project-theme .media-caption,
body.project-theme .project-caption {
  max-width: 46rem;
  border-top: 1px solid var(--project-caption-line);
  padding-top: 10px;
  color: var(--project-caption-ink);
  font-size: clamp(0.74rem, 0.78vw, 0.84rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 720px) {
  body.project-theme figure > figcaption,
  body.project-theme .media-caption,
  body.project-theme .project-caption {
    font-size: 0.78rem;
  }

}

/* Hero captions remain in markup for context but do not render over project banners. */
body.project-theme .hero-caption {
  display: none !important;
}

/* High-editorial magazine caption pass for project pages. */
body.project-theme figure > figcaption,
body.project-theme .media-caption,
body.project-theme .project-caption {
  max-width: 42rem;
  border-top: 1px solid rgba(20, 23, 20, 0.18);
  padding-top: 9px;
  color: rgba(20, 23, 20, 0.66);
  font-size: clamp(0.72rem, 0.76vw, 0.82rem);
  font-weight: 460;
  line-height: 1.46;
}

body.project-theme figure > figcaption strong,
body.project-theme .media-caption strong,
body.project-theme .project-caption strong {
  color: rgba(20, 23, 20, 0.82);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 680;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
