/* Kingdom International Real Estate - landing page
   Theme: light-luxury. Paper body + ink type, navy reserved for
   nav, hero, testimonial, footer. One accent: warm gold.
   Type: DM Serif Display + DM Sans. */

:root {
  /* Brand colors (physical) */
  --navy:        #0A1F3D;
  --navy-2:      #0C2649;
  --paper:       #F3F5F8;        /* cool off-white body */
  --paper-elev:  #FFFFFF;        /* lifted surface (forms, cards) */
  --off-white:   #E9EBEF;        /* text on navy */
  --gold:        #B89B5E;
  --gold-soft:   #C9B07A;
  --teal:        #4FB3AC;
  --leaf:        #3F7D6B;

  /* Semantic tokens - LIGHT context (default body) */
  --bg:           var(--paper);
  --bg-elev:      var(--paper-elev);
  --text:         var(--navy);
  --text-dim:     rgba(10, 31, 61, 0.68);
  --text-mute:    rgba(10, 31, 61, 0.46);
  --line:         rgba(10, 31, 61, 0.10);
  --line-strong:  rgba(10, 31, 61, 0.22);
  --backdrop:     rgba(243, 245, 248, 0.78);

  --radius:    4px;
  --radius-lg: 14px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1280px;
  --gutter:    clamp(20px, 4vw, 56px);
}

/* Dark-context override for navy sections */
.section--dark,
.nav,
.foot {
  --bg:           var(--navy);
  --bg-elev:      var(--navy-2);
  --text:         var(--off-white);
  --text-dim:     rgba(233, 235, 239, 0.66);
  --text-mute:    rgba(233, 235, 239, 0.42);
  --line:         rgba(233, 235, 239, 0.12);
  --line-strong:  rgba(233, 235, 239, 0.22);
  --backdrop:     rgba(10, 31, 61, 0.72);
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Atmosphere - very faint on light body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(79, 179, 172, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(184, 155, 94, 0.05), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--gold); color: var(--navy); }

/* ---------- Typography primitives ---------- */
.display, .display-md {
  font-family: "DM Serif Display", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.display {
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.04;
  padding-bottom: 0.08em;
}
.display em {
  font-style: italic;
  color: var(--gold);
  line-height: 1.1;
}
.section--dark .display em { color: var(--gold-soft); }

.display-md {
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.1;
  padding-bottom: 0.06em;
}
.lede {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 52ch;
  margin: 24px 0 0;
}
.eyebrow {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
  font-weight: 500;
}
.section-head {
  max-width: 760px;
  margin: 0 0 64px;
}
.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-sub {
  margin: 20px 0 0;
  color: var(--text-dim);
  max-width: 56ch;
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 220ms var(--ease), background 220ms var(--ease),
              color 220ms var(--ease), border-color 220ms var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--navy);
  color: var(--off-white);
  border-color: var(--navy);
}
.btn-primary:hover { background: #142E5A; border-color: #142E5A; }
.section--dark .btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.section--dark .btn-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-link {
  background: transparent;
  padding: 0;
  height: auto;
  color: var(--text);
  border: 0;
  position: relative;
}
.btn-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--line-strong);
  transition: background 220ms var(--ease);
}
.btn-link:hover { color: var(--gold); }
.btn-link:hover::after { background: var(--gold); }

.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 32px;
  padding: 12px var(--gutter);
  background: var(--backdrop);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  max-height: 88px;
  overflow: hidden;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  /* Pull left to neutralise the logo PNG's baked-in canvas padding */
  margin-left: -22px;
}
.brand-logo {
  height: 150px;
  width: auto;
  display: block;
  object-fit: contain;
  /* Crop the empty top/bottom canvas padding so the box stays tight */
  margin-block: -42px;
}
.foot-brand { margin-left: -28px; }
.foot-brand .brand-logo { height: 160px; margin-block: -44px; }
.nav-links {
  display: flex;
  gap: 32px;
  justify-content: center;
}
.nav-links a {
  font-size: 15px;
  color: var(--text-dim);
  transition: color 200ms var(--ease);
}
.nav-links a:hover { color: var(--gold); }

