/*
Theme Name: LĪVAS Mājas
Theme URI: https://example.com/
Author: LĪVAS Mājas
Author URI: https://example.com/
Description: Pielāgota WordPress tēma moduļu un koka māju uzņēmumam. Ietver sākumlapu, responsīvu navigāciju, projektu kartītes, procesa, materiālu un aicinājuma sadaļas.
Version: 1.0.6
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: livas-majas
*/

:root {
  --ink: #151513;
  --ink-soft: #45423e;
  --paper: #f7f5f0;
  --paper-2: #eeebe4;
  --white: #ffffff;
  --accent: #b5262c;
  --accent-dark: #8f181e;
  --line: #d8d3c9;
  --muted: #777169;
  --shadow: 0 22px 54px rgba(20, 18, 15, 0.12);
  --container: min(1180px, calc(100vw - 48px));
  --header-h: 82px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { color: var(--white); background: var(--accent); }

.container { width: var(--container); margin-inline: auto; }
.section { padding: 88px 0; }
.section--compact { padding: 60px 0; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-kicker::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.section-title {
  max-width: 760px;
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.section-copy { max-width: 650px; margin: 18px 0 0; color: var(--ink-soft); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--header-h);
  border-bottom: 1px solid rgba(21, 21, 19, .08);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(15px);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  width: min(1320px, calc(100vw - 40px));
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 28px;
}
.site-branding { position: relative; z-index: 2; display: inline-flex; align-items: center; }
.custom-logo-link, .fallback-logo { display: inline-flex; align-items: center; }
.custom-logo, .fallback-logo img { width: auto; max-width: 118px; max-height: 53px; object-fit: contain; }
.primary-navigation { justify-self: center; }
.primary-menu { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 38px); margin: 0; padding: 0; list-style: none; }
.primary-menu a {
  position: relative;
  display: block;
  padding: 30px 0;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.primary-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 21px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .065em;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease;
}
.header-cta:hover { color: var(--white); background: var(--accent); }
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 28px; height: 1.5px; margin: 6px auto; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button::after { content: "→"; font-size: 15px; transition: transform .2s ease; }
.button:hover { border-color: var(--accent); background: var(--accent); transform: translateY(-2px); }
.button:hover::after { transform: translateX(3px); }
.button--light { color: var(--ink); border-color: var(--white); background: var(--white); }
.button--ghost { color: var(--ink); background: transparent; }

.hero {
  position: relative;
  height: clamp(600px, 72vh, 720px);
  min-height: 600px;
  overflow: hidden;
  background: #171816;
}
.hero__media { position: absolute; inset: 0 0 0 40%; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 14, 12, .16), transparent 42%),
    linear-gradient(0deg, rgba(12, 12, 11, .52) 0%, rgba(12, 12, 11, .08) 38%, transparent 62%);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__panel {
  position: relative;
  z-index: 2;
  width: 52%;
  height: 100%;
  padding: 64px 7vw 92px max(5vw, calc((100vw - 1180px) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
  clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%);
}
.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(33, 31, 27, .10) 1px, transparent 0);
  background-size: 18px 18px;
  opacity: .18;
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; width: min(100%, 410px); }
.hero__title {
  max-width: 410px;
  margin: 0;
  font-size: clamp(40px, 3.7vw, 58px);
  line-height: .98;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.hero__title span { display: block; }
.hero__lead { max-width: 405px; margin: 24px 0 30px; color: var(--ink-soft); font-size: 16px; }
.hero__sketch {
  position: absolute;
  right: 6%;
  bottom: 16px;
  width: 70%;
  height: 38%;
  background: url("assets/images/house-sketch.svg") right bottom / contain no-repeat;
  opacity: .42;
  pointer-events: none;
}
.hero__index {
  position: absolute;
  z-index: 3;
  bottom: 26px;
  left: max(26px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero__index::after { content: ""; width: 1px; height: 42px; background: currentColor; }
.hero__stats {
  position: absolute;
  z-index: 3;
  right: max(4vw, calc((100vw - 1180px) / 2));
  bottom: 28px;
  display: grid;
  grid-template-columns: .8fr 1fr 1.25fr;
  width: min(570px, 49vw);
  color: var(--white);
  background: transparent;
}
.hero-stat {
  min-height: 74px;
  padding: 16px 22px 0;
  border-top: 1px solid rgba(255,255,255,.5);
  border-left: 1px solid rgba(255,255,255,.28);
  text-shadow: 0 1px 14px rgba(0,0,0,.4);
}
.hero-stat:first-child { border-left: 0; }
.hero-stat strong { display: block; margin-bottom: 7px; font-size: 21px; line-height: 1.05; }
.hero-stat span { display: block; color: rgba(255,255,255,.78); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

.homes-intro { text-align: center; }
.homes-intro .section-kicker { justify-content: center; }
.homes-intro .section-title, .homes-intro .section-copy { margin-inline: auto; }
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.home-card {
  position: relative;
  min-width: 0;
  background: var(--paper);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.home-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.home-card__image { overflow: hidden; aspect-ratio: 1.72; background: #d9d6cf; }
.home-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.home-card:hover .home-card__image img { transform: scale(1.035); }
.home-card__body { padding: 23px 24px 24px; }
.home-card__title { margin: 0 0 8px; font-family: "Lora", Georgia, serif; font-size: 23px; line-height: 1.2; }
.home-card__copy { min-height: 52px; margin: 0; color: var(--ink-soft); font-size: 13px; }
.home-card__link { display: inline-flex; gap: 10px; margin-top: 18px; color: var(--ink); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.home-card__link span { color: var(--accent); }

.process { background: var(--paper); }
.process-grid { display: grid; grid-template-columns: 1fr 255px; gap: 36px; align-items: stretch; }
.process-title { margin: 0; font-family: "Lora", Georgia, serif; font-size: 33px; line-height: 1.15; }
.process-copy { margin: 8px 0 0; color: var(--ink-soft); }
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 36px; }
.process-step { position: relative; padding: 0 26px 0 0; }
.process-step + .process-step { padding-left: 26px; border-left: 1px solid var(--line); }
.process-step__top { display: flex; align-items: center; gap: 13px; }
.process-step__number { color: var(--ink-soft); font-size: 18px; font-weight: 600; }
.process-step svg { width: 27px; height: 27px; stroke: var(--ink); stroke-width: 1.4; fill: none; }
.process-step h3 { margin: 18px 0 7px; font-size: 12px; }
.process-step p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.process-card {
  position: relative;
  min-height: 260px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  background: linear-gradient(0deg, rgba(14,14,13,.8), rgba(14,14,13,.12)), url("assets/images/interjers-renderis.png") center / cover;
}
.process-card h3 { margin: 0 0 20px; font-family: "Lora", Georgia, serif; font-size: 25px; line-height: 1.12; }
.process-card a { font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.projects-grid { display: grid; grid-template-columns: .86fr 2.14fr; gap: 52px; align-items: center; }
.projects-copy h2 { margin: 0; font-family: "Lora", Georgia, serif; font-size: clamp(34px, 4vw, 50px); line-height: 1.08; }
.projects-copy p { color: var(--ink-soft); }
.text-link { display: inline-flex; gap: 10px; margin-top: 10px; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.text-link span { color: var(--accent); }
.project-gallery { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.project-gallery figure { margin: 0; aspect-ratio: 1.12; overflow: hidden; background: var(--paper-2); }
.project-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-gallery figure:hover img { transform: scale(1.04); }
.gallery-controls { position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; }
.gallery-controls span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(21,21,19,.18); border-radius: 50%; background: rgba(255,255,255,.9); }

.materials {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #1c1d1c;
}
.materials::before {
  content: "";
  position: absolute;
  inset: 0 44% 0 0;
  background: linear-gradient(90deg, rgba(20,20,19,.84), rgba(20,20,19,.44)), url("assets/images/maja-meza.png") center / cover;
  filter: saturate(.7) contrast(1.08);
}
.materials::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
  background:
    linear-gradient(90deg, rgba(237,233,224,.96), rgba(255,255,255,.84)),
    repeating-linear-gradient(90deg, rgba(88,72,49,.12) 0 2px, transparent 2px 8px);
}
.materials-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 340px; }
.materials-copy { padding: 72px 70px 72px 0; }
.materials-copy h2 { margin: 0; max-width: 500px; font-family: "Lora", Georgia, serif; font-size: clamp(35px, 4vw, 54px); line-height: 1.08; }
.materials-copy p { max-width: 520px; color: rgba(255,255,255,.72); }
.materials-list-wrap { display: flex; justify-content: flex-end; padding-left: 70px; }
.materials-list { width: min(440px, 100%); margin: 0; padding: 25px 30px; list-style: none; color: var(--ink); background: rgba(255,255,255,.84); box-shadow: 0 20px 60px rgba(0,0,0,.12); backdrop-filter: blur(12px); }
.materials-list li { position: relative; padding: 11px 0 11px 28px; border-bottom: 1px solid rgba(21,21,19,.1); font-size: 13px; }
.materials-list li:last-child { border-bottom: 0; }
.materials-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ink); font-weight: 900; }

.cta-section { position: relative; overflow: hidden; background: #f5f1e9; }
.cta-section::after {
  content: "";
  position: absolute;
  right: max(0px, calc((100vw - 1180px) / 2 - 60px));
  bottom: -34px;
  width: min(660px, 58vw);
  height: 290px;
  background: url("assets/images/house-sketch.svg") right bottom / contain no-repeat;
  opacity: .7;
}
.cta-inner { position: relative; z-index: 2; min-height: 270px; display: flex; align-items: center; }
.cta-copy { max-width: 520px; }
.cta-copy h2 { margin: 0; font-family: "Lora", Georgia, serif; font-size: clamp(38px, 4.4vw, 58px); line-height: 1.03; }
.cta-copy p { max-width: 440px; color: var(--ink-soft); }
.cta-copy .button { margin-top: 12px; }

.site-footer { color: rgba(255,255,255,.72); background: #171816; }
.footer-main { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 50px; padding: 52px 0 42px; }
.footer-logo { width: 100px; height: auto; filter: brightness(0) invert(1); opacity: .94; }
.footer-column h3 { margin: 0 0 10px; color: var(--white); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.footer-column p, .footer-column a { margin: 0; color: inherit; font-size: 12px; }
.footer-column a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.social-links { display: flex; gap: 11px; margin-top: 18px; }
.social-links a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: var(--white); font-size: 12px; }

.page-hero { padding: 90px 0 55px; background: var(--paper); }
.page-hero h1 { margin: 0; font-family: "Lora", Georgia, serif; font-size: clamp(42px, 6vw, 76px); line-height: 1; }
.page-content { padding: 70px 0 100px; }
.page-content > *:first-child { margin-top: 0; }
.page-content a { color: var(--accent); text-decoration: underline; }

@media (max-width: 1160px) {
  :root { --container: min(100% - 40px, 1080px); }
  .header-inner { grid-template-columns: 130px 1fr auto; gap: 18px; }
  .primary-menu { gap: 18px; }
  .primary-menu a { font-size: 10px; }
  .hero { height: clamp(580px, 70vh, 680px); min-height: 580px; }
  .hero__media { left: 38%; }
  .hero__panel { width: 58%; padding-left: 4vw; }
  .hero__content { width: min(100%, 360px); }
  .hero__title { max-width: 360px; font-size: clamp(38px, 4.5vw, 52px); }
  .hero__stats { width: min(520px, 52vw); }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { min-height: 230px; }
  .process-steps { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .menu-toggle { display: block; position: relative; z-index: 1002; }
  .primary-navigation {
    position: fixed;
    z-index: 1001;
    inset: var(--header-h) 0 0;
    padding: 36px 24px 50px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
  }
  .admin-bar .primary-navigation { top: calc(var(--header-h) + 32px); }
  .menu-open .primary-navigation { transform: translateX(0); }
  .primary-menu { width: min(100%, 520px); display: block; }
  .primary-menu li { border-bottom: 1px solid var(--line); }
  .primary-menu a { padding: 18px 2px; font-size: 15px; }
  .primary-menu a::after { display: none; }
  .hero { height: auto; min-height: 0; display: grid; background: var(--paper); }
  .hero__media { position: relative; inset: auto; order: 1; height: min(52vw, 470px); }
  .hero__media img { object-position: center; }
  .hero__panel { order: 2; width: 100%; height: auto; padding: 52px 0 68px; clip-path: none; }
  .hero__content { width: var(--container); margin-inline: auto; max-width: none; }
  .hero__title { max-width: 620px; font-size: clamp(40px, 6.2vw, 56px); }
  .hero__lead { max-width: 590px; }
  .hero__sketch { right: 0; width: 52%; height: 56%; opacity: .25; }
  .hero__index { display: none; }
  .hero__stats {
    position: relative;
    right: auto;
    bottom: auto;
    order: 3;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    color: var(--ink);
    background: var(--paper);
    border-top: 1px solid var(--line);
  }
  .hero-stat { min-height: 92px; padding: 22px 20px; border-top: 0; border-left-color: var(--line); text-shadow: none; }
  .hero-stat span { color: var(--muted); }
  .home-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: 28px 0; }
  .process-step:nth-child(4) { border-left: 0; padding-left: 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .materials::before { inset: 0; }
  .materials::after { display: none; }
  .materials-grid { grid-template-columns: 1fr; }
  .materials-copy { padding: 72px 0 25px; }
  .materials-list-wrap { justify-content: flex-start; padding: 0 0 72px; }
  .materials-list { background: rgba(255,255,255,.92); }
  .footer-main { grid-template-columns: 1.3fr repeat(2, 1fr); }
  .footer-main .footer-column:last-child { grid-column: 2 / 4; }
}

@media (max-width: 680px) {
  :root { --container: calc(100vw - 32px); }
  .section { padding: 66px 0; }
  .section--compact { padding: 50px 0; }
  .admin-bar .site-header { top: 46px; }
  .admin-bar .primary-navigation { top: calc(var(--header-h) + 46px); }
  .header-inner { width: calc(100vw - 24px); }
  .custom-logo, .fallback-logo img { max-width: 100px; max-height: 47px; }
  .hero__media { height: 60vw; min-height: 260px; max-height: 390px; }
  .hero__panel { padding: 40px 0 56px; }
  .hero__title { max-width: 100%; font-size: clamp(35px, 10.5vw, 48px); }
  .hero__lead { margin: 19px 0 26px; font-size: 15px; }
  .hero__sketch { width: 82%; height: 50%; bottom: -16px; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stat { min-height: 86px; padding: 19px 8px 16px; text-align: center; }
  .hero-stat strong { margin: 0 0 7px; font-size: 17px; }
  .hero-stat span { font-size: 8px; line-height: 1.35; }
  .home-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 34px; }
  .home-card__copy { min-height: 0; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 0; }
  .process-step { min-height: 178px; padding: 22px 18px 22px 0; border-bottom: 1px solid var(--line); }
  .process-step + .process-step { padding-left: 18px; }
  .process-step:nth-child(odd) { border-left: 0; padding-left: 0; }
  .process-step:nth-child(5) { grid-column: 1 / -1; min-height: 150px; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery figure:nth-child(n+3) { display: none; }
  .materials-copy { padding-top: 62px; }
  .materials-list-wrap { padding-bottom: 62px; }
  .cta-section::after { right: -110px; width: 650px; opacity: .35; }
  .cta-inner { min-height: 340px; align-items: flex-start; padding-top: 64px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer-main .footer-brand { grid-column: 1 / -1; }
  .footer-main .footer-column:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (min-width: 961px) {
  /* Keep the main copy left aligned. */
  .hero__panel {
    padding-left: clamp(48px, 5vw, 96px);
  }

  .hero__content {
    width: min(100%, 445px);
    max-width: 445px;
  }

  .hero__title {
    max-width: 445px;
  }

  .hero__lead {
    max-width: 420px;
  }

  /* Make the dotted texture and house drawing more visible. */
  .hero__panel::before {
    opacity: 0.28;
  }

  .hero__sketch {
    opacity: 0.62;
  }

  /* Keep the vertical index safely at the outer edge. */
  .hero__index {
    left: clamp(18px, 1.8vw, 34px);
    bottom: 28px;
    opacity: 0.48;
    pointer-events: none;
  }

  /* Stretch the trust section across the full right side and to the hero bottom. */
  .hero__stats {
    right: 0;
    bottom: 0;
    width: auto;
    min-height: 100px;
    grid-template-columns: 0.8fr 1fr 1.35fr;
    border-top: 1px solid rgba(255, 255, 255, 0.58);
    background: linear-gradient(
      180deg,
      rgba(10, 10, 9, 0.02) 0%,
      rgba(10, 10, 9, 0.24) 100%
    );
  }

  .hero-stat {
    min-height: 100px;
    padding: 18px clamp(18px, 2vw, 34px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.38);
    text-shadow:
      0 2px 5px rgba(0, 0, 0, 0.65),
      0 4px 18px rgba(0, 0, 0, 0.45);
  }

  .hero-stat:first-child {
    border-left: 0;
  }

  .hero-stat strong {
    margin-bottom: 8px;
    font-size: clamp(22px, 1.45vw, 27px);
    font-weight: 800;
    line-height: 1;
    color: #fff;
  }

  .hero-stat span {
    color: rgba(255, 255, 255, 0.95);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.09em;
  }
}

@media (min-width: 1161px) {
  .hero__stats {
    left: 52%;
  }
}

@media (min-width: 961px) and (max-width: 1160px) {
  .hero__panel {
    padding-left: 40px;
  }

  .hero__content,
  .hero__title {
    width: min(100%, 400px);
    max-width: 400px;
  }

  .hero__stats {
    left: 58%;
  }
}
/* =========================================================
   MĀJU KATALOGA KARTĪTES
   ========================================================= */

.homes-intro {
  background: #fbfaf7;
  text-align: center;
}

.homes-intro .container {
  width: min(calc(100% - 48px), 1540px);
  max-width: none;
}

.homes-intro .section-kicker {
  justify-content: center;
}

.homes-intro .section-title,
.homes-intro .section-copy {
  margin-inline: auto;
}

.homes-intro .section-copy {
  max-width: 680px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2vw, 34px);
  margin-top: 48px;
  text-align: left;
}

.home-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(26, 24, 21, 0.07);
  border-radius: 18px;
  background: var(--paper, #f5f2eb);
  box-shadow:
    0 4px 10px rgba(25, 22, 18, 0.05),
    0 16px 38px rgba(25, 22, 18, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.home-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 9px 20px rgba(25, 22, 18, 0.08),
    0 24px 50px rgba(25, 22, 18, 0.12);
}

.home-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  overflow: hidden;
  background: #d9d6cf;
}

/* Responsive half-dome shape. */
.home-card__image::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: -10%;
  bottom: -1px;
  width: 120%;
  height: clamp(54px, 19%, 96px);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: var(--paper, #f5f2eb);
  pointer-events: none;
}

.home-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.home-card:hover .home-card__image img {
  transform: scale(1.045);
}

.home-card__badge {
  position: absolute;
  z-index: 4;
  left: clamp(18px, 2vw, 28px);
  bottom: 8px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 4px solid var(--paper, #f5f2eb);
  border-radius: 50%;
  color: #fff;
  background: var(--accent, #a23a32);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 7px 18px rgba(71, 29, 24, 0.24);
}

.home-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px clamp(22px, 2vw, 30px) 26px;
}

.home-card__title {
  position: relative;
  margin: 0 0 22px;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(25px, 1.7vw, 31px);
  line-height: 1.12;
}

.home-card__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -11px;
  width: 34px;
  height: 1px;
  background: var(--accent, #a23a32);
}

.home-card__copy {
  min-height: 58px;
  margin: 0;
  color: var(--ink-soft, #55514a);
  font-size: clamp(13px, 0.9vw, 15px);
  line-height: 1.55;
}

.home-card__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.home-card__spec {
  min-width: 0;
  padding: 0 clamp(12px, 1.4vw, 20px);
  border-left: 1px solid rgba(26, 24, 21, 0.12);
}

.home-card__spec:first-child {
  padding-left: 0;
  border-left: 0;
}

.home-card__spec:last-child {
  padding-right: 0;
}

.home-card__spec strong,
.home-card__spec span {
  display: block;
}

.home-card__spec strong {
  color: var(--ink, #171714);
  font-size: clamp(13px, 0.9vw, 15px);
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
}

.home-card__spec span {
  margin-top: 5px;
  color: var(--muted, #77736c);
  font-size: 10px;
  line-height: 1.3;
}

.home-card__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: var(--accent, #a23a32);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-card__arrow {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--accent, #a23a32);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.home-card__link:hover .home-card__arrow {
  transform: translateX(3px);
}

@media (max-width: 1180px) {
  .homes-intro .container {
    width: min(calc(100% - 40px), 1000px);
  }

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

  .home-card__image {
    aspect-ratio: 16 / 9.5;
  }

  .home-card__copy {
    min-height: 48px;
  }
}

@media (max-width: 720px) {
  .homes-intro .container {
    width: min(calc(100% - 28px), 620px);
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 34px;
  }

  .home-card {
    border-radius: 16px;
  }

  .home-card__image {
    aspect-ratio: 4 / 3;
  }

  .home-card__image::after {
    left: -15%;
    width: 130%;
    height: clamp(54px, 17%, 74px);
  }

  .home-card__badge {
    left: 18px;
    bottom: 6px;
    width: 46px;
    height: 46px;
  }

  .home-card__body {
    padding: 16px 20px 23px;
  }

  .home-card__title {
    font-size: 25px;
  }

  .home-card__copy {
    min-height: 0;
    font-size: 14px;
  }

  .home-card__spec {
    padding-inline: 12px;
  }

  .home-card__spec strong {
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .home-card__image {
    aspect-ratio: 1 / 0.82;
  }

  .home-card__spec {
    padding-inline: 8px;
  }

  .home-card__spec strong {
    font-size: 12px;
  }

  .home-card__spec span {
    font-size: 9px;
  }
}

/* =========================================================
   STABLE CARD DOME + INNER PAGE MOCKUPS
   ========================================================= */

/* Stable card dome: the body itself creates the curve. */
.home-card { --home-dome-depth: clamp(58px, 6vw, 82px); }
.home-card__image::after { content: none !important; display: none !important; }
.home-card__image {
  position: relative;
  z-index: 1;
  overflow: hidden;
  transform: translateZ(0);
}
.home-card__image img {
  transform: scale(1);
  backface-visibility: hidden;
  transform-origin: center;
  will-change: transform;
}
.home-card:hover .home-card__image img { transform: scale(1.025); }
.home-card__body {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--home-dome-depth) * -1);
  padding-top: calc(var(--home-dome-depth) + 18px);
  background: var(--paper, #f5f2eb);
  border-radius: 50% 50% 0 0 / var(--home-dome-depth) var(--home-dome-depth) 0 0;
}
.home-card__badge {
  top: auto !important;
  right: auto;
  bottom: 9px !important;
  z-index: 5;
}
.home-card:hover {
  transform: none;
  border-color: rgba(181, 38, 44, .16);
}

/* Shared inner-page layout. */
.container--wide {
  width: min(calc(100% - 48px), 1540px);
  margin-inline: auto;
}
.mock-page { overflow: hidden; }
.page-section { padding: clamp(74px, 7vw, 112px) 0; }
.page-section--paper { background: #f8f6f1; }
.page-section--dark { color: #fff; background: #181917; }

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: end;
  gap: 60px;
}
.section-heading--split .section-copy {
  justify-self: end;
  margin-bottom: 6px;
}
.section-heading--center {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-heading--center .section-kicker { justify-content: center; }
.section-heading--center .section-title { margin-inline: auto; }

.subpage-hero {
  position: relative;
  padding: clamp(54px, 6vw, 94px) 0;
  background: #f6f3ed;
}
.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(33, 31, 27, .09) 1px, transparent 0);
  background-size: 20px 20px;
  opacity: .34;
  pointer-events: none;
}
.subpage-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(460px, 1.18fr);
  align-items: center;
  gap: clamp(46px, 7vw, 110px);
}
.subpage-hero__copy { max-width: 600px; }
.subpage-hero__title {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(48px, 5.7vw, 86px);
  line-height: .98;
  letter-spacing: -.052em;
}
.subpage-hero__lead {
  max-width: 590px;
  margin: 27px 0 34px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
}
.subpage-hero__media {
  position: relative;
  min-height: clamp(410px, 46vw, 650px);
  overflow: hidden;
  border-radius: 180px 2px 2px 2px;
  box-shadow: 0 30px 70px rgba(20, 18, 15, .16);
}
.subpage-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 13, 12, .28), transparent 42%);
  pointer-events: none;
}
.subpage-hero__media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}
.subpage-hero__media--arched { border-radius: 220px 220px 3px 3px; }
.subpage-hero__media--material { border-radius: 3px 190px 3px 3px; }
.subpage-hero__note {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: min(310px, 64%);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  color: #fff;
  background: rgba(22, 23, 21, .88);
  backdrop-filter: blur(10px);
}
.subpage-hero__note strong {
  font-family: "Lora", Georgia, serif;
  font-size: 46px;
  line-height: 1;
}
.subpage-hero__note span { font-size: 12px; line-height: 1.45; }

.page-cta {
  position: relative;
  padding: clamp(58px, 6vw, 86px) 0;
  background: #eee9df;
}
.page-cta::after {
  content: "";
  position: absolute;
  right: max(0px, calc((100vw - 1180px) / 2 - 100px));
  bottom: -42px;
  width: min(590px, 45vw);
  height: 260px;
  background: url("assets/images/house-sketch.svg") right bottom / contain no-repeat;
  opacity: .45;
  pointer-events: none;
}
.page-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}
.page-cta h2 {
  max-width: 780px;
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(37px, 4vw, 60px);
  line-height: 1.05;
}

/* Houses. */
.home-grid--catalog { margin-top: 52px; }
.selection-guide {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
}
.selection-guide__intro h2,
.content-split__copy h2,
.material-layout__intro h2,
.gallery-toolbar h2,
.featured-project__copy h2,
.contact-panel h2,
.faq-layout h2,
.process-story__heading h2 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.selection-guide__intro p:not(.section-kicker),
.content-split__copy > p,
.material-layout__intro > p,
.featured-project__copy > p { color: var(--ink-soft); }
.selection-guide__steps { border-top: 1px solid var(--line); }
.selection-guide__steps article {
  display: grid;
  grid-template-columns: 58px minmax(150px, .7fr) minmax(220px, 1.3fr);
  gap: 28px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.selection-guide__steps span,
.feature-card > span,
.feature-card--image div > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
}
.selection-guide__steps h3,
.feature-card h3,
.material-layer h3 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: 22px;
  line-height: 1.2;
}
.selection-guide__steps p,
.feature-card p,
.material-layer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* About. */
.about-stats { color: #fff; background: #1a1b19; }
.about-stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.about-stats__grid > div {
  min-height: 135px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255,255,255,.14);
}
.about-stats__grid > div:first-child { border-left: 0; }
.about-stats strong {
  display: block;
  font-size: clamp(24px, 2.3vw, 38px);
  line-height: 1.1;
}
.about-stats span {
  margin-top: 8px;
  color: rgba(255,255,255,.68);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.content-split {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(55px, 8vw, 120px);
}
.content-split--reverse .content-split__media { order: 2; }
.content-split__media {
  min-height: 560px;
  overflow: hidden;
  border-radius: 3px 150px 3px 3px;
  background: var(--paper-2);
}
.content-split__media--portrait { border-radius: 180px 3px 3px 3px; }
.content-split__media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}
.content-split__copy p { margin: 22px 0 0; }
.content-split__copy .text-link { margin-top: 28px; }
.feature-grid { display: grid; gap: 22px; }
.feature-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card {
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(21,21,19,.09);
  background: #fff;
}
.feature-card h3 { margin-top: auto; margin-bottom: 12px; }
.feature-card--image {
  padding: 0;
  overflow: hidden;
  border-radius: 3px 70px 3px 3px;
}
.feature-card--image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.feature-card--image div {
  min-height: 210px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.feature-card--image h3 { margin-top: auto; }
.process-story {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(50px, 8vw, 120px);
}
.process-story .section-kicker { color: #e34a50; }
.process-story__timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.process-story__timeline article {
  min-height: 220px;
  padding: 28px;
  border-left: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.process-story__timeline article:nth-child(even) { border-right: 1px solid rgba(255,255,255,.15); }
.process-story__timeline span {
  color: #e34a50;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}
.process-story__timeline h3 {
  margin: 64px 0 9px;
  font-family: "Lora", Georgia, serif;
  font-size: 23px;
}
.process-story__timeline p { margin: 0; color: rgba(255,255,255,.62); font-size: 13px; }

/* Materials. */
.material-layout {
  display: grid;
  grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr);
  gap: clamp(55px, 8vw, 120px);
  align-items: start;
}
.material-layout__intro {
  position: sticky;
  top: calc(var(--header-h) + 42px);
}
.material-swatch {
  height: 130px;
  margin-top: 38px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(21,21,19,.1);
}
.material-swatch span { flex: 1; background: #242522; }
.material-swatch span:nth-child(2) { background: #b58b5d; }
.material-swatch span:nth-child(3) { background: #dfd0af; }
.material-swatch span:nth-child(4) { background: #b9b4a8; }
.material-swatch span:nth-child(5) { background: #f2eee5; }
.material-stack { border-top: 1px solid var(--line); }
.material-layer {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.material-layer__number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
}
.material-layer p { max-width: 670px; margin-top: 9px; }
.check-list { margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li {
  position: relative;
  padding: 17px 0 17px 34px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 650;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

/* Gallery. */
.gallery-toolbar {
  margin-bottom: 38px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}
.gallery-toolbar h2 { font-size: clamp(38px, 4.2vw, 62px); }
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.gallery-filter button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.gallery-filter button.is-active,
.gallery-filter button:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 230px;
  gap: 18px;
}
.project-tile {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 2px 54px 2px 2px;
  background: #d7d2c8;
}
.project-tile--wide { grid-column: span 2; }
.project-tile--tall { grid-row: span 2; }
.project-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-tile::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(0deg, rgba(11,11,10,.72), transparent);
  pointer-events: none;
}
.project-tile:hover img { transform: scale(1.035); }
.project-tile figcaption {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  color: #fff;
}
.project-tile figcaption strong,
.project-tile figcaption span { display: block; }
.project-tile figcaption strong {
  font-family: "Lora", Georgia, serif;
  font-size: 20px;
}
.project-tile figcaption div span {
  margin-top: 3px;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  align-items: stretch;
}
.featured-project__image {
  min-height: 580px;
  overflow: hidden;
  border-radius: 2px 0 0 2px;
}
.featured-project__image img { width: 100%; height: 100%; object-fit: cover; }
.featured-project__copy {
  padding: clamp(38px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #eee9df;
}
.featured-project__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(21,21,19,.15);
}
.featured-project__facts span {
  padding: 0 15px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}
.featured-project__facts span:first-child { padding-left: 0; }
.featured-project__facts strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 17px;
  text-transform: none;
}

/* Contact. */
.contact-hero {
  position: relative;
  padding: clamp(70px, 8vw, 130px) 0;
  color: #fff;
  background: #181917;
}
.contact-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(680px, 50vw);
  height: 90%;
  background: url("assets/images/house-sketch.svg") right bottom / contain no-repeat;
  filter: invert(1);
  opacity: .1;
}
.contact-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: clamp(55px, 9vw, 140px);
  align-items: end;
}
.contact-hero .section-kicker { color: #e34a50; }
.contact-hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(58px, 7vw, 104px);
  line-height: .93;
  letter-spacing: -.055em;
}
.contact-hero__copy > p:not(.section-kicker) {
  max-width: 620px;
  margin-top: 28px;
  color: rgba(255,255,255,.68);
  font-size: 17px;
}
.contact-hero__details { border-top: 1px solid rgba(255,255,255,.2); }
.contact-hero__details > * {
  padding: 20px 0;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.contact-hero__details span,
.contact-card span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,.55);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.contact-hero__details strong { font-size: clamp(17px, 1.7vw, 23px); }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: start;
}
.contact-panel {
  padding: clamp(28px, 4vw, 56px);
  background: #fff;
  box-shadow: 0 20px 60px rgba(20,18,15,.08);
}
.contact-form { margin-top: 34px; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-field { display: block; margin-bottom: 18px; }
.form-field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #fbfaf7;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.form-field input,
.form-field select { height: 52px; padding: 0 15px; }
.form-field textarea { min-height: 145px; padding: 14px 15px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--accent); background: #fff; }
.form-consent {
  margin: 4px 0 24px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 11px;
}
.form-consent input { margin-top: 3px; }
.contact-sidebar { display: grid; gap: 20px; }
.map-mockup {
  min-height: 430px;
  padding: 34px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(18,18,17,.82), rgba(18,18,17,.05)),
    url("assets/images/maja-meza.png") center / cover;
}
.map-mockup .section-kicker { color: #f0555b; }
.map-mockup h3 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: 35px;
}
.map-mockup p { color: rgba(255,255,255,.72); }
.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.contact-card {
  min-height: 180px;
  padding: 24px;
  color: #fff;
  background: #222320;
}
.contact-card strong { display: block; font-size: 17px; }
.contact-card p { color: rgba(255,255,255,.58); font-size: 11px; }
.faq-layout {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(50px, 8vw, 120px);
}
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 24px 46px 24px 0;
  font-family: "Lora", Georgia, serif;
  font-size: 20px;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  transform: translateY(-50%);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
  max-width: 700px;
  margin: -6px 0 24px;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .subpage-hero__grid {
    grid-template-columns: minmax(0, .9fr) minmax(400px, 1.1fr);
    gap: 46px;
  }
  .feature-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-tile--wide { grid-column: span 2; }
}

@media (max-width: 960px) {
  .container--wide { width: min(calc(100% - 40px), 900px); }
  .subpage-hero__grid,
  .content-split,
  .content-split--reverse,
  .selection-guide,
  .material-layout,
  .process-story,
  .featured-project,
  .contact-hero__grid,
  .contact-layout,
  .faq-layout { grid-template-columns: 1fr; }
  .subpage-hero__copy { max-width: 720px; }
  .subpage-hero__media {
    min-height: 470px;
    border-radius: 120px 3px 3px 3px;
  }
  .subpage-hero__media--arched { border-radius: 150px 150px 3px 3px; }
  .section-heading--split { grid-template-columns: 1fr; gap: 16px; }
  .section-heading--split .section-copy { justify-self: start; }
  .about-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-stats__grid > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .about-stats__grid > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.14); }
  .content-split--reverse .content-split__media { order: 0; }
  .content-split__media { min-height: 500px; }
  .material-layout__intro { position: static; }
  .feature-grid--three { grid-template-columns: 1fr; }
  .feature-card--image {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
  }
  .feature-card--image img { height: 100%; aspect-ratio: auto; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-project__image { min-height: 500px; }
  .contact-hero__details { max-width: 720px; }
  .page-cta__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
  .container--wide { width: calc(100% - 28px); }
  .page-section { padding: 66px 0; }
  .subpage-hero { padding: 50px 0 30px; }
  .subpage-hero__title { font-size: clamp(43px, 13vw, 62px); }
  .subpage-hero__lead { margin: 20px 0 28px; font-size: 15px; }
  .subpage-hero__media {
    min-height: 72vw;
    max-height: 460px;
    border-radius: 86px 3px 3px 3px;
  }
  .subpage-hero__media--arched { border-radius: 100px 100px 3px 3px; }
  .subpage-hero__note { width: 78%; padding: 18px 20px; }
  .subpage-hero__note strong { font-size: 37px; }
  .page-cta::after { right: -130px; width: 530px; opacity: .22; }
  .selection-guide__steps article {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }
  .selection-guide__steps article p { grid-column: 2; }
  .about-stats__grid { grid-template-columns: 1fr 1fr; }
  .about-stats__grid > div { min-height: 112px; padding: 20px 14px; }
  .content-split__media {
    min-height: 82vw;
    max-height: 520px;
    border-radius: 80px 3px 3px 3px;
  }
  .feature-grid--four { grid-template-columns: 1fr; }
  .feature-card { min-height: 220px; }
  .feature-card--image { display: block; }
  .feature-card--image img { height: auto; aspect-ratio: 16 / 10; }
  .process-story__timeline { grid-template-columns: 1fr; }
  .process-story__timeline article,
  .process-story__timeline article:nth-child(even) {
    min-height: 180px;
    border-right: 1px solid rgba(255,255,255,.15);
  }
  .process-story__timeline h3 { margin-top: 42px; }
  .material-swatch { height: 92px; }
  .material-layer { grid-template-columns: 46px 1fr; gap: 12px; }
  .gallery-toolbar { align-items: flex-start; flex-direction: column; }
  .gallery-filter { justify-content: flex-start; }
  .project-grid { grid-template-columns: 1fr; grid-auto-rows: 310px; }
  .project-tile--wide,
  .project-tile--tall { grid-column: auto; grid-row: auto; }
  .featured-project__image { min-height: 72vw; }
  .featured-project__facts { grid-template-columns: 1fr; }
  .featured-project__facts span,
  .featured-project__facts span:first-child {
    padding: 12px 0;
    border-bottom: 1px solid rgba(21,21,19,.12);
  }
  .contact-hero { padding: 66px 0; }
  .contact-hero h1 { font-size: clamp(54px, 16vw, 78px); }
  .contact-panel { padding: 24px 18px; }
  .field-grid,
  .contact-card-grid { grid-template-columns: 1fr; }
  .map-mockup { min-height: 350px; padding: 26px; }
  .faq-list summary { font-size: 18px; }
  .home-card { --home-dome-depth: 62px; }
  .home-card__body { padding-top: calc(var(--home-dome-depth) + 15px); }
  .home-card__badge { bottom: 7px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .home-card__image img,
  .home-card:hover .home-card__image img,
  .project-tile img,
  .project-tile:hover img {
    transition: none;
    transform: none;
  }
}

/* =========================================================
   DYNAMIC MĀJAS CATALOGUE, SERIES AND MODEL PAGES
   ========================================================= */

.houses-catalog,
.house-type,
.house-model-page {
  background: #f8f6f1;
}

/* Compact catalogue introduction — intentionally not a large hero. */
.houses-catalog__intro {
  padding: 42px 0 34px;
  border-bottom: 1px solid rgba(21, 21, 19, 0.1);
  background: #fff;
}

.houses-catalog__intro-inner {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(360px, 1.28fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: end;
}

.houses-catalog__intro .section-kicker {
  margin-bottom: 9px;
}

.houses-catalog__intro h1 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.houses-catalog__intro-copy {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
}

.houses-catalog__intro-copy > * {
  margin-top: 0;
}

.houses-catalog__intro-copy > *:last-child {
  margin-bottom: 0;
}

.houses-catalog__content {
  padding: clamp(34px, 5vw, 72px) 0 clamp(70px, 8vw, 118px);
}

.houses-catalog__container {
  width: min(calc(100% - 48px), 1540px);
  margin-inline: auto;
}

.houses-series-list {
  display: grid;
  gap: clamp(24px, 2.6vw, 42px);
}

.houses-series {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(390px, 0.92fr) minmax(460px, 1.08fr);
  overflow: hidden;
  border: 1px solid rgba(21, 21, 19, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 4px 12px rgba(23, 20, 17, 0.04),
    0 20px 48px rgba(23, 20, 17, 0.07);
}

.houses-series--reverse {
  grid-template-columns: minmax(460px, 1.08fr) minmax(390px, 0.92fr);
}

.houses-series--reverse .houses-series__media {
  order: 2;
}

.houses-series--reverse .houses-series__content {
  order: 1;
}

.houses-series__media {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: var(--paper-2);
}

.houses-series__media::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(0deg, rgba(12, 12, 11, 0.34), transparent);
  pointer-events: none;
}

.houses-series__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.65s ease;
}

.houses-series:hover .houses-series__media img {
  transform: scale(1.035);
}

.houses-series__number {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  color: #fff;
  background: rgba(19, 18, 16, 0.38);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.houses-series__content {
  min-width: 0;
  padding: clamp(34px, 4vw, 62px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 42px;
}

.houses-series__eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.houses-series h2 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(34px, 3.1vw, 51px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.houses-series h2 a {
  transition: color 0.2s ease;
}

.houses-series h2 a:hover {
  color: var(--accent);
}

.houses-series__description {
  max-width: 670px;
  margin: 21px 0 0;
  color: var(--ink-soft);
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.72;
}

.houses-series__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.houses-series__options {
  min-width: 0;
}

.houses-series__options-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.houses-series__option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.houses-series__option {
  min-height: 36px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(21, 21, 19, 0.16);
  border-radius: 999px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.houses-series__option:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.houses-series__option--disabled {
  cursor: default;
  opacity: 0.58;
}

.houses-series__option--disabled:hover {
  border-color: rgba(21, 21, 19, 0.16);
  color: var(--ink-soft);
  background: #fff;
}

.houses-series__button {
  flex-shrink: 0;
  min-height: 49px;
  padding: 0 19px 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 19px;
  color: #fff;
  background: var(--ink);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.houses-series__button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.houses-catalog__empty,
.house-models__empty {
  padding: 62px 28px;
  text-align: center;
  border: 1px dashed var(--line);
  background: #fff;
}

.houses-catalog__empty h2,
.house-models__empty h3 {
  margin: 0 0 10px;
  font-family: "Lora", Georgia, serif;
}

.houses-catalog__empty p,
.house-models__empty p {
  margin: 0;
  color: var(--muted);
}

/* House-series page. */
.house-type__intro {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  background: var(--paper);
}

.house-type__intro-media {
  min-height: 610px;
  overflow: hidden;
  background: var(--paper-2);
}

.house-type__intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.house-type__intro-content {
  display: flex;
  align-items: center;
  padding: clamp(46px, 6vw, 92px);
}

.house-type__intro-inner {
  max-width: 650px;
}

.house-type__back {
  display: inline-flex;
  margin-bottom: 31px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.house-type__back:hover {
  color: var(--accent);
}

.house-type__intro h1 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(45px, 5vw, 75px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.house-type__lead {
  margin: 23px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.62;
}

.house-type__description {
  margin-top: 20px;
  color: var(--ink-soft);
}

.house-type__description > *:first-child {
  margin-top: 0;
}

.house-type__description > *:last-child {
  margin-bottom: 0;
}

.house-type__intro .button {
  margin-top: 29px;
}

.house-models {
  padding: clamp(66px, 8vw, 108px) 0;
  background: #fff;
}

.house-models__heading {
  margin-bottom: 42px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 470px);
  gap: 50px;
  align-items: end;
}

.house-models__heading h2 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(36px, 4vw, 57px);
  line-height: 1.04;
}

.house-models__heading > p {
  margin: 0;
  color: var(--ink-soft);
}

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

.house-model-card {
  overflow: hidden;
  border: 1px solid rgba(21, 21, 19, 0.08);
  border-radius: 16px;
  background: var(--paper);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.house-model-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.house-model-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}

.house-model-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.house-model-card:hover .house-model-card__image img {
  transform: scale(1.035);
}

.house-model-card__content {
  padding: 25px;
}

.house-model-card h3 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: 25px;
  line-height: 1.15;
}

.house-model-card h3 a:hover {
  color: var(--accent);
}

.house-model-card p {
  min-height: 52px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.62;
}

.house-model-card__link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.house-model-card__link span:last-child {
  font-size: 15px;
}

/* Individual house-model page. */
.house-model-hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: var(--paper);
}

.house-model-hero__media {
  min-height: 610px;
  overflow: hidden;
  background: var(--paper-2);
}

.house-model-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.house-model-hero__content {
  display: flex;
  align-items: center;
  padding: clamp(46px, 6vw, 92px);
}

.house-model-hero__inner {
  max-width: 650px;
}

.house-model-breadcrumbs {
  margin-bottom: 31px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.house-model-breadcrumbs a:hover {
  color: var(--accent);
}

.house-model-hero h1 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(46px, 5.2vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.048em;
}

.house-model-hero__lead {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.62;
}

.house-model-hero .button {
  margin-top: 30px;
}

.house-model-content {
  padding: clamp(66px, 8vw, 108px) 0;
  background: #fff;
}

.house-model-content__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.house-model-content__main {
  max-width: 800px;
  color: var(--ink-soft);
}

.house-model-content__main h2,
.house-model-content__main h3 {
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  line-height: 1.12;
}

.house-model-content__main h2 {
  margin-top: 0;
  font-size: clamp(34px, 4vw, 54px);
}

.house-model-content__main img {
  margin-block: 30px;
}

.house-model-siblings {
  position: sticky;
  top: calc(var(--header-h) + 30px);
  padding: 27px;
  border: 1px solid rgba(21, 21, 19, 0.09);
  background: var(--paper);
}

.house-model-siblings__label {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.house-model-siblings__list {
  border-top: 1px solid var(--line);
}

.house-model-siblings__list a {
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.house-model-siblings__list a:hover,
.house-model-siblings__list a.is-current {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .houses-series,
  .houses-series--reverse {
    grid-template-columns: minmax(320px, 0.9fr) minmax(400px, 1.1fr);
  }

  .houses-series__content {
    padding: 36px;
  }

  .houses-series__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 860px) {
  .houses-catalog__intro-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .houses-series,
  .houses-series--reverse {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .houses-series--reverse .houses-series__media,
  .houses-series--reverse .houses-series__content {
    order: initial;
  }

  .houses-series__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .houses-series__content {
    padding: 33px;
  }

  .house-type__intro,
  .house-model-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .house-type__intro-media,
  .house-model-hero__media {
    min-height: 0;
    height: min(62vw, 560px);
  }

  .house-type__intro-content,
  .house-model-hero__content {
    padding: 54px var(--container);
  }

  .house-models__heading,
  .house-model-content__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .house-model-siblings {
    position: static;
  }
}

@media (max-width: 680px) {
  .houses-catalog__intro {
    padding: 34px 0 29px;
  }

  .houses-catalog__container {
    width: calc(100% - 28px);
  }

  .houses-catalog__content {
    padding: 26px 0 58px;
  }

  .houses-series-list {
    gap: 21px;
  }

  .houses-series {
    border-radius: 15px;
  }

  .houses-series__media {
    aspect-ratio: 4 / 3;
  }

  .houses-series__number {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }

  .houses-series__content {
    padding: 27px 21px 23px;
    gap: 31px;
  }

  .houses-series h2 {
    font-size: 34px;
  }

  .houses-series__description {
    font-size: 14px;
  }

  .houses-series__button {
    width: 100%;
    justify-content: space-between;
  }

  .house-type__intro-media,
  .house-model-hero__media {
    height: 72vw;
    min-height: 270px;
  }

  .house-type__intro-content,
  .house-model-hero__content {
    padding: 43px 16px 52px;
  }

  .house-type__back,
  .house-model-breadcrumbs {
    margin-bottom: 25px;
  }

  .house-models,
  .house-model-content {
    padding: 60px 0;
  }

  .house-models__grid {
    grid-template-columns: 1fr;
  }

  .house-model-card p {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .houses-series__media img,
  .houses-series:hover .houses-series__media img,
  .house-model-card__image img,
  .house-model-card:hover .house-model-card__image img {
    transition: none;
    transform: none;
  }
}



/* =========================================================
   AUTOMATIC NESTED HEADER NAVIGATION
   ========================================================= */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.primary-menu,
.primary-menu ul {
  list-style: none;
}

.primary-menu > .menu-item {
  position: relative;
}

.menu-link-wrap {
  display: flex;
  align-items: center;
}

.primary-menu > .menu-item > .menu-link-wrap > a {
  padding-inline: 0;
}

.submenu-toggle {
  width: 28px;
  height: 38px;
  margin-left: 4px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.submenu-toggle svg {
  width: 10px;
  height: 7px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 0.2s ease;
}

.menu-item.submenu-open > .menu-link-wrap .submenu-toggle svg {
  transform: rotate(180deg);
}

.primary-menu .sub-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% - 8px);
  left: -24px;
  width: max-content;
  min-width: 260px;
  max-width: 340px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(21, 21, 19, 0.09);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 48px rgba(20, 18, 15, 0.14);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}

.primary-menu .sub-menu .menu-item {
  position: relative;
}

.primary-menu .sub-menu .menu-link-wrap {
  width: 100%;
}

.primary-menu .sub-menu a {
  width: 100%;
  padding: 11px 13px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.025em;
  text-transform: none;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.primary-menu .sub-menu a::after {
  display: none;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu .current-menu-item > .menu-link-wrap > a {
  color: var(--accent);
  background: var(--paper);
}

.primary-menu .sub-menu .submenu-toggle {
  width: 30px;
  height: 36px;
  margin: 0 3px 0 -4px;
  flex: 0 0 auto;
}

.primary-menu .sub-menu .submenu-toggle svg {
  transform: rotate(-90deg);
}

.primary-menu .sub-menu .submenu-open > .menu-link-wrap .submenu-toggle svg {
  transform: rotate(90deg);
}

.primary-menu .sub-menu .sub-menu {
  top: -12px;
  left: calc(100% + 8px);
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu,
.primary-menu li.submenu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}


/* =========================================================
   HOMEPAGE SECTION RHYTHM + LARGER PROCESS SECTION
   ========================================================= */

:root {
  --section-space: clamp(78px, 7vw, 108px);
}

.section,
.section--compact,
.cta-section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

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

.process > .container {
  width: min(calc(100% - 48px), 1440px);
}

.process-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
  gap: clamp(48px, 5vw, 82px);
  align-items: stretch;
}

.process-content {
  min-width: 0;
}

.process-content > .section-kicker {
  margin-bottom: 13px;
}

.process-title {
  max-width: 760px;
  font-size: clamp(42px, 3.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.process-copy {
  max-width: 680px;
  margin-top: 14px;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65;
}

.process-steps {
  margin-top: 50px;
}

.process-step {
  min-width: 0;
  padding-right: clamp(18px, 2vw, 32px);
}

.process-step + .process-step {
  padding-left: clamp(18px, 2vw, 32px);
}

.process-step__top {
  gap: 15px;
}

.process-step__number {
  font-size: 22px;
  line-height: 1;
}

.process-step svg {
  width: 34px;
  height: 34px;
}

.process-step h3 {
  margin: 24px 0 10px;
  font-size: 14px;
  line-height: 1.35;
}

.process-step p {
  max-width: 190px;
  font-size: 12px;
  line-height: 1.65;
}

.process-card {
  min-height: 360px;
  padding: 36px;
}

.process-card h3 {
  max-width: 280px;
  margin-bottom: 26px;
  font-size: clamp(31px, 2.4vw, 39px);
  line-height: 1.06;
}

.process-card a {
  font-size: 11px;
}

.cta-inner {
  min-height: 0;
}

.cta-copy {
  padding-block: 0;
}

.cta-copy h2 {
  margin-top: 0;
}

@media (max-width: 1160px) {
  .process > .container {
    width: min(calc(100% - 40px), 1080px);
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .process-card {
    min-height: 300px;
  }
}

@media (max-width: 960px) {
  .primary-navigation .primary-menu {
    width: min(100%, 620px);
  }

  .primary-menu > .menu-item {
    border-bottom: 1px solid var(--line);
  }

  .primary-menu > .menu-item > .menu-link-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px;
  }

  .primary-menu > .menu-item > .menu-link-wrap > a {
    padding: 18px 2px;
  }

  .submenu-toggle {
    width: 50px;
    height: 100%;
    min-height: 54px;
    margin: 0;
    border-left: 1px solid var(--line);
  }

  .primary-menu .sub-menu {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0 0 10px 18px;
    border: 0;
    border-top: 1px solid rgba(21, 21, 19, 0.07);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
  }

  .primary-menu .menu-item.submenu-open > .sub-menu,
  .primary-menu .current-menu-ancestor > .sub-menu {
    display: block;
  }

  .primary-menu .sub-menu .menu-item {
    border-bottom: 0;
  }

  .primary-menu .sub-menu .menu-link-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .primary-menu .sub-menu a {
    padding: 13px 10px;
    font-size: 13px;
  }

  .primary-menu .sub-menu .submenu-toggle {
    width: 44px;
    min-height: 44px;
    margin: 0;
    border-left: 1px solid rgba(21, 21, 19, 0.08);
  }

  .primary-menu .sub-menu .submenu-toggle svg {
    transform: rotate(0);
  }

  .primary-menu .sub-menu .submenu-open > .menu-link-wrap .submenu-toggle svg {
    transform: rotate(180deg);
  }

  .primary-menu .sub-menu .sub-menu {
    padding-left: 18px;
  }

  .process-steps {
    margin-top: 38px;
  }
}

@media (max-width: 680px) {
  :root {
    --section-space: 64px;
  }

  .process > .container {
    width: calc(100% - 32px);
  }

  .process-title {
    font-size: clamp(37px, 10vw, 48px);
  }

  .process-copy {
    font-size: 15px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .process-step,
  .process-step + .process-step,
  .process-step:nth-child(odd),
  .process-step:nth-child(4),
  .process-step:nth-child(5) {
    min-height: 0;
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:first-child {
    border-top: 1px solid var(--line);
  }

  .process-step:nth-child(5) {
    grid-column: auto;
  }

  .process-step__top {
    gap: 13px;
  }

  .process-step h3 {
    margin-top: 17px;
    font-size: 15px;
  }

  .process-step p {
    max-width: 520px;
    font-size: 13px;
  }

  .process-card {
    min-height: 330px;
    padding: 28px;
  }

  .process-card h3 {
    font-size: 33px;
  }

  .cta-inner {
    min-height: 0;
    padding-top: 0;
    align-items: center;
  }
}
/* =========================================================
   UNIFIED SITE CONTENT WIDTH
   ========================================================= */

:root {
  --content-max: 1540px;
  --content-gutter: 48px;

  --container: min(
    var(--content-max),
    calc(100vw - var(--content-gutter))
  );
}

/*
 * Force all primary site containers to use the same width.
 * This includes the homepage, inner pages, header and footer.
 */
.container,
.container--wide,
.homes-intro .container,
.houses-catalog__container,
.header-inner {
  width: var(--container);
  max-width: none;
  margin-inline: auto;
}

/* Align decorative CTA drawings with the same container. */
.cta-section::after,
.page-cta::after {
  right: max(
    0px,
    calc((100vw - var(--content-max)) / 2 - 60px)
  );
}

@media (max-width: 1160px) {
  :root {
    --content-gutter: 40px;
  }
}

@media (max-width: 680px) {
  :root {
    --content-gutter: 32px;
  }

  .header-inner {
    width: var(--container);
  }
}
/* =========================================================
   FOOTER SCROLL REVEAL
   ========================================================= */

.site-footer.footer-reveal-ready .footer-brand,
.site-footer.footer-reveal-ready .footer-column,
.site-footer.footer-reveal-ready .footer-bottom > * {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(28px);
  transition:
    opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.15s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.site-footer.footer-reveal-ready.is-visible .footer-brand,
.site-footer.footer-reveal-ready.is-visible .footer-column,
.site-footer.footer-reveal-ready.is-visible .footer-bottom > * {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.site-footer.footer-reveal-ready .footer-brand {
  transition-delay: 0s;
}

.site-footer.footer-reveal-ready .footer-main > .footer-column:nth-child(2) {
  transition-delay: 0.14s;
}

.site-footer.footer-reveal-ready .footer-main > .footer-column:nth-child(3) {
  transition-delay: 0.28s;
}

.site-footer.footer-reveal-ready .footer-main > .footer-column:nth-child(4) {
  transition-delay: 0.42s;
}

.site-footer.footer-reveal-ready .footer-bottom > :first-child {
  transition-delay: 0.56s;
}

.site-footer.footer-reveal-ready .footer-bottom > :last-child {
  transition-delay: 0.7s;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer.footer-reveal-ready .footer-brand,
  .site-footer.footer-reveal-ready .footer-column,
  .site-footer.footer-reveal-ready .footer-bottom > * {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}
/* House-card badge now sits above the curved panel. */
.home-card__body {
  position: relative;
  overflow: visible;
}

.home-card__badge {
  position: absolute;
  z-index: 10;
  top: calc(var(--home-dome-depth) * 0.56) !important;
  right: auto !important;
  bottom: auto !important;
  left: clamp(18px, 2vw, 28px);
  transform: translateY(-50%);
}

@media (max-width: 720px) {
  .home-card__badge {
    left: 18px;
  }
}

/* =========================================================
   INDIVIDUAL HOUSE MODEL — GALLERY, PLANS AND DOCUMENTS
   ========================================================= */

.model-page {
  overflow: hidden;
  background: #fff;
}

.model-showcase {
  padding: 28px 0 clamp(62px, 6vw, 92px);
  background: #fff;
}

.model-breadcrumbs {
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
}

.model-breadcrumbs a:hover { color: var(--accent); }

.model-showcase__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr);
  gap: clamp(42px, 5vw, 82px);
  align-items: center;
}

.model-gallery { min-width: 0; }

.model-gallery__main {
  aspect-ratio: 16 / 10.8;
  overflow: hidden;
  background: var(--paper-2);
}

.model-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .22s ease, transform .6s ease;
}

.model-gallery__main img.is-changing {
  opacity: .42;
  transform: scale(1.012);
}

.model-gallery__thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.model-gallery__thumb {
  position: relative;
  aspect-ratio: 1.34;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  background: var(--paper-2);
  cursor: pointer;
}

.model-gallery__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color .2s ease;
}

.model-gallery__thumb.is-active::after,
.model-gallery__thumb:hover::after {
  border-color: var(--accent);
}

.model-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-summary { max-width: 590px; }

.model-summary .section-kicker { margin-bottom: 12px; }

.model-summary h1 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(58px, 6.4vw, 96px);
  line-height: .92;
  letter-spacing: -.055em;
}

.model-summary__lead {
  max-width: 570px;
  margin: 25px 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.72;
}

.model-specs {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.model-spec {
  min-width: 0;
  padding: 20px clamp(13px, 1.6vw, 24px) 22px;
  border-left: 1px solid var(--line);
}

.model-spec:first-child {
  padding-left: 0;
  border-left: 0;
}

.model-spec__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 13px;
}

.model-spec__icon svg,
.model-document-group__icon svg,
.model-plan-card__download svg,
.model-document-group__body a svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.model-spec span,
.model-spec strong { display: block; }

.model-spec span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.35;
}

.model-spec strong {
  margin-top: 8px;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.12;
}

.model-summary__actions,
.model-contact-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.model-summary__actions { margin-top: 34px; }

.model-button--accent {
  border-color: var(--accent);
  background: var(--accent);
}

.model-button--accent:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.model-overview {
  padding: clamp(62px, 7vw, 104px) 0;
  background: #f8f6f1;
}

.model-overview__grid {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
}

.model-overview h2,
.model-section-heading h2,
.model-contact-cta h2 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.model-overview__content {
  max-width: 820px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.8;
}

.model-overview__content > *:first-child { margin-top: 0; }
.model-overview__content > *:last-child { margin-bottom: 0; }
.model-overview__content h2,
.model-overview__content h3 { color: var(--ink); }
.model-overview__content img { margin-block: 28px; }

.model-plans,
.model-documents {
  padding: clamp(68px, 7vw, 108px) 0;
}

.model-plans { background: #f5f1e9; }
.model-documents { background: #fff; }

.model-section-heading {
  margin-bottom: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 50px;
  align-items: end;
}

.model-section-heading > p {
  margin: 0 0 6px;
  color: var(--ink-soft);
}

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

.model-plan-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(21, 21, 19, .12);
  background: rgba(255,255,255,.78);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.model-plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(181, 38, 44, .32);
  box-shadow: 0 18px 42px rgba(30, 25, 19, .09);
}

.model-plan-card__heading {
  padding: 20px 20px 0;
  text-align: center;
}

.model-plan-card__heading span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.model-plan-card__heading h3 {
  margin: 8px 0 0;
  font-family: "Lora", Georgia, serif;
  font-size: 18px;
}

.model-plan-card__preview {
  min-height: 230px;
  padding: 18px;
  display: grid;
  place-items: center;
}

.model-plan-card__preview img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.model-plan-card__preview > svg {
  width: 82%;
  max-width: 230px;
  fill: none;
  stroke: #8f8a82;
  stroke-width: 2;
}

.model-plan-card__download {
  margin-top: auto;
  min-height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(21, 21, 19, .12);
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.model-plan-card__download svg {
  width: 21px;
  height: 21px;
  color: var(--accent);
  transition: transform .2s ease;
}

.model-plan-card__download:hover { color: var(--accent); }
.model-plan-card__download:hover svg { transform: translateY(2px); }

.model-document-list { border-top: 1px solid var(--line); }

.model-document-group {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}

.model-document-group summary {
  min-height: 68px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  background: #f8f6f1;
  cursor: pointer;
  list-style: none;
}

.model-document-group summary::-webkit-details-marker { display: none; }

.model-document-group__icon {
  width: 25px;
  height: 25px;
}

.model-document-group summary strong {
  font-size: 14px;
}

.model-document-group__chevron {
  position: relative;
  width: 14px;
  height: 14px;
}

.model-document-group__chevron::before,
.model-document-group__chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 1px;
  background: currentColor;
  transition: transform .2s ease;
}

.model-document-group__chevron::before {
  left: 0;
  transform: rotate(45deg);
}

.model-document-group__chevron::after {
  right: 0;
  transform: rotate(-45deg);
}

.model-document-group[open] .model-document-group__chevron::before { transform: rotate(-45deg); }
.model-document-group[open] .model-document-group__chevron::after { transform: rotate(45deg); }

.model-document-group__body a {
  min-height: 54px;
  padding: 0 22px 0 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  transition: color .18s ease, background .18s ease;
}

.model-document-group__body a:hover {
  color: var(--accent);
  background: #fbfaf7;
}

.model-document-type {
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
}

.model-document-group__body a svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.model-contact-cta {
  padding: clamp(36px, 5vw, 70px) 0;
  background: #fff;
}

.model-contact-cta__inner {
  position: relative;
  min-height: 260px;
  padding: clamp(36px, 4.5vw, 66px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 50px;
  overflow: hidden;
  background: #f5f1e9;
}

.model-contact-cta__inner > div:not(.model-contact-cta__sketch) {
  position: relative;
  z-index: 2;
}

.model-contact-cta h2 { max-width: 700px; }

.model-contact-cta p:not(.section-kicker) {
  max-width: 580px;
  margin: 16px 0 0;
  color: var(--ink-soft);
}

.model-contact-cta__sketch {
  position: absolute;
  right: -10px;
  bottom: -20px;
  width: 360px;
  height: 210px;
  background: url("assets/images/house-sketch.svg") right bottom / contain no-repeat;
  opacity: .3;
  pointer-events: none;
}

.model-siblings {
  padding: 0 0 48px;
  background: #fff;
}

.model-siblings__inner {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.model-siblings__inner > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.model-siblings__inner > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.model-siblings a {
  min-height: 34px;
  padding: 6px 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.model-siblings a:hover,
.model-siblings a.is-current {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

@media (max-width: 1180px) {
  .model-showcase__grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
    gap: 42px;
  }

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

  .model-contact-cta__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 860px) {
  .model-showcase { padding-top: 20px; }

  .model-showcase__grid,
  .model-overview__grid,
  .model-section-heading {
    grid-template-columns: 1fr;
  }

  .model-summary { max-width: 760px; }
  .model-section-heading { gap: 15px; }
  .model-section-heading > p { max-width: 680px; }

  .model-contact-cta__actions { max-width: 620px; }
  .model-contact-cta__sketch { opacity: .18; }
}

@media (max-width: 680px) {
  .model-showcase { padding: 16px 0 58px; }
  .model-breadcrumbs { margin-bottom: 16px; }
  .model-gallery__main { aspect-ratio: 4 / 3; }
  .model-gallery__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .model-summary h1 { font-size: clamp(52px, 18vw, 78px); }

  .model-specs { margin-top: 28px; }
  .model-spec { padding: 17px 8px 18px; text-align: center; }
  .model-spec:first-child { padding-left: 0; }
  .model-spec__icon { margin-inline: auto; }
  .model-spec span { font-size: 8px; }
  .model-spec strong { font-size: 16px; }

  .model-summary__actions,
  .model-contact-cta__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .model-summary__actions .button,
  .model-contact-cta__actions .button { width: 100%; }

  .model-overview,
  .model-plans,
  .model-documents { padding: 60px 0; }

  .model-plan-grid { grid-template-columns: 1fr; }
  .model-plan-card__preview { min-height: 210px; }

  .model-document-group summary { padding-inline: 16px; }
  .model-document-group__body a {
    padding: 14px 16px;
    grid-template-columns: minmax(0, 1fr) auto 20px;
    gap: 12px;
  }

  .model-contact-cta { padding: 22px 0 44px; }
  .model-contact-cta__inner { padding: 30px 22px 190px; }
  .model-contact-cta__sketch { width: 310px; height: 180px; opacity: .26; }

  .model-siblings__inner { flex-direction: column; }
  .model-siblings__inner > div { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .model-gallery__main img,
  .model-plan-card,
  .model-plan-card__download svg {
    transition: none;
  }
}
