:root {
  --ink: #14212b;
  --muted: #5d6972;
  --line: #d9e1e7;
  --paper: #f7f4ee;
  --white: #ffffff;
  --navy: #123d5a;
  --teal: #1c7c78;
  --green: #557c45;
  --gold: #c58b32;
  --rust: #9d5f38;
  --shadow: 0 18px 55px rgba(20, 33, 43, 0.15);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 35px rgba(20, 33, 43, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.94rem;
}

.nav-links a,
.nav-action,
.button {
  text-decoration: none;
}

.nav-links a {
  opacity: 0.9;
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 800;
}

.nav-action {
  border: 1px solid currentColor;
}

.button.primary {
  background: var(--gold);
  color: #17120b;
  box-shadow: 0 12px 30px rgba(197, 139, 50, 0.28);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 92vh;
  padding: 110px clamp(20px, 5vw, 70px) 38px;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 18, 24, 0.83) 0%, rgba(9, 18, 24, 0.5) 44%, rgba(9, 18, 24, 0.18) 100%),
    linear-gradient(0deg, rgba(9, 18, 24, 0.78) 0%, rgba(9, 18, 24, 0) 45%);
}

.hero-content,
.hero-panel {
  position: relative;
}

.hero-content {
  width: min(760px, 100%);
  padding-bottom: 34px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 9ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.5rem, 15vw, 10.5rem);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 700px;
  margin: 28px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  color: rgba(255, 255, 255, 0.88);
}

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

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-panel article {
  padding: clamp(16px, 3vw, 24px);
  background: rgba(10, 21, 28, 0.3);
}

.hero-panel span {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 900;
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.section,
.split-section,
.mission-section,
.closing-section {
  padding: clamp(64px, 8vw, 108px) clamp(20px, 5vw, 70px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1.3fr);
  gap: clamp(24px, 6vw, 70px);
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2,
.asset-copy h2,
.mission-copy h2,
.closing-section h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-band {
  background: var(--white);
}

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

.intro-grid p {
  margin: 0;
  padding-top: 18px;
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: 1.04rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  background: #eaf0ef;
}

.asset-copy p,
.mission-copy p,
.closing-section p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.06rem;
}

.feature-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.feature-list div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(20, 33, 43, 0.16);
}

.feature-list strong {
  color: var(--navy);
}

.feature-list span {
  color: var(--muted);
}

.asset-media {
  position: relative;
}

.asset-media img,
.mission-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.media-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(20, 33, 43, 0.78);
  color: var(--white);
  font-size: 0.9rem;
}

.calculator-section,
.tax-section {
  background: var(--ink);
  color: var(--white);
}

.calculator-section .section-heading h2,
.tax-section .section-heading h2 {
  color: var(--white);
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) 1fr;
  gap: 24px;
}

.controls,
.results,
.chart-shell {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.controls {
  align-self: start;
  padding: 24px;
}

.controls label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.controls output {
  color: var(--white);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  margin: 0 0 28px;
}

.rate-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.rate-presets legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.rate-presets button,
.gallery-tabs button,
.impact-steps button {
  min-height: 42px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 800;
}

.rate-presets button.active,
.gallery-tabs button.active,
.impact-steps button.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #17120b;
}

.assumption-box {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.assumption-box h3,
.chart-header h3,
.impact-card h3,
.diligence-grid h3 {
  margin: 0;
  font-size: 1.1rem;
}

.assumption-box dl {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
}

.assumption-box div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.assumption-box dt {
  color: rgba(255, 255, 255, 0.68);
}

.assumption-box dd {
  margin: 0;
  font-weight: 900;
}

.results {
  padding: 18px;
}

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

.metric-row article,
.breakdown div {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 18px;
}

.metric-row span,
.breakdown span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  font-weight: 800;
}

.metric-row strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1;
}

.chart-shell {
  padding: 18px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.chart-header span {
  color: rgba(255, 255, 255, 0.68);
}

canvas {
  width: 100%;
  height: auto;
}

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

.breakdown strong {
  display: block;
  margin-top: 7px;
  color: var(--white);
  font-size: 1.15rem;
}

.tax-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 390px) minmax(320px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.tax-copy {
  display: grid;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 24px;
}

.tax-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.03rem;
}

.tax-results {
  display: grid;
  gap: 12px;
}

.tax-results article {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 18px;
}

.tax-results span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  font-weight: 800;
}

.tax-results strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1;
}

.tax-disclaimer {
  margin: 22px 0 0;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.qualification-wrap {
  margin-top: 28px;
}

.qualification-wrap h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1.2rem;
}

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

.qualification-grid article {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-top: 5px solid var(--teal);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
}

.qualification-grid article:nth-child(2) {
  border-top-color: var(--gold);
}

.qualification-grid article:nth-child(3) {
  border-top-color: var(--green);
}

.qualification-grid article:nth-child(4) {
  border-top-color: var(--rust);
}

