:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #5b6a61;
  --line: #d9e1d7;
  --paper: #f8faf6;
  --white: #ffffff;
  --evergreen: #174b37;
  --moss: #6f8d4e;
  --clay: #b85f32;
  --gold: #d9a441;
  --sky: #dceef2;
  --shadow: 0 12px 30px rgba(21, 48, 36, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@keyframes pageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageSlideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

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

body.page-enter main {
  animation: pageSlideIn 280ms ease-out both;
}

body.page-leaving main {
  animation: pageSlideOut 180ms ease-in both;
  pointer-events: none;
}

.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 420ms ease-out,
    transform 420ms ease-out;
}

.motion-ready .reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.parallax-layer {
  transform: translate3d(0, var(--parallax-y, 0), 0);
  transition: transform 120ms linear;
  will-change: transform;
}

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(23, 75, 55, 0.14);
  background: rgba(248, 250, 246, 0.97);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 140px;
}

.brand img {
  width: min(188px, 44vw);
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

nav {
  display: flex;
  gap: 8px;
  min-width: 0;
}

nav a,
.header-action,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

nav a {
  color: var(--muted);
}

nav a:hover {
  color: var(--evergreen);
  background: rgba(111, 141, 78, 0.12);
}

.header-action,
.primary-button {
  border: 1px solid var(--evergreen);
  color: var(--white);
  background: var(--evergreen);
}

.ghost-button {
  border: 1px solid rgba(23, 75, 55, 0.25);
  color: var(--evergreen);
  background: rgba(255, 255, 255, 0.62);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.55fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  min-height: auto;
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px) clamp(44px, 6vw, 70px);
  border-bottom: 1px solid var(--line);
  background: #f3f6f0;
}

.hero::before,
.schedule-hero::before,
.about-hero::before {
  content: none;
}

.hero > *,
.schedule-hero > *,
.about-hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 760px;
  padding: 16px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2.55rem, 5.4vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}

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

.audit-console {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(23, 75, 55, 0.16);
  border-radius: 8px;
  box-shadow: none;
  background: var(--line);
}

.audit-console div {
  padding: 22px;
  background: var(--white);
}

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.audit-console strong {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.section {
  padding: clamp(46px, 7vw, 82px) clamp(18px, 5vw, 72px);
}

.mobile-workflow,
.workflow-next {
  display: none;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.audit-layout,
.report-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 22px;
  align-items: start;
}

.control-panel,
.score-panel,
.report-card,
.report-actions {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: none;
}

.control-panel {
  padding: clamp(18px, 4vw, 30px);
}

.panel-intro {
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid rgba(23, 75, 55, 0.14);
  border-radius: 8px;
  background: #f8fbf4;
}

.panel-intro strong {
  font-size: 1rem;
}

.panel-intro span {
  color: var(--muted);
  line-height: 1.45;
}

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

label,
legend {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid #c9d4c9;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfcfa;
}

textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(217, 164, 65, 0.28);
  border-color: var(--gold);
}

.input-unit {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid #c9d4c9;
  border-radius: 6px;
  padding: 0 12px;
  background: #fbfcfa;
}

.input-unit input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

fieldset {
  min-width: 0;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

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

.segmented button {
  min-height: 44px;
  border: 1px solid #cad5cb;
  border-radius: 6px;
  color: var(--evergreen);
  background: #f6f8f4;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.segmented button:hover,
.checklist button:hover,
.recommendation-card:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 75, 55, 0.32);
}

.segmented button.active {
  border-color: var(--evergreen);
  color: var(--white);
  background: var(--evergreen);
}

.slider-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  margin-top: 24px;
}

.slider-field input {
  grid-column: 1 / -1;
  padding: 0;
}

.score-panel {
  position: sticky;
  top: 102px;
  display: grid;
  grid-template-columns: minmax(128px, 160px) minmax(0, 1fr);
  gap: 18px;
  padding: clamp(18px, 3vw, 24px);
}

.score-visual {
  display: grid;
  gap: 14px;
  align-self: start;
}

.score-ring {
  display: grid;
  place-items: center;
  align-self: start;
  width: min(150px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--white) 0 58%, transparent 59%),
    conic-gradient(var(--moss) calc(var(--score) * 1%), #e2e8df 0);
}

.score-ring span {
  display: block;
  font-size: 2.9rem;
  font-weight: 850;
}

.score-ring small {
  margin-top: -34px;
  color: var(--muted);
}

.score-details h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.score-details p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.audit-cta,
.report-next-step {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(23, 75, 55, 0.18);
  border-radius: 8px;
  background: #f8fbf4;
}

.audit-cta strong,
.audit-cta span,
.audit-cta a {
  display: block;
}

.audit-cta strong {
  margin-bottom: 6px;
}

.audit-cta span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.audit-cta a {
  margin-top: 10px;
  color: var(--evergreen);
  font-weight: 850;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.metric-row span,
.metric-row strong {
  min-width: 0;
}

.metric-row strong {
  text-align: right;
}

.score-breakdown {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.breakdown-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  list-style: none;
}

.breakdown-heading::-webkit-details-marker {
  display: none;
}

.breakdown-heading span {
  color: var(--muted);
  font-weight: 800;
}

.factor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid #edf1eb;
}

.factor-row:first-child {
  border-top: 0;
}

.factor-row strong,
.factor-row span {
  display: block;
}