.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  padding: 0;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--text);
  outline: none;
  transition: border-color 200ms var(--ease);
}
.nav-burger:hover { border-color: var(--line-strong); }
.nav-burger:focus-visible { border-color: var(--text); }
.nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 240ms var(--ease), opacity 200ms var(--ease);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile panel */
.mobile-panel {
  position: fixed;
  inset: 88px 0 auto 0;
  z-index: 49;
  background: rgba(10, 31, 61, 0.96);
  color: var(--off-white);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(233,235,239,0.12);
  padding: 24px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 320ms var(--ease), opacity 240ms var(--ease);
}
.mobile-panel[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
.mobile-panel a:not(.btn) {
  font-family: "DM Serif Display", serif;
  font-size: 22px;
  color: var(--off-white);
  padding: 6px 0;
  border-bottom: 1px solid rgba(233,235,239,0.12);
}
.mobile-panel .btn { margin-top: 12px; background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ---------- Hero (full-bleed navy panel) ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 8vh, 96px) var(--gutter) clamp(72px, 10vh, 120px);
  min-height: calc(100dvh - 88px);
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-copy { max-width: 640px; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}
.hero-asset {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.55);
}
.hero-asset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.hero-asset:hover img { transform: scale(1.03); }
.hero-asset-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

/* ---------- Stats (light) ---------- */
.stats {
  padding: 56px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num {
  font-family: "DM Serif Display", serif;
  font-size: clamp(32px, 3.4vw, 44px);
  color: var(--text);
  line-height: 1;
}
.stat-lbl {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- Portfolio bento ---------- */
.portfolio {
  padding: clamp(96px, 12vh, 160px) var(--gutter) clamp(72px, 10vh, 120px);
  max-width: var(--container);
  margin: 0 auto;
}
/* Featured residences - editorial cards (2x2 desktop) */
.residences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px) clamp(24px, 3vw, 48px);
}
.residence {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.residence-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper-elev);
  box-shadow: 0 20px 60px -24px rgba(10, 31, 61, 0.18);
}
.residence-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.residence:hover .residence-photo img { transform: scale(1.03); }

