:root {
  --ink: #101820;
  --text: #26343f;
  --muted: #60717f;
  --line: #d9e1e5;
  --surface: #ffffff;
  --soft: #f4f7f7;
  --green: #1d5f48;
  --leaf: #78a83f;
  --aqua: #177b86;
  --blue: #244f78;
  --amber: #c47a24;
  --charcoal: #17232b;
  --shadow: 0 20px 60px rgba(17, 33, 42, 0.14);
  --radius: 8px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 32px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 225, 229, 0.85);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 6px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 10px 12px;
  color: #31414d;
  font-size: 0.92rem;
  border-radius: 6px;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: #eef3f3;
  outline: none;
}

.nav a[aria-current="page"] {
  color: var(--green);
  background: #e9f2ee;
}

.nav .nav-cta {
  margin-left: 8px;
  color: #ffffff;
  background: var(--green);
}

.nav .nav-cta:hover,
.nav .nav-cta:focus-visible {
  color: #ffffff;
  background: #174d3b;
}

.nav-toggle {
  display: none;
  width: 44px;
  aspect-ratio: 1;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: clamp(500px, 66svh, 640px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background: var(--charcoal);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/images/hero-cea-greenhouse.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.92), rgba(16, 24, 32, 0.72) 44%, rgba(16, 24, 32, 0.3)),
    linear-gradient(0deg, rgba(16, 24, 32, 0.76), rgba(16, 24, 32, 0.06) 52%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 86px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--aqua);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #99d7dc;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(3rem, 8vw, 5.4rem);
}

.hero-kicker {
  max-width: 800px;
  margin: 14px 0 0;
  color: #cfe8e3;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 700;
}

.hero-copy {
  max-width: 740px;
  margin: 14px 0 0;
  color: #eef7f5;
  font-size: 1.04rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  color: #ffffff;
  background: var(--green);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #174d3b;
  outline: none;
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.hero-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1040px, calc(100% - 48px));
  margin: -104px auto 30px;
  padding: 0;
  color: #ffffff;
  background: rgba(16, 24, 32, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-metrics div {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics dt {
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 0;
  color: #cfe1dd;
  font-size: 0.9rem;
}

.keyword-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: #f8faf9;
}

.keyword-strip span {
  min-width: 0;
  padding: 18px 24px;
  color: #31414d;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  border-right: 1px solid var(--line);
}

.keyword-strip span:last-child {
  border-right: 0;
}

.section {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 60px;
}

.intro-copy {
  color: #31414d;
  font-size: 1.03rem;
}

.intro-copy p {
  margin: 0 0 18px;
}

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

.system-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 0 0 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.card-link:hover,
.card-link:focus-visible,
.phase-track a:hover,
.phase-track a:focus-visible,
.related-card:hover,
.related-card:focus-visible {
  border-color: var(--green);
  box-shadow: 0 16px 36px rgba(17, 33, 42, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.system-card img,
.solution-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.system-card:nth-child(2) {
  border-top-color: var(--amber);
}

.system-card:nth-child(3) {
  border-top-color: var(--blue);
}

.system-card:nth-child(4) {
  border-top-color: var(--aqua);
}

.system-card:nth-child(5) {
  border-top-color: var(--green);
}

.system-card:nth-child(6) {
  border-top-color: var(--leaf);
}

.system-card:nth-child(7) {
  border-top-color: var(--amber);
}

.icon-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 26px;
  margin: 22px 24px 18px;
  color: #ffffff;
  background: var(--charcoal);
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 800;
}

.system-card h3,
.phase-track h3,
.spec-panel h3 {
  margin-bottom: 14px;
  font-size: 1.14rem;
}

.system-card p,
.phase-track p {
  margin: 0 24px;
  color: var(--muted);
  font-size: 0.96rem;
}

.system-card h3 {
  margin-left: 24px;
  margin-right: 24px;
}

.card-action {
  display: inline-flex;
  margin: auto 24px 0;
  padding-top: 18px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
}

.solutions {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1160px) / 2));
  background: #f7f3ea;
}

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

.solution-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 0 0 24px;
  background: #ffffff;
  border: 1px solid #e1d7c2;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.solution-label {
  display: inline-flex;
  align-self: flex-start;
  margin: 22px 24px 18px;
  padding: 6px 9px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 5px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.solution-card:nth-child(2) .solution-label {
  background: var(--green);
}

.solution-card:nth-child(3) .solution-label {
  background: var(--aqua);
}

.solution-card:nth-child(4) .solution-label {
  background: var(--amber);
}

.solution-card h3 {
  margin-left: 24px;
  margin-right: 24px;
  margin-bottom: 14px;
  font-size: 1.18rem;
}

