:root {
  color-scheme: dark;
  --background: #0a141d;
  --surface: #13222e;
  --surface-deep: #0e1b25;
  --text: #f1f5f2;
  --muted: #b2c0c6;
  --line: #364753;
  --accent: #c2f765;
  --ink: #182614;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select { font: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
p { line-height: 1.6; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
section[id], main[id] { scroll-margin-top: 26px; }

.container { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 5;
  inset: 12px auto auto 12px;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
}

.site-header { border-bottom: 1px solid #25333e; }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 34px; }
.brand {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 7px;
  background: #f8faf7;
  flex-shrink: 0;
}
.brand img { width: 138px; height: auto; display: block; }
.header-inner nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.header-inner nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 600;
}
.header-inner nav a:hover, .site-footer a:hover, .quote-contact a:hover { color: var(--accent); }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 180ms, color 180ms, border-color 180ms, transform 180ms;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--ink); }
.button-primary:hover { background: #d9ff9c; }
.button-outline { border-color: #667780; color: var(--text); }
.button-outline:hover { border-color: var(--accent); color: var(--accent); }
.button-small { min-height: 40px; font-size: .94rem; padding-inline: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  align-items: center;
  gap: 38px clamp(32px, 6vw, 82px);
  padding-block: 54px 48px;
}
.hero-content { padding-block: 8px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .045em;
}
.signal { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1 {
  margin: 14px 0 18px;
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 750;
  letter-spacing: -.064em;
  line-height: .99;
}
h1 span { display: block; color: var(--accent); }
.hero-intro { max-width: 35ch; margin-bottom: 24px; font-size: 1.125rem; color: var(--muted); }
.hero-diagram .install-diagram { aspect-ratio: 1.64; }
.gallery {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-deep);
  overflow: hidden;
}
.gallery-frame { position: relative; aspect-ratio: 1.64; overflow: hidden; }
.gallery-slide { width: 100%; height: 100%; position: relative; }
.gallery-slide:not([hidden]) { animation: show-photo 280ms ease-out; }
.gallery-slide::after {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(transparent, rgb(7 16 24 / 82%));
  pointer-events: none;
}
.gallery-slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gallery-slide:nth-child(1) img { object-position: 50% 48%; }
.gallery-slide:nth-child(2) img { object-position: 50% 52%; }
.gallery-slide:nth-child(3) img { object-position: 50% 36%; }
.gallery-slide:nth-child(4) img { object-position: 50% 35%; }
.gallery-slide figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 16px 14px;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 10px;
}
.gallery-controls button {
  padding: 8px 7px;
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  cursor: pointer;
}
.gallery-controls button:hover { color: var(--accent); }
.gallery-dots { display: flex; }
.gallery-dots button {
  display: grid;
  place-items: center;
  width: 26px;
  padding-inline: 0;
}
.gallery-dots button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b7c85;
  transition: transform 160ms, background-color 160ms;
}
.gallery-dots button[aria-current]::after {
  background: var(--accent);
  transform: scale(1.3);
}
@keyframes show-photo { from { opacity: .55; } to { opacity: 1; } }

.service-section { grid-column: 1 / -1; }
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr .8fr;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(135deg, #162632, var(--surface-deep));
}
.service { padding: 21px 23px; }
.service + .service { border-left: 1px solid var(--line); }
.service h3 { font-size: .94rem; font-weight: 650; }
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 7px;
  margin: 4px 0 1px;
  line-height: 1.25;
}
.price strong {
  color: var(--accent);
  font-size: clamp(1.85rem, 3.1vw, 2.5rem);
  letter-spacing: -.04em;
  white-space: nowrap;
}
.price span, .service-detail { color: var(--muted); font-size: .94rem; }
.service-detail strong { color: var(--text); }

h2 { font-size: clamp(2.05rem, 4vw, 3.3rem); letter-spacing: -.06em; line-height: 1.04; }
.project-section { background: #eaf1ed; color: #13232c; padding-block: 48px; }
.project-grid, .install-section, .quote-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
}
.project-grid p, .install-copy > p, .quote-grid > div:first-child > p { margin-top: 14px; max-width: 39ch; }
.project-grid p { color: #43565c; }
.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.project-list li {
  padding: 8px 13px;
  border: 1px solid #a7b8b5;
  border-radius: 7px;
  background: #f5f8f5;
  font-weight: 650;
}
.project-list li:first-child { display: flex; flex-wrap: wrap; gap: 4px 9px; }
.project-list span { color: #405358; font-weight: 400; }
.install-section { padding-block: 52px; }
.install-copy > p, .install-types dd, .quote-grid > div:first-child > p { color: var(--muted); }
.install-types { display: grid; gap: 14px; margin-top: 20px; }
.install-types > div { border-left: 2px solid var(--accent); padding-left: 12px; }
.install-types dt { font-weight: 720; }
.install-types dd { line-height: 1.5; }
.diagram-title { font-weight: 700; margin: 0 0 8px; }

.quote-section { background: var(--surface); border-block: 1px solid var(--line); padding-block: 44px; }
.quote-fields { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; margin-bottom: 13px; }
.quote-fields label { display: grid; gap: 5px; font-size: .94rem; font-weight: 650; }
.quote-fields input, .quote-fields select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 8px 11px;
  background: var(--background);
  color: var(--text);
  border: 1px solid #5e717c;
  border-radius: 7px;
}
.quote-fields select {
  appearance: none;
  padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.quote-fields input::placeholder { color: #9eb0b9; }
.quote-contact { display: flex; flex-wrap: wrap; gap: 3px 9px; margin-top: 10px; color: var(--muted); }
.quote-contact a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; color: var(--muted); font-size: .94rem; }
.site-footer a { text-underline-offset: 3px; }

@media (max-width: 900px) {
  .container { width: calc(100% - 48px); }
  .header-inner { gap: 20px; }
  .header-inner nav { gap: 17px; }
  .hero { gap: 26px; padding-top: 36px; }
  .service { padding: 16px; }
  .service-grid { grid-template-columns: 1fr 1.12fr .8fr; }
  .project-grid, .install-section, .quote-grid { gap: 26px; }
}

@media (max-width: 700px) {
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 64px; gap: 12px; justify-content: space-between; }
  .header-inner nav { display: none; }
  .brand img { width: 112px; }
  .hero, .project-grid, .install-section, .quote-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; padding-bottom: 30px; gap: 20px; }
  h1 { font-size: clamp(2.72rem, 10.2vw, 4.5rem); }
  .hero-intro { margin-bottom: 17px; }
  .gallery { order: 1; }
  .gallery-frame { aspect-ratio: 1.65; }
  .service-grid { grid-template-columns: 1fr; }
  .service + .service { border-left: none; border-top: 1px solid var(--line); }
  .service { padding: 13px 16px; }
  .project-section, .install-section, .quote-section { padding-block: 34px; }
}

@media (max-width: 370px) {
  .container { width: calc(100% - 28px); }
  .actions { gap: 8px; }
  .actions .button { padding-inline: 11px; font-size: .94rem; }
  .quote-fields { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
