/* =========================================================
   KenKleen: Premium Exterior Care
   Brand tokens from the KenKleen concept board
   ========================================================= */
:root {
  /* Brand palette */
  --forest: #0F3D2E;        /* Forest Green */
  --forest-deep: #0A2B20;
  --forest-ink: #07201A;
  --charcoal: #1E1F20;      /* Charcoal */
  --stone: #B7B2AC;         /* Warm Grey */
  --paper: #F7F6F4;         /* Off White */
  --paper-2: #EEEBE6;
  --paper-3: #E4E0D9;
  --brass: #C8995A;         /* accent: fine rule in the logo lockup */
  --brass-soft: #E2C392;

  /* Semantic */
  --text: var(--charcoal);
  --text-muted: #57554F;               /* 7:1 on paper */
  --text-on-dark: #F7F6F4;
  --text-on-dark-muted: rgba(247, 246, 244, .74);
  --line: rgba(30, 31, 32, .14);
  --line-dark: rgba(247, 246, 244, .16);

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Spacing (8pt) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;

  /* Motion */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 700ms;

  /* Z-index */
  --z-header: 40;
  --z-dialog: 100;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--paper); color: var(--forest); padding: 10px 16px; text-decoration: none;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 980px; }
.section { padding: clamp(80px, 11vw, 144px) 0; scroll-margin-top: 64px; }

/* ---------- Type helpers ---------- */
.micro {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.6;
}
.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--forest); margin-bottom: var(--s3);
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--brass); }
.eyebrow-light { color: var(--brass-soft); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--forest);
  text-wrap: balance;
}
.section-title em { font-style: italic; }
.section-intro { color: var(--text-muted); max-width: 44ch; font-size: 17px; }
.section-head {
  display: grid; grid-template-columns: 1fr; gap: var(--s3);
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .section-head .section-intro { justify-self: end; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 28px;
  font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn-solid { background: var(--forest); color: var(--paper); border-color: rgba(247,246,244,.28); }
.btn-solid:hover { background: #145040; }
.btn-ghost { color: var(--paper); border-color: rgba(247,246,244,.4); }
.btn-ghost:hover { background: rgba(247,246,244,.1); border-color: var(--paper); }
.btn-outline { color: var(--paper); border-color: rgba(247,246,244,.45); min-height: 44px; padding: 0 20px; }
.btn-outline:hover { background: var(--paper); color: var(--forest); }
.btn-dark { background: var(--forest); color: var(--paper); margin-top: var(--s4); }
.btn-dark:hover { background: var(--forest-deep); }
.btn-light { background: var(--paper); color: var(--forest); }
.btn-light:hover { background: #fff; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: var(--s3);
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--forest);
  padding: 6px 0; border-bottom: 1px solid currentColor;
}
.text-link svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.text-link:hover svg { transform: translateX(4px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  transition: background-color var(--dur) var(--ease-out);
}
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  color: var(--paper);
  transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled { background: rgba(10, 43, 32, .96); box-shadow: 0 1px 0 var(--line-dark); }
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { background: rgba(10, 43, 32, .86); backdrop-filter: blur(12px); }
}
/* backdrop-filter would trap the fixed mobile menu inside the header, so drop it while open */
.site-header.menu-open, .site-header.menu-open.is-scrolled { backdrop-filter: none; background: transparent; box-shadow: none; }
.header-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
  height: 84px; display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  transition: height var(--dur) var(--ease-out);
}
.site-header.is-scrolled .header-inner { height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { font-family: var(--font-body); font-weight: 400; font-size: 21px; letter-spacing: .32em; margin-right: -.32em; }
/* over the hero the large hero logo does the job; the header logo fades in once you scroll */
.site-header .brand { transition: opacity var(--dur) var(--ease-out), visibility 0s linear 0s; }
.js .site-header:not(.is-scrolled):not(.menu-open) .brand {
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}

.primary-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.primary-nav ul { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.primary-nav a:not(.btn) {
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  position: relative; padding: 12px 0;
}
.primary-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.primary-nav a:not(.btn):hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform var(--dur) var(--ease-out);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: 0; z-index: -1;
    background: var(--forest-ink);
    flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 96px var(--gutter) var(--s5); gap: var(--s5);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .primary-nav ul { flex-direction: column; gap: 4px; }
  .primary-nav a:not(.btn) {
    font-family: var(--font-display); font-size: 40px; font-weight: 500;
    letter-spacing: 0; text-transform: none; padding: 4px 0;
  }
  .primary-nav a:not(.btn)::after { display: none; }
  .nav-cta { min-height: 52px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  color: var(--text-on-dark);
  background: var(--forest-ink);
  display: grid; grid-template-rows: 1fr auto;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,32,26,.92) 0%, rgba(7,32,26,.72) 34%, rgba(7,32,26,.18) 62%, rgba(7,32,26,.35) 100%),
    linear-gradient(0deg, rgba(7,32,26,.9) 0%, rgba(7,32,26,0) 38%),
    linear-gradient(180deg, rgba(7,32,26,.55) 0%, rgba(7,32,26,0) 22%);
}
@media (max-width: 1099px) {
  .hero-bg::after { background: linear-gradient(180deg, rgba(7,32,26,.7) 0%, rgba(7,32,26,.62) 50%, rgba(7,32,26,.9) 100%); }
}
.contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; color: var(--stone); opacity: .18; pointer-events: none; }