.solution-card p {
  margin: 0 24px;
  color: var(--muted);
  font-size: 0.96rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
  background: #ffffff;
  border: 1px solid #e1d7c2;
  border-radius: var(--radius);
  overflow: hidden;
}

.proof-strip span {
  padding: 16px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  border-right: 1px solid #e1d7c2;
}

.proof-strip span:last-child {
  border-right: 0;
}

.evidence {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1160px) / 2));
  background: #eef3f3;
}

.drawing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.52fr);
  gap: 24px;
  align-items: stretch;
}

.featured-drawing,
.gallery-preview,
.topology-figure {
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 35px rgba(17, 33, 42, 0.08);
}

.featured-drawing img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: top center;
}

figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.drawing-list {
  display: grid;
  gap: 12px;
}

.drawing-button {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 18px;
  color: var(--text);
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.drawing-button:hover,
.drawing-button:focus-visible,
.drawing-button.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 95, 72, 0.12);
  outline: none;
}

.drawing-button strong {
  color: var(--green);
  font-size: 0.9rem;
}

.drawing-button span {
  color: var(--muted);
  font-size: 0.94rem;
}

.gallery-preview {
  width: min(980px, 100%);
  margin: 26px auto 0;
}

.gallery-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #ffffff;
}

.architecture-grid,
.market-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 42px;
  align-items: center;
}

.architecture-copy p,
.market-grid p {
  margin: 0 0 18px;
  color: #31414d;
  font-size: 1.02rem;
}

.check-list,
.market-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li,
.market-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}

.check-list li::before,
.market-list li::before {
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--leaf);
  border-radius: 50%;
}

.topology-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.project-specs {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1160px) / 2));
  background: var(--charcoal);
}

.project-specs .eyebrow {
  color: #99d7dc;
}

.project-specs h2 {
  color: #ffffff;
}

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

.spec-panel {
  padding: 28px;
  color: #d8e5e3;
  background: #20313b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.spec-panel.accent {
  background: #1f3b42;
}

.spec-panel h3 {
  color: #ffffff;
}

.spec-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.spec-list dt {
  color: #a6d6cc;
  font-weight: 800;
}

.spec-list dd {
  margin: 0;
}

