:root {
  --ink: #192026;
  --muted: #66717c;
  --line: #dde6e7;
  --paper: #fbf8f1;
  --white: #ffffff;
  --gold: #f6b63f;
  --gold-dark: #bb7828;
  --sky: #d8eef2;
  --green: #3f8f70;
  --charcoal: #263039;
  --shadow: 0 22px 70px rgba(32, 42, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(251, 248, 241, 0.88);
  border-bottom: 1px solid rgba(221, 230, 231, 0.7);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 166px;
  height: auto;
  border-radius: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 23px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
  color: rgba(25, 32, 38, 0.72);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: calc(100vh - 170px);
  padding: clamp(26px, 5vw, 46px) clamp(18px, 5vw, 72px) 24px;
}

.hero h1,
.section h2 {
  margin: 0;
  color: var(--charcoal);
  letter-spacing: 0;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(42px, 5.4vw, 66px);
  line-height: 0.98;
}

.hero-lede {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

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

.button.primary {
  color: var(--charcoal);
  background: var(--gold);
}

.button.secondary {
  color: var(--charcoal);
  background: var(--white);
  border-color: var(--line);
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 26px;
  color: var(--muted);
}

.hero-note strong {
  color: var(--green);
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: var(--sky);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(270px, calc(100% - 44px));
  padding: 18px;
  border-radius: 20px;
  color: var(--white);
  background: rgba(25, 32, 38, 0.82);
  backdrop-filter: blur(12px);
}

.hero-card span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.hero-card strong {
  font-size: 25px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 72px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--line);
}

.metrics article {
  padding: clamp(20px, 3vw, 32px);
  background: var(--white);
}

.metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 38px);
  color: var(--charcoal);
}

.metrics span {
  color: var(--muted);
}

.products-showcase {
  position: relative;
  overflow: hidden;
  padding-top: clamp(72px, 9vw, 116px);
  background:
    radial-gradient(circle at 84% 12%, rgba(246, 182, 63, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(216, 238, 242, 0.38) 100%);
}

.products-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(26px, 4vw, 48px);
}

.products-intro h2 {
  margin: 0;
}

.products-intro p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
}

.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 28px);
}

.product-feature {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(18px, 2.4vw, 26px);
  align-items: stretch;
  min-height: 0;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid rgba(221, 230, 231, 0.92);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(251, 248, 241, 0.82)),
    var(--white);
  box-shadow: 0 22px 72px rgba(32, 42, 48, 0.1);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.product-feature.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-model-frame {
  position: relative;
  display: grid;
  min-height: clamp(280px, 27vw, 360px);
  overflow: visible;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 42%, rgba(246, 182, 63, 0.26), transparent 31%),
    radial-gradient(circle at 42% 54%, rgba(63, 143, 112, 0.2), transparent 35%),
    linear-gradient(135deg, rgba(216, 238, 242, 0.74), rgba(251, 248, 241, 0.9));
}

.product-model-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  pointer-events: none;
}

.product-model-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.product-model--powerwall,
.product-model--panel {
  display: block;
}

.product-model-frame img,
.product-model-frame model-viewer {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-copy h3 {
  margin: 0 0 12px;
  max-width: 520px;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.08;
}

.product-copy p {
  max-width: 560px;
  margin: 0;
}

.product-copy p + p {
  margin-top: 14px;
}

.product-note {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.section.split,
.calculator,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section h2 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
}

.section p {
  color: var(--muted);
  line-height: 1.7;
}

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

.service-grid article,
.steps article,
.review-grid blockquote,
.calc-panel,
.guide-form,
.contact-form {
  margin: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

fieldset {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 2px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-grid article {
  overflow: hidden;
  padding: 0;
}

.service-grid article img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-grid article .service-icon,
.service-grid article h3,
.service-grid article p {
  margin-left: clamp(20px, 3vw, 30px);
  margin-right: clamp(20px, 3vw, 30px);
}

.service-grid article .service-icon {
  margin-top: 22px;
}

.service-grid article p {
  margin-bottom: clamp(20px, 3vw, 30px);
}

.service-icon,
.steps span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

h3 {
  margin: 0 0 12px;
  font-size: 23px;
  color: var(--charcoal);
}

.section-heading {
  margin-bottom: 34px;
}

.process {
  background: var(--white);
}

.process-photo {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
  margin: 0 0 28px;
}

.process-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.process-photo figcaption {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.45;
}

.process .steps article,
.reviews blockquote {
  background: var(--paper);
}

.guide {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--charcoal);
}

.guide h2,
.guide .eyebrow {
  color: var(--white);
}

.guide p {
  color: rgba(255, 255, 255, 0.74);
}

form {
  display: grid;
  gap: 16px;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(246, 182, 63, 0.45);
  outline-offset: 3px;
}

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

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

.battery-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: var(--paper);
  font-size: 14px;
  font-weight: 800;
}

.battery-summary.has-battery {
  color: var(--charcoal);
  border-color: rgba(63, 143, 112, 0.28);
  background: rgba(63, 143, 112, 0.08);
}

.battery-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: rgba(63, 143, 112, 0.12);
}

