:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #62706a;
  --paper: #f6f8f4;
  --panel: #ffffff;
  --line: #dce5df;
  --energy: #1f766b;
  --renovation: #335f8d;
  --visa: #72567a;
  --tax: #bd7a2c;
  --dark: #202826;
  --shadow: 0 24px 70px rgba(23, 32, 29, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Noto Sans SC", "PingFang SC", sans-serif;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(220, 229, 223, 0.85);
  background: rgba(246, 248, 244, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.topbar nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
}

.topbar nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.topic-nav {
  position: sticky;
  top: 71px;
  z-index: 9;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.topic-nav a {
  border: 1px solid var(--line);
  background: #fbfdfb;
  color: var(--accent, var(--energy));
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 30px clamp(16px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  font-weight: 700;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.home-hero,
.site-hero {
  display: grid;
  min-height: calc(100vh - 71px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.56fr);
  align-items: center;
  gap: clamp(28px, 5vw, 84px);
  padding: clamp(44px, 7vw, 96px) clamp(16px, 4vw, 56px);
}

.home-hero {
  background:
    linear-gradient(90deg, rgba(246, 248, 244, 0.98), rgba(246, 248, 244, 0.82)),
    url("assets/hero-still-life.png") center / cover;
  min-height: 650px;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.52fr);
}

.site-hero {
  color: #fff;
  background: var(--accent);
}

.energy-hero {
  --accent: var(--energy);
}

.renovation-hero {
  --accent: var(--renovation);
}

.visa-hero {
  --accent: var(--visa);
}

.tax-hero {
  --accent: var(--tax);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent, var(--energy));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-hero .eyebrow,
.band .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

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

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(40px, 6.5vw, 82px);
  line-height: 1.04;
  letter-spacing: 0;
}

.home-hero h1 {
  max-width: 760px;
  font-size: 58px;
  line-height: 1.08;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.12;
}

h3 {
  font-size: 24px;
  line-height: 1.2;
}

.home-hero p,
.site-hero p {
  max-width: 700px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.site-hero p {
  color: rgba(255, 255, 255, 0.84);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.site-hero .button.primary {
  background: #fff;
  color: var(--accent);
}

.button.ghost {
  border-color: rgba(23, 32, 29, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.site-hero .button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.scoreboard,
.hero-panel,
.tool-card,
.content-card,
.portfolio-card,
.process-grid article,
.three-col article,
.lead-form {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.scoreboard div {
  min-height: 112px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scoreboard div:nth-child(2n) {
  border-right: 0;
}

.scoreboard div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.scoreboard strong {
  display: block;
  margin-bottom: 10px;
  font-size: 26px;
}

.scoreboard span,
.portfolio-card li,
.process-grid p,
.three-col p,
.content-card p,
.check-list,
.timeline span,
.lead-form p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-panel {
  display: grid;
  gap: 10px;
  padding: 26px;
  color: var(--ink);
}

.hero-panel strong {
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
}

.hero-panel p {
  margin-bottom: 12px;
  color: var(--muted);
}

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

.proof-strip div {
  padding: 20px clamp(16px, 4vw, 56px);
  background: #fff;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  margin-bottom: 6px;
  color: var(--accent, var(--energy));
  font-size: 18px;
}

.proof-strip span {
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: clamp(58px, 8vw, 108px) clamp(16px, 4vw, 56px);
}

.section-head {
  margin-bottom: 30px;
}

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

.portfolio-card {
  display: grid;
  align-content: start;
  min-height: 500px;
  padding: 24px;
  box-shadow: none;
}

.portfolio-card span {
  color: var(--card-color);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.portfolio-card.energy {
  --card-color: var(--energy);
}

.portfolio-card.renovation {
  --card-color: var(--renovation);
}

.portfolio-card.visa {
  --card-color: var(--visa);
}

.portfolio-card.tax {
  --card-color: var(--tax);
}

.portfolio-card h3 {
  margin: 18px 0 12px;
}

.portfolio-card ul {
  margin: 10px 0 24px;
  padding-left: 18px;
}

.portfolio-card a {
  align-self: end;
  margin-top: auto;
  color: var(--card-color);
  font-weight: 800;
}

.band {
  background: var(--dark);
  color: #fff;
}

.process-grid,
.three-col,
.tool-grid,
.split-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-grid article,
.three-col article {
  padding: 22px;
  box-shadow: none;
}

.process-grid strong,
.three-col strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.band .process-grid article {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.band .process-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.tool-grid,
.split-section {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
}

.tool-card,
.content-card,
.lead-form {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfdfb;
  color: var(--ink);
  outline: 0;
}

input,
select {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  min-height: 118px;
  resize: vertical;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent, var(--energy));
  box-shadow: 0 0 0 3px rgba(31, 118, 107, 0.12);
}

.result-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: #eef7f2;
}

.result-box span {
  color: var(--muted);
  font-weight: 800;
}

.result-box strong {
  font-size: clamp(24px, 3vw, 38px);
}

.check-list {
  margin: 0;
  padding-left: 20px;
}

.check-list li {
  margin-bottom: 10px;
}

.check-output {
  margin-top: 20px;
  padding: 20px;
  background: #f1f5f2;
}

.fineprint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.warning {
  border-color: rgba(189, 122, 44, 0.35);
}

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

.split-section {
  align-items: start;
}

.lead-form {
  display: grid;
  gap: 16px;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.consent-line input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

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

.source-list a {
  color: var(--accent, var(--energy));
  font-weight: 800;
}

.three-col article strong a {
  color: var(--accent, var(--energy));
  text-decoration: underline;
  text-underline-offset: 4px;
}

.disclosure {
  padding: 18px;
  border: 1px solid var(--line);
  background: #fbfdfb;
  color: var(--muted);
  line-height: 1.75;
}

.content-page {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 92px) clamp(16px, 4vw, 56px);
}

.content-page h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.content-page section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.content-page section:last-child {
  border-bottom: 0;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .portfolio-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar nav {
    justify-content: flex-start;
  }

  .topic-nav {
    position: static;
  }

  .home-hero,
  .site-hero,
  .proof-strip,
  .tool-grid,
  .split-section,
  .three-col {
    grid-template-columns: 1fr;
  }

  .home-hero,
  .site-hero {
    min-height: auto;
  }

  .home-hero h1 {
    font-size: 44px;
  }

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

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .home-hero,
  .site-hero,
  .section,
  .topbar {
    padding-inline: 14px;
  }

  h1 {
    font-size: 39px;
  }

  .home-hero h1 {
    font-size: 38px;
  }

  .portfolio-grid,
  .process-grid,
  .scoreboard,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .scoreboard div {
    border-right: 0;
  }

  .portfolio-card {
    min-height: auto;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .result-box {
    align-items: flex-start;
    flex-direction: column;
  }
}
