:root {
  --green: #14dc00;
  --green-deep: #0b7e18;
  --ink: #101417;
  --ink-2: #243036;
  --paper: #fffdf5;
  --white: #ffffff;
  --mist: #eff6f1;
  --line: rgba(16, 20, 23, 0.14);
  --line-light: rgba(255, 255, 255, 0.22);
  --cyan: #00b9d7;
  --coral: #ff4f3f;
  --magenta: #d51cff;
  --yellow: #ffd23f;
  --teal: #08756d;
  --charcoal: #202326;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(16, 20, 23, 0.22);
  --max: 1180px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

::selection {
  background: var(--green);
  color: var(--ink);
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 10px max(18px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 253, 245, 0.9);
  border-bottom: 1px solid rgba(16, 20, 23, 0.08);
  backdrop-filter: blur(18px);
}

.home-page .site-header {
  position: fixed;
  width: 100%;
  background: linear-gradient(180deg, rgba(10, 14, 16, 0.56), rgba(10, 14, 16, 0.1));
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  font-weight: 720;
  line-height: 1;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  padding: 5px;
  background: var(--white);
  border: 1px solid rgba(16, 20, 23, 0.12);
  border-radius: var(--radius);
}

.brand span {
  font-size: 1.08rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 9px;
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 560;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--green);
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav .nav-order {
  min-height: 38px;
  margin-left: 12px;
  padding-inline: 13px;
  background: var(--green);
  color: var(--ink);
  font-weight: 720;
  box-shadow: 0 6px 18px rgba(20, 220, 0, 0.18);
}

.site-nav .nav-signin {
  min-height: 36px;
  margin-left: 2px;
  padding-inline: 8px;
  background: transparent;
  color: inherit;
  font-weight: 540;
  box-shadow: none;
  opacity: 0.82;
}

.site-nav .nav-signin:hover {
  opacity: 1;
  background: rgba(16, 20, 23, 0.06);
}

.home-page .site-nav .nav-signin:hover {
  background: rgba(255, 255, 255, 0.11);
}

.site-nav .nav-order::after {
  display: none;
}

.site-nav .nav-signin::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: relative;
}

.nav-toggle-bars::before {
  top: -7px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: -2px;
  transform: rotate(90deg);
}

.section {
  padding: 76px 20px;
}

.section.tight {
  padding-block: 46px;
}

.wrap {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-page .hero .eyebrow {
  color: var(--green);
}

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

h1,
h2,
h3 {
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: 4.6rem;
}

h2 {
  margin-bottom: 16px;
  font-size: 3rem;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

p {
  color: rgba(16, 20, 23, 0.76);
}

.lead {
  font-size: 1.15rem;
  max-width: 760px;
}

.text-light,
.text-light p {
  color: rgba(255, 255, 255, 0.86);
}

.text-light .section-kicker,
.text-light .eyebrow {
  color: var(--green);
}

.button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 850;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 18px 38px rgba(20, 220, 0, 0.26);
}

.button.dark {
  background: var(--ink);
  color: var(--white);
}

.button.light {
  background: var(--white);
  color: var(--ink);
}

.button.outline {
  border-color: currentColor;
  background: transparent;
}

.button.coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 18px 38px rgba(255, 79, 63, 0.24);
}

.text-button {
  min-height: 0;
  padding: 0;
  color: var(--ink);
  border: 0;
}

.text-button::after,
.button .arrow {
  content: "";
  width: 0.72em;
  height: 0.72em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 88vh;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 66% center;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 12, 14, 0.88) 0%, rgba(8, 12, 14, 0.62) 33%, rgba(8, 12, 14, 0.12) 72%),
    linear-gradient(180deg, rgba(8, 12, 14, 0.18), rgba(8, 12, 14, 0.38));
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 76px;
  right: 0;
  width: 44%;
  height: 10px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--yellow), var(--coral));
  animation: railPulse 2600ms ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 420px);
  gap: 40px;
  align-items: center;
  min-height: 88vh;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 132px 20px 72px;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  max-width: 760px;
  color: var(--white);
}

.hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.fact-pill {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(16, 20, 23, 0.52);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 780;
}