.hero-inner {
  width: 100%; max-width: 1440px; margin: 0 auto;
  padding: 140px var(--gutter) var(--s5);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: center;
}
.hero-copy { max-width: 720px; }
.micro-stack {
  font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-on-dark-muted); line-height: 1.9;
}
.hero-brand { display: flex; align-items: center; gap: clamp(16px, 2vw, 26px); }
.hero-brand-mark { width: clamp(54px, 5.6vw, 80px); height: clamp(54px, 5.6vw, 80px); color: var(--paper); }
.hero-brand-word {
  font-family: var(--font-body); font-weight: 400; color: var(--paper);
  font-size: clamp(30px, 3.4vw, 48px); line-height: 1; letter-spacing: .3em; margin-right: -.3em;
}
.hero-brand-sub {
  margin-top: 12px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
@media (max-width: 400px) { .hero-brand-sub { font-size: 10.5px; letter-spacing: .16em; } }
.rule { display: block; width: 36px; height: 1px; background: var(--brass); margin: 20px 0 28px; }
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(46px, 6vw, 88px); line-height: .96; letter-spacing: -.01em;
  text-transform: uppercase; text-wrap: balance;
}
.hero-lede { margin-top: var(--s3); font-size: clamp(17px, 1.5vw, 20px); color: var(--text-on-dark-muted); max-width: 42ch; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

/* bottom service/seasons panel */
.hero-panel {
  margin: 0 var(--gutter) var(--s4);
  background: rgba(7, 32, 26, .72);
  border: 1px solid var(--line-dark);
  padding: 24px;
  display: grid; gap: var(--s3);
}
@supports (backdrop-filter: blur(8px)) { .hero-panel { background: rgba(7,32,26,.55); backdrop-filter: blur(14px); } }
.hero-panel .micro { font-size: 11px; color: var(--text-on-dark-muted); }
.hero-panel-block > .micro { margin-bottom: 14px; }
.hero-panel-divider { display: none; }
.swatches { display: flex; gap: 12px; }
.swatches li { display: grid; gap: 10px; justify-items: center; }
.swatch {
  width: 76px; height: 64px; display: grid; place-items: center;
  border: 1px solid var(--line-dark); background: rgba(247,246,244,.06); color: var(--paper);
}
.swatch svg { width: 28px; height: 28px; }
.seasons { display: grid; gap: 6px; }
.seasons li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-on-dark-muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.seasons li:nth-child(2) .dot { background: var(--brass-soft); }
.seasons li:nth-child(3) .dot { background: #9A7A4E; }
.seasons li:nth-child(4) .dot { background: var(--stone); }

.coords, .side-note { display: none; }

@media (min-width: 1100px) {
  .hero { display: block; }
  .hero-inner {
    min-height: 100vh; min-height: 100svh;
    grid-template-columns: minmax(0, 1fr); align-items: center;
    padding-top: 120px; padding-bottom: 200px;
  }
  .hero-panel {
    position: absolute; right: var(--gutter); bottom: 40px; margin: 0; width: min(680px, 48vw);
    grid-template-columns: auto 1px 1fr; gap: 28px; align-items: start;
  }
  .hero-panel-divider { display: block; background: var(--line-dark); align-self: stretch; }
  .hero-panel .swatch { width: 66px; height: 58px; }
  .seasons li { white-space: nowrap; font-size: 13.5px; }
  .coords {
    display: block; position: absolute; left: var(--gutter); bottom: 44px;
    font-size: 11px; color: var(--text-on-dark-muted);
  }
  .side-note {
    display: block; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
    font-size: 10px; letter-spacing: .28em; color: var(--text-on-dark-muted); text-align: left;
  }
  .side-note::after { content: ""; display: block; width: 20px; height: 1px; background: var(--brass); margin-top: 10px; }
}
@media (min-width: 1100px) and (max-height: 820px) {
  .hero-inner { padding-top: 120px; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Trusted-by strip ---------- */
.trusted { background: var(--forest-ink); color: var(--text-on-dark); border-top: 1px solid var(--line-dark); }
.trusted-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 40px; padding-top: 26px; padding-bottom: 26px; text-align: center;
}
.trusted-label { font-size: 11px; color: var(--brass-soft); }
.trusted-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; }
.trusted-list li {
  font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 24px); letter-spacing: .04em;
  color: var(--paper); padding: 0 22px; position: relative; white-space: nowrap;
}
.trusted-list li + li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%;
  background: var(--brass); transform: translate(-50%, -50%);
}
@media (max-width: 700px) {
  .trusted-list { flex-direction: column; gap: 4px; }
  .trusted-list li { padding: 0; }
  .trusted-list li + li::before { display: none; }
}

