/* Ahmadiy Property — landing page
   Palette from public/rang kodlari.png. The brandbook typefaces (Escrow, PP Mori)
   are licensed fonts; Playfair Display and Manrope stand in for them. To switch,
   add @font-face rules and change --font-display / --font-body. */

:root {
  --green: #0F2923;
  --burgundy: #4A171D;
  --cream: #F4F0E7;
  --ink: #171918;
  --gold: #CCAA66;

  --sand: #EAE4D6;
  --gold-deep: #7A5F26;
  --line-dark: rgba(23, 25, 24, .14);
  --line-light: rgba(244, 240, 231, .18);
  --muted-dark: rgba(23, 25, 24, .68);
  --muted-light: rgba(244, 240, 231, .72);

  --font-display: "Playfair Display", "Escrow", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "PP Mori", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 10vw, 136px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1, h2, h3, .facts dt, .direction-num, .steps li::before { font-variant-numeric: lining-nums; }

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--burgundy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #D9BB7E; }
.btn-ghost { border-color: var(--line-light); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-small { min-height: 42px; padding: 0 20px; font-size: 15px; white-space: nowrap; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--cream);
  transition: background-color .25s, box-shadow .25s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: var(--green);
  box-shadow: 0 1px 0 var(--line-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-symbol { width: auto; height: 38px; }
.brand-wordmark { width: auto; height: 34px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a,
.header-phone {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted-light);
  transition: color .2s;
}
.nav-links a:hover,
.header-phone:hover { color: var(--gold); }
.header-phone { color: var(--cream); font-weight: 600; white-space: nowrap; }

/* Language switch: one pill holding the three languages */
.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
}
.lang-switch li { flex: 1; }
.lang-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted-light);
  transition: background-color .2s, color .2s;
}
.lang-switch a:hover { color: var(--cream); }
.lang-switch a[aria-current] { background: var(--gold); color: var(--ink); }

/* Russian labels are the longest: tighten the header so everything fits on one line */
:lang(ru) .site-nav,
:lang(ru) .nav-links { gap: 20px; }

/* Not enough room for the phone number next to the menu on mid-size screens */
@media (min-width: 1101px) and (max-width: 1359px) {
  .site-nav { gap: 22px; }
  .nav-links { gap: 22px; }
  .site-nav .header-phone { display: none; }
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 24px; height: 2px;
  margin-inline: auto;
  background: currentColor;
  transition: transform .2s, background-color .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--cream);
}
.hero-inner {
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(40px, 5vw, 64px);
}
.hero-main {
  position: relative;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.hero-main > :not(.hero-symbol) { position: relative; }
.hero-symbol {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(36vw, 470px);
}
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  margin-top: 20px;
  font-size: clamp(42px, 8.2vw, 112px);
  line-height: .98;
}
.hero h1 em {
  display: block;
  font-weight: 400;
  color: var(--gold);
}
:lang(ru) .hero h1,
:lang(en) .hero h1 { font-size: clamp(38px, 7.2vw, 100px); }
.hero-lead {
  max-width: 30em;
  margin-top: 28px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted-light);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
}
.facts dt {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.15;
}
.facts dd {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted-light);
}

/* Sections */
.section { padding-block: var(--section-y); }
.section-cream { background: var(--cream); }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: var(--cream); }
.section-green { background: var(--green); color: var(--cream); }
.section-ink .eyebrow,
.section-green .eyebrow { color: var(--gold); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4.4vw, 56px);
}
.section-lead {
  max-width: 36em;
  margin-top: 20px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--muted-dark);
}
.section-green .section-lead { color: var(--muted-light); }