.hero-scroll {
  position: absolute;
  z-index: 4;
  right: max(20px, calc((100vw - var(--max)) / 2));
  bottom: 24px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 850;
}

.hero-scroll::after {
  content: "";
  display: block;
  width: 2px;
  height: 38px;
  margin: 8px auto 0;
  background: var(--green);
}

.hero-lead-widget {
  position: relative;
  overflow: visible;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(20, 220, 0, 0.22), transparent 34%),
    linear-gradient(160deg, rgba(0, 185, 215, 0.18), transparent 68%),
    var(--white);
  color: var(--ink);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.hero-lead-widget::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--yellow), var(--coral));
}

.hero-lead-widget h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 2rem;
}

.hero-lead-widget p,
.hero-lead-widget label {
  color: rgba(16, 20, 23, 0.78);
}

.hero-lead-widget .section-kicker {
  margin-top: 8px;
  color: var(--green-deep);
}

.opening-callout {
  display: grid;
  gap: 3px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(11, 126, 24, 0.24);
  border-radius: var(--radius);
  background: rgba(20, 220, 0, 0.12);
}

.opening-callout span {
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.opening-callout strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.hero-calculator-form {
  position: relative;
  display: grid;
  gap: 14px;
}

.hero-calculator-form .form-grid {
  gap: 12px;
}

.hero-submit {
  width: 100%;
  min-height: 56px;
  font-size: 1.05rem;
}

.hero-estimate {
  display: grid;
  align-content: start;
  gap: 7px;
  height: 166px;
  padding: 13px 15px;
  overflow: auto;
  border: 1px solid rgba(11, 126, 24, 0.24);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  scrollbar-gutter: stable;
}

.hero-estimate[data-visible="false"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.hero-estimate p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.35;
}

.hero-estimate-label {
  color: var(--green) !important;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-estimate-main {
  display: grid;
  gap: 3px;
}

.hero-estimate-main strong {
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}

.hero-estimate-main span {
  min-height: 1.35em;
  color: var(--white);
  font-weight: 680;
  line-height: 1.35;
}

.hero-widget-note {
  margin: 14px 0 0;
  max-width: none;
  font-size: 0.92rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 20px 58px;
  background: var(--ink);
  color: var(--white);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(20, 220, 0, 0.18), transparent 34%),
    linear-gradient(160deg, transparent 48%, rgba(0, 185, 215, 0.18)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 72px);
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 850px;
  color: var(--white);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.hero-mini-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 44px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1fr);
}

.split.reverse > :first-child {
  order: 2;
}

.image-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.image-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--yellow), var(--coral));
}

.door-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.door-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 36px rgba(16, 20, 23, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.door-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(16, 20, 23, 0.16);
}

.door-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.door-card-content {
  padding: 18px;
}

.door-card h3 {
  font-size: 1.15rem;
}

.door-card p {
  font-size: 0.95rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.badge-row li,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 780;
}

.dark-band {
  background: var(--ink);
  color: var(--white);
}

.color-band {
  background:
    linear-gradient(100deg, rgba(20, 220, 0, 0.28), transparent 28%),
    linear-gradient(160deg, rgba(255, 79, 63, 0.2), transparent 62%),
    var(--paper);
}

.business-section {
  background:
    linear-gradient(112deg, rgba(20, 220, 0, 0.18), transparent 34%),
    linear-gradient(160deg, rgba(213, 28, 255, 0.16), transparent 62%),
    var(--ink);
  color: var(--white);
}

.business-section p,
.business-section .lead {
  color: rgba(255, 255, 255, 0.8);
}

.business-section .section-kicker {
  color: var(--green);
}

.business-intro .lead {
  max-width: 780px;
}

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

.business-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.business-card h3 {
  color: var(--white);
}

.business-card p {
  font-size: 0.95rem;
}

.business-card .text-button {
  color: var(--green);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 720;
}

.breadcrumb a {
  color: inherit;
}

.breadcrumb span {
  color: var(--green);
}

.audience-grid,
.value-grid,
.blog-list,
.related-grid {
  display: grid;
  gap: 16px;
}

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

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

