:root {
  color-scheme: light;
  --ink: #203846;
  --navy: #203846;
  --muted: #64747a;
  --teal: #4d8e87;
  --mint: #c2e8e0;
  --pearl: #f6f7f3;
  --paper: #fff;
  --line: #dce4e1;
  --content: 1180px;
  --shadow-soft: 0 14px 36px rgb(32 56 70 / 9%);
  --transition: 180ms ease;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--pearl);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--pearl);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: #276e68;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #174d49;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #70b9ad;
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h1 {
  max-width: 18ch;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  font-weight: 650;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 620;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 620;
}

p {
  margin-bottom: 1.2em;
}

.wrap {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: 76px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
  color: #fff;
}

/* Header and navigation */
.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgb(32 56 70 / 8%);
  background: rgb(246 247 243 / 96%);
}

.header-inner {
  display: flex;
  width: min(1320px, calc(100% - 48px));
  min-height: 78px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.primary-nav > a:not(.button) {
  color: #465b63;
  font-size: 0.91rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav > a:not(.button):hover,
.primary-nav > a[aria-current="page"] {
  color: #276e68;
}

.menu-toggle {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.button:hover {
  transform: translateY(-1px);
  border-color: #315d65;
  background: #315d65;
  color: #fff;
}

.button-small {
  min-height: 40px;
  padding: 9px 15px;
  font-size: 0.88rem;
}

.button-quiet {
  border-color: var(--line);
  background: #fff;
  color: var(--navy);
}

.button-quiet:hover {
  border-color: #b9cfca;
  background: #edf4f1;
  color: var(--navy);
}

.button-light {
  border-color: var(--mint);
  background: var(--mint);
  color: var(--navy);
}

.button-light:hover {
  border-color: #d5f0ea;
  background: #d5f0ea;
  color: var(--navy);
}

.text-link {
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Homepage hero */
.home-hero {
  position: relative;
  display: grid;
  min-height: 540px;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: stretch;
  overflow: hidden;
  background: #e9efeb;
}

.hero-copy {
  display: flex;
  padding: 70px clamp(30px, 7vw, 100px) 75px max(24px, calc((100vw - var(--content)) / 2));
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eyebrow {
  margin-bottom: 13px;
  color: #4e817b;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 5.8vw, 5.6rem);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 48ch;
  margin-bottom: 24px;
  color: #4e6065;
  font-size: 1.08rem;
  line-height: 1.7;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
}

.button-row > a:not(.button) {
  font-weight: 650;
  text-decoration: none;
}

.hero-photo {
  min-height: 440px;
  overflow: hidden;
  background: #bec9c5;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  right: 30px;
  bottom: 22px;
  left: 50%;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 650;
  text-shadow: 0 1px 8px rgb(0 0 0 / 65%);
}

/* Section headings and guide cards */
.intro-section {
  display: grid;
  padding-block: 74px 50px;
  grid-template-columns: 1fr 0.9fr;
  align-items: end;
  gap: 50px;
}

.section-heading h2 {
  max-width: 16ch;
  margin-bottom: 0;
}

.intro-copy {
  max-width: 60ch;
  margin-bottom: 4px;
  color: #586a6e;
  font-size: 1.04rem;
  line-height: 1.75;
}

.section-title-row {
  display: flex;
  margin-bottom: 30px;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
}

.section-title-row h2 {
  margin-bottom: 0;
}

.section-title-row > p {
  max-width: 42ch;
  margin-bottom: 4px;
  color: var(--muted);
}

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

.guide-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 5px 20px rgb(32 56 70 / 4%);
}

.guide-image-link {
  position: relative;
  display: block;
  min-height: 260px;
  overflow: hidden;
  background: #d5dfdc;
  color: #fff;
  text-decoration: none;
}

.guide-image-link::after {
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, rgb(11 28 35 / 70%));
  content: "";
}

.guide-image-link img {
  display: block;
  width: 100%;
  height: 265px;
  object-fit: cover;
  transition: transform 400ms ease;
}

.guide-image-link:hover img {
  transform: scale(1.035);
}

.image-label,
.glass-title {
  position: absolute;
  z-index: 1;
  right: 20px;
  left: 20px;
  color: #fff;
}

.image-label {
  bottom: 69px;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.glass-title {
  bottom: 20px;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.guide-copy {
  padding: 20px 21px 22px;
}

.guide-copy p {
  min-height: 3.2em;
  margin-bottom: 15px;
  color: #5d6d71;
  font-size: 0.94rem;
}

.guide-copy a {
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

/* System flow and trade-offs */
.systems-section {
  margin-top: 22px;
  padding-block: 76px;
  background: #e9efeb;
}

.systems-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: 55px;
}

.systems-copy h2 {
  max-width: 13ch;
}

.systems-copy > p:not(.eyebrow) {
  max-width: 48ch;
  color: #586a6e;
  line-height: 1.75;
}

.systems-copy > a {
  display: inline-block;
  margin-top: 5px;
  font-weight: 700;
  text-decoration: none;
}

.system-diagram {
  position: relative;
  display: grid;
  min-height: 330px;
  padding: 26px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid #d1dfda;
  border-radius: 20px;
  background: rgb(255 255 255 / 68%);
}

.diagram-line {
  position: absolute;
  top: 34%;
  z-index: 0;
  height: 2px;
  background: #96bcb4;
}

.line-a {
  left: 17%;
  width: 21%;
}

.line-b {
  left: 41%;
  width: 20%;
}

.line-c {
  left: 64%;
  width: 19%;
}

.diagram-node {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 130px;
  padding: 17px 13px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #d6e1dd;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 16px rgb(32 56 70 / 5%);
}

.diagram-node span {
  margin-bottom: 9px;
  color: #58877f;
  font-size: 0.63rem;
  font-weight: 750;
  letter-spacing: 0.09em;
}

.diagram-node strong {
  font-size: 0.97rem;
  line-height: 1.2;
}

.diagram-node small {
  margin-top: 6px;
  color: #6d7c7f;
  font-size: 0.76rem;
}

.node-thermal {
  min-height: 78px;
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
}

.node-thermal span {
  margin-bottom: 3px;
}

.node-thermal small {
  margin-top: 2px;
}

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

.tradeoff-grid article {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.tradeoff-number {
  display: inline-block;
  margin-bottom: 17px;
  color: #58877f;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tradeoff-grid h3 {
  font-size: 1.35rem;
}

.tradeoff-grid p {
  margin-bottom: 0;
  color: #607074;
  font-size: 0.94rem;
}

/* Topic article pages */
.page-hero {
  display: grid;
  min-height: 420px;
  padding-block: 50px;
  grid-template-columns: 0.83fr 1.17fr;
  align-items: center;
  gap: clamp(35px, 7vw, 90px);
}

.page-hero-copy h1 {
  font-size: clamp(2.7rem, 5vw, 4.7rem);
}

.page-hero-copy > p:last-child {
  max-width: 48ch;
  margin-bottom: 0;
  color: #586a6e;
  font-size: 1.06rem;
  line-height: 1.7;
}

.page-hero > img {
  display: block;
  width: 100%;
  height: 365px;
  aspect-ratio: 1.4;
  border-radius: 20px;
  object-fit: cover;
}

.article-layout {
  display: grid;
  padding-top: 35px;
  padding-bottom: 88px;
  grid-template-columns: minmax(0, 790px) 220px;
  justify-content: space-between;
  align-items: start;
  gap: 60px;
}

.article-body {
  max-width: 790px;
  min-width: 0;
  color: #3e5259;
}

.article-body h2 {
  margin-top: 47px;
  margin-bottom: 15px;
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
}

.article-body h3 {
  margin-top: 27px;
  font-size: 1.3rem;
}

.article-body p {
  max-width: 72ch;
  margin-bottom: 18px;
  line-height: 1.78;
}

.article-body li {
  line-height: 1.65;
}

.article-lead {
  margin-bottom: 35px;
  padding: 31px 34px;
  border: 1px solid #d8e5e0;
  border-radius: 17px;
  background: #edf3ef;
}

.article-lead h2 {
  margin-top: 0;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.article-lead p:last-child {
  margin-bottom: 0;
}

.article-figure {
  margin: 35px 0;
}

.article-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 15px;
  background: #dce4e1;
  object-fit: cover;
}

.article-figure figcaption {
  margin-top: 10px;
  color: #728084;
  font-size: 0.82rem;
}

.figure-narrow {
  max-width: 700px;
}

.takeaway {
  margin-top: 42px;
  padding: 27px 30px;
  border-left: 4px solid #6da59b;
  border-radius: 0 15px 15px 0;
  background: #edf3ef;
}

.takeaway h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
}

.takeaway ul {
  margin: 0;
  padding-left: 22px;
}

.takeaway li + li {
  margin-top: 8px;
}

.article-aside {
  position: sticky;
  top: 24px;
  display: flex;
  padding: 21px;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.article-aside .eyebrow {
  margin-bottom: 3px;
}

.article-aside > a {
  color: #52666b;
  font-size: 0.88rem;
  text-decoration: none;
}

.article-aside > a:hover {
  color: #276e68;
  text-decoration: underline;
}

.aside-note {
  margin-top: 9px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.aside-note strong {
  font-size: 0.9rem;
}

.aside-note p {
  margin: 5px 0 0;
  color: #697a7e;
  font-size: 0.82rem;
  line-height: 1.55;
}

.related-section {
  padding-block: 66px;
  background: #e9efeb;
}

.related-section h2 {
  margin-bottom: 24px;
}

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

.related-card {
  display: flex;
  min-height: 130px;
  padding: 23px;
  flex-direction: column;
  justify-content: space-between;
  gap: 17px;
  border: 1px solid #d3dfda;
  border-radius: 15px;
  background: #fff;
  color: var(--navy);
  line-height: 1.45;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  color: var(--navy);
}

.related-card span {
  color: #58877f;
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-card strong {
  font-size: 1.05rem;
}

.closing-cta {
  display: flex;
  min-height: 200px;
  margin-block: 65px;
  padding: 36px clamp(25px, 5vw, 58px);
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 20px;
  background: var(--navy);
}

.closing-cta h2 {
  max-width: 22ch;
  margin-bottom: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.closing-cta .eyebrow {
  color: var(--mint);
}

/* Contact and legal pages */
.contact-heading {
  padding-top: 75px;
  padding-bottom: 36px;
}

.contact-heading h1 {
  max-width: 16ch;
}

.contact-heading > p:last-child {
  max-width: 66ch;
  margin-bottom: 0;
  color: #586a6e;
  line-height: 1.75;
}

.contact-layout {
  display: grid;
  padding-top: 15px;
  padding-bottom: 90px;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: start;
  gap: 34px;
}

.contact-form-panel,
.company-information {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.contact-form-panel h2,
.company-information h2 {
  font-size: 1.8rem;
}

.form-intro {
  color: #5d6d71;
  line-height: 1.7;
}

.field {
  display: flex;
  margin-top: 17px;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid #cbd8d4;
  border-radius: 9px;
  background: #fcfdfb;
  color: var(--ink);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field [aria-invalid="true"] {
  border-color: #b43f3f;
}

.field-error {
  min-height: 1.2em;
  color: #a33434;
  font-size: 0.84rem;
}

.form-status {
  min-height: 1.5em;
  margin: 12px 0;
  color: #395e58;
  font-size: 0.9rem;
}

.contact-form-panel form > .button {
  margin-top: 2px;
}

.company-information {
  align-self: start;
}

.company-details {
  margin: 20px 0;
}

.company-details > div {
  padding-block: 13px;
  border-top: 1px solid var(--line);
}

.company-details dt {
  margin-bottom: 4px;
  color: #637579;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.company-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 550;
}

.company-verification-note {
  margin: 20px 0 0;
  padding: 14px;
  border-radius: 10px;
  background: #f3f5f1;
  color: #69777a;
  font-size: 0.83rem;
}

.legal-hero {
  padding-top: 70px;
  padding-bottom: 25px;
}

.legal-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
}

.legal-hero > p:last-child {
  max-width: 75ch;
  color: #657579;
}

.legal-content {
  max-width: 900px;
  padding-top: 12px;
  padding-bottom: 85px;
  color: #455a60;
  line-height: 1.75;
}

.legal-content h2 {
  margin-top: 37px;
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.legal-content p {
  max-width: 75ch;
}

.legal-content code {
  overflow-wrap: anywhere;
  padding: 2px 5px;
  border-radius: 4px;
  background: #edf1ee;
  font-size: 0.9em;
}

.table-wrap {
  width: 100%;
  margin: 25px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
  text-align: left;
}

caption {
  padding: 14px;
  color: var(--navy);
  font-weight: 700;
  text-align: left;
}

th,
td {
  min-width: 130px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: #edf3ef;
  font-size: 0.81rem;
}

tbody th {
  font-weight: 650;
}

/* Footer supports both the supplied static markup and the script-rendered layout. */
.site-footer {
  padding-top: 58px;
  background: #182f3a;
  color: #d8e2df;
}

.footer-main,
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.85fr;
  align-items: start;
  gap: 45px;
}

.footer-brand,
.footer-identity,
.footer-company,
.footer-links,
.footer-navigation,
.footer-legal {
  min-width: 0;
}

.footer-logo {
  margin-bottom: 16px;
  color: #fff;
}

.footer-logo:hover {
  color: #fff;
}

.footer-brand > p,
.footer-description {
  max-width: 36ch;
  color: #b8c8c6;
  font-size: 0.9rem;
}

.footer-brand a:not(.brand),
.footer-identity a:not(.brand) {
  color: #c6e5de;
}

.footer-domain {
  font-weight: 650;
  text-decoration: none;
}

.legal-placeholders {
  overflow-wrap: anywhere;
  font-size: 0.79rem !important;
}

.footer-links,
.footer-navigation,
.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-links h2,
.footer-navigation h2,
.footer-legal h2,
.footer-company h2 {
  margin-bottom: 5px;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0;
}

.footer-links a,
.footer-navigation a,
.footer-legal a,
.footer-preferences {
  padding: 0;
  border: 0;
  background: none;
  color: #c1d0cd;
  cursor: pointer;
  font-size: 0.87rem;
  text-align: left;
  text-decoration: none;
}

.footer-links a:hover,
.footer-navigation a:hover,
.footer-legal a:hover,
.footer-preferences:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-company dl {
  margin: 0;
}

.footer-company dl > div {
  margin-bottom: 10px;
}

.footer-company dt {
  color: #a9bfba;
  font-size: 0.76rem;
  font-weight: 700;
}

.footer-company dd {
  margin: 2px 0 0;
  color: #e0e8e5;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.footer-company dd a {
  color: #c6e5de;
}

.footer-bottom {
  display: flex;
  min-height: 67px;
  margin-top: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgb(255 255 255 / 14%);
  color: #aebfbc;
  font-size: 0.78rem;
}

/* Cookie banner and preference dialog */
.cookie-banner {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  max-width: 1040px;
  margin-inline: auto;
  padding: 21px 23px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #d1dfda;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 60px rgb(16 35 42 / 22%);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner p {
  margin-bottom: 7px;
  color: #516368;
  font-size: 0.88rem;
}

.cookie-banner .eyebrow {
  margin-bottom: 5px;
  color: #4e817b;
}

.cookie-banner a {
  font-size: 0.85rem;
  font-weight: 650;
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.preferences-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: min(88vh, 720px);
  padding: 30px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(10 25 30 / 28%);
}

.preferences-dialog::backdrop {
  background: rgb(16 35 42 / 58%);
  backdrop-filter: blur(2px);
}

.preferences-dialog h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.preferences-dialog form > p:not(.eyebrow) {
  color: #66767a;
  font-size: 0.92rem;
}

.preference-row {
  display: flex;
  padding: 15px 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.preference-row p {
  margin: 4px 0 0;
  color: #6b797d;
  font-size: 0.82rem;
}

.preference-row input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: #397d74;
}

.dialog-actions {
  display: flex;
  margin-top: 17px;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive layouts */
@media (max-width: 1000px) {
  .primary-nav {
    gap: 14px;
  }

  .primary-nav > a:not(.button) {
    font-size: 0.84rem;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 205px;
    gap: 35px;
  }

  .systems-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .systems-copy h2 {
    max-width: 20ch;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
  }

  .menu-toggle {
    display: flex;
    width: 42px;
    height: 40px;
    flex: 0 0 42px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--navy);
    transition: transform var(--transition);
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 14px max(20px, calc((100vw - var(--content)) / 2)) 20px;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--pearl);
    box-shadow: var(--shadow-soft);
  }

  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
  }

  .primary-nav > a:not(.button) {
    padding: 12px 5px;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    white-space: normal;
  }

  .primary-nav .nav-cta {
    display: flex;
    margin-top: 13px;
  }

  .page-hero {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 35px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
  }

  .article-aside .eyebrow,
  .aside-note {
    grid-column: 1 / -1;
  }

  .footer-main,
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .site-footer .footer-company {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .wrap {
    width: min(var(--content), calc(100% - 40px));
  }

  .header-inner {
    width: calc(100% - 40px);
    min-height: 70px;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 38px 22px 42px;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 11vw, 4.4rem);
  }

  .hero-photo {
    min-height: 300px;
  }

  .hero-photo img {
    height: 330px;
    min-height: 300px;
  }

  .hero-caption {
    right: 22px;
    bottom: 14px;
    left: 22px;
  }

  .intro-section {
    padding-block: 55px 35px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section {
    padding-block: 55px;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

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

  .guide-image-link,
  .guide-image-link img {
    height: 230px;
    min-height: 230px;
  }

  .guide-copy {
    padding: 17px;
  }

  .systems-section {
    padding-block: 55px;
  }

  .system-diagram {
    padding: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagram-line {
    display: none;
  }

  .node-thermal {
    grid-column: 1 / -1;
  }

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

  .page-hero {
    padding-block: 45px 25px;
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-hero > img {
    height: auto;
    max-height: 380px;
  }

  .article-layout {
    padding-top: 20px;
    padding-bottom: 60px;
  }

  .article-aside {
    grid-template-columns: 1fr 1fr;
  }

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

  .related-card {
    min-height: 100px;
  }

  .closing-cta {
    min-height: auto;
    margin-block: 45px;
    padding: 30px 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-heading {
    padding-top: 55px;
  }

  .contact-layout {
    padding-bottom: 60px;
    grid-template-columns: 1fr;
  }

  .legal-hero {
    padding-top: 55px;
  }

  .footer-main,
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px 20px;
  }

  .site-footer .footer-company {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 17px;
    gap: 5px;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 17px;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .cookie-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.65rem;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .header-inner {
    width: calc(100% - 32px);
  }

  .brand {
    gap: 8px;
    font-size: 0.88rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

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

  .guide-image-link,
  .guide-image-link img {
    height: 250px;
    min-height: 250px;
  }

  .system-diagram {
    padding: 12px;
    gap: 10px;
  }

  .diagram-node {
    min-height: 118px;
    padding: 13px 10px;
  }

  .diagram-node strong {
    font-size: 0.88rem;
  }

  .article-lead {
    padding: 22px;
  }

  .article-aside {
    display: flex;
  }

  .contact-form-panel,
  .company-information {
    padding: 22px;
  }

  .footer-main,
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-company {
    grid-column: auto;
  }

  .cookie-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-actions .button,
  .cookie-actions .text-link {
    width: 100%;
  }

  .preferences-dialog {
    padding: 23px;
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

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