/* Directions */
.directions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.direction {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color .25s, color .25s;
}
.direction-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--gold-deep);
}
.direction h3 {
  min-height: 2.3em;
  margin-top: 40px;
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1.15;
}
.direction > p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted-dark);
}
.checks {
  margin-top: 24px;
  margin-bottom: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 15px;
}
.checks li {
  position: relative;
  padding-left: 18px;
}
.checks li + li { margin-top: 6px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 8px; height: 1px;
  background: currentColor;
}
.direction-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--burgundy);
}
.direction-link svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s;
}
@media (hover: hover) {
  .direction:hover { background: var(--green); color: var(--cream); }
  .direction:hover > p { color: var(--muted-light); }
  .direction:hover .direction-num,
  .direction:hover .direction-link { color: var(--gold); }
  .direction:hover .checks { border-color: var(--line-light); }
  .direction:hover .direction-link svg { transform: translateX(4px); }
}

/* Quote */
.quote {
  padding-block: clamp(72px, 9vw, 128px);
  background: var(--burgundy);
  color: var(--cream);
}
.quote figure { max-width: 980px; }
.quote blockquote { position: relative; }
.quote blockquote::before {
  content: "“";
  display: block;
  height: .5em;
  font-family: var(--font-display);
  font-size: clamp(88px, 11vw, 150px);
  line-height: .9;
  color: var(--gold);
}
.quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}
.quote figcaption::before {
  content: "";
  width: 40px; height: 1px;
  background: currentColor;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 500;
  line-height: 1;
  color: var(--burgundy);
}
.steps h3 {
  margin-top: 20px;
  font-size: clamp(22px, 1.9vw, 26px);
}
.steps p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--muted-dark);
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-photo {
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  aspect-ratio: 4 / 5;
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}
.about-lead {
  max-width: 34em;
  margin-top: 24px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--muted-light);
}
.about-lead + .about-lead {
  margin-top: 16px;
  color: var(--cream);
}
.aspects-title {
  margin-top: clamp(40px, 5vw, 64px);
  font-size: clamp(22px, 1.9vw, 26px);
  color: var(--gold);
}
.aspects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  margin-top: 24px;
}
.aspects > div {
  padding-block: 18px;
  border-top: 1px solid var(--line-light);
}
.aspects dt {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.aspects dd {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted-light);
}

/* Partners */
.partners { padding-block: clamp(56px, 7vw, 96px); }
.partners-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px 40px;
  align-items: baseline;
  padding-block: 28px;
  border-top: 1px solid var(--line-dark);
}
.partners-row:last-child { border-bottom: 1px solid var(--line-dark); }
.section .partners-label {
  margin: 0;
  font: 600 13px/1.4 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.names {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
}

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-list { margin-top: 40px; }
.contact-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding-block: 16px;
  border-top: 1px solid var(--line-light);
}
.contact-list span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.9;
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold); }

.lead-form {
  padding: clamp(24px, 3vw, 40px);
  background: var(--cream);
  color: var(--ink);
  border-radius: 4px;
}
.field + .field { margin-top: 18px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
.field input,
.field select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(23, 25, 24, .28);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: 500 16px/1 var(--font-body);
}
.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 0;
  border-color: var(--green);
}
.field input[aria-invalid="true"] { border-color: #A3261F; }
.lead-form .btn { margin-top: 24px; }
.lead-form .btn:focus-visible { outline-color: var(--green); }
.lead-form .btn[disabled] { opacity: .6; cursor: default; }
.form-status {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
}
.form-status:empty { display: none; }
.form-status.is-error { color: #A3261F; }
.form-status.is-ok { color: var(--green); }
.form-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-dark);
}

/* Footer */
.site-footer {
  padding-block: 56px 40px;
  background: var(--ink);
  color: var(--muted-light);
  font-size: 15px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 32px 48px;
  align-items: center;
}
.footer-logo { width: 132px; }
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 28px;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-copy {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  font-size: 14px;
}