.audience-card,
.value-card,
.post-card,
.service-panel,
.post-sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(16, 20, 23, 0.08);
}

.audience-card,
.post-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.audience-card:hover,
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(16, 20, 23, 0.14);
}

.audience-card strong,
.post-card strong {
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.1;
}

.audience-card p,
.post-card p {
  margin-bottom: 0;
}

.value-card,
.service-panel,
.post-sidebar {
  padding: 22px;
}

.service-panel {
  background: var(--ink);
  color: var(--white);
}

.service-panel p,
.service-panel li {
  color: rgba(255, 255, 255, 0.78);
}

.service-panel .spec-list li {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.segment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 26px;
  align-items: start;
}

.post-card time,
.article-meta {
  color: rgba(16, 20, 23, 0.58);
  font-size: 0.9rem;
  font-weight: 720;
}

.post-card .badge-row {
  margin-top: 0;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: 34px;
  align-items: start;
}

.article-body {
  max-width: 780px;
}

.article-body h2 {
  margin-top: 34px;
  font-size: 2.15rem;
}

.article-body h3 {
  margin-top: 26px;
}

.article-body p,
.article-body li {
  font-size: 1.04rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

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

.toc-list a {
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
}

.toc-list a:hover {
  color: var(--green-deep);
}

.article-cta {
  margin-top: 34px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--mist);
  border-left: 6px solid var(--green);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.step {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.step::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  font-weight: 900;
}

.calc-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: 36px;
  align-items: center;
}

.mini-calculator,
.calculator-form,
.estimate-panel,
.quote-form,
.contact-panel {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 45px rgba(16, 20, 23, 0.1);
}

.mini-calculator {
  overflow: hidden;
  padding: 22px;
}

.mini-calc-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-input {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.mini-input strong {
  display: block;
  font-size: 1.5rem;
}

.mini-reveal {
  margin-top: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--green);
  font-size: 1.55rem;
  font-weight: 900;
}

.gallery-ribbon {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.gallery-ribbon img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
}

.quote-band {
  padding: 42px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 220, 0, 0.2), transparent 36%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 26px);
  pointer-events: none;
}

.quote-band > * {
  position: relative;
}

.quote-band h2 {
  max-width: 760px;
  color: var(--white);
}

.quote-band p {
  color: rgba(255, 255, 255, 0.82);
}

.family-row {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.family-row:last-child {
  border-bottom: 0;
}

.family-row:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.family-row:nth-child(even) .family-image {
  order: 2;
}

.family-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.family-image img {
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  padding: 12px;
  border-left: 5px solid var(--green);
  background: var(--mist);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 740;
}

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

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

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

th {
  background: var(--ink);
  color: var(--white);
  font-size: 0.9rem;
}

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

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: 24px;
  align-items: start;
}

.calculator-form,
.estimate-panel,
.quote-form,
.contact-panel {
  padding: 24px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label,
.field legend,
.control-label {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 840;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid rgba(16, 20, 23, 0.18);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: rgba(16, 20, 23, 0.34);
  opacity: 1;
}

.hero-lead-widget input::placeholder {
  color: rgba(16, 20, 23, 0.26);
}

.custom-select {
  position: relative;
  z-index: 1;
}

.custom-select.is-open {
  z-index: 90;
}

.custom-select-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid rgba(16, 20, 23, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(20, 220, 0, 0.12), transparent 42%),
    var(--white);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 22px rgba(16, 20, 23, 0.06);
}

.custom-select-button:hover {
  border-color: rgba(11, 126, 24, 0.42);
}

.custom-select-chevron {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.custom-select.is-open .custom-select-chevron {
  transform: translateY(2px) rotate(225deg);
}

.custom-select-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  gap: 5px;
  max-height: 284px;
  margin: 0;
  padding: 7px;
  overflow: auto;
  list-style: none;
  border: 1px solid rgba(16, 20, 23, 0.16);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 44px rgba(16, 20, 23, 0.18);
}

.custom-select-menu[hidden] {
  display: none;
}

.custom-select-option {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 10px 38px 10px 11px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  color: var(--ink);
  cursor: pointer;
}

.custom-select-option span {
  font-weight: 780;
}