/* Empty / missing photo fallback - applied by onerror */
.residence-photo--empty {
  background:
    repeating-linear-gradient(135deg,
      rgba(10,31,61,0.02) 0 14px,
      rgba(10,31,61,0.05) 14px 15px),
    var(--paper-elev);
  border: 1px solid var(--line);
}
.residence-photo--empty img { display: none; }
.residence-photo--empty::after {
  content: "Photograph forthcoming";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.residence-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.residence-city {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.residence-name {
  font-family: "DM Serif Display", serif;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.005em;
}
.residence-blurb {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
  max-width: 36ch;
}
.residence-specs {
  list-style: none;
  margin: 4px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.residence-specs li {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 16px;
  border-left: 1px solid var(--line);
  line-height: 1.4;
}
.residence-specs li:first-child {
  padding-left: 0;
  border-left: 0;
}
.residence-link {
  margin-top: 4px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
  transition: color 220ms var(--ease);
}
.residence-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--line-strong);
  transition: background 220ms var(--ease);
}
.residence-link:hover { color: var(--gold); }
.residence-link:hover::after { background: var(--gold); }

.portfolio-foot {
  margin-top: 72px;
  display: flex;
  justify-content: center;
}

/* ---------- Services ---------- */
.services {
  padding: clamp(96px, 12vh, 160px) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.service {
  padding: 48px 32px 48px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service:last-child { border-right: 0; padding-right: 0; }
.service + .service { padding-left: 32px; }
.service-num {
  font-family: "DM Serif Display", serif;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.service-title {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: 28px;
  margin: 0;
  line-height: 1.1;
  color: var(--text);
}
.service p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
  max-width: 38ch;
}

/* ---------- About / Philosophy ---------- */
.philosophy {
  padding: clamp(96px, 12vh, 160px) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.philosophy-asset {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px -20px rgba(10,31,61,0.20);
}
.philosophy-asset img { width: 100%; height: 100%; object-fit: cover; }
.philosophy-copy p {
  color: var(--text-dim);
  margin: 20px 0 0;
  max-width: 56ch;
  line-height: 1.7;
}

/* ---------- Partners ---------- */
.partners {
  padding: clamp(96px, 12vh, 160px) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.partner-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.partner-grid li {
  font-family: "DM Serif Display", serif;
  font-size: 18px;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  text-align: center;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  transition: background 280ms var(--ease);
}
.partner-grid li:hover { background: rgba(184, 155, 94, 0.06); }
.partner-grid img {
  max-height: 56px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0.55) contrast(1.1);
  opacity: 0.78;
  transition: filter 320ms var(--ease), opacity 320ms var(--ease), transform 320ms var(--ease);
}
.partner-grid li:hover img {
  filter: grayscale(0) brightness(1) contrast(1);
  opacity: 1;
}

/* ---------- Testimonial (dark feature) ---------- */
.testimonial {
  position: relative;
  padding: clamp(96px, 14vh, 180px) var(--gutter);
  text-align: center;
}
.testimonial figure {
  margin: 0;
  max-width: 980px;
  margin-inline: auto;
}
.testimonial blockquote {
  font-family: "DM Serif Display", serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.25;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.005em;
}
.testimonial figcaption {
  margin-top: 32px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.testimonial figcaption .sep { color: var(--gold); margin: 0 10px; }

/* ---------- Contact (light) ---------- */
.contact {
  padding: clamp(96px, 12vh, 160px) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-intro .section-sub { margin-top: 24px; }
.contact-meta {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  border-top: 1px solid var(--line);
}
.contact-meta li {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-dim);
}
.contact-meta li span:first-child {
  font-family: "DM Serif Display", serif;
  font-size: 18px;
  color: var(--text);
}

.contact-form {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 20px 60px -20px rgba(10,31,61,0.10);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  font: 400 15px/1.5 "DM Sans", sans-serif;
  padding: 10px 0;
  outline: none;
  transition: border-color 220ms var(--ease);
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-mute); }
.field input:focus,
.field textarea:focus { border-color: var(--gold); }
.form-foot {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-mute);
  text-align: center;
}

/* ---------- Footer (dark) ---------- */
.foot {
  padding: 80px var(--gutter) 32px;
}
.foot-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.foot-brand p {
  margin: 20px 0 0;
  color: var(--text-dim);
  font-size: 14px;
  max-width: 36ch;
  line-height: 1.6;
}
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
  font-weight: 500;
}
.foot-col a, .foot-col span {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 200ms var(--ease);
  line-height: 1.55;
}
.foot-col a:hover { color: var(--gold); }
.foot-col .muted {
  color: var(--text-mute);
  font-size: 12px;
  display: inline;
  margin-left: 6px;
}
.foot-col--offices { gap: 18px; }
.foot-office {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}
.foot-office-city {
  font-family: "DM Serif Display", serif;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 2px;
}
.foot-office a { font-size: 13px; }
.foot-legal {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-mute);
}
.foot-legal span { color: var(--text-mute); }
.foot-base {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-mute);
}

/* ---------- Legal pages (privacy / terms) ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(64px, 9vh, 120px) var(--gutter) clamp(72px, 10vh, 120px);
}
.legal-head { margin-bottom: 48px; }
.legal-head .display-md { margin-top: 4px; }
.legal-date {
  margin: 16px 0 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.legal-body section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.legal-body section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-body h2 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.legal-body p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}
.legal-body ul {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}
.legal-body li { margin-bottom: 6px; }
.legal-body a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.legal-body a:hover { color: var(--gold); border-color: var(--gold); }
.legal-body strong { color: var(--text); font-weight: 500; }

/* ---------- Reveal motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .nav { grid-template-columns: 1fr auto; }

  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-asset { aspect-ratio: 5 / 4; max-width: 640px; }

  .residences { grid-template-columns: 1fr; gap: 56px; }
  .residence-photo { aspect-ratio: 4 / 3; max-width: 640px; }

  .services-row { grid-template-columns: 1fr; }
  .service {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 36px 0;
  }
  .service + .service { padding-left: 0; }
  .service:last-child { border-bottom: 0; }

  .philosophy-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }

  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .stat:nth-child(-n+2) { border-top: 0; padding-top: 0; }

  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid li { font-size: 16px; padding: 28px 12px; min-height: 80px; }

  .residence-photo { aspect-ratio: 4 / 5; }

  .contact-form { padding: 28px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; gap: 12px; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-cta .btn-primary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-asset img, .residence-photo img { transition: none; }
}
