.theme-modular-home {
  --paper: #fffdf7;
  --ash: #f4f4ef;
  --stone: #d9ded5;
  --charcoal: #111411;
  --ink: #181b18;
  --muted: #60695f;
  --line: rgba(17, 20, 17, 0.14);
  --moss: #385946;
  --moss-dark: #20382d;
  --copper: #b86e3c;
  --sky: #c8d8dc;
  --surface: #ffffff;
  --shadow: 0 24px 70px rgba(17, 20, 17, 0.14);
  --body-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --heading-font: "Archivo", system-ui, sans-serif;
  --radius-lg: 8px;
  --radius-md: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
}

.theme-modular-home *,
.theme-modular-home *::before,
.theme-modular-home *::after {
  box-sizing: border-box;
}

.theme-modular-home img {
  display: block;
  max-width: 100%;
}

.theme-modular-home a {
  color: inherit;
  text-decoration: none;
}

.theme-modular-home h1,
.theme-modular-home h2,
.theme-modular-home h3,
.theme-modular-home p {
  margin-top: 0;
}

.theme-modular-home .container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

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

.modular-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  border-bottom: 0;
  color: #ffffff;
  background: transparent;
  backdrop-filter: none;
}

.header-shell {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.modular-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--heading-font);
  font-size: clamp(1.45rem, 1.16rem + 0.8vw, 2.05rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.modular-brand .brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 0;
  background: transparent;
}

.modular-brand .brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-modular-home .site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  padding: 0;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.theme-modular-home .site-nav a {
  position: relative;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  background: transparent;
}

.theme-modular-home .site-nav a:not(.nav-cta)::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  content: "";
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-modular-home .site-nav a:hover::after,
.theme-modular-home .site-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.theme-modular-home .site-nav a.nav-cta,
.theme-modular-home .button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 23px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.theme-modular-home .site-nav a.nav-cta {
  color: var(--charcoal);
  background: #ffffff;
}

.theme-modular-home .button:hover,
.theme-modular-home .button:focus-visible,
.theme-modular-home .site-nav a.nav-cta:hover,
.theme-modular-home .site-nav a.nav-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(17, 20, 17, 0.16);
}

.theme-modular-home .button span,
.theme-modular-home .site-nav a.nav-cta::before {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  content: "";
  background: currentColor;
  flex: 0 0 auto;
}

.theme-modular-home .button-primary {
  color: #ffffff;
  background: var(--moss-dark);
}

.theme-modular-home .button-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.theme-modular-home .button-full {
  width: 100%;
}

.theme-modular-home .nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-md);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.theme-modular-home .nav-toggle span:not(.sr-only) {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.modular-hero {
  position: relative;
  min-height: 84svh;
  overflow: hidden;
  color: #ffffff;
  background: var(--charcoal);
}

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

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 12, 10, 0.86) 0%, rgba(10, 12, 10, 0.54) 39%, rgba(10, 12, 10, 0.1) 72%),
    linear-gradient(180deg, rgba(10, 12, 10, 0.38) 0%, rgba(10, 12, 10, 0) 36%, rgba(10, 12, 10, 0.76) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 72svh;
  flex-direction: column;
  justify-content: flex-start;
  padding: 116px 0 172px;
}

.theme-modular-home .eyebrow,
.section-kicker {
  width: fit-content;
  margin: 0 0 18px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-modular-home .eyebrow {
  display: inline-flex;
  min-height: 0;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #f0c59d;
  background: rgba(255, 255, 255, 0.22);
}

.modular-hero h1 {
  max-width: 16ch;
  margin: 0 0 22px;
  font-family: var(--heading-font);
  font-size: clamp(3.2rem, 5.4vw, 5rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.modular-hero .hero-lead {
  max-width: 43rem;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.18rem);
  font-weight: 700;
  line-height: 1.55;
}

.theme-modular-home .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

.project-rail {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.project-rail article {
  min-height: 112px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
}

.project-rail span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.86rem;
  font-weight: 800;
}

.project-rail strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--heading-font);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-rail p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.42;
}

.intro-section {
  padding: clamp(68px, 8vw, 112px) 0;
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.68fr 1.4fr 1fr 1fr;
  gap: clamp(28px, 5vw, 66px);
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.studio-copy h2,
.contact-grid h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(2.25rem, 4.5vw, 5.2rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-grid p:not(.section-kicker),
.studio-copy p,
.large-text {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.75;
}

.image-band {
  overflow: hidden;
  background: var(--stone);
}

.image-band img {
  width: 100%;
  height: min(720px, 70svh);
  object-fit: cover;
  object-position: center;
}

.theme-modular-home .section {
  padding: clamp(72px, 8vw, 124px) 0;
}

.section-heading {
  max-width: 850px;
  margin-bottom: clamp(34px, 5vw, 60px);
}

.section-heading.horizontal {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface);
}

.model-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 38px);
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.model-card:last-child {
  border-right: 0;
}

.model-card.featured {
  color: #ffffff;
  background: var(--moss-dark);
}

.model-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
  color: var(--copper);
  font-weight: 900;
}

.featured .model-meta {
  color: #f2c29b;
}

.model-card h3,
.steps h3,
.project-list h3,
.faq-list h3 {
  margin: 0 0 14px;
  font-family: var(--heading-font);
  font-size: clamp(1.45rem, 1.18rem + 0.8vw, 2rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.model-card p,
.steps p,
.project-list p,
.faq-list p {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.65;
}

.featured p,
.featured li {
  color: rgba(255, 255, 255, 0.78);
}

.model-card ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  list-style: none;
}

.featured ul {
  border-top-color: rgba(255, 255, 255, 0.24);
}

.model-card li::before,
.check-list li::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  content: "";
  background: var(--copper);
}