.custom-select-option small {
  color: rgba(16, 20, 23, 0.58);
  font-size: 0.78rem;
}

.custom-select-option:hover,
.custom-select-option:focus,
.custom-select-option[aria-selected="true"] {
  outline: 0;
  border-color: rgba(11, 126, 24, 0.24);
  background: rgba(20, 220, 0, 0.12);
}

.custom-select-option[aria-selected="true"] {
  box-shadow: inset 3px 0 0 var(--green-deep);
}

.custom-select-option[aria-selected="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 14px;
  border-right: 2px solid var(--green-deep);
  border-bottom: 2px solid var(--green-deep);
  transform: translateY(-60%) rotate(45deg);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-height: auto;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.choice-grid input,
.swatch-grid input,
.segment-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-grid label,
.segment-grid label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.choice-grid input:checked + label,
.segment-grid input:checked + label {
  border-color: var(--green);
  background: #eaffdf;
  box-shadow: inset 0 0 0 2px var(--green);
}

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

.swatch {
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.swatch::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(16, 20, 23, 0.16);
  background: var(--swatch);
}

.swatch-grid input:checked + .swatch {
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px var(--green);
}

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

.door-preview-zone {
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(20, 220, 0, 0.12), transparent 34%),
    linear-gradient(160deg, rgba(0, 185, 215, 0.14), transparent 66%),
    #f6f3eb;
  border: 1px solid var(--line);
}

.preview-room {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(16, 20, 23, 0.08) 1px, transparent 1px) 0 0 / 60px 100%,
    linear-gradient(180deg, #fffdf5 0 63%, #d6be9f 63% 100%);
  overflow: hidden;
}

.preview-room::before {
  content: "";
  position: absolute;
  left: 8%;
  bottom: 18%;
  width: 18%;
  height: 45%;
  background: linear-gradient(180deg, var(--teal), #06524d);
  border-radius: var(--radius);
}

.preview-room::after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: 16%;
  width: 18%;
  height: 18%;
  background: var(--coral);
  border-radius: var(--radius);
}

.door-preview {
  position: absolute;
  z-index: 2;
  left: 24%;
  right: 10%;
  top: 14%;
  bottom: 18%;
  display: grid;
  grid-template-columns: repeat(var(--panel-count, 3), 1fr);
  gap: 4px;
  padding: 8px;
  border: 6px solid #272a2d;
  border-radius: var(--radius);
  background: #33383a;
  box-shadow: 0 24px 60px rgba(16, 20, 23, 0.25);
}

.door-panel {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: var(--finish-color, #f2f2ec);
}

.door-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.58), transparent 42%),
    linear-gradient(180deg, transparent 46%, rgba(16, 20, 23, 0.1) 47%, transparent 50%);
  opacity: var(--panel-sheen, 0.25);
}

.door-preview[data-family="mirror"] .door-panel {
  background: linear-gradient(115deg, #e9f4f7, #bdcfd8 42%, #f8ffff 66%, #b6c6cd);
}

.door-preview[data-family="mp"] .door-panel:nth-child(odd) {
  background: #202326;
}

.door-preview[data-family="mp"] .door-panel:nth-child(even) {
  background: #f2efe2;
}

.door-preview[data-family="bpg"] .door-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(166, 215, 216, 0.7), rgba(255, 255, 255, 0.86));
}

.estimate-panel {
  margin-top: 18px;
  background: var(--ink);
  color: var(--white);
}

.estimate-panel p,
.estimate-panel label {
  color: rgba(255, 255, 255, 0.78);
}

.estimate-state {
  min-height: 144px;
}

.estimate-price {
  margin: 12px 0;
  color: var(--green);
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 950;
}

.estimate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.estimate-meta li {
  padding: 6px 9px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 780;
}

.notice {
  margin-top: 14px;
  padding: 12px;
  border-left: 5px solid var(--yellow);
  background: rgba(255, 210, 63, 0.16);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: inherit;
}

.loading-bar {
  position: relative;
  overflow: hidden;
  height: 10px;
  margin: 18px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.loading-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: var(--green);
  animation: loadingSweep 950ms ease-in-out infinite alternate;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
}