.factor-row strong {
  font-size: 0.92rem;
}

.factor-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.factor-row b {
  align-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.83rem;
  white-space: nowrap;
}

.factor-row.positive b {
  color: var(--evergreen);
  background: #e7f2e7;
}

.factor-row.negative b {
  color: #8a351d;
  background: #f8e8df;
}

.factor-row.neutral b {
  color: var(--muted);
  background: #edf1eb;
}

.neutral-card {
  border-style: dashed;
}

.checklist-band {
  background: #eef3ed;
}

.checklist,
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.checklist button,
.recommendation-card {
  min-height: 144px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  background: var(--white);
}

.checklist button {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
}

.checklist button:focus-visible,
.segmented button:focus-visible,
.primary-button:focus-visible,
.ghost-button:focus-visible,
.header-action:focus-visible,
nav a:focus-visible {
  outline: 3px solid rgba(217, 164, 65, 0.45);
  outline-offset: 2px;
}

#checklist button::after {
  content: "-" attr(data-impact) " pts";
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #8a351d;
  background: #f8e8df;
  font-size: 0.78rem;
  font-weight: 850;
}

.checklist button.checked {
  border-color: rgba(23, 75, 55, 0.7);
  box-shadow: inset 0 0 0 2px rgba(23, 75, 55, 0.1);
  background: #f8fbf4;
}

.checklist span {
  font-weight: 800;
  line-height: 1.35;
}

.checklist small,
.recommendation-card small {
  color: var(--clay);
  font-weight: 800;
  text-transform: uppercase;
}

.recommendation-card {
  display: grid;
  gap: 10px;
}

.recommendation-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.recommendation-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.impact-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e9df;
}

.impact-bar span {
  display: block;
  width: var(--impact);
  height: 100%;
  border-radius: inherit;
  background: var(--moss);
}

.report-section {
  background: #f3f6f0;
}

.schedule-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.5fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  padding: clamp(50px, 8vw, 88px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: #f3f6f0;
}

.about-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.5fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  padding: clamp(50px, 8vw, 88px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: #f3f6f0;
}

.about-copy {
  max-width: 820px;
}

.brand-slogan {
  margin: 0 0 16px;
  color: var(--evergreen);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 850;
  line-height: 1.1;
}

.about-copy h1 {
  max-width: 15ch;
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
}

.about-copy > p:not(.eyebrow) {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.32rem);
  line-height: 1.58;
}

.founder-portrait {
  margin: 0;
}

.founder-portrait img {
  display: block;
  width: 100%;
  max-height: 720px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  box-shadow: none;
  border: 1px solid var(--line);
}

.founder-portrait figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.story-section {
  background: var(--white);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.story-grid h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.story-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.mission-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.65fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  background: #eef3ed;
}

.mission-content {
  max-width: 760px;
}

.mission-content h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  line-height: 1.08;
}

.mission-content p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

.mission-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.mission-list div {
  padding: 20px;
  background: var(--white);
}

.mission-list strong,
.mission-list span {
  display: block;
}

.mission-list strong {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.mission-list span {
  color: var(--muted);
  line-height: 1.5;
}

.schedule-hero h1 {
  max-width: 13ch;
}

.schedule-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.schedule-section {
  background: var(--white);
}

.schedule-form {
  display: grid;
  gap: 22px;
  max-width: 980px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: none;
}

.wide-field {
  display: block;
}

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

.compact-checklist button {
  min-height: 76px;
  justify-content: center;
  font-weight: 800;
}

.schedule-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.schedule-submit p {
  flex: 1 1 220px;
  min-height: 22px;
  margin: 0;
  color: var(--evergreen);
  font-weight: 800;
}

.form-result {
  max-width: 820px;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: none;
}

.form-result h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

.form-result p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.58;
}

.form-result.success {
  border-color: rgba(23, 75, 55, 0.35);
}

.form-result.error {
  border-color: rgba(184, 95, 50, 0.38);
}

.delivery-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  background: rgba(248, 250, 246, 0.72);
  backdrop-filter: blur(14px);
  transition: opacity 240ms ease;
}

.delivery-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.delivery-card {
  width: min(780px, 100%);
  overflow: hidden;
  border: 1px solid rgba(23, 75, 55, 0.16);
  border-radius: 22px;
  padding: clamp(22px, 5vw, 42px);
  background:
    radial-gradient(circle at 80% 18%, rgba(247, 201, 72, 0.18), transparent 30%),
    rgba(255, 253, 245, 0.92);
  box-shadow: 0 28px 90px rgba(23, 75, 55, 0.18);
}

.delivery-scene {
  position: relative;
  min-height: 220px;
  margin: -6px 0 24px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(141, 216, 239, 0.24), rgba(223, 242, 223, 0.34)),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.8), transparent 28%);
}

