:root {
  --bg: #eef2f4;
  --surface: #ffffff;
  --ink: #12202a;
  --ink-soft: #46555f;
  --line: #cfd8de;
  --cool: #0b5f94;
  --cool-tint: #dcebf5;
  --heat: #b0420e;
  --heat-tint: #f6e4d8;
  --dark: #12202a;
  --dark-raised: #1c2e3b;
  --on-dark: #eef3f6;
  --on-dark-soft: #b3c2cc;
  --star: #b07a00;
  --shadow: rgba(18, 32, 42, 0.10);
  --focus: #0b5f94;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --wrap: 1120px;
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--cool); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--r-sm); }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 8px 24px;
  min-height: 64px;
  flex-wrap: wrap;
}
.top-phone {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  background: var(--cool);
  color: var(--surface);
  font-weight: 700;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.top-phone:hover { background: var(--ink); }
.wordmark {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { font-weight: 500; color: var(--ink-soft); }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { background: var(--cool-tint); color: var(--cool); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 24px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero h1 .split-heat { color: var(--heat); }
.hero h1 .split-cool { color: var(--cool); }
.hero .lede { margin-top: 16px; font-size: 1.15rem; color: var(--ink-soft); max-width: 34ch; }
.rating {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
}
.rating .stars { color: var(--star); letter-spacing: 2px; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-md);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { background: var(--cool); }
.btn-quiet { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-quiet:hover { border-color: var(--ink); }

.photo { margin: 0; }
.photo img { border-radius: var(--r-lg); box-shadow: 0 18px 40px var(--shadow); width: 100%; height: auto; }
.photo figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--ink-soft); }
.photo .stock-label { display: block; font-size: 0.78rem; color: var(--ink-soft); opacity: 0.95; font-style: italic; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section + .section { padding-top: 0; }
.head { margin-bottom: 32px; max-width: 46rem; }
.head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.05rem; }

/* about */
.about {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
}
.about h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.about .sub { margin-top: 12px; color: var(--ink-soft); }
.about-body p + p { margin-top: 16px; }
.facts { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts li span:first-child { color: var(--ink-soft); }
.facts li span:last-child { font-weight: 600; text-align: right; }

/* ---------- Atlanta year chart ---------- */
.year-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 36px 36px 28px;
}
.plot { position: relative; }
.plot-area { position: relative; height: 240px; }
.balance {
  position: absolute;
  left: 0; right: 0;
  bottom: calc((65 - 30) / 65 * 100%);
  border-top: 2px dashed var(--ink-soft);
  z-index: 1;
}
.balance span {
  position: absolute;
  left: 0;
  top: -26px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  padding: 0 4px;
}
.months {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  position: absolute;
  inset: 0;
}
.months li { position: relative; }
.bar {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: calc((var(--lo) - 30) / 65 * 100%);
  height: calc((var(--hi) - var(--lo)) / 65 * 100%);
  border-radius: 999px;
  z-index: 2;
}
.months .heat .bar { background: var(--heat); }
.months .cool .bar { background: var(--cool); }
.months .shoulder .bar { background: linear-gradient(to top, var(--heat), var(--cool)); }
.bar .hi, .bar .lo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bar .hi { bottom: calc(100% + 4px); }
.bar .lo { top: calc(100% + 4px); color: var(--ink-soft); }
.month-names {
  list-style: none;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
}
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: 0.9rem; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend .k-heat { background: var(--heat); }
.legend .k-cool { background: var(--cool); }
.legend .k-line { width: 18px; height: 0; border-radius: 0; border-top: 2px dashed var(--ink-soft); }
.legend .k-shoulder { background: linear-gradient(to top, var(--heat), var(--cool)); }
.source { margin-top: 12px; font-size: 0.8rem; color: var(--ink-soft); }

.windows { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.window { border-radius: var(--r-md); padding: 20px 22px; }
.window h3 { font-size: 1.15rem; }
.window p { margin-top: 8px; }
.window.cool { background: var(--cool-tint); }
.window.cool h3 { color: var(--cool); }
.window.heat { background: var(--heat-tint); }
.window.heat h3 { color: var(--heat); }

/* ---------- work matrix ---------- */
.matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.matrix th, .matrix td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }
.matrix thead th { font-size: 1.05rem; }
.matrix thead .col-heat { color: var(--heat); background: var(--heat-tint); }
.matrix thead .col-cool { color: var(--cool); background: var(--cool-tint); }
.matrix tbody th { width: 22%; font-size: 1.05rem; }
.matrix td { color: var(--ink-soft); }
.matrix td strong { color: var(--ink); display: block; margin-bottom: 2px; }

/* ---------- symptoms ---------- */
.symptoms { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.symptoms li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 18px 22px;
  border-left: 6px solid var(--line);
}
.symptoms li.cool { border-left-color: var(--cool); }
.symptoms li.heat { border-left-color: var(--heat); }
.symptoms li.both { border-left-color: var(--ink-soft); }
.symptoms strong { font-size: 1.02rem; }
.symptoms p { color: var(--ink-soft); }
.note { margin-top: 16px; font-size: 0.9rem; color: var(--ink-soft); }

.two-up { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }

/* ---------- contact ---------- */
.hero .contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.contact-main {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 40px;
}
.contact-main h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.contact-main .sub { margin-top: 12px; color: var(--ink-soft); font-size: 1.1rem; }
.big-phone {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  min-height: 64px;
  padding: 0 26px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--surface);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.big-phone:hover { background: var(--cool); }
.contact-alt { margin-top: 16px; }
.contact-alt a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }
.addr { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.addr h2 { font-size: 1.1rem; }
.addr p { margin-top: 8px; color: var(--ink-soft); }
.checklist {
  background: var(--cool-tint);
  border-radius: var(--r-lg);
  padding: 32px;
}
.checklist h2 { font-size: 1.4rem; }
.checklist .sub { margin-top: 8px; color: var(--ink-soft); }
.checklist ol { margin: 20px 0 0; padding-left: 1.3em; display: grid; gap: 12px; }
.checklist li::marker { color: var(--cool); font-weight: 700; }

/* ---------- close band + footer ---------- */
.close {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--r-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: center;
}
.close h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.close p { margin-top: 10px; color: var(--on-dark-soft); }
.close .btn { background: var(--surface); color: var(--ink); font-size: 1.15rem; min-height: 56px; font-variant-numeric: tabular-nums; }
.close .btn:hover { background: var(--cool-tint); }

.footer { padding: 40px 0 48px; font-size: 0.9rem; color: var(--ink-soft); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer a { color: var(--ink); display: inline-flex; align-items: center; min-height: 36px; }
.footer nav { display: flex; gap: 16px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .about, .two-up, .contact-grid, .close { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 16px; }
  .hero .wrap { gap: 32px; }
  .about, .contact-main, .close { padding: 30px 24px; }
  .section { padding: 56px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .wrap { padding: 8px 0; gap: 6px 12px; }
  .wordmark { font-size: 0.98rem; }
  .nav { margin-left: 0; width: 100%; justify-content: space-between; }
  .nav a { padding: 0 10px; }
  .year-card { padding: 24px 14px 20px; }
  .plot-area { height: 200px; }
  .balance span { display: none; }
  .months, .month-names { gap: 2px; }
  .bar { left: 26%; right: 26%; }
  .bar .hi, .bar .lo { font-size: 0.62rem; }
  .month-names { font-size: 0.68rem; }
  .windows { grid-template-columns: 1fr; }
  .matrix th, .matrix td { padding: 14px 12px; font-size: 0.92rem; }
  .matrix tbody th { width: 26%; }
  .symptoms li { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
  .checklist { padding: 24px 20px; }
  .big-phone { width: 100%; justify-content: center; }
}