/* ---------- Builders ---------- */
.builders {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 60%, var(--forest-ink) 100%);
  color: var(--text-on-dark);
}
.builders-grid { display: grid; grid-template-columns: 1fr; gap: var(--s6); align-items: center; }
@media (min-width: 960px) { .builders-grid { grid-template-columns: 1.15fr .85fr; gap: var(--s7); } }
.builders .section-title { color: var(--paper); }
.builders .section-title em { color: var(--brass-soft); }
.builders-text { margin-top: var(--s4); display: grid; gap: var(--s2); color: var(--text-on-dark-muted); max-width: 58ch; font-size: 18px; }
.builders-names {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin: var(--s5) 0; border-top: 1px solid var(--line-dark);
}
.builders-names li {
  font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); color: var(--paper);
  padding: 18px 0; border-bottom: 1px solid var(--line-dark);
}
.builders-names li:nth-child(odd) { padding-right: 16px; }
.builders-names li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-dark); }
@media (max-width: 560px) {
  .builders-names { grid-template-columns: 1fr; }
  .builders-names li:nth-child(n) { padding: 16px 0; border-left: 0; }
}

.award-card {
  background: var(--paper); color: var(--text);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.5);
}
.award-card::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(200,153,90,.45); pointer-events: none;
}
.award-icon { width: 44px; height: 44px; color: var(--brass); }
.award-k { margin-top: 22px; font-size: 11px; color: var(--text-muted); }
.award-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 3.2vw, 42px); line-height: 1.05; color: var(--forest); margin-top: 8px; text-wrap: balance; }
.award-text { margin-top: 16px; color: var(--text-muted); }
.award-link { position: relative; z-index: 1; }