.audit-letter {
  position: absolute;
  left: 8%;
  bottom: 42px;
  z-index: 2;
  display: grid;
  gap: 7px;
  width: 190px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(23, 75, 55, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(23, 75, 55, 0.14);
  animation: letterFlight 3.8s 260ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.audit-letter span {
  width: 54px;
  height: 6px;
  border-radius: 999px;
  background: var(--evergreen);
}

.audit-letter strong {
  font-size: 0.98rem;
}

.audit-letter small {
  color: var(--muted);
  line-height: 1.35;
}

.delivery-plane {
  position: absolute;
  left: 24%;
  top: 76px;
  z-index: 1;
  width: 88px;
  height: 34px;
  opacity: 0;
  animation: planeDelivery 3.8s 360ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delivery-plane::before {
  content: "";
  position: absolute;
  inset: 10px 0 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f8faf6, #dff2df);
  border: 1px solid rgba(23, 75, 55, 0.18);
}

.delivery-plane::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  width: 34px;
  height: 34px;
  background: rgba(95, 159, 47, 0.72);
  clip-path: polygon(0 46%, 100% 0, 72% 50%, 100% 100%);
}

.delivery-building {
  position: absolute;
  right: 10%;
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(2, 30px);
  gap: 9px;
  width: 116px;
  height: 118px;
  padding: 20px;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, rgba(23, 75, 55, 0.88), rgba(23, 32, 28, 0.82));
  box-shadow: 0 18px 42px rgba(23, 75, 55, 0.16);
}

.delivery-building::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -34px;
  width: 92px;
  height: 48px;
  transform: translateX(-50%);
  background: #2f3a35;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.delivery-building span {
  border-radius: 4px;
  background: rgba(255, 243, 184, 0.72);
}

.delivery-card h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.7rem);
  line-height: 0.96;
}

.delivery-card > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.58;
}

.expect-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.expect-list div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(23, 75, 55, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.expect-list strong {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: white;
  background: var(--evergreen);
}

.expect-list span {
  color: var(--muted);
  line-height: 1.4;
}

.report-card {
  padding: clamp(18px, 4vw, 34px);
}

.report-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.report-top img {
  width: 138px;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}

.report-top h3 {
  margin: 0 0 4px;
}

.report-top p {
  margin: 0;
  color: var(--muted);
}

.report-next-step {
  margin: 22px 0 0;
}

.report-next-step h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.report-next-step p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.report-line {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.report-line span {
  color: var(--muted);
  font-weight: 750;
}

.report-line strong {
  font-weight: 850;
}

.report-actions {
  display: grid;
  gap: 16px;
  padding: 22px;
}

#copy-status {
  min-height: 22px;
  margin: 0;
  color: var(--evergreen);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .hero,
  .about-hero,
  .schedule-hero,
  .audit-layout,
  .report-shell,
  .mission-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .score-panel {
    position: static;
  }

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

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

  .header-action {
    display: none;
  }

  .brand img {
    width: min(176px, 62vw);
  }

  nav a,
  .primary-button,
  .ghost-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.94rem;
  }

  .hero,
  .about-hero,
  .schedule-hero,
  .section {
    padding-inline: 16px;
  }

  .field-grid,
  .checklist,
  .recommendation-grid,
  .story-grid,
  .compact-checklist,
  .score-panel {
    grid-template-columns: 1fr;
  }

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

  .score-ring {
    width: min(180px, 72vw);
    justify-self: center;
  }

  .report-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .metric-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .metric-row strong {
    text-align: left;
  }
}

@media print {
  .site-header,
  .hero,
  .control-panel,
  .checklist-band,
  .recommendation-grid,
  .report-actions {
    display: none;
  }

  body,
  .report-section {
    background: white;
  }

  .section {
    padding: 0;
  }

  .report-shell {
    display: block;
  }

  .report-card {
    border: 0;
    box-shadow: none;
  }
}

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

  .motion-ready .reveal-item,
  .parallax-layer {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Premium sunny homepage layer */
:root {
  --sun: #f7c948;
  --sun-soft: #fff3b8;
  --leaf: #5f9f2f;
  --mint: #dff2df;
  --air: #8dd8ef;
  --heat: #f27a3d;
  --cream: #fffdf5;
  --glass: rgba(255, 255, 255, 0.68);
}

.particle-cursor {
  position: fixed;
  inset: 0;
  z-index: 8;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: multiply;
  filter: blur(0.45px) saturate(1.08);
}

@media (hover: none), (pointer: coarse) {
  .particle-cursor {
    display: none;
  }
}

.studio-header {
  background: rgba(255, 253, 245, 0.86);
  box-shadow: 0 12px 34px rgba(23, 75, 55, 0.08);
}

.studio-hero {
  isolation: isolate;
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.72fr);
  background:
    linear-gradient(135deg, rgba(255, 253, 245, 0.96), rgba(234, 247, 232, 0.86)),
    radial-gradient(circle at 78% 16%, rgba(247, 201, 72, 0.34), transparent 38%);
}

.sun-wash {
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(560px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.46;
  background: radial-gradient(circle, rgba(247, 201, 72, 0.2), rgba(247, 201, 72, 0.035) 58%, transparent 72%);
  filter: blur(2px);
}

.studio-hero h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  line-height: 0.9;
}

.studio-hero .hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  font-size: clamp(1.08rem, 1.7vw, 1.36rem);
}

.glass-panel {
  border: 1px solid rgba(23, 75, 55, 0.14);
  background: var(--glass);
  box-shadow: 0 24px 70px rgba(23, 75, 55, 0.12);
  backdrop-filter: blur(18px);
}

.home-visual {
  position: relative;
  min-height: 560px;
  border-radius: 28px;
  perspective: 1000px;
}

.cottage-canvas {
  position: absolute;
  inset: 38px 14px 36px;
  z-index: 2;
  width: calc(100% - 28px);
  height: calc(100% - 74px);
  border-radius: 24px;
  opacity: 0;
  transition: opacity 420ms ease;
}