.battery-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--green);
}

.submission-modal[hidden] {
  display: none;
}

.submission-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(25, 32, 38, 0.46);
}

.submission-modal__panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  width: min(100%, 460px);
  padding: 22px;
  border: 1px solid rgba(221, 230, 231, 0.9);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.submission-modal__panel strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.submission-modal__panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.submission-modal__spinner {
  width: 34px;
  height: 34px;
  border: 4px solid rgba(63, 143, 112, 0.16);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: submission-spin 0.9s linear infinite;
}

.submission-modal.is-complete .submission-modal__spinner,
.submission-modal.is-error .submission-modal__spinner {
  display: grid;
  place-items: center;
  border: 0;
  animation: none;
}

.submission-modal.is-complete .submission-modal__spinner::before {
  content: "✓";
  color: var(--green);
  font-size: 30px;
  font-weight: 800;
}

.submission-modal.is-error .submission-modal__spinner::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: #a84832;
  font-size: 22px;
  font-weight: 800;
}

@keyframes submission-spin {
  to {
    transform: rotate(360deg);
  }
}

.range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 14px 0 24px;
}

input[type="range"] {
  min-height: 32px;
  padding: 0;
  accent-color: var(--gold);
}

output {
  min-width: 76px;
  font-weight: 900;
  font-size: 24px;
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.calc-results article {
  padding: 18px;
  border-radius: 18px;
  background: var(--paper);
}

.calc-results span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.calc-results strong {
  font-size: clamp(24px, 3vw, 34px);
}

.about {
  background: var(--sky);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 34% 50%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.about-photo figcaption {
  margin-top: 12px;
  color: rgba(25, 32, 38, 0.68);
  font-size: 14px;
  font-weight: 700;
}

.about-copy {
  display: grid;
  gap: 18px;
}

.founder-card {
  margin: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(25, 32, 38, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.review-grid blockquote p {
  margin-top: 18px;
  color: var(--ink);
  font-size: 18px;
}

.review-grid blockquote {
  overflow: hidden;
  padding: 0;
}

.review-grid blockquote img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.review-grid blockquote p,
.review-grid blockquote cite {
  display: block;
  margin-left: clamp(20px, 3vw, 30px);
  margin-right: clamp(20px, 3vw, 30px);
}

.review-grid blockquote cite {
  margin-bottom: clamp(20px, 3vw, 30px);
}

cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

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

.contact h2 {
  max-width: 620px;
}

.contact-form {
  align-self: start;
}

address {
  margin-top: 28px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.quote-checklist {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
}

.quote-checklist h3 {
  margin-bottom: 14px;
}

.quote-checklist ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.design-app {
  padding-top: clamp(46px, 7vw, 82px);
  background: var(--white);
}

.design-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 26px;
}

.design-heading h2 {
  max-width: 980px;
  font-size: clamp(34px, 4.4vw, 58px);
}

.design-heading p:last-child {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
}

.studio-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(360px, 1.25fr) minmax(240px, 0.55fr);
  min-height: 720px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #eef3ed;
  box-shadow: var(--shadow);
}

.studio-sidebar,
.design-results {
  align-content: start;
  padding: clamp(18px, 2.5vw, 26px);
  background: var(--white);
}

.studio-sidebar {
  border-right: 1px solid var(--line);
}

.studio-step {
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

.studio-step + .studio-step {
  padding-top: 22px;
}

.microcopy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.toggle-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.toggle-row input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--green);
}

.studio-canvas {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  background: #cdd9c7;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(25, 32, 38, 0.14);
  color: rgba(25, 32, 38, 0.74);
  font-size: 13px;
  font-weight: 800;
  background: rgba(251, 248, 241, 0.72);
  backdrop-filter: blur(12px);
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.map-toolbar button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(25, 32, 38, 0.14);
  border-radius: 999px;
  color: var(--charcoal);
  font: inherit;
  font-weight: 900;
  background: var(--gold);
  cursor: pointer;
}

.roof-preview {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 24%, rgba(63, 143, 112, 0.34), transparent 20%),
    radial-gradient(circle at 84% 78%, rgba(63, 143, 112, 0.28), transparent 24%),
    linear-gradient(135deg, #a9b994, #dce2d5 48%, #9eb08d);
}

.studio-empty-state {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 380ms ease, visibility 380ms ease;
}

.roof-preview.has-live-imagery .studio-empty-state,
.roof-preview.has-mapkit .studio-empty-state,
.roof-preview.has-tiles .studio-empty-state,
.roof-preview.has-satellite .studio-empty-state {
  visibility: hidden;
  opacity: 0;
}

.studio-empty-state canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.studio-empty-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: perspective(780px) rotateX(58deg) rotateZ(-18deg);
}

.studio-empty-state.is-rendered .studio-empty-fallback {
  display: none;
}

.fallback-house {
  position: relative;
  width: min(52vw, 320px);
  height: 260px;
  transform-style: preserve-3d;
}

.fallback-roof,
.fallback-walls,
.fallback-panels {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.fallback-roof {
  top: 12px;
  width: 280px;
  height: 190px;
  clip-path: polygon(50% 0, 100% 34%, 86% 100%, 14% 100%, 0 34%);
  background: linear-gradient(135deg, #25313a, #526064);
  box-shadow: 0 34px 80px rgba(25, 32, 38, 0.3);
}

.fallback-walls {
  top: 138px;
  width: 210px;
  height: 108px;
  background: linear-gradient(135deg, rgba(251, 248, 241, 0.88), rgba(203, 212, 199, 0.88));
  transform: translateX(-50%) translateZ(-36px);
}

.fallback-panels {
  top: 70px;
  width: 126px;
  height: 92px;
  background:
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255, 255, 255, 0.58) 23px 26px),
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(255, 255, 255, 0.58) 42px 45px),
    linear-gradient(135deg, #142437, #243d5a);
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
}

.studio-empty-copy {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  width: min(420px, calc(100% - 40px));
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: var(--white);
  background: rgba(25, 32, 38, 0.72);
  box-shadow: 0 16px 36px rgba(25, 32, 38, 0.22);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  transform: translateX(-50%);
  animation: studio-empty-copy-pulse 4.8s ease-in-out infinite;
}

.mapkit-map,
.satellite-tile-layer,
.satellite-image {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 260ms ease;
}

.satellite-tile-layer {
  overflow: hidden;
}

.satellite-tile-layer img {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  object-fit: cover;
}

.satellite-image {
  object-fit: cover;
}

.roof-preview.has-mapkit .mapkit-map,
.roof-preview.has-tiles .satellite-tile-layer,
.roof-preview.has-satellite .satellite-image {
  opacity: 1;
}

.roof-preview.has-tiles .satellite-tile-layer,
.roof-preview.has-satellite .satellite-image {
  filter: contrast(1.14) saturate(0.96) brightness(1.04);
}

.roof-preview.has-mapkit .map-grid,
.roof-preview.has-mapkit .roof-plane,
.roof-preview.has-mapkit .shade,
.roof-preview.has-tiles .map-grid,
.roof-preview.has-tiles .roof-plane,
.roof-preview.has-tiles .shade,
.roof-preview.has-satellite .map-grid,
.roof-preview.has-satellite .roof-plane,
.roof-preview.has-satellite .shade {
  opacity: 0;
}

.map-grid {
  position: absolute;
  inset: -15%;
  z-index: 1;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: rotate(-18deg);
}

@keyframes studio-empty-copy-pulse {
  0%,
  100% {
    opacity: 0.58;
  }
  45%,
  70% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-empty-copy {
    animation: none;
  }
}

.roof-plane {
  position: absolute;
  opacity: 0;
  border: 2px solid rgba(255, 255, 255, 0.52);
  background:
    linear-gradient(135deg, rgba(38, 48, 57, 0.94), rgba(72, 82, 87, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 34px);
  box-shadow: 0 26px 70px rgba(25, 32, 38, 0.28);
}

.roof-main {
  left: 20%;
  top: 18%;
  width: 58%;
  height: 42%;
  clip-path: polygon(50% 0, 100% 35%, 84% 100%, 16% 100%, 0 35%);
  transform: rotate(-13deg);
}

.roof-garage {
  left: 42%;
  top: 58%;
  width: 34%;
  height: 20%;
  clip-path: polygon(0 15%, 100% 0, 86% 100%, 10% 94%);
  transform: rotate(-13deg);
}

.shade {
  position: absolute;
  opacity: 0;
  border-radius: 999px;
  background: rgba(45, 88, 61, 0.26);
  filter: blur(7px);
}

.shade-one {
  left: 8%;
  top: 9%;
  width: 190px;
  height: 170px;
}

.shade-two {
  right: 4%;
  bottom: 8%;
  width: 220px;
  height: 180px;
}

.roof-polygon-layer,
.roof-boundary {
  position: absolute;
  inset: 0;
  touch-action: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.roof-polygon-layer {
  z-index: 5;
  pointer-events: none;
}

.roof-polygon-fill {
  fill: rgba(245, 248, 247, 0.34);
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 8;
  stroke-linejoin: round;
}

.roof-polygon-line {
  fill: none;
  stroke: rgba(246, 182, 63, 0.98);
  stroke-width: 4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 5px rgba(7, 20, 33, 0.45));
}

.roof-boundary {
  z-index: 8;
  cursor: move;
}

.roof-preview.has-live-imagery .roof-polygon-layer,
.roof-preview.has-live-imagery .roof-boundary.is-active {
  visibility: visible;
  opacity: 1;
}

.roof-boundary.is-active .roof-polygon-line {
  stroke: var(--white);
}

.boundary-label {
  position: absolute;
  z-index: 7;
  left: 18px;
  top: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--charcoal);
  background: rgba(246, 182, 63, 0.94);
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
}

.polygon-handle {
  position: absolute;
  z-index: 8;
  width: 24px;
  height: 24px;
  border: 3px solid var(--charcoal);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(7, 20, 33, 0.28);
  cursor: grab;
  touch-action: none;
  transform: translate(-50%, -50%);
}

.polygon-handle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.panel-array {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 7;
  display: block;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.roof-preview.has-live-imagery .panel-array.is-active {
  visibility: visible;
  opacity: 1;
}

.solar-panel {
  position: absolute;
  width: 30px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(216, 238, 242, 0.34), transparent 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 14px),
    #172637;
  box-shadow: 0 10px 18px rgba(7, 20, 33, 0.34);
  transform-origin: center;
}

.roof-pin {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  max-width: min(330px, calc(100% - 48px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  color: var(--white);
  background: rgba(25, 32, 38, 0.82);
  backdrop-filter: blur(12px);
}

.roof-preview:not(.has-live-imagery) .roof-pin {
  display: none;
}

.roof-pin strong,
.roof-pin span {
  display: block;
}

.roof-pin span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.design-results {
  display: grid;
  gap: 12px;
  border-left: 1px solid var(--line);
}

.design-results article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.design-results span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.design-results strong {
  color: var(--charcoal);
  font-size: clamp(22px, 2.4vw, 30px);
}

.design-status {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.design-status h3 {
  margin-bottom: 12px;
  font-size: 17px;
}

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

.design-status li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.design-status li::before {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: var(--green);
}

.design-note {
  padding: 18px;
  border-radius: 20px;
  color: var(--white);
  background: var(--charcoal);
}

.design-note h3 {
  color: var(--white);
}

.design-note p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--charcoal);
}

.site-footer strong,
.site-footer a {
  color: var(--white);
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-footer div:first-child {
  flex-direction: column;
  gap: 5px;
}

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

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.footer-social svg {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  fill: currentColor;
  overflow: hidden;
}

.footer-social path {
  fill: currentColor;
}

.blog-hero {
  padding: clamp(76px, 10vw, 132px) clamp(18px, 5vw, 72px) clamp(48px, 7vw, 88px);
  background: var(--sky);
}

.blog-hero h1 {
  max-width: 940px;
  margin: 0;
  color: var(--charcoal);
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
}

.blog-hero p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.blog-list {
  display: grid;
  gap: 18px;
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 0.55fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
}

.blog-card h2 {
  font-size: clamp(28px, 4vw, 48px);
}

.blog-card .button {
  margin-top: 10px;
}

@media (max-width: 960px) {
  .site-nav {
    position: fixed;
    inset: 77px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .nav-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--ink);
  }

  .hero,
  .section.split,
  .products-intro,
  .guide,
  .calculator,
  .contact,
  .design-heading,
  .studio-shell,
  .about-grid,
  .process-photo,
  .blog-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media,
  .hero-media img {
    min-height: 390px;
  }

  .metrics,
  .product-feature-grid,
  .service-grid,
  .steps,
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-copy h3 {
    font-size: clamp(24px, 3.4vw, 32px);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    font-size: 16px;
  }

  .hero {
    padding-top: 36px;
  }

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

  .hero-media,
  .hero-media img {
    min-height: 320px;
    border-radius: 24px;
  }

  .hero-card {
    right: 14px;
    bottom: 14px;
  }

  .metrics,
  .product-feature-grid,
  .product-feature,
  .service-grid,
  .steps,
  .review-grid,
  .calc-results,
  .form-row,
  .toggle-row {
    grid-template-columns: 1fr;
  }

  .product-model-frame {
    min-height: 260px;
  }

  .brand-logo {
    width: 138px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section h2 {
    font-size: 34px;
  }

  .site-footer {
    flex-direction: column;
  }

  .studio-shell {
    min-height: auto;
    border-radius: 22px;
  }

  .studio-sidebar,
  .design-results {
    border: 0;
  }

  .roof-preview {
    min-height: 460px;
  }

  .solar-panel {
    min-width: 20px;
    min-height: 32px;
  }
}