/* Scroll reveal (only when JS is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .directions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .direction h3 { min-height: 0; }
  .hero-symbol { width: min(34vw, 380px); }
}

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 12px var(--gutter) 28px;
    background: var(--green);
    box-shadow: 0 1px 0 var(--line-light);
  }
  .site-header.is-open .site-nav { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-light);
    font-size: 18px;
    color: var(--cream);
  }
  .lang-switch { font-size: 15px; }
  .lang-switch a { height: 44px; }
}

@media (max-width: 900px) {

  .hero-symbol {
    right: -18vw;
    width: 86vw;
    opacity: .1;
  }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about,
  .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 420px; }
  .partners-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .brand-symbol { height: 32px; }
  .brand-wordmark { height: 29px; }
  .hero-actions .btn { width: 100%; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .facts > div {
    padding-block: 16px;
    border-bottom: 1px solid var(--line-light);
  }
  .facts dt { font-size: 22px; }
  .facts dd { margin-top: 4px; }
  .directions,
  .steps,
  .aspects { grid-template-columns: minmax(0, 1fr); }
  .direction { padding: 28px 22px 24px; }
  .direction h3 { min-height: 0; margin-top: 24px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .site-footer ul { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Listing and project pages ---------- */
.section-ink .section-lead { color: var(--muted-light); }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}
.section-head-row > div { max-width: 760px; }
.section-head-row .direction-link { margin: 0; white-space: nowrap; }

.page-hero {
  padding-top: calc(var(--header-h) + clamp(28px, 4vw, 48px));
  padding-bottom: clamp(40px, 6vw, 72px);
  background: var(--green);
  color: var(--cream);
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 {
  margin-top: 20px;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 14px;
  color: var(--muted-light);
}
.breadcrumb li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--cream); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

/* Filters */
.section.listing { padding-top: clamp(32px, 4vw, 56px); }
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-dark);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(23, 25, 24, .28);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: 600 14px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip:focus-visible { outline-color: var(--green); }
.chip[aria-pressed="true"],
.chip[aria-current] {
  border-color: var(--green);
  background: var(--green);
  color: var(--cream);
}
.sort {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}
.sort select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(23, 25, 24, .28);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: 500 14px/1 var(--font-body);
}
.catalog-empty { padding-block: 48px; color: var(--muted-dark); }

/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: #fff;
}
.project-card-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.project-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover .project-card-media img { transform: scale(1.03); }
.project-card-media .badge { position: absolute; left: 16px; top: 16px; }
.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}
.project-card-meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.project-card h3 { margin-top: 10px; font-size: 28px; }
.project-card h3 a { text-decoration: none; }
.project-card-address,
.project-card-summary { font-size: 15px; color: var(--muted-dark); }
.project-card-address { margin-top: 6px; }
.project-card-summary { margin-top: 14px; }
.project-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-block: 16px 20px;
  font-size: 13px;
  font-weight: 600;
}
.project-card-facts li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sand);
}
.project-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}
.project-card-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: lining-nums;
}
.project-card-area { font-size: 14px; color: var(--muted-dark); }
.project-card-foot .direction-link { margin: 0 0 0 auto; }

/* A lone project gets a wide card instead of one third of the row */
.project-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.is-single .project-card { flex-direction: row; }
.is-single .project-card-media { flex: 0 0 48%; aspect-ratio: auto; min-height: 340px; }
.is-single .project-card-body { padding: clamp(24px, 3vw, 44px); }
.is-single .project-card h3 { font-size: clamp(30px, 3vw, 42px); }

/* Call-to-action band */
.band {
  padding-block: clamp(48px, 6vw, 80px);
  background: var(--burgundy);
  color: var(--cream);
}
.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}
.band h2 { font-size: clamp(28px, 3.4vw, 44px); }
.band p { margin-top: 10px; color: var(--muted-light); }

/* Project page */
.project-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(28px, 4vw, 48px);
}
.project-hero .badge { margin-bottom: 20px; }
.project-hero h1 { margin-top: 12px; }
.tagline {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 34px);
  font-style: italic;
  line-height: 1.2;
  color: var(--gold);
  text-wrap: balance;
}
.project-hero-image {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 999px 999px 0 0;
}
.facts-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
}