.phase-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.phase-track a {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.phase-track span {
  display: block;
  margin-bottom: 18px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.phase-track a strong {
  display: inline-flex;
  margin-top: auto;
  padding-top: 18px;
  color: var(--green);
  font-size: 0.9rem;
}

.phase-track p {
  margin: 0;
}

.button-light {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.button-light:hover,
.button-light:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 95, 72, 0.12);
  outline: none;
}

.detail-page {
  background: #ffffff;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.82fr);
  gap: 48px;
  align-items: center;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0;
}

.detail-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.detail-kicker {
  margin: 18px 0 0;
  color: var(--blue);
  font-size: 1.32rem;
  font-weight: 800;
}

.detail-summary {
  max-width: 700px;
  margin: 18px 0 0;
  color: #31414d;
  font-size: 1.06rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.detail-image {
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 84px;
}

.detail-main {
  display: grid;
  gap: 18px;
}

.detail-section,
.detail-aside,
.related-card {
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-section h2,
.detail-aside h2 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.detail-section p {
  margin: 0;
  color: #31414d;
}

.detail-aside {
  align-self: start;
  background: #f8faf9;
}

.detail-bullets {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.detail-bullets li {
  position: relative;
  padding-left: 26px;
}

.detail-bullets li::before {
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--leaf);
  border-radius: 50%;
}

.related-section {
  padding-top: 0;
}

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

.related-card {
  display: grid;
  gap: 9px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.related-card span {
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.related-card strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.related-card small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.support-note {
  margin-top: 22px;
  padding: 18px 20px;
  color: #31414d;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.support-note strong {
  color: var(--ink);
}

.market {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1160px) / 2));
  background: #f7f3ea;
}

.market-list {
  margin: 0;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e1d7c2;
  border-radius: var(--radius);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: 48px;
}

.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.contact-copy p {
  margin: 18px 0 24px;
  color: #31414d;
  font-size: 1.04rem;
}

address {
  color: var(--text);
  font-style: normal;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 35px rgba(17, 33, 42, 0.08);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 12px;
  color: var(--ink);
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 95, 72, 0.12);
  outline: none;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.control-feature {
  width: 100%;
  padding: 72px max(24px, calc((100vw - 1160px) / 2));
  color: #dbe9e6;
  background: #14242b;
}

.control-feature h2 {
  max-width: 680px;
  color: #ffffff;
  font-size: 2.35rem;
}

.control-feature p:not(.eyebrow) {
  max-width: 660px;
  margin: 18px 0 0;
  color: #bcd1cc;
  font-size: 1.02rem;
}

.control-feature .eyebrow {
  color: #99d7dc;
}

.control-feature-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
  gap: 42px;
  align-items: center;
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.console-preview {
  min-width: 0;
  padding: 18px;
  background: #edf4f2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.preview-topbar,
.preview-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

.preview-topbar {
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.preview-topbar span,
.preview-control-row span,
.preview-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.preview-topbar strong,
.preview-control-row strong {
  color: var(--green);
  font-size: 0.86rem;
}

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

.preview-grid div {
  min-height: 116px;
  display: grid;
  align-content: space-between;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.preview-grid strong {
  color: var(--ink);
  font-size: 1.42rem;
}

.preview-grid small {
  color: var(--muted);
  font-size: 0.84rem;
}

.preview-control-row {
  display: grid;
  grid-template-columns: repeat(6, auto);
  margin-top: 10px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.env-body {
  background: #edf2f0;
}

.env-console-page {
  background: #edf2f0;
}

.env-console-shell {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 46px;
}

.env-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.env-command-bar h1 {
  font-size: 2.1rem;
}

.env-command-bar p:not(.eyebrow) {
  max-width: 860px;
  margin: 10px 0 0;
  color: var(--muted);
}

.env-command-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(100%, 560px);
}

.env-select,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 6px;
}

.env-select {
  gap: 8px;
  padding: 6px 8px 6px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.env-select span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.env-select select {
  min-width: 190px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
}

.mode-control {
  display: inline-flex;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.mode-button,
.env-tab,
.period-switch button,
.recipe-tabs button,
.dose-buttons button,
.action-list button {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--text);
  background: #ffffff;
  border: 0;
  cursor: pointer;
}

.mode-button + .mode-button {
  border-left: 1px solid var(--line);
}

.mode-button.is-active,
.env-tab.is-active,
.period-switch button.is-active,
.recipe-tabs button.is-active {
  color: #ffffff;
  background: var(--green);
}

.status-pill {
  padding: 7px 10px;
  color: #526676;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-online {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.env-console-frame {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 760px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #cfdadd;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(17, 33, 42, 0.12);
}

.env-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  background: #17232b;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.facility-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  color: #ffffff;
  background: #20313b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.facility-card span,
.facility-card small,
.facility-metrics span,
.env-quick-status {
  color: #b9cac6;
  font-size: 0.82rem;
}

.facility-card strong {
  color: #ffffff;
  font-size: 1rem;
}

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

.facility-metrics div {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 12px;
  background: #20313b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.facility-metrics strong {
  color: #ffffff;
  font-size: 1.35rem;
}

.env-quick-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 8px;
  align-items: center;
  padding: 14px;
  background: #20313b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.mini-led {
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.mini-led.is-green {
  background: var(--leaf);
}

.mini-led.is-amber {
  background: var(--amber);
}

.mini-led.is-blue {
  background: var(--aqua);
}

.env-workspace {
  min-width: 0;
  background: #f6f8f8;
}

.env-tabs {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  padding: 12px 12px 0;
  background: #e7eeee;
  border-bottom: 1px solid #d2dedf;
}

.env-tab {
  flex: 0 0 auto;
  min-width: 112px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  font-weight: 800;
}

.env-panel-stack {
  padding: 18px;
}

.env-tab-panel {
  min-width: 0;
}

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

.sensor-card {
  position: relative;
  min-height: 136px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 6px;
}

.sensor-card.is-warn {
  border-left-color: var(--amber);
}

.sensor-card span,
.sensor-card em,
.sensor-card b,
.history-stat span,
.history-stat small {
  color: var(--muted);
  font-size: 0.82rem;
}

.sensor-card span,
.history-stat span {
  font-weight: 800;
  text-transform: uppercase;
}

.sensor-card strong {
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1;
}

.sensor-card strong small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.76rem;
}

.sensor-card em {
  font-style: normal;
}

.sensor-card b {
  color: var(--green);
  font-weight: 800;
}

.env-data-panel,
.chart-panel,
.ai-score-panel,
.ai-panel,
.control-panel,
.alarm-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.env-wide-panel {
  margin-top: 14px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-heading .eyebrow {
  margin-bottom: 6px;
}

.panel-heading h2,
.chart-panel h2,
.ai-score-panel h2,
.control-panel h2,
.alarm-panel h2 {
  font-size: 1.04rem;
}

.zone-table-wrap {
  overflow-x: auto;
}

.zone-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.zone-table th,
.zone-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.zone-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.zone-table td {
  color: var(--text);
  font-size: 0.92rem;
}

.table-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 800;
}

.chip-ok {
  color: #ffffff;
  background: var(--green);
}

.chip-warn {
  color: #ffffff;
  background: var(--amber);
}

.chip-info {
  color: #ffffff;
  background: var(--aqua);
}

.chip-muted {
  color: #60717f;
  background: #edf2f0;
}

.history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.period-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.period-switch button + button {
  border-left: 1px solid var(--line);
}

.history-toolbar span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.history-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.history-stat {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.history-stat strong {
  color: var(--ink);
  font-size: 1.5rem;
}

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

.chart-panel {
  min-width: 0;
  overflow: hidden;
}

.chart-panel header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.chart-panel header span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.chart-panel canvas {
  display: block;
  width: 100%;
  height: 240px;
}

.ai-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.32fr) repeat(2, minmax(0, 0.68fr));
  gap: 12px;
}

.ai-score-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  grid-row: span 2;
}

.ai-score-ring {
  display: grid;
  place-items: center;
  width: 140px;
  aspect-ratio: 1;
  color: #ffffff;
  background:
    conic-gradient(var(--green) 0 86%, #dfe8e6 86% 100%);
  border: 10px solid #ffffff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 18px var(--green), 0 10px 26px rgba(17, 33, 42, 0.12);
  font-size: 2.2rem;
  font-weight: 900;
}

.ai-score-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.ai-panel {
  min-width: 0;
}

.ai-actions-panel {
  grid-column: 2 / 4;
}

.weather-current {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 14px 0;
}

.weather-current article {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 12px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.weather-current span,
.weather-hour span,
.weather-hour small,
.panel-heading [data-weather-location] {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.weather-current strong {
  color: var(--ink);
  font-size: 1.32rem;
  line-height: 1;
}

.weather-current small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.weather-hours {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px 14px;
}

.weather-hour {
  display: grid;
  gap: 5px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.weather-hour time {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.weather-hour strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.ai-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.ai-insight {
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 14px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 6px;
}

.ai-insight.is-watch {
  border-left-color: var(--amber);
}

.ai-insight.is-optimize {
  border-left-color: var(--aqua);
}

.ai-insight span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-insight strong {
  color: var(--ink);
}

.ai-insight p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.action-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  list-style: none;
}

.action-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.action-list button,
.dose-buttons button {
  color: #ffffff;
  background: var(--blue);
  border-radius: 5px;
  font-weight: 800;
}

.control-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 12px;
}

.actuator-grid,
.setpoint-grid {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.toggle-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.toggle-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-switch {
  position: relative;
  width: 46px;
  height: 26px;
  background: #c7d2d6;
  border-radius: 999px;
  transition: background 160ms ease;
}

.toggle-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  aspect-ratio: 1;
  content: "";
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(17, 33, 42, 0.18);
  transition: transform 160ms ease;
}

.toggle-card input:checked + .toggle-switch {
  background: var(--green);
}

.toggle-card input:checked + .toggle-switch::after {
  transform: translateX(20px);
}

.toggle-label {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.toggle-label strong,
.setpoint-row strong {
  color: var(--ink);
}

.toggle-label small,
.setpoint-row small {
  color: var(--muted);
}

.toggle-card em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.setpoint-row {
  display: grid;
  grid-template-columns: minmax(145px, 0.5fr) minmax(160px, 1fr) 86px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.setpoint-row span {
  display: grid;
  gap: 2px;
}

.setpoint-row input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.setpoint-row output {
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: right;
}

.recipe-panel,
.irrigation-panel {
  grid-column: span 1;
}

.recipe-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 14px 0;
}

.recipe-tabs button {
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.recipe-details {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
}

.recipe-details div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.recipe-details dt {
  color: var(--muted);
  font-weight: 800;
}

.recipe-details dd {
  margin: 0;
  color: var(--text);
}

.dose-buttons,
.irrigation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}

.irrigation-zones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
}

.irrigation-zones label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.irrigation-zones input {
  accent-color: var(--green);
}

.alarm-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
}

.alarm-panel {
  min-width: 0;
}

.event-log-panel {
  grid-column: 1 / -1;
}

.interlock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.interlock-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 6px;
}

.interlock-card.is-amber {
  border-left-color: var(--amber);
}

.interlock-card.is-blue {
  border-left-color: var(--aqua);
}

.interlock-card span,
.interlock-card small {
  color: var(--muted);
  font-size: 0.82rem;
}

.interlock-card span {
  font-weight: 900;
  text-transform: uppercase;
}

.interlock-card strong {
  color: var(--ink);
}

.event-log {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  list-style: none;
}

.event-log li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.event-log time {
  color: var(--aqua);
  font-weight: 900;
}

.event-log span {
  color: var(--text);
}

.env-contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto 64px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.env-contact-strip h2 {
  max-width: 720px;
  font-size: 1.7rem;
}

.env-next-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  color: #d8e5e3;
  background: var(--charcoal);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #a6d6cc;
  font-weight: 700;
}

@media (max-width: 1040px) {
  .system-grid,
  .solution-grid,
  .phase-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drawing-layout,
  .architecture-grid,
  .market-grid,
  .detail-hero,
  .detail-content,
  .contact-section,
  .intro-band {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-drawing img {
    min-height: 320px;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 0 18px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    padding: 10px 18px 18px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(17, 33, 42, 0.12);
  }

  .nav.is-open {
    display: grid;
  }

  .nav a,
  .nav .nav-cta {
    margin: 0;
    padding: 12px;
  }

  .hero {
    min-height: 610px;
  }

  .hero-inner {
    width: min(100% - 32px, 1040px);
    padding: 42px 0 122px;
  }

  .hero-kicker {
    font-size: 1.08rem;
  }

  .hero-copy {
    font-size: 0.96rem;
    line-height: 1.48;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100% - 32px, 1040px);
    margin: -116px auto 18px;
  }

  .hero-metrics div {
    padding: 14px 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
  }

  .hero-metrics div:last-child {
    border-right: 0;
  }

  .hero-metrics dt {
    font-size: 1.05rem;
  }

  .hero-metrics dd {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .keyword-strip {
    grid-template-columns: 1fr 1fr;
  }

  .keyword-strip span:nth-child(2) {
    border-right: 0;
  }

  .keyword-strip span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section,
  .evidence,
  .solutions,
  .project-specs,
  .market {
    width: 100%;
    padding: 64px 18px;
  }

  .detail-hero,
  .detail-content {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  .detail-hero {
    padding-top: 52px;
    padding-bottom: 46px;
  }

  .detail-content {
    padding-top: 0;
    padding-bottom: 64px;
  }
}

@media (max-width: 600px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 17vw, 4.2rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .system-grid,
  .solution-grid,
  .phase-track,
  .related-grid,
  .spec-layout {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip span {
    border-right: 0;
    border-bottom: 1px solid #e1d7c2;
  }

  .proof-strip span:last-child {
    border-bottom: 0;
  }

  .keyword-strip {
    grid-template-columns: 1fr;
  }

  .keyword-strip span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .keyword-strip span:last-child {
    border-bottom: 0;
  }

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    display: grid;
    padding: 28px 18px;
  }
}

@media (max-width: 1180px) {
  .sensor-grid,
  .history-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .control-page-grid,
  .alarm-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1040px) {
  .control-feature-inner,
  .env-command-bar,
  .env-console-frame,
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .env-command-actions {
    justify-content: flex-start;
  }

  .env-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .facility-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ai-score-panel,
  .ai-actions-panel {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 820px) {
  .control-feature {
    padding: 58px 18px;
  }

  .control-feature h2 {
    font-size: 2rem;
  }

  .control-feature-inner {
    gap: 28px;
  }

  .env-console-shell {
    width: 100%;
    padding: 24px 18px 40px;
  }

  .env-console-frame {
    min-height: 0;
  }

  .sensor-grid,
  .history-summary-grid,
  .chart-grid,
  .ai-insights,
  .weather-current,
  .weather-hours,
  .interlock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-toolbar,
  .env-contact-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .env-next-actions {
    justify-content: flex-start;
  }

  .setpoint-row {
    grid-template-columns: 1fr;
  }

  .setpoint-row output {
    text-align: left;
  }

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

@media (max-width: 600px) {
  .preview-grid,
  .preview-control-row,
  .sensor-grid,
  .history-summary-grid,
  .chart-grid,
  .ai-insights,
  .weather-current,
  .weather-hours,
  .facility-metrics,
  .interlock-grid,
  .irrigation-zones {
    grid-template-columns: 1fr;
  }

  .preview-control-row {
    gap: 8px;
  }

  .env-command-actions,
  .env-select,
  .mode-control,
  .status-pill {
    width: 100%;
  }

  .env-select {
    justify-content: space-between;
  }

  .env-select select {
    min-width: 0;
    width: 100%;
  }

  .mode-button {
    flex: 1;
  }

  .env-panel-stack {
    padding: 12px;
  }

  .toggle-card,
  .action-list li,
  .event-log li {
    grid-template-columns: 1fr;
  }

  .recipe-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