/* ---------- Intro ---------- */
.intro { text-align: center; background: var(--paper); }
.intro .eyebrow { justify-content: center; }
.intro .eyebrow::after { content: ""; width: 32px; height: 1px; background: var(--brass); }
.intro-statement {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 46px); line-height: 1.24; color: var(--forest);
  text-wrap: balance;
}
.intro-statement em { font-style: italic; }
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line);
}
.facts li { padding: 28px 8px 0; display: grid; gap: 6px; }
.facts li + li { border-left: 1px solid var(--line); }
.fact-num { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); line-height: 1; color: var(--forest); }
.facts .micro { color: var(--text-muted); font-size: 11px; }

/* ---------- Services ---------- */
.services { background: var(--paper-2); }
.service-grid { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
@media (min-width: 760px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .service-media { aspect-ratio: 16 / 10; } }
.service-card { background: var(--paper); display: flex; flex-direction: column; transition: box-shadow var(--dur) var(--ease-out); }
.service-card:hover { box-shadow: 0 24px 50px -28px rgba(15, 61, 46, .45); }
.service-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.service-card:hover .service-media img { transform: scale(1.04); }
.service-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.service-num { font-family: var(--font-display); font-size: 20px; color: var(--brass); font-style: italic; }
.service-icon { width: 28px; height: 28px; color: var(--forest); }
.service-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 34px; line-height: 1.05; color: var(--forest); margin-bottom: 12px; }
.service-card p { color: var(--text-muted); }
.ticks { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.ticks li { display: flex; gap: 12px; font-size: 15px; align-items: baseline; }
.ticks li::before { content: ""; width: 14px; height: 1px; background: var(--brass); transform: translateY(-4px); flex-shrink: 0; }
.service-body .text-link { margin-top: auto; padding-top: 24px; border-bottom: 0; align-self: flex-start; }

/* ---------- Owner ---------- */
.owner { background: var(--paper-2); }
.owner-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); align-items: center; }
@media (min-width: 900px) { .owner-grid { grid-template-columns: .8fr 1.2fr; gap: var(--s7); } }
.owner-photo { margin: 0; position: relative; max-width: 460px; }
.owner-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.owner-photo::before {
  content: ""; position: absolute; inset: 20px -20px -20px 20px; z-index: -1;
  border: 1px solid var(--brass);
}
.owner-photo { isolation: isolate; }
.owner-text { margin-top: var(--s4); display: grid; gap: var(--s2); max-width: 58ch; color: var(--text-muted); font-size: 18px; }
.owner-sign { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); display: inline-block; min-width: 220px; }
.owner-name { font-family: var(--font-display); font-style: italic; font-size: 32px; line-height: 1.1; color: var(--forest); }
.owner-sign .micro { margin-top: 4px; font-size: 11px; color: var(--text-muted); }
@media (max-width: 560px) { .owner-photo::before { inset: 12px -12px -12px 12px; } .owner-photo { margin-right: 12px; } }

/* ---------- Calculator ---------- */
.calc {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, #14503D 0%, var(--forest) 40%, var(--forest-ink) 100%);
  color: var(--text-on-dark);
}
.contours-calc { opacity: .07; }
.calc-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 64px); }
.calc .section-title { color: var(--paper); }
.calc .section-title em { color: var(--brass-soft); }
.calc-lede { margin-top: var(--s3); color: var(--text-on-dark-muted); max-width: 60ch; }

.calc-grid { display: grid; grid-template-columns: 1fr; gap: var(--s3); align-items: start; }
@media (min-width: 960px) { .calc-grid { grid-template-columns: 1.08fr .92fr; } }
.calc-panel {
  border: 1px solid var(--line-dark);
  background: rgba(247, 246, 244, .04);
  padding: clamp(22px, 3vw, 36px);
}
.calc-output { background: rgba(4, 20, 16, .5); }
@media (min-width: 960px) { .calc-output { position: sticky; top: 92px; } }