.cottage-canvas.is-loaded {
  opacity: 1;
}

.house-illustration.model-loaded {
  opacity: 0;
  pointer-events: none;
}

.static-cottage-view .cottage-canvas,
.is-safari .particle-cursor {
  display: none;
}

.static-cottage-view .house-illustration.model-loaded {
  opacity: 1;
  pointer-events: auto;
}

.static-cottage-view .map-house.model-map-loaded .map-roof,
.static-cottage-view .map-house.model-map-loaded .map-shell,
.static-cottage-view .map-house.model-map-loaded .map-basement {
  opacity: 1;
}

.solar-orbit {
  position: absolute;
  inset: 34px 28px auto auto;
  width: 112px;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.38;
  background: radial-gradient(circle, rgba(255, 246, 189, 0.62), rgba(247, 201, 72, 0.34));
  box-shadow: 0 0 80px rgba(247, 201, 72, 0.22);
}

.house-illustration {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(420px, 86%);
  height: 340px;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.roof {
  position: absolute;
  left: 10%;
  top: 4%;
  width: 80%;
  height: 46%;
  background: linear-gradient(135deg, #2b342f, #516258);
  clip-path: polygon(50% 0, 100% 72%, 88% 72%, 88% 100%, 12% 100%, 12% 72%, 0 72%);
  box-shadow: 0 28px 48px rgba(23, 32, 28, 0.16);
}

.house-body {
  position: absolute;
  left: 17%;
  top: 40%;
  width: 66%;
  height: 42%;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf8, #e9f3e6);
  border: 1px solid rgba(23, 75, 55, 0.2);
  box-shadow: 0 26px 70px rgba(23, 75, 55, 0.14);
}

.window,
.door {
  position: absolute;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(141, 216, 239, 0.95), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(23, 75, 55, 0.16);
}

.window {
  width: 54px;
  height: 48px;
  top: 34px;
}

.window.left {
  left: 38px;
}

.window.right {
  right: 38px;
}

.door {
  left: calc(50% - 24px);
  bottom: 0;
  width: 48px;
  height: 80px;
  background: linear-gradient(180deg, #6f8d4e, #174b37);
}

.attic-glow,
.basement-glow {
  position: absolute;
  left: 21%;
  width: 58%;
  border-radius: 999px;
  filter: blur(14px);
}

.attic-glow {
  top: 24%;
  height: 32px;
  background: rgba(242, 122, 61, 0.48);
}

.basement-glow {
  bottom: 8%;
  height: 38px;
  background: rgba(141, 216, 239, 0.46);
}

.marker-dot,
.home-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
}

.marker-dot {
  width: 16px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.54);
  animation: pulseMarker 2.6s ease-in-out infinite;
}

.marker-heat,
.heat,
.legend-heat {
  background: var(--heat);
}

.marker-leak,
.leak,
.legend-leak {
  background: var(--air);
}

.marker-priority,
.priority,
.legend-priority {
  background: var(--sun);
}

.improve,
.legend-improve {
  background: var(--leaf);
}

.air-line,
.flow-line {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(141, 216, 239, 0.95), transparent);
  animation: flowLine 3.2s linear infinite;
}

.line-one {
  left: 5%;
  top: 38%;
  width: 130px;
  transform: rotate(-16deg);
}

.line-two {
  right: 1%;
  top: 52%;
  width: 170px;
  transform: rotate(12deg);
}

.line-three {
  left: 18%;
  bottom: 26%;
  width: 145px;
  transform: rotate(8deg);
}

.hero-report {
  position: absolute;
  left: 28px;
  bottom: 28px;
  display: grid;
  gap: 4px;
  min-width: 190px;
  padding: 18px;
  border-radius: 18px;
}

.hero-report span,
.hero-report small {
  color: var(--muted);
}

.hero-report strong {
  font-size: 3rem;
  line-height: 1;
}

.section-slim {
  padding: 22px clamp(18px, 5vw, 72px);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  background: var(--cream);
}

.trust-strip span {
  padding: 10px 14px;
  border: 1px solid rgba(23, 75, 55, 0.14);
  border-radius: 999px;
  color: var(--evergreen);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.56fr);
  gap: 22px;
  align-items: stretch;
}

.performance-map,
.inspection-panel {
  border-radius: 24px;
  padding: clamp(18px, 4vw, 30px);
}

.map-house {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 18%, rgba(247, 201, 72, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(223, 242, 223, 0.76), rgba(255, 253, 245, 0.92));
}

.map-cottage-canvas {
  inset: 28px 18px 36px;
  z-index: 1;
  width: calc(100% - 36px);
  height: calc(100% - 64px);
  opacity: 0;
}

.map-house.model-map-loaded .map-roof,
.map-house.model-map-loaded .map-shell,
.map-house.model-map-loaded .map-basement {
  opacity: 0;
}

.map-roof {
  position: absolute;
  left: 18%;
  top: 12%;
  width: 64%;
  height: 28%;
  background: #2f3a35;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.map-shell {
  position: absolute;
  left: 23%;
  top: 38%;
  width: 54%;
  height: 31%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 75, 55, 0.16);
}

