:root {
  --navy: #0b2341;
  --dark: #08192d;
  --blue: #284b6e;
  --gold: #ffc536;
  --ink: #142b42;
  --muted: #516477;
  --line: #dce4ed;
  --light: #f2f6fa;
  --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 16px/1.58 system-ui, -apple-system, sans-serif; background: #fff; }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { line-height: 1.09; letter-spacing: -.043em; }
h1 { font-size: clamp(2.6rem, 5.25vw, 5.35rem); font-weight: 790; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 775; }
h3 { font-size: 1.35rem; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #b37300; outline-offset: 4px; }
[hidden] { display: none !important; }
section[id], div[id] { scroll-margin-top: 20px; }
.wrap { width: min(1240px, calc(100% - 70px)); margin-inline: auto; }
.skip { position: absolute; top: -6rem; left: 1rem; z-index: 3; }
.skip:focus { top: .5rem; background: #fff; padding: .6rem; }
.banner { background: var(--dark); color: #f3f6fa; font-size: .85rem; }
.banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 6px 15px; flex-wrap: wrap; padding-block: 7px; }
.banner a { text-decoration: none; }
.mast { background: #f5f5f5; border-bottom: 1px solid var(--line); }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 26px; min-height: 79px; padding-block: 8px; }
.logo { display: block; flex: none; position: relative; width: 173px; height: 93px; overflow: hidden; }
.logo img { position: absolute; top: -107px; left: -89px; width: 305px; height: 305px; max-width: none; }
nav { display: flex; align-items: center; gap: 10px clamp(12px, 2.05vw, 28px); flex-wrap: wrap; }
nav a { font-size: .91rem; text-decoration: none; font-weight: 700; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 10px 18px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; text-align: center; font-weight: 750; line-height: 1.28; }
.btn:hover { filter: brightness(.95); }
.gold { background: var(--gold); color: var(--dark); }
.navy { background: var(--navy); color: #fff; }
.outline { background: #fff; border-color: #aebed0; color: var(--navy); }
.light-outline { background: #ffffff0a; border-color: #ffffff66; color: #fff; }
.hero { background: var(--navy); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.04fr; gap: 34px; min-height: 490px; align-items: stretch; padding-block: 34px; }
.hero-copy { align-self: center; padding: 18px 0; }
.hero h1 span { color: var(--gold); display: block; }
.hero p:not(.eyebrow) { color: #e1eaf4; font-size: clamp(1rem, 1.6vw, 1.17rem); max-width: 52ch; margin-top: 17px; }
.eyebrow { color: var(--blue); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; margin-bottom: 13px; }
.hero .eyebrow, .dark-section .eyebrow, .result .eyebrow { color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.hero-image { min-height: 340px; position: relative; display: grid; align-items: end; border-radius: 15px; overflow: hidden; background: #214259; isolation: isolate; }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 72%, #07192bbf); z-index: -1; }
.hero-image figcaption { color: #fff; font-size: .82rem; padding: 14px 17px; }
.reach { border-bottom: 1px solid var(--line); background: var(--light); }
.reach .wrap { padding-block: 12px; display: flex; gap: 7px 19px; align-items: baseline; flex-wrap: wrap; }
.reach strong { color: var(--navy); }
.reach span { font-size: .94rem; color: var(--muted); }
.block { padding-block: clamp(47px, 7.1vw, 88px); }
.tint { background: var(--light); }
.heading { margin-bottom: 24px; max-width: 760px; }
.heading p { margin-top: 11px; color: var(--muted); max-width: 69ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 62px); align-items: start; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner-cards { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; padding: 22px; border: 1px solid var(--line); border-radius: 13px; display: flex; flex-direction: column; align-items: start; gap: 12px; }
.card-top { border-top: 4px solid var(--gold); }
.card p, .subtle { color: var(--muted); }
.card .btn { margin-top: auto; }
.tag { display: inline-flex; background: #fff1c4; color: #5a4400; font-size: .78rem; font-weight: 750; border-radius: 5px; padding: 4px 8px; }
.work-head { display: grid; grid-template-columns: 1fr .95fr; gap: 24px; align-items: center; margin-bottom: 24px; }
.work-head p { color: var(--muted); margin-top: 12px; max-width: 63ch; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.metrics div { background: var(--navy); color: #fff; border-radius: 12px; padding: clamp(12px, 2.1vw, 24px); }
.metrics dt { color: #e6edf7; font-size: .89rem; margin-top: 6px; }
.metrics dd { margin: 0; color: var(--gold); font-size: clamp(1.4rem, 3.2vw, 2.7rem); font-weight: 800; line-height: 1.1; letter-spacing: -.05em; }
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.photos figure { min-width: 0; background: #fff; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.project-photo-frame { position: relative; aspect-ratio: 4 / 3; background: #e8eef4; }
.project-photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; }
.photos figcaption { font-weight: 730; padding: 10px 14px; }
.review-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 24px; margin-top: 24px; padding: clamp(18px, 3vw, 30px); background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.review-panel h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
.review-panel p { color: var(--muted); margin-top: 7px; }
.review-panel .actions { margin-top: 0; }
.tool { display: grid; grid-template-columns: 1.14fr .86fr; overflow: hidden; border-radius: 15px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 38px #10334c10; }
.controls, .result { padding: clamp(19px, 3.4vw, 35px); min-width: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: block; font-size: .9rem; min-width: 0; font-weight: 710; }
.field span { display: block; margin-bottom: 4px; }
.field input, .field select { width: 100%; min-width: 0; padding: 8px 10px; min-height: 44px; border: 1px solid #b5c5d5; border-radius: 6px; background: #fff; color: var(--ink); }
.field select { appearance: none; padding-right: 30px; background: linear-gradient(45deg, transparent 50%, #284b6e 50%) calc(100% - 16px) 52%/6px 6px no-repeat, linear-gradient(135deg, #284b6e 50%, transparent 50%) calc(100% - 10px) 52%/6px 6px no-repeat, #fff; }
.field input:invalid { border-color: #a75229; }
.check { display: flex; gap: 8px; margin-top: 14px; font-size: .9rem; font-weight: 700; align-items: start; }
.check input { margin-top: .35em; accent-color: var(--navy); }
.space { margin-top: 14px; }
details { margin-top: 15px; padding-top: 10px; border-top: 1px solid var(--line); }
summary { font-weight: 740; }
details p { margin-top: 8px; }
.note { font-size: .87rem; color: var(--muted); margin-top: 11px; }
.result { background: var(--navy); color: #fff; }
.result h3 { color: var(--gold); font-size: clamp(2.2rem, 4.9vw, 4.3rem); overflow-wrap: anywhere; }
.result .caption { margin: 6px 0 14px; color: #e1eaf4; }
.result dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result dl div { padding-top: 8px; border-top: 1px solid #ffffff38; min-width: 0; }
.result dt { color: #e0eaf4; font-size: .81rem; }
.result dd { margin: 0; font-weight: 740; overflow-wrap: anywhere; }
.result .btn { margin-top: 17px; }
.result .note { color: #dbe6f2; }
.finance-cards { margin-bottom: 20px; }
.compare { display: grid; gap: 8px; margin-top: 16px; font-size: .83rem; color: #e1ebf6; }
.compare span { display: block; border-radius: 8px; width: 0; height: 6px; max-width: 100%; background: var(--gold); margin-top: 3px; }
.compare div:first-child span { background: #95d3e1; }
.subsidy .rate { display: block; color: var(--navy); font-weight: 800; font-size: clamp(1.7rem, 4vw, 3.2rem); line-height: 1.15; margin-bottom: 6px; letter-spacing: -.05em; }
.subsidy article { border: 1px solid var(--line); padding: 22px; border-radius: 13px; background: #fff; }
.subsidy article:first-child { background: #fff7dc; border-color: #eddb9f; }
.subsidy h3 { margin-bottom: 10px; }
.subsidy p + p { margin-top: 10px; }
.steps { padding-left: 22px; margin-bottom: 16px; }
.steps li + li { margin-top: 7px; }
.dark-section { background: var(--dark); color: #fff; }
.dark-section p { color: #e1ebf4; margin-top: 10px; }
.contact-form { padding: 22px; background: #fff; color: var(--ink); border-radius: 13px; }
.contact-form .note { color: var(--muted); }
.contact-form .btn { margin-top: 16px; }
footer { background: #f5f5f5; color: var(--muted); padding: 18px 0; font-size: .9rem; }
footer .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 24px; justify-content: space-between; }
.inner-hero { padding: clamp(40px,7vw,76px) 0; background: var(--navy); color: #fff; }
.inner-hero h1 { font-size: clamp(2.45rem,5vw,4.3rem); }
.inner-hero .eyebrow { color: var(--gold); }
.inner-hero p:not(.eyebrow) { max-width: 65ch; color: #e1eaf4; margin-top: 13px; }
.program-card { min-width: 0; }
.commission-table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.commission-table th, .commission-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.commission-table th { background: var(--light); }
.commission-table :is(th, td):last-child { text-align: right; }
.program-steps { padding-left: 1.35rem; color: var(--muted); }
.program-steps li + li { margin-top: 9px; }
.program-card .btn { margin-top: 4px; }
.program-terms { padding: 20px; border: 1px solid #ffffff38; border-radius: 13px; }
@media (max-width: 940px) {
  .mast-inner { flex-wrap: wrap; }
  .mast nav { order: 3; width: 100%; padding-bottom: 7px; }
  .hero .wrap { gap: 20px; }
}
@media (max-width: 705px) {
  .wrap { width: calc(100% - 34px); }
  .mast-inner { column-gap: 12px; }
  .hero .wrap, .split, .work-head, .tool, .cards { grid-template-columns: 1fr; }
  .hero .wrap { min-height: auto; gap: 14px; padding-block: 25px 17px; }
  .hero-image { min-height: 260px; }
  .photos { gap: 9px; }
  .photos figcaption { font-size: .9rem; padding: 8px; }
}
@media (max-width: 520px) { .photos { grid-template-columns: 1fr; } }
@media (max-width: 355px) { .fields, .result dl { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.heading h1, .work-head h1, .dark-section h1 { font-size: clamp(2.15rem, 4.45vw, 3.9rem); }
.metrics div { display: flex; flex-direction: column-reverse; justify-content: center; }