.field { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field-label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-on-dark-muted); margin-bottom: 12px; padding: 0;
}
.field-label .val {
  font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--paper); font-variant-numeric: tabular-nums; white-space: nowrap;
}
@media (max-width: 700px) { .contours-calc { display: none; } }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-pair .field { margin-bottom: 0; }
.hint { font-size: 13px; color: var(--text-on-dark-muted); margin-top: 8px; line-height: 1.45; }

.seg-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.seg-row-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .seg-row-4 { grid-template-columns: repeat(4, 1fr); } }
.seg { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg > span {
  display: block; height: 100%; text-align: center; padding: 12px 8px; min-height: 56px;
  border: 1px solid var(--line-dark); background: rgba(247,246,244,.03);
  font-size: 14px; font-weight: 500; color: var(--text-on-dark-muted); line-height: 1.3;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.seg small { display: block; font-size: 12px; font-weight: 400; opacity: .8; margin-top: 3px; }
.seg:hover > span { border-color: rgba(247,246,244,.4); color: var(--paper); }
.seg input:checked + span { background: var(--paper); color: var(--forest); border-color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.seg-row-lg .seg > span { font-family: var(--font-display); font-size: 22px; padding: 14px 8px; }
.seg-row-lg .seg small { font-family: var(--font-body); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* ranges */
.calc input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0;
  --fill: 50%;
}
.calc input[type=range]::-webkit-slider-runnable-track {
  height: 3px; background: linear-gradient(90deg, var(--brass) var(--fill), rgba(247,246,244,.18) var(--fill));
}
.calc input[type=range]::-moz-range-track { height: 3px; background: rgba(247,246,244,.18); }
.calc input[type=range]::-moz-range-progress { height: 3px; background: var(--brass); }
.calc input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; margin-top: -9.5px;
  background: var(--paper); border: 5px solid var(--forest); box-shadow: 0 0 0 1px var(--brass);
}
.calc input[type=range]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 5px solid var(--forest); box-shadow: 0 0 0 1px var(--brass);
}
.calc input[type=range]:focus-visible { outline: none; }
.calc input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--brass); }