.map-basement {
  position: absolute;
  left: 21%;
  top: 69%;
  width: 58%;
  height: 15%;
  border-radius: 0 0 14px 14px;
  background: rgba(141, 216, 239, 0.25);
  border: 1px solid rgba(23, 75, 55, 0.12);
}

.thermal-layer {
  position: absolute;
  z-index: 2;
  inset: 9% 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 20%, rgba(242, 122, 61, 0.22), transparent 18%),
    radial-gradient(circle at 31% 76%, rgba(141, 216, 239, 0.28), transparent 18%),
    radial-gradient(circle at 74% 46%, rgba(247, 201, 72, 0.24), transparent 18%);
  filter: blur(10px);
}

.flow-line {
  z-index: 3;
  width: 180px;
}

.attic-flow {
  left: 18%;
  top: 27%;
  transform: rotate(-10deg);
}

.rim-flow {
  left: 18%;
  top: 77%;
  transform: rotate(7deg);
}

.window-flow {
  right: 12%;
  top: 50%;
  transform: rotate(14deg);
}

.home-marker {
  z-index: 4;
  transform: translate(-50%, -50%);
  min-height: 30px;
  border: 1px solid rgba(23, 75, 55, 0.18);
  border-radius: 999px;
  padding: 0 10px;
  color: rgba(23, 32, 28, 0.82);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  opacity: 0.84;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 10px 24px rgba(23, 75, 55, 0.12);
  backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease,
    background 180ms ease;
}

.home-marker::before {
  content: "";
  width: 6px;
  aspect-ratio: 1;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--marker-color, rgba(23, 75, 55, 0.65));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.38);
}

.home-marker {
  display: inline-flex;
  align-items: center;
}

.home-marker:hover,
.home-marker.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.78);
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow: 0 16px 38px rgba(23, 75, 55, 0.18), 0 0 0 5px rgba(255, 255, 255, 0.25);
}

.home-marker.heat {
  --marker-color: rgba(242, 122, 61, 0.82);
}

.home-marker.leak {
  --marker-color: rgba(72, 158, 190, 0.82);
}

.home-marker.improve {
  --marker-color: rgba(95, 159, 47, 0.82);
}

.home-marker.priority {
  --marker-color: rgba(217, 164, 65, 0.86);
}

.marker-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.marker-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.marker-legend i {
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.inspection-panel h3 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
}

.panel-stack {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(23, 75, 55, 0.1);
}

.panel-stack div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.panel-stack span {
  display: block;
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-stack p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.transformation-section {
  background: linear-gradient(135deg, #f8fbf4, #fff8d8);
}

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

.stat-card,
.service-card {
  border-radius: 18px;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.stat-card:hover,
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(23, 75, 55, 0.15);
}

.stat-card span {
  color: var(--muted);
  font-weight: 850;
}

.stat-card strong {
  display: block;
  margin: 18px 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.9;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 75, 55, 0.1);
}

.progress i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--sun));
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.final-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(22px, 5vw, 72px);
  padding: clamp(28px, 6vw, 64px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.52), transparent 28%),
    linear-gradient(135deg, #fff1a8, #dff2df);
}

.final-cta h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(23, 75, 55, 0.14);
  background: #eef3ed;
}

.footer-brand {
  max-width: 430px;
}