.qualification-grid h4 {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
}

.qualification-grid p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.gallery-section {
  background: var(--white);
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.gallery-tabs button {
  color: var(--ink);
  padding-inline: 16px;
}

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

.gallery-grid figure {
  display: grid;
  grid-template-rows: 1fr auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.gallery-grid figure.is-hidden {
  display: none;
}

.gallery-grid figure:hover {
  transform: translateY(-3px);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1.15 / 1;
  object-fit: cover;
}

.gallery-grid figcaption {
  min-height: 84px;
  padding: 13px;
  color: var(--muted);
  font-size: 0.92rem;
}

.mission-section {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.8fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  background: #eef3e9;
}

.impact-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 16px;
}

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

.partner-card {
  display: grid;
  align-content: start;
  min-height: 178px;
  border: 1px solid rgba(18, 61, 90, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
}

.partner-card:hover {
  border-color: rgba(28, 124, 120, 0.54);
}

.partner-card img {
  width: min(210px, 100%);
  height: 48px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 12px;
}

.partner-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
}

.partner-card strong {
  display: block;
  color: var(--navy);
  font-size: 1.04rem;
}

.partner-card em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 700;
}

.vpg-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 8px;
}

.vpg-proof article {
  border: 1px solid rgba(85, 124, 69, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 14px;
}

.vpg-proof strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1;
}

.vpg-proof span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.impact-steps button {
  color: var(--ink);
  padding-inline: 14px;
}

.impact-card {
  border-left: 4px solid var(--green);
  background: rgba(255, 255, 255, 0.68);
  padding: 20px;
}

.impact-card p {
  margin-bottom: 0;
}

.table-section {
  background: var(--paper);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: #edf3f5;
  color: var(--navy);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td {
  color: var(--muted);
  font-weight: 700;
}

td:first-child,
td:nth-child(5) {
  color: var(--ink);
  font-weight: 900;
}

.diligence-section {
  background: var(--white);
}

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

.diligence-grid article {
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: 8px;
  padding: 22px;
}

.diligence-grid article:nth-child(2) {
  border-top-color: var(--navy);
}

.diligence-grid article:nth-child(3) {
  border-top-color: var(--green);
}

.diligence-grid article:nth-child(4) {
  border-top-color: var(--rust);
}

.diligence-grid p {
  color: var(--muted);
}

.contact-section {
  background: #edf3f5;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(320px, 1.3fr);
  gap: clamp(24px, 5vw, 56px);
}

.contact-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-copy p {
  margin: 0 0 16px;
}

.contact-copy a {
  color: var(--navy);
  font-weight: 900;
}

.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow);
}

.hidden-field {
  display: none;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 900;
}

.contact-form label span {
  font-size: 0.9rem;
}

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

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(28, 124, 120, 0.18);
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.closing-section {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  background: var(--navy);
  color: var(--white);
}

.closing-section p {
  color: rgba(255, 255, 255, 0.78);
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1fr);
  gap: 28px;
  padding: 32px clamp(20px, 5vw, 70px);
  background: #101820;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  max-width: 660px;
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  align-content: start;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .section-heading,
  .split-section,
  .calculator-layout,
  .tax-layout,
  .contact-layout,
  .mission-section {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 700px) {
  .site-header {
    min-height: 64px;
    padding: 10px 16px;
  }

  .brand span:last-child {
    display: none;
  }

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

  .nav-action {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .hero {
    min-height: 88vh;
    padding: 96px 18px 24px;
  }

  .hero h1 {
    max-width: 6.9ch;
    font-size: clamp(3.25rem, 18vw, 5.05rem);
    line-height: 0.92;
    overflow-wrap: normal;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 1rem;
  }

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

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

  .hero-panel,
  .intro-grid,
  .metric-row,
  .gallery-grid,
  .qualification-grid,
  .mission-partners,
  .vpg-proof,
  .form-grid,
  .diligence-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .feature-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .rate-presets {
    grid-template-columns: 1fr;
  }

  .gallery-grid figcaption {
    min-height: auto;
  }

  .closing-section {
    display: block;
  }

  .closing-section .button {
    margin-top: 16px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media print {
  html {
    scroll-behavior: auto;
  }

  body {
    background: var(--white);
    color: var(--ink);
  }

  .site-header,
  .hero-actions,
  .gallery-tabs,
  .contact-form,
  .closing-actions,
  .footer-links a[download] {
    display: none;
  }

  .hero {
    min-height: 8.5in;
    page-break-after: always;
  }

  .section,
  .split-section,
  .mission-section,
  .closing-section {
    break-inside: avoid;
    padding: 0.55in;
  }

  .calculator-section,
  .tax-section,
  .closing-section {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .gallery-grid figure,
  .diligence-grid article,
  .qualification-grid article,
  .partner-card {
    break-inside: avoid;
  }
}