.num-input {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-dark); background: rgba(4,20,16,.45); padding: 0 14px;
  transition: border-color var(--dur) var(--ease-out);
}
.num-input:focus-within { border-color: var(--brass); }
.num-input input {
  width: 100%; min-width: 0; min-height: 50px; background: transparent; border: 0; outline: none;
  font-family: var(--font-display); font-size: 24px; font-weight: 500; color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.unit { color: var(--text-on-dark-muted); font-size: 14px; }

/* output */
.out-head { font-size: 11px; color: var(--text-on-dark-muted); text-align: center; }
.gauge { display: flex; justify-content: center; margin: 14px 0 6px; }
.gauge svg { width: 100%; max-width: 280px; height: auto; }
.gauge-track { stroke: rgba(247,246,244,.12); }
.gauge-fill { stroke: var(--brass); transition: stroke-dashoffset var(--dur-slow) var(--ease-out); }
.gauge-num { font-family: var(--font-display); font-size: 40px; font-weight: 500; fill: var(--paper); }
.gauge-cap { font-family: var(--font-body); font-size: 8.5px; letter-spacing: 2px; fill: rgba(247,246,244,.7); }
.big-cost { text-align: center; }
.amount { font-family: var(--font-display); font-weight: 500; font-size: clamp(52px, 6vw, 72px); line-height: 1; color: var(--brass-soft); font-variant-numeric: tabular-nums; }
.amount .per { font-family: var(--font-body); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-on-dark-muted); margin-left: 10px; }
.caption { margin: 12px auto 0; max-width: 36ch; font-size: 14px; color: var(--text-on-dark-muted); line-height: 1.5; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.stat { border: 1px solid var(--line-dark); padding: 16px; }
.stat .micro { font-size: 10.5px; color: var(--text-on-dark-muted); margin-bottom: 6px; }
.stat-v { font-family: var(--font-display); font-size: 30px; line-height: 1.1; color: var(--paper); font-variant-numeric: tabular-nums; }
.stat-v small { font-family: var(--font-body); font-size: 13px; color: var(--text-on-dark-muted); }
.insight { margin: 24px 0; padding: 18px 20px; border-left: 2px solid var(--brass); background: rgba(200,153,90,.08); }
.insight-k { font-size: 11px; color: var(--brass-soft); margin-bottom: 6px; }
.insight-v { font-size: 15px; color: var(--text-on-dark-muted); line-height: 1.55; }
.insight-v strong { color: var(--paper); font-weight: 500; }
.footnote { margin-top: var(--s4); font-size: 13px; line-height: 1.6; color: rgba(247,246,244,.62); max-width: 110ch; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: .85fr 1.15fr; gap: var(--s7); }
  .faq-aside { position: sticky; top: 110px; align-self: start; }
}
.faq-aside .section-intro { margin-top: var(--s3); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding: 26px 0; min-height: 44px;
  font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 27px); font-weight: 500; line-height: 1.25; color: var(--forest);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 22px; height: 22px; color: var(--brass); transition: transform var(--dur) var(--ease-out); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list summary:hover { color: #145040; }
.faq-a { padding: 0 48px 28px 0; color: var(--text-muted); max-width: 64ch; }
.faq-a a { color: var(--forest); text-underline-offset: 3px; }

/* ---------- CTA ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; color: var(--paper); text-align: center; padding: clamp(96px, 14vw, 180px) 0; }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: rgba(7, 32, 26, .78); }
.cta-inner { display: grid; justify-items: center; }
.cta-mark { width: 52px; height: 52px; color: var(--paper); margin-bottom: var(--s4); }
.cta-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 6.5vw, 88px); line-height: 1; text-transform: uppercase; text-wrap: balance; }
.cta-lede { margin: var(--s3) 0 var(--s5); color: var(--text-on-dark-muted); max-width: 46ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-ink); color: var(--text-on-dark-muted); padding: var(--s7) 0 var(--s4); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); padding-bottom: var(--s5); border-bottom: 1px solid var(--line-dark); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.site-footer .brand { color: var(--paper); }
.footer-tag { margin-top: 18px; font-size: 11px; color: var(--paper); }
.footer-est { margin-top: 6px; font-size: 10.5px; }
.footer-area { margin-top: 18px; font-size: 14px; line-height: 1.6; max-width: 38ch; }
.footer-h { font-size: 11px; color: var(--brass-soft); margin-bottom: 16px; }
.footer-list { display: grid; gap: 4px; }
.footer-list a { text-decoration: none; display: inline-block; padding: 6px 0; transition: color var(--dur) var(--ease-out); }
.footer-list a:hover { color: var(--paper); }
/* footer contact icons */
.contact-icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; max-width: 320px; margin-left: -4px; }
.contact-icons a {
  display: grid; justify-items: center; gap: 8px; padding: 4px;
  text-decoration: none; color: var(--text-on-dark-muted);
  transition: color var(--dur) var(--ease-out);
}
.ci {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(200,153,90,.6); color: var(--brass-soft);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.ci svg { width: 22px; height: 22px; }
.ci-label { font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.contact-icons a:hover { color: var(--paper); }
.contact-icons a:hover .ci { background: var(--paper); color: var(--forest); border-color: var(--paper); }
.contact-icons a:active .ci { transform: scale(.95); }
.contact-detail { margin-top: 18px; font-size: 15px; line-height: 1.7; color: var(--text-on-dark-muted); overflow-wrap: anywhere; }

/* social band */
.social-band {
  display: grid; grid-template-columns: 1fr; gap: var(--s4); align-items: center;
  padding-bottom: var(--s6); margin-bottom: var(--s6); border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 900px) { .social-band { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
.social-band .eyebrow { margin-bottom: var(--s2); }
.social-title {
  font-family: var(--font-display); font-weight: 400; color: var(--paper);
  font-size: clamp(34px, 4vw, 52px); line-height: 1.05; text-wrap: balance;
}
.social-title em { color: var(--brass-soft); }
.social-lede { margin-top: var(--s2); max-width: 44ch; }
.social-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .social-cards { grid-template-columns: 1fr 1fr; } }
.social-card {
  display: flex; align-items: center; gap: 16px; min-height: 88px; padding: 18px 20px;
  border: 1px solid var(--line-dark); background: rgba(247,246,244,.04);
  text-decoration: none; color: var(--paper);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.social-card:hover { background: var(--paper); color: var(--forest); border-color: var(--paper); }
.social-card:active { transform: scale(.99); }
.social-icon {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid rgba(200,153,90,.6); color: var(--brass-soft);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.social-card:hover .social-icon { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.social-icon svg { width: 22px; height: 22px; }
.social-text { display: grid; flex: 1; min-width: 0; }
.social-text strong { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.1; }
.social-text span { white-space: nowrap; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-top: 2px; }
.social-text .handle { text-transform: none; letter-spacing: .04em; font-size: 15px; }
.social-arrow { width: 20px; height: 20px; transition: transform var(--dur) var(--ease-out); }
.social-card:hover .social-arrow { transform: translateX(4px); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: var(--s3); font-size: 13px; }

/* ---------- Contact dialog ---------- */
.contact-dialog {
  border: 0; padding: 0; margin: auto; max-width: min(480px, calc(100vw - 32px)); width: 100%;
  background: var(--paper); color: var(--text);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5);
}
.contact-dialog::backdrop { background: rgba(7, 32, 26, .72); }
@supports (backdrop-filter: blur(4px)) { .contact-dialog::backdrop { backdrop-filter: blur(4px); } }
.contact-dialog[open] { animation: dialog-in var(--dur) var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog-inner { position: relative; padding: 40px clamp(22px, 5vw, 40px) 32px; }
.dialog-close { position: absolute; top: 12px; right: 12px; color: var(--text-muted); }
.dialog-close:hover { background: var(--paper-2); color: var(--forest); }
.dialog-mark { width: 36px; height: 36px; color: var(--forest); }
.dialog-title { font-family: var(--font-display); font-weight: 500; font-size: 40px; line-height: 1.05; color: var(--forest); margin-top: 18px; }
.dialog-lede { margin-top: 10px; color: var(--text-muted); font-size: 16px; }
.contact-options { display: grid; gap: 10px; margin-top: 26px; }
.contact-opt {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; min-height: 68px;
  border: 1px solid var(--line); text-decoration: none; background: #fff;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.contact-opt:hover { border-color: var(--forest); }
.contact-opt:active { transform: scale(.99); }
.opt-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--forest); }
.opt-icon svg { width: 20px; height: 20px; }
.opt-text { display: grid; flex: 1; min-width: 0; }
.opt-text strong { font-weight: 500; font-size: 16px; }
.opt-text span { font-size: 14px; color: var(--text-muted); overflow-wrap: anywhere; }
.opt-arrow { width: 18px; height: 18px; color: var(--forest); transition: transform var(--dur) var(--ease-out); }
.contact-opt:hover .opt-arrow { transform: translateX(4px); }
.contact-opt-primary { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.contact-opt-primary:hover { background: #145040; }
.contact-opt-primary .opt-icon { background: rgba(247,246,244,.14); color: var(--paper); }
.contact-opt-primary .opt-text span { color: rgba(247,246,244,.78); }
.contact-opt-primary .opt-arrow { color: var(--paper); }
.dialog-note { margin-top: 18px; font-size: 14px; color: var(--text-muted); text-align: center; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .hero-panel { padding: 20px; }
  .swatch { width: 64px; height: 56px; }
  .field-pair { grid-template-columns: 1fr; gap: 28px; }
  .facts li { padding-top: 22px; }
  .facts .micro { letter-spacing: .12em; }
  .faq-a { padding-right: 0; }
}