.footer-brand img {
  width: min(220px, 70vw);
  max-height: 70px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer-links h3 {
  margin: 0 0 12px;
  color: var(--evergreen);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  width: fit-content;
  margin-top: 9px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
}

.footer-links a:hover {
  color: var(--evergreen);
}

.parallax-layer {
  transform: translate3d(0, var(--parallax-y, 0), 0);
}

@keyframes pulseMarker {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@keyframes flowLine {
  0% {
    opacity: 0.28;
    background-position: -120px 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.28;
    background-position: 120px 0;
  }
}


@keyframes letterFlight {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  28% {
    transform: translate3d(82px, -42px, 0) rotate(-6deg) scale(0.88);
  }
  66% {
    opacity: 1;
    transform: translate3d(330px, -84px, 0) rotate(5deg) scale(0.58);
  }
  100% {
    opacity: 0;
    transform: translate3d(520px, -12px, 0) rotate(0deg) scale(0.24);
  }
}

@keyframes planeDelivery {
  0% {
    opacity: 0;
    transform: translate3d(-80px, 58px, 0) rotate(-12deg);
  }
  18% {
    opacity: 1;
  }
  72% {
    opacity: 1;
    transform: translate3d(250px, -36px, 0) rotate(3deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(420px, 12px, 0) rotate(8deg);
  }
}

@media (max-width: 980px) {
  .studio-hero,
  .map-layout,
  .site-footer,
  .transformation-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .home-visual {
    min-height: 500px;
  }
}

@media (max-width: 640px) {
  .studio-hero h1 {
    font-size: clamp(3rem, 17vw, 4.5rem);
  }

  .home-visual,
  .map-house {
    min-height: 430px;
  }

  .home-marker {
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.7rem;
  }

  .final-cta {
    margin: 18px;
    border-radius: 20px;
  }

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

/* Mobile upload polish */
@media (max-width: 760px) {
  html {
    scroll-padding-top: 126px;
  }

  body {
    background: var(--paper);
  }

  .site-header {
    position: sticky;
    align-items: flex-start;
    gap: 10px;
    min-height: 0;
    padding: 10px 14px 12px;
  }

  .brand {
    flex: 1 1 100%;
  }

  .brand img {
    width: min(172px, 58vw);
    max-height: 44px;
  }

  nav {
    order: 2;
    width: calc(100vw - 28px);
    margin: 0 -2px;
    padding: 0 2px 4px;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  nav a {
    min-width: max-content;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid rgba(23, 75, 55, 0.1);
    background: rgba(255, 255, 255, 0.62);
    scroll-snap-align: start;
  }

  .header-action {
    display: none;
  }

  .hero,
  .about-hero,
  .schedule-hero,
  .section {
    padding-inline: 16px;
  }

  .hero,
  .about-hero,
  .schedule-hero {
    gap: 28px;
    padding-top: 34px;
    padding-bottom: 38px;
  }

  .trust-strip {
    display: none;
  }

  .mobile-workflow {
    position: relative;
    z-index: 3;
    display: block;
    padding: 12px 14px 4px;
    background: var(--paper);
    border-bottom: 1px solid rgba(23, 75, 55, 0.1);
  }

  .mobile-workflow-menu {
    border: 1px solid rgba(23, 75, 55, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 34px rgba(23, 75, 55, 0.1);
    overflow: hidden;
  }

  .mobile-workflow-menu summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 0 16px;
    cursor: pointer;
    list-style: none;
  }

  .mobile-workflow-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-workflow-menu summary span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-workflow-menu summary strong {
    color: var(--evergreen);
    font-size: 0.95rem;
  }

  .workflow-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px 12px;
  }

  .workflow-links a {
    display: grid;
    place-items: center;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid rgba(23, 75, 55, 0.12);
    border-radius: 14px;
    color: var(--evergreen);
    background: rgba(248, 250, 246, 0.9);
    font-size: 0.9rem;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
  }

  .workflow-links a.active {
    color: var(--white);
    border-color: var(--evergreen);
    background: var(--evergreen);
  }

  #audit,
  #profile,
  #look-for,
  #transformation,
  #services,
  #report {
    scroll-margin-top: 150px;
  }

  .section {
    padding-top: 28px;
    padding-bottom: 34px;
  }

  .audit-map-section,
  #profile,
  #look-for,
  #transformation,
  #services,
  #report {
    min-height: 0;
    border-bottom: 1px solid rgba(23, 75, 55, 0.1);
  }

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

  h1,
  .studio-hero h1,
  .about-copy h1,
  .schedule-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.7rem, 14vw, 4.2rem);
    line-height: 0.94;
  }

  .section-heading h2,
  .final-cta h2,
  .inspection-panel h3 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1;
  }

  .hero-copy > p:not(.eyebrow),
  .about-copy > p:not(.eyebrow),
  .schedule-hero p:not(.eyebrow) {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero-actions,
  .schedule-submit {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .primary-button,
  .ghost-button,
  .schedule-submit button,
  .schedule-submit a {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    text-align: center;
  }

  .audit-console {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .audit-console div {
    padding: 16px;
  }

  .field-grid,
  .checklist,
  .compact-checklist,
  .recommendation-grid,
  .story-grid,
  .transformation-grid,
  .services-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .control-panel,
  .score-panel,
  .report-card,
  .report-actions,
  .performance-map,
  .inspection-panel,
  .schedule-form {
    padding: 18px;
    border-radius: 8px;
  }

  .control-panel,
  .schedule-form {
    gap: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 246, 0.98));
  }

  .panel-intro,
  fieldset,
  .wide-field,
  .slider-field,
  .field-grid > label {
    border: 1px solid rgba(23, 75, 55, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(23, 75, 55, 0.06);
  }

  .panel-intro,
  .field-grid > label,
  .wide-field {
    padding: 14px;
  }

  fieldset {
    padding: 14px;
  }

  legend {
    padding: 0 6px;
    font-size: 0.86rem;
  }

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

  .segmented button,
  .checklist button,
  input,
  select,
  textarea {
    min-height: 50px;
    font-size: 1rem;
  }

  input,
  select,
  textarea {
    border-radius: 12px;
    background: #fff;
  }

  textarea {
    min-height: 132px;
  }

  .segmented button,
  .checklist button {
    justify-content: flex-start;
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 14px;
    text-align: left;
    box-shadow: 0 8px 20px rgba(23, 75, 55, 0.05);
  }

  .segmented button.active,
  .checklist button.checked {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(23, 75, 55, 0.14);
  }

  .slider-field {
    gap: 10px;
    padding: 14px;
  }

  .slider-field input {
    min-height: 34px;
  }

  .score-panel {
    position: sticky;
    top: 106px;
    z-index: 12;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 6px;
    border-color: rgba(23, 75, 55, 0.18);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(23, 75, 55, 0.13);
    backdrop-filter: blur(14px);
  }

  .score-ring {
    width: 104px;
    justify-self: center;
  }

  .score-details {
    min-width: 0;
  }

  .score-details h3 {
    margin-bottom: 4px;
    font-size: 1.05rem;
  }

  .score-details > p {
    margin: 0 0 8px;
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .audit-cta {
    margin: 8px 0;
    padding: 10px;
  }

  .audit-cta span {
    display: none;
  }

  .audit-cta a {
    min-height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: var(--evergreen);
  }

  .metric-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 7px 0;
    font-size: 0.86rem;
  }

  .score-breakdown {
    margin-top: 6px;
  }

  .map-layout,
  .audit-layout,
  .report-shell {
    gap: 16px;
  }

  .map-layout {
    display: flex;
    flex-direction: column;
  }

  .home-visual {
    min-height: 380px;
    border-radius: 18px;
  }

  .hero-report {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .map-house {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
    min-height: 390px;
    padding: 12px 12px 0;
    border-radius: 16px;
  }

  .map-cottage-canvas {
    inset: 154px 8px 24px;
    width: calc(100% - 16px);
    height: calc(100% - 178px);
  }

  .home-marker {
    position: static;
    left: auto;
    top: auto;
    z-index: 5;
    transform: none;
    justify-content: center;
    min-height: 34px;
    max-width: none;
    padding: 0 9px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .home-marker:hover,
  .home-marker.active {
    transform: translateY(-1px);
  }

  .thermal-layer,
  .flow-line,
  .map-roof,
  .map-shell,
  .map-basement {
    grid-column: 1 / -1;
  }

  .map-roof {
    top: 43%;
  }

  .map-shell {
    top: 61%;
  }

  .map-basement {
    top: 82%;
    height: 12%;
  }

  .thermal-layer {
    inset: 38% 8% 4%;
  }

  .attic-flow {
    top: 49%;
  }

  .window-flow {
    top: 66%;
  }

  .rim-flow {
    top: 87%;
  }

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

  .inspection-panel h3 {
    margin-bottom: 14px;
  }

  .inspection-panel .panel-stack {
    gap: 10px;
  }

  .inspection-panel .panel-stack div {
    padding: 12px;
  }

  .report-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .report-head {
    align-items: flex-start;
  }

  .report-head img {
    max-width: 78px;
  }

  .site-footer {
    gap: 26px;
    padding: 34px 18px;
    padding-bottom: calc(34px + env(safe-area-inset-bottom));
  }

  .workflow-next {
    display: block;
    margin-top: 16px;
  }

  .workflow-next .primary-button {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
  }

  .report-actions {
    position: sticky;
    bottom: 0;
    z-index: 13;
    margin: 16px -18px -18px;
    border-radius: 18px 18px 8px 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -16px 38px rgba(23, 75, 55, 0.12);
  }

  .footer-brand img {
    width: min(190px, 70vw);
  }

  .footer-links a {
    min-height: 32px;
    width: 100%;
  }

  .delivery-overlay {
    align-items: start;
    overflow-y: auto;
    padding: 14px;
  }

  .delivery-card {
    margin: 16px 0;
    padding: 18px;
    border-radius: 16px;
  }

  .delivery-scene {
    min-height: 170px;
  }

  .audit-letter {
    width: 150px;
    min-height: 96px;
    padding: 13px;
  }

  .delivery-building {
    right: 4%;
    width: 92px;
    height: 96px;
    grid-template-columns: repeat(2, 24px);
    padding: 16px;
  }

  .delivery-plane {
    width: 70px;
  }

  .schedule-submit {
    position: sticky;
    bottom: 0;
    z-index: 14;
    margin: 6px -18px -18px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(23, 75, 55, 0.12);
    border-radius: 16px 16px 8px 8px;
    background: rgba(248, 250, 246, 0.96);
    box-shadow: 0 -18px 42px rgba(23, 75, 55, 0.12);
    backdrop-filter: blur(14px);
  }

  .schedule-submit p {
    min-height: 18px;
    font-size: 0.9rem;
    text-align: center;
  }
}

@media (max-width: 420px) {
  html {
    scroll-padding-top: 118px;
  }

  .site-header {
    padding-inline: 12px;
  }

  nav {
    width: calc(100vw - 24px);
  }

  .mobile-workflow {
    padding: 8px 12px;
  }

  .workflow-links {
    grid-template-columns: 1fr;
  }

  .hero,
  .about-hero,
  .schedule-hero,
  .section {
    padding-inline: 12px;
  }

  h1,
  .studio-hero h1,
  .about-copy h1,
  .schedule-hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.4rem);
  }

  .home-visual,
  .map-house {
    min-height: 360px;
  }

  .home-marker {
    min-height: 30px;
    padding: 0 7px;
    font-size: 0.65rem;
  }

  .control-panel,
  .score-panel,
  .report-card,
  .report-actions,
  .performance-map,
  .inspection-panel,
  .schedule-form {
    padding: 14px;
  }

  .score-panel {
    top: 102px;
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 12px;
  }

  .score-ring {
    width: 88px;
  }

  .score-details h3 {
    font-size: 0.98rem;
  }

  .score-details > p,
  .metric-row {
    font-size: 0.78rem;
  }

  .audit-cta strong {
    font-size: 0.82rem;
  }

  .schedule-submit {
    margin-inline: -14px;
    margin-bottom: -14px;
    padding-inline: 14px;
  }

  .final-cta {
    margin: 12px;
    padding: 28px 18px;
  }
}

/* Safari stability: avoid expensive live blur layers and nested sticky effects. */
.is-safari .site-header,
.is-safari .score-panel,
.is-safari .schedule-submit,
.is-safari .delivery-overlay,
.is-safari .glass-panel,
.is-safari .home-marker {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.is-safari .score-panel,
.is-safari .schedule-submit {
  position: static;
}

.is-safari .sun-wash,
.is-safari .flow-line,
.is-safari .thermal-layer {
  filter: none;
}

@media (max-width: 760px) {
  .is-safari .score-panel {
    grid-template-columns: auto minmax(0, 1fr);
    margin-bottom: 16px;
  }

  .is-safari .schedule-submit {
    margin: 0;
    padding: 12px 0 0;
    border-top: 0;
    box-shadow: none;
    background: transparent;
  }
}

/* Art-directed mobile app flow */
@media (max-width: 760px) {
  body {
    background:
      linear-gradient(180deg, #fbfcf6 0, #eef5ed 420px, #f8faf6 100%);
  }

  .site-header {
    border-bottom-color: rgba(23, 75, 55, 0.08);
    box-shadow: 0 8px 24px rgba(23, 75, 55, 0.06);
  }

  .studio-hero {
    min-height: 0;
    padding: 28px 16px 20px;
    border-bottom: 0;
    background:
      radial-gradient(circle at 85% 4%, rgba(247, 201, 72, 0.28), transparent 28%),
      linear-gradient(180deg, #fffdf4, #f5f9f1);
  }

  .studio-hero .home-visual {
    display: none;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-copy h1,
  .studio-hero h1 {
    max-width: 10.5ch;
    font-size: clamp(2.45rem, 12vw, 3.75rem);
  }

  .hero-copy > p:not(.eyebrow) {
    max-width: 34rem;
    margin-top: 16px;
  }

  .mobile-workflow {
    padding: 0 16px 18px;
    border-bottom: 0;
    background: linear-gradient(180deg, #f5f9f1, #f8faf6);
  }

  .mobile-workflow-menu {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(23, 75, 55, 0.12);
  }

  .mobile-workflow-menu summary {
    min-height: 64px;
  }

  .mobile-workflow-menu summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 30px;
    aspect-ratio: 1;
    border-radius: 50%;
    color: var(--evergreen);
    background: rgba(95, 159, 47, 0.12);
    font-weight: 900;
  }

  .mobile-workflow-menu[open] summary::after {
    content: "-";
  }

  .workflow-links {
    grid-template-columns: 1fr;
  }

  .workflow-links a {
    min-height: 54px;
    justify-content: start;
    padding: 0 16px;
    border-radius: 16px;
    font-size: 1rem;
  }

  #audit,
  #profile,
  #look-for,
  #transformation,
  #services,
  #report {
    min-height: 0;
    scroll-margin-top: 108px;
  }

  .audit-map-section,
  #profile,
  #look-for,
  #transformation,
  #services,
  #report {
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 28px;
    background: transparent;
  }

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

  .section-heading .eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(95, 159, 47, 0.1);
  }

  .section-heading h2 {
    max-width: 12ch;
    margin-top: 8px;
    font-size: clamp(1.75rem, 8.4vw, 2.65rem);
  }

  .performance-map,
  .inspection-panel,
  .control-panel,
  .score-panel,
  .report-card,
  .report-actions,
  .service-card,
  .stat-card {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 36px rgba(23, 75, 55, 0.09);
  }

  .map-house {
    min-height: 430px;
    gap: 9px;
    padding: 12px;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(223, 242, 223, 0.45)),
      radial-gradient(circle at 48% 62%, rgba(247, 201, 72, 0.2), transparent 32%);
  }

  .map-cottage-canvas {
    inset: 174px 6px 18px;
    width: calc(100% - 12px);
    height: calc(100% - 192px);
  }

  .home-marker {
    min-height: 38px;
    border-radius: 14px;
    font-size: 0.76rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 6px 18px rgba(23, 75, 55, 0.08);
  }

  .home-marker.active {
    color: var(--evergreen);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 26px rgba(23, 75, 55, 0.16), inset 0 0 0 2px var(--marker-color);
  }

  .map-roof {
    top: 47%;
  }

  .map-shell {
    top: 64%;
  }

  .map-basement {
    top: 85%;
  }

  .thermal-layer {
    inset: 42% 6% 2%;
  }

  .inspection-panel {
    padding: 16px;
  }

  .inspection-panel h3 {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }

  .inspection-panel .panel-stack div {
    border-radius: 14px;
    background: rgba(248, 250, 246, 0.82);
  }

  .score-panel {
    position: static;
    grid-template-columns: 96px minmax(0, 1fr);
    margin: 14px 0 0;
    padding: 14px;
  }

  .score-ring {
    width: 96px;
  }

  .report-actions {
    position: static;
    margin: 14px 0 0;
  }

  .checklist button {
    min-height: auto;
  }

  #checklist button::after {
    top: 12px;
    right: 12px;
  }

  .workflow-next {
    margin-top: 14px;
  }
}

@media (max-width: 420px) {
  .mobile-workflow {
    padding-inline: 12px;
  }

  .map-house {
    min-height: 420px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-marker {
    min-height: 36px;
    font-size: 0.7rem;
  }

  .map-cottage-canvas {
    inset: 170px 6px 18px;
    width: calc(100% - 12px);
    height: calc(100% - 188px);
  }
}

/* Mobile header should feel like an app bar, not a sideways scroller. */
@media (max-width: 760px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    order: 2;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 6px;
    overflow: visible;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  nav a {
    min-width: 0;
    min-height: 38px;
    padding: 0 8px;
    white-space: normal;
    text-align: center;
    line-height: 1.05;
    scroll-snap-align: none;
  }
}

@media (max-width: 420px) {
  nav {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
