:root {
  --ink: #111820;
  --ink-2: #26313b;
  --paper: #f7f4ee;
  --paper-2: #ebe6dc;
  --stone: #d8d0c1;
  --steel: #536d7c;
  --copper: #a56d43;
  --olive: #687463;
  --white: #ffffff;
  --muted: #66717a;
  --line: rgba(17, 24, 32, 0.13);
  --shadow: 0 24px 80px rgba(17, 24, 32, 0.16);
  --radius: 8px;
  --header-h: 82px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

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

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

.site {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  padding: 18px clamp(18px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid rgba(17, 24, 32, 0.1);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.primary a {
  min-height: 42px;
  padding: 11px 13px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.primary a:hover,
.primary a[aria-current="page"] {
  background: rgba(83, 109, 124, 0.13);
}

.menu-toggle {
  display: none;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: var(--white);
  background: var(--ink);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

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

.btn.ghost {
  color: var(--ink);
  background: transparent;
}

.home-hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(28px, 6vw, 72px) clamp(18px, 5vw, 64px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(83, 109, 124, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 109, 124, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, #fbfaf6 0%, #eee8dc 58%, #dce3e5 100%);
  background-size: 56px 56px, 56px 56px, auto;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 244, 238, 0.96), rgba(247, 244, 238, 0.68) 46%, rgba(247, 244, 238, 0.2));
  pointer-events: none;
}

.hero-studio {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow,
.meta {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.55rem, 6vw, 6.3rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.18;
}

.hero-copy > p {
  max-width: 650px;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.cta-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.blueprint-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 560px;
}

.blueprint-tags span {
  min-height: 42px;
  padding: 10px 12px;
  border-left: 3px solid var(--steel);
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 750;
}

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

.hero-board img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.model-card {
  position: absolute;
  right: clamp(-18px, -2vw, -10px);
  bottom: 26px;
  width: min(300px, 58%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  color: var(--white);
  background: rgba(17, 24, 32, 0.86);
  box-shadow: 0 20px 60px rgba(17, 24, 32, 0.22);
}

.model-card strong {
  display: block;
  margin-bottom: 8px;
}

.model-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.section {
  padding: clamp(54px, 8vw, 112px) clamp(18px, 5vw, 64px);
}

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

.dark {
  color: var(--white);
  background: linear-gradient(135deg, #111820, #26313b 70%, #536d7c);
}

.container,
.narrow {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.narrow {
  width: min(860px, 100%);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.44fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.editorial {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.editorial-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.center {
  text-align: center;
}

.center .section-sub {
  margin-inline: auto;
}

.section-sub {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.dark .section-sub,
.dark .prose p {
  color: rgba(255, 255, 255, 0.78);
}

.prose p {
  color: var(--ink-2);
  font-size: 1.02rem;
}

.panel,
.card,
.stat,
.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.panel {
  padding: 24px;
  box-shadow: 0 18px 60px rgba(17, 24, 32, 0.08);
}

.panel ul {
  margin: 0;
  padding-left: 18px;
}

.panel li + li {
  margin-top: 10px;
}

.stats-grid,
.card-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

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

.stat,
.card {
  padding: 22px;
  min-height: 160px;
  text-decoration: none;
}

.stat strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
}

.stat span,
.card p {
  color: var(--muted);
}

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

.service-card {
  overflow: hidden;
  color: inherit;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 18px 60px rgba(17, 24, 32, 0.08);
}

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

.service-card .pad {
  padding: 20px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.step b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--white);
  background: var(--steel);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.chip {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink-2);
  font-weight: 750;
  text-decoration: none;
}

.final-cta {
  color: var(--white);
  background:
    linear-gradient(rgba(17, 24, 32, 0.76), rgba(17, 24, 32, 0.76)),
    url("../Assets/terra-new-home-construction-realistic-1200.jpg") center / cover;
}

.final-cta .section-sub {
  color: rgba(255, 255, 255, 0.82);
}

.footer {
  padding: 54px clamp(18px, 5vw, 64px) 34px;
  color: var(--white);
  background: var(--ink);
}

.footer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

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

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

.copyright {
  width: min(1180px, 100%);
  margin: 32px auto 0;
  color: rgba(255, 255, 255, 0.62);
}

.sticky-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 6px;
  color: var(--white);
  background: var(--ink);
  font-weight: 850;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 32, 0.72);
}

.modal.is-open {
  display: flex;
}

.sheet {
  position: relative;
  width: min(720px, 100%);
  max-height: min(90svh, 820px);
  overflow: auto;
  padding: 28px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.field {
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-weight: 750;
}

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

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

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

.consent {
  display: flex;
  gap: 10px;
  margin: 16px 0;
  font-size: 0.93rem;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.form-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 980px) {
  .primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px 18px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .site.nav-open .primary {
    display: grid;
  }

  .primary a {
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
  }

  .hero-studio,
  .split,
  .editorial,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
  }
}

@media (max-width: 780px) {
  .site {
    min-height: 66px;
    padding: 12px 14px;
  }

  .home-hero {
    padding: 26px 14px 34px;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 4.2rem);
  }

  h2 {
    font-size: clamp(1.95rem, 9vw, 3rem);
  }

  .cta-row,
  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .blueprint-tags {
    grid-template-columns: 1fr;
  }

  .model-card {
    position: static;
    width: 100%;
  }

  .hero-board img {
    min-height: 300px;
  }

  .section {
    padding: 48px 14px;
  }

  .swipe-wrap {
    margin-inline: -14px;
    padding-inline: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .swipe-wrap::-webkit-scrollbar {
    display: none;
  }

  .stats-grid,
  .card-grid,
  .faq-grid,
  .service-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(252px, 82vw);
    grid-template-columns: none;
    gap: 12px;
  }

  .stat,
  .card,
  .service-card {
    scroll-snap-align: start;
  }

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

  .sheet {
    max-height: 86svh;
    padding: 24px 18px;
  }

  .sticky-cta {
    left: 14px;
    right: 14px;
    bottom: 14px;
    text-align: center;
  }
}