.process-section,
.contact-section {
  background: var(--ash);
}

.process-grid,
.studio-grid,
.quote-grid,
.faq-grid,
.contact-grid {
  display: grid;
  gap: clamp(34px, 6vw, 82px);
}

.process-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.steps article {
  min-height: 236px;
  padding: clamp(24px, 3vw, 34px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.steps span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--copper);
  font-weight: 900;
}

.studio-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
}

.studio-image {
  position: relative;
}

.studio-image::after {
  position: absolute;
  right: -22px;
  bottom: -22px;
  z-index: -1;
  width: 42%;
  height: 42%;
  content: "";
  background: var(--sky);
}

.studio-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.studio-copy p {
  margin-top: 26px;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.spec-list span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--moss-dark);
  font-weight: 900;
}

.metrics-section {
  padding: clamp(46px, 5vw, 72px) 0;
  color: #ffffff;
  background: var(--charcoal);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.metrics-grid article {
  min-height: 190px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--charcoal);
}

.metrics-grid span {
  display: block;
  margin-bottom: 18px;
  color: #f0c59d;
  font-family: var(--heading-font);
  font-size: clamp(3rem, 6vw, 5.7rem);
  font-weight: 900;
  line-height: 0.9;
}

.metrics-grid p {
  max-width: 20rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--moss-dark);
  font-weight: 900;
}

.text-link::after {
  width: 34px;
  height: 2px;
  content: "";
  background: currentColor;
}

.project-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.project-list article {
  display: grid;
  grid-template-columns: 0.36fr 0.56fr 1fr;
  gap: clamp(18px, 4vw, 54px);
  align-items: start;
  padding: clamp(24px, 3vw, 38px) 0;
  background: var(--paper);
}

.project-list span {
  color: var(--copper);
  font-weight: 900;
  text-transform: uppercase;
}

.quote-band {
  color: #ffffff;
  background: linear-gradient(135deg, var(--moss), var(--moss-dark));
}

.quote-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: end;
}

.quote-grid blockquote {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(2rem, 4.2vw, 4.8rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.quote-grid strong {
  display: block;
  margin-bottom: 10px;
  color: #f0c59d;
  font-weight: 900;
}

.quote-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
  line-height: 1.6;
}

.faq-grid {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
}

.faq-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.faq-list article {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.contact-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  align-items: start;
}

.large-text {
  max-width: 42rem;
  margin-top: 24px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--moss-dark);
  font-weight: 900;
  list-style: none;
}

.contact-form {
  display: grid;
  gap: 13px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.contact-form label {
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 20, 17, 0.22);
  border-radius: var(--radius-md);
  padding: 14px 15px;
  color: var(--ink);
  background: #fbfbf7;
  font: inherit;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(184, 110, 60, 0.22);
  border-color: var(--copper);
}

.contact-form [aria-invalid="true"] {
  border-color: #b42318;
}

.form-note,
.form-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
}

.form-message.success {
  color: #1f6f44;
}

.form-message.error {
  color: #b42318;
}

.modular-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 940px) {
  .theme-modular-home .nav-toggle {
    display: block;
  }

  .theme-modular-home .site-nav {
    position: absolute;
    top: 74px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    background: rgba(17, 20, 17, 0.96);
    box-shadow: var(--shadow);
  }

  .theme-modular-home .site-nav.open {
    display: flex;
  }

  .theme-modular-home .site-nav a {
    padding: 15px 14px;
  }

  .theme-modular-home .nav-cta {
    margin-top: 6px;
  }

  .hero-content {
    min-height: 66svh;
    padding: 108px 0 180px;
  }

  .project-rail {
    gap: 16px;
    overflow-x: auto;
    grid-template-columns: repeat(3, minmax(230px, 1fr));
    padding-bottom: 6px;
  }

  .intro-grid,
  .process-grid,
  .studio-grid,
  .faq-grid,
  .contact-grid,
  .quote-grid,
  .model-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .model-card {
    min-height: 320px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .model-card:last-child {
    border-bottom: 0;
  }

  .section-heading.horizontal {
    align-items: start;
    flex-direction: column;
  }

  .project-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 620px) {
  .theme-modular-home .container {
    width: min(100% - 28px, 1200px);
  }

  .modular-brand {
    font-size: 1.25rem;
  }

  .modular-brand .brand-mark {
    width: 36px;
    height: 36px;
  }

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

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(10, 12, 10, 0.78) 0%, rgba(10, 12, 10, 0.54) 42%, rgba(10, 12, 10, 0.9) 100%),
      linear-gradient(90deg, rgba(10, 12, 10, 0.76), rgba(10, 12, 10, 0.18));
  }

  .hero-content {
    min-height: 680px;
    padding: 104px 0 234px;
  }

  .modular-hero h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .modular-hero .hero-lead {
    font-size: 1rem;
  }

  .theme-modular-home .button-row,
  .theme-modular-home .button {
    width: 100%;
  }

  .project-rail {
    bottom: 18px;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }

  .project-rail article {
    min-height: 136px;
  }

  .intro-grid h2,
  .section-heading h2,
  .studio-copy h2,
  .contact-grid h2,
  .quote-grid blockquote {
    font-size: clamp(2rem, 13vw, 3.45rem);
  }

  .image-band img {
    height: 74svh;
  }

  .steps,
  .spec-list {
    grid-template-columns: 1fr;
  }

  .footer-row {
    align-items: start;
    flex-direction: column;
  }
}