.gallery-item.large {
  grid-column: span 2;
  min-height: 440px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(8, 12, 14, 0.86));
  color: var(--white);
}

.gallery-caption p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.before-after-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.note-card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
}

.stat-stack {
  display: grid;
  gap: 12px;
}

.stat-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.stat-card strong {
  display: block;
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.78);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}

.contact-panel {
  background: var(--ink);
  color: var(--white);
}

.contact-panel p,
.contact-panel a {
  color: rgba(255, 255, 255, 0.82);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.map-panel {
  min-height: 270px;
  margin-top: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(20, 220, 0, 0.22), transparent 30%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 56px),
    #172125;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  color: var(--white);
  text-align: center;
  padding: 24px;
}

.form-status {
  margin-top: 14px;
  min-height: 24px;
  font-weight: 760;
}

.form-status[data-tone="success"] {
  color: var(--green-deep);
}

.contact-panel .form-status[data-tone="success"],
.estimate-panel .form-status[data-tone="success"] {
  color: var(--green);
}

.form-status[data-tone="error"] {
  color: #b42318;
}

.contact-panel .form-status[data-tone="error"],
.estimate-panel .form-status[data-tone="error"] {
  color: #ffb4ac;
}

.site-footer {
  padding: 42px 20px;
  background: var(--ink);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.6fr);
  gap: 22px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--green);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-title {
  margin-bottom: 12px;
  color: var(--white);
  font-weight: 900;
}

.generated-note {
  max-width: 720px;
  font-size: 0.88rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 480ms ease, transform 480ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroDrift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.035);
  }
}

@keyframes railPulse {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(18px);
  }
}

@keyframes loadingSweep {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(165%);
  }
}

@media (max-width: 1120px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 68px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: space-between;
    min-height: 50px;
  }

  .site-nav .nav-order,
  .site-nav .nav-signin {
    margin-left: 0;
  }

  .site-nav .nav-signin {
    padding-inline: 9px;
    opacity: 1;
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 68px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: space-between;
    min-height: 50px;
  }

  .site-nav .nav-order {
    margin-left: 0;
  }

  .site-nav .nav-signin {
    margin-left: 0;
    opacity: 1;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .split,
  .split.reverse,
  .calc-teaser,
  .calculator-layout,
  .about-grid,
  .contact-layout,
  .gallery-ribbon {
    grid-template-columns: 1fr;
  }

  .split.reverse > :first-child,
  .family-row:nth-child(even) .family-image {
    order: initial;
  }

  .door-strip,
  .steps,
  .hero-mini-grid,
  .business-grid,
  .audience-grid,
  .value-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .family-row,
  .family-row:nth-child(even),
  .segment-layout,
  .article-shell {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 68px;
    padding: 10px 14px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .site-nav {
    inset: 68px 10px auto;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    min-height: auto;
    padding: 104px 18px 56px;
  }

  .hero-media img {
    object-position: 72% center;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(8, 12, 14, 0.9) 0%, rgba(8, 12, 14, 0.62) 58%, rgba(8, 12, 14, 0.32) 100%);
  }

  .hero::after {
    top: 68px;
    width: 72%;
  }

  .hero-lead-widget {
    padding: 20px;
  }

  .hero-lead-widget h2 {
    font-size: 1.65rem;
  }

  h1 {
    font-size: 2.72rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 56px 16px;
  }

  .page-hero {
    padding: 62px 16px 46px;
  }

  .hero-scroll {
    display: none;
  }

  .door-strip,
  .steps,
  .hero-mini-grid,
  .business-grid,
  .audience-grid,
  .value-grid,
  .related-grid,
  .blog-list,
  .gallery-grid,
  .before-after-note,
  .spec-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.large {
    grid-column: auto;
  }

  .gallery-item,
  .gallery-item.large {
    min-height: 330px;
  }

  .quote-band {
    padding: 28px 20px;
  }

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

  .preview-room {
    min-height: 330px;
  }

  .door-preview {
    left: 12%;
    right: 8%;
    top: 18%;
    bottom: 20%;
  }

  .estimate-price {
    font-size: 1.85rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