.note {
  max-width: 70ch;
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-dark);
}
.section-green .note,
.section-ink .note { color: var(--muted-light); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: #fff;
  cursor: zoom-in;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .is-plan img { object-fit: contain; }
.gallery p { margin-top: 8px; font-size: 14px; color: var(--muted-dark); }

.spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
}
.spec > div { padding-block: 18px; border-top: 1px solid var(--line-light); }
.spec dt {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}
.spec dd {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-variant-numeric: lining-nums;
}

.levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.level {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: #fff;
}
.level h3 { font-size: 24px; }
.level-price { margin-top: 16px; }
.level-price strong {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  color: var(--burgundy);
}
.level-price span,
.level-sub { font-size: 14px; color: var(--muted-dark); }
.level-sub { margin-top: 4px; }
.level dl { margin-top: 20px; border-top: 1px solid var(--line-dark); }
.level dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 15px;
}
.level dt { color: var(--muted-dark); }
.level dd { font-weight: 600; text-align: right; }
.level-uses { margin-block: 16px 24px; font-size: 15px; color: var(--muted-dark); }
.level .direction-link { margin-top: auto; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats > div {
  padding: 24px;
  border: 1px solid var(--line-light);
  border-radius: 4px;
}
.stats dt {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  font-variant-numeric: lining-nums;
  line-height: 1.1;
  color: var(--gold);
}
.stats dd { margin-top: 10px; font-size: 14px; color: var(--muted-light); }
.stats dd strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
}
.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(40px, 5vw, 64px);
}
.cases h3,
.pay-title { font-size: 24px; color: var(--gold); }
.cases .checks {
  margin-bottom: 0;
  border-color: var(--line-light);
  font-size: 16px;
}
.cases .checks li + li { margin-top: 12px; }
.pay-title { margin-block: clamp(40px, 5vw, 64px) 20px; }

.location,
.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.location .section-head,
.faq .section-head { margin-bottom: 0; }
.map-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.map-links .direction-link { margin: 0; }
.distances div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
  border-top: 1px solid var(--line-dark);
}
.distances div:last-child { border-bottom: 1px solid var(--line-dark); }
.distances dd { font-weight: 700; white-space: nowrap; }

.formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.formats li { padding-top: 24px; border-top: 1px solid var(--ink); }
.formats h3 { margin-top: 12px; font-size: 26px; }
.formats h3 + p { margin-top: 10px; font-size: 16px; color: var(--muted-dark); }

.faq-list details { border-top: 1px solid var(--line-dark); }
.faq-list details:last-child { border-bottom: 1px solid var(--line-dark); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font: 400 24px/1 var(--font-body);
  color: var(--burgundy);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list summary:focus-visible { outline-color: var(--green); }
.faq-list p { padding: 0 40px 24px 0; color: var(--muted-dark); }

.disclaimer {
  max-width: none;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}

.lightbox {
  max-width: min(96vw, 1400px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
}
.lightbox::backdrop { background: rgba(23, 25, 24, .92); }
.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 84vh;
  margin-inline: auto;
  background: #fff;
}
.lightbox figcaption {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  color: var(--cream);
}
.lightbox-close {
  position: fixed;
  top: 16px; right: 20px;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .project-grid,
  .stats,
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .project-hero-grid,
  .location,
  .faq,
  .levels,
  .formats,
  .cases { grid-template-columns: minmax(0, 1fr); }
  .project-hero-image { max-width: 460px; }
  .facts-4,
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .is-single .project-card { flex-direction: column; }
  .is-single .project-card-media { flex: none; min-height: 0; aspect-ratio: 3 / 2; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .project-grid,
  .stats,
  .stats-2,
  .spec,
  .facts-4 { grid-template-columns: minmax(0, 1fr); }
  .gallery { gap: 12px; }
  .sort { width: 100%; margin-left: 0; }
  .sort select { flex: 1; }
  .level { padding: 22px; }
  .faq-list p { padding-right: 0; }
}

[data-contact="phone"] { white-space: nowrap; }
