/* ═══════════════════════════════════════════════════════════════
   KINGDOM HOMES — Luxury Real-Estate Landing Page
   Design system: charcoal / ivory / champagne-gold, Cormorant Garamond
   + Manrope. Everything below-the-fold reveals on scroll.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #0f0f10;
  --ink-2: #16161a;
  --ink-3: #1d1d21;
  --ivory: #f6f4ef;
  --ivory-2: #efede6;
  --stone: #a9a397;
  --stone-2: #8b857a;
  --muted-dark: #9a968c;   /* body text on dark */
  --muted-light: #5c5950;  /* body text on light */
  --gold: #c8a96a;
  --gold-strong: #d4b878;
  --gold-deep: #a8894f;
  --hairline: rgba(200, 169, 106, 0.28);
  --hairline-dark: rgba(15, 15, 16, 0.14);
  --paper-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 78px;
  --container: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--ivory);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.08; }
h1 { font-size: clamp(3rem, 8vw, 6.5rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: 0.01em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25; }

/* the second line of every big heading picks up the champagne accent */
h2 span { color: var(--gold); }

/* ── Utilities ─────────────────────────────────────────────── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(84px, 11vw, 150px); }
.section-dark { background: var(--ink); }
.section-light { background: var(--ivory); color: var(--ink); }
.section-light h2 span { color: var(--gold-deep); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); opacity: 0.7; }
.eyebrow-dark { color: var(--gold-deep); }
.eyebrow-dark::before { background: var(--gold-deep); }

.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head h2 { margin-top: 18px; }
.section-sub { color: var(--muted-dark); margin-top: 18px; max-width: 54ch; font-size: 1.02rem; }
.section-light .section-sub { color: var(--muted-light); }

.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted-light); margin-top: 22px; max-width: 56ch; }

/* Editable-content marker (dashed underline) */
.edit { border-bottom: 1px dashed rgba(200, 169, 106, 0.55); padding-bottom: 1px; }
.section-light .edit { border-bottom-color: rgba(168, 137, 79, 0.5); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 15px 34px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  border: 1px solid transparent; transition: all 0.45s var(--ease); overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn span { position: relative; z-index: 1; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-strong); transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(200, 169, 106, 0.5); }
.btn-ghost { border-color: rgba(246, 244, 239, 0.4); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-wide { width: 100%; }
.btn:active { transform: translateY(0); }

/* Text link with animated underline */
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); padding-bottom: 3px; position: relative; white-space: nowrap;
}
.text-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0.35); transform-origin: left; opacity: 0.45;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.text-link:hover::after { transform: scaleX(1); opacity: 1; }

/* ── Scroll progress ───────────────────────────────────────── */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1001; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-strong)); }

/* ── Header / nav ──────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.site-header::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px;
  background: rgba(246, 244, 239, 0.12);
}
.site-header.is-scrolled { background: rgba(13, 13, 14, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.is-scrolled::after { opacity: 0.6; }
.site-header.nav-hidden { transform: translateY(-100%); }

.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); height: var(--nav-h); padding-inline: var(--pad); max-width: 1560px; margin-inline: auto; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ivory); }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--hairline); color: var(--gold); transition: all 0.5s var(--ease);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand:hover .brand-mark { background: rgba(200, 169, 106, 0.12); transform: translateY(-1px); }
.brand-word { font-family: var(--font-serif); font-size: 1.45rem; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.brand-word em { font-style: normal; color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); margin-left: auto; }
.nav-links a {
  position: relative; font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(246, 244, 239, 0.78); padding: 6px 2px;
  transition: color 0.35s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ivory); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

.nav-cta { padding: 12px 26px; margin-left: 6px; }

.nav-toggle { display: none; width: 46px; height: 46px; margin-left: auto; position: relative; z-index: 1002; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ivory); transition: all 0.4s var(--ease); }
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { bottom: 19px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { bottom: 22.5px; transform: rotate(-45deg); }

/* Mobile menu — full-screen, editorial */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: var(--ink-2);
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
  gap: 28px; padding: calc(var(--nav-h) + 22px) 8vw 40px;
  /* Safe centring: auto margins centre the list when it fits, and collapse to
     zero when it does not — so a tall menu starts below the header and scrolls
     instead of sliding up underneath the brand. */
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; width: 100%; margin-top: auto; }
.mobile-menu-foot { margin-bottom: auto; }

/* While the menu is open the header stays solid, so the brand and the close
   button always sit on their own bar above anything that scrolls. */
body.nav-open .site-header, body.nav-open .site-header.nav-hidden {
  background: rgba(13, 13, 14, 0.97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: none;
}
.mobile-menu a:not(.btn) {
  font-family: var(--font-serif); font-size: clamp(2rem, 8vw, 3rem);
  padding: 10px 0; color: var(--ivory); border-bottom: 1px solid rgba(246, 244, 239, 0.08);
  width: 100%; opacity: 0; transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), color 0.3s;
}
.mobile-menu.is-open a:not(.btn) { opacity: 1; transform: none; }
.mobile-menu a:not(.btn):hover { color: var(--gold); }
.mobile-menu .btn { margin-top: 10px; opacity: 0; transform: translateY(18px); transition: opacity 0.55s var(--ease) 0.3s, transform 0.55s var(--ease) 0.3s; }
.mobile-menu.is-open .btn { opacity: 1; transform: none; }
.mobile-menu-foot { font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--stone-2); }

/* ── Hero ──────────────────────────────────────────────────── */
/* NOTE: the hero is bottom-anchored with `margin-top: auto` rather than
   `align-items: flex-end` / `justify-content: flex-end`. End-alignment makes
   overflow spill *upwards* behind the fixed header on short viewports, where
   the auto margin simply collapses and the content clears the nav instead. */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media { will-change: transform; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,15,16,0.55) 0%, rgba(15,15,16,0.15) 34%, rgba(15,15,16,0.62) 74%, rgba(15,15,16,0.96) 100%),
    radial-gradient(90% 60% at 20% 80%, rgba(15,15,16,0.5), transparent 70%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: 1560px; margin-top: auto; margin-inline: auto;
  padding: calc(var(--nav-h) + clamp(20px, 5vh, 62px)) var(--pad) clamp(90px, 14vh, 140px);
}
.hero-eyebrow { margin-bottom: 22px; }
/* Width *and* height aware: a pure vw scale makes the stacked headline taller
   than the fold on wide-but-short screens, which either hides the CTAs or
   (before the auto-margin above) pushed the eyebrow under the header. */
.hero-title { max-width: 12ch; font-size: clamp(2.4rem, min(8vw, 9.2vh), 6.5rem); }
.hero-title span { display: inline-block; }
.hero-sub { margin-top: 26px; color: rgba(246, 244, 239, 0.82); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.scroll-cue {
  position: absolute; z-index: 2; right: clamp(24px, 4vw, 56px); bottom: 44px;
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(246, 244, 239, 0.66);
  writing-mode: vertical-rl; transition: color 0.3s;
}
.scroll-cue:hover { color: var(--gold); }
.scroll-cue-line { width: 1px; height: 56px; background: rgba(246, 244, 239, 0.35); position: relative; overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* ── About ─────────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center;
}
.about-media { position: relative; padding-bottom: 64px; }
.about-frame { margin: 0; box-shadow: var(--paper-shadow); }
.about-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-frame-sm {
  position: absolute; right: -6%; bottom: 0; width: 52%; margin: 0;
  border: 8px solid var(--ivory); box-shadow: var(--paper-shadow);
}
.about-frame-sm img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.about-copy h2 { margin-top: 18px; }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 28px;
  margin-top: 48px; padding-top: 42px; border-top: 1px solid var(--hairline-dark);
}
.stat-num { display: block; font-family: var(--font-serif); font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1; color: var(--ink); }
.stat-num span { color: var(--gold-deep); }
.stat-label { display: block; margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-light); }

/* ── Projects ──────────────────────────────────────────────── */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 34px); }
.project-card { background: var(--ink-2); border: 1px solid rgba(246, 244, 239, 0.06); display: flex; flex-direction: column; transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.project-card:hover { border-color: rgba(200, 169, 106, 0.3); transform: translateY(-6px); box-shadow: 0 34px 70px -30px rgba(0, 0, 0, 0.7); }

.project-media { position: relative; display: block; overflow: hidden; }
.project-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,15,16,0.72)); opacity: 0; transition: opacity 0.6s var(--ease); }
.project-media img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; transition: transform 1.4s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.06); }
.project-card:hover .project-media::after { opacity: 1; }

.project-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.project-meta { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.project-body h3 { font-size: 1.75rem; margin-top: 10px; }
.project-desc { color: var(--muted-dark); font-size: 0.95rem; margin-top: 12px; flex: 1; }
.project-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(246, 244, 239, 0.08); }
.status { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }

/* ── Featured project ──────────────────────────────────────── */
.featured { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr); min-height: 86vh; }
.featured-media { position: relative; overflow: hidden; }
.featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 8s var(--ease); }
.featured-media:hover img { transform: scale(1.05); }
.featured-panel {
  background: var(--ink-2); display: flex; flex-direction: column; justify-content: center;
  gap: 22px; padding: clamp(48px, 6vw, 96px) clamp(28px, 5vw, 88px);
}
.featured-panel h2 { font-size: clamp(2.2rem, 3.4vw, 3.2rem); }
.featured-lede { color: var(--muted-dark); font-size: 1.05rem; max-width: 38ch; }
.spec-list { border-top: 1px solid rgba(246, 244, 239, 0.1); }
.spec-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 13px 0; border-bottom: 1px solid rgba(246, 244, 239, 0.1); }
.spec-list span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone-2); }
.spec-list strong { font-weight: 600; font-size: 0.98rem; text-align: right; }
.featured-panel .btn { align-self: flex-start; }

/* ── Amenities ─────────────────────────────────────────────── */
.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.amenity { position: relative; overflow: hidden; margin: 0; }
.amenity img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; transition: transform 1.6s var(--ease); }
.amenity:hover img { transform: scale(1.07); }
.amenity::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 46%, rgba(15,15,16,0.88)); }
.amenity figcaption {
  position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 20px;
  font-family: var(--font-serif); font-size: 1.45rem; color: var(--ivory);
  display: flex; align-items: center; gap: 12px;
  transform: translateY(6px); transition: transform 0.6s var(--ease);
}
.amenity figcaption::before { content: ""; width: 22px; height: 1px; background: var(--gold); flex: none; }
.amenity:hover figcaption { transform: translateY(0); }

.amenity-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vw, 44px); }
.amenity-chips li {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone); border: 1px solid rgba(246, 244, 239, 0.14);
  padding: 11px 20px; transition: all 0.4s var(--ease);
}
.amenity-chips li:hover { color: var(--gold); border-color: rgba(200, 169, 106, 0.4); }

/* ── Architecture ──────────────────────────────────────────── */
.arch-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.arch-copy { position: sticky; top: calc(var(--nav-h) + 24px); }
.arch-copy h2 { margin-top: 18px; }
.arch-points { margin-top: 40px; }
.arch-points li { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--hairline-dark); }
.arch-points li span { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--gold-deep); padding-top: 6px; }
.arch-points h3 { font-size: 1.15rem; }
.arch-points p { color: var(--muted-light); font-size: 0.92rem; margin-top: 3px; }

.arch-media { position: relative; padding-top: 56px; }
.arch-frame { margin: 0; box-shadow: var(--paper-shadow); }
.arch-frame img { width: 100%; aspect-ratio: 3.4 / 4; object-fit: cover; object-position: center 62%; }
.arch-frame-sm {
  position: absolute; left: -8%; bottom: -40px; width: 50%;
  border: 8px solid var(--ivory); box-shadow: var(--paper-shadow); margin: 0;
}
.arch-frame-sm img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ── Location ──────────────────────────────────────────────── */
.location-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.location-copy h2 { margin-top: 18px; }
.location-copy .section-sub { margin-top: 20px; }
.loc-list { margin-top: 38px; border-top: 1px solid rgba(246, 244, 239, 0.1); }
.loc-list li { display: flex; gap: 26px; padding: 16px 0; border-bottom: 1px solid rgba(246, 244, 239, 0.1); align-items: baseline; }
.loc-time { flex: none; width: 88px; font-family: var(--font-serif); font-size: 1.7rem; color: var(--gold); }
.loc-list h3 { font-size: 1.1rem; }
.loc-list p { color: var(--muted-dark); font-size: 0.88rem; margin-top: 2px; }
.loc-note { margin-top: 18px; font-size: 11.5px; color: var(--stone-2); letter-spacing: 0.04em; }
.location-copy .btn { margin-top: 30px; }

.location-map { position: relative; overflow: hidden; min-height: 460px; }
.location-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.85) brightness(0.55) contrast(1.05); transition: filter 0.8s var(--ease); }
.location-map:hover img { filter: grayscale(0.35) brightness(0.7) contrast(1.02); }
.location-map::after { content: ""; position: absolute; inset: 0; background: rgba(15, 15, 16, 0.38); pointer-events: none; }

.map-pin {
  position: absolute; z-index: 2; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivory); background: rgba(13, 13, 14, 0.72); border: 1px solid var(--hairline);
  padding: 8px 14px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap;
}
.map-pin span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); position: relative; flex: none; }
.map-pin span::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; animation: ping 2.6s ease-out infinite; }
.map-pin-sm { font-size: 9px; padding: 6px 11px; color: var(--stone); }
.map-pin-sm span::after { animation-delay: 1.2s; }
@keyframes ping { 0% { opacity: 0.9; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.9); } }

/* ── Gallery ───────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 14px; }
.g-item { position: relative; overflow: hidden; padding: 0; display: block; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.g-item:hover img { transform: scale(1.06); }
.g-item::after { content: ""; position: absolute; inset: 0; background: rgba(15, 15, 16, 0.42); opacity: 0; transition: opacity 0.5s; }
.g-item:hover::after { opacity: 1; }
.g-cap {
  position: absolute; z-index: 2; left: 16px; bottom: 14px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ivory); opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.g-item:hover .g-cap { opacity: 1; transform: none; }
.g-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.g-w2 { grid-column: span 2; }
.g-w3 { grid-column: span 3; }
.g-h2 { grid-row: span 2; }

/* ── Why us ────────────────────────────────────────────────── */
.why .section-head { margin-bottom: 24px; }
.why-list { border-top: 1px solid var(--hairline-dark); }
.why-row {
  display: grid; grid-template-columns: 90px 300px 1fr; gap: clamp(18px, 3vw, 44px);
  align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--hairline-dark);
  transition: padding-left 0.5s var(--ease);
}
.why-row:hover { padding-left: 14px; }
.why-num { font-family: var(--font-serif); font-size: 1.9rem; color: var(--gold-deep); font-style: italic; }
.why-row h3 { font-size: 1.45rem; }
.why-row p { color: var(--muted-light); font-size: 0.96rem; max-width: 52ch; }

/* ── Testimonials ──────────────────────────────────────────── */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.quote-card {
  background: var(--ink-2); border: 1px solid rgba(246, 244, 239, 0.06);
  padding: 36px 32px; display: flex; flex-direction: column; gap: 28px;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.quote-card:hover { border-color: rgba(200, 169, 106, 0.28); transform: translateY(-5px); }
.quote-card p { font-family: var(--font-serif); font-size: 1.32rem; line-height: 1.5; flex: 1; }
.quote-card footer { border-top: 1px solid rgba(246, 244, 239, 0.08); padding-top: 20px; }
.quote-card cite { font-style: normal; display: flex; flex-direction: column; gap: 3px; }
.quote-card strong { font-size: 0.95rem; letter-spacing: 0.04em; }
.quote-card span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone-2); }

/* ── CTA banner ────────────────────────────────────────────── */
.cta { position: relative; min-height: 78vh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.cta-media, .cta-media img { position: absolute; inset: 0; width: 100%; object-fit: cover; }
.cta-media img { height: 130%; top: -15%; }
.cta-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,16,0.62), rgba(15,15,16,0.86)); }
.cta-inner { position: relative; z-index: 2; padding: 96px var(--pad); max-width: 820px; }
.cta-inner h2 { font-size: clamp(2.8rem, 6vw, 4.6rem); margin-top: 18px; }
.cta-inner > p { color: rgba(246, 244, 239, 0.8); margin-top: 18px; font-size: 1.08rem; }
.cta .hero-actions { justify-content: center; margin-top: 38px; }

/* ── Contact / enquiry ─────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(44px, 6vw, 96px); align-items: start; }
.contact-copy h2 { margin-top: 18px; }
.contact-rows { margin-top: 44px; border-top: 1px solid rgba(246, 244, 239, 0.1); }
.contact-rows li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(246, 244, 239, 0.1); align-items: flex-start; }
.contact-rows .ico { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--hairline); color: var(--gold); }
.contact-rows .ico svg { width: 17px; height: 17px; }
.contact-rows strong { display: block; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone-2); margin-bottom: 3px; }
.contact-rows a:hover { color: var(--gold); }

.enquiry-form { background: var(--ink-2); border: 1px solid rgba(246, 244, 239, 0.08); padding: clamp(28px, 4vw, 46px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label, .field-label {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--stone); margin-bottom: 9px;
}
.field input, .field select, .field textarea {
  width: 100%; background: rgba(246, 244, 239, 0.04); color: var(--ivory);
  border: 1px solid rgba(246, 244, 239, 0.14); padding: 14px 16px;
  font: inherit; font-size: 0.95rem; transition: border-color 0.3s, background 0.3s;
  border-radius: 0; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9a397' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field select option { background: var(--ink-2); color: var(--ivory); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(200, 169, 106, 0.06);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(169, 163, 151, 0.6); }
.field .err { display: none; color: #d98b7f; font-size: 11.5px; margin-top: 6px; letter-spacing: 0.04em; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b96a5d; }
.field.has-error .err { display: block; }
.field textarea { resize: vertical; min-height: 108px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-block; padding: 10px 18px; border: 1px solid rgba(246, 244, 239, 0.16);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--stone); transition: all 0.35s var(--ease);
}
.pill input:checked + span { border-color: var(--gold); color: var(--gold); background: rgba(200, 169, 106, 0.08); }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.enquiry-form .btn { margin-top: 6px; }
.form-note { margin-top: 16px; font-size: 11.5px; color: var(--stone-2); letter-spacing: 0.03em; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: #0a0a0b; border-top: 1px solid rgba(246, 244, 239, 0.07); padding-top: clamp(56px, 8vw, 90px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); padding-bottom: 64px; }
.footer-brand p { color: var(--stone-2); font-size: 0.94rem; margin-top: 20px; max-width: 34ch; }
.site-footer h3 { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--stone); margin-bottom: 20px; }
/* NOTE: the generic link stack below must not reach the social icon row —
   it sets display/padding that would break the icon centring. Hence
   `div:not(.socials) > a` rather than a bare `div > a`. */
.site-footer nav a, .site-footer div:not(.socials) > a, .site-footer div > span {
  display: block; padding: 6px 0; color: rgba(246, 244, 239, 0.72);
  font-size: 0.94rem; transition: color 0.3s;
}
.site-footer a:hover { color: var(--gold); }
.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.site-footer .socials a {
  width: 42px; height: 42px; padding: 0; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid rgba(246, 244, 239, 0.14); color: var(--stone);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}
.site-footer .socials a svg { display: block; width: 18px; height: 18px; }
.site-footer .socials a:hover, .site-footer .socials a:focus-visible {
  border-color: var(--gold); color: var(--gold); transform: translateY(-3px);
}
.site-footer .socials a:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(246, 244, 239, 0.07); padding: 24px 0;
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--stone-2);
}
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--gold); }

/* ── Floating + sticky elements ────────────────────────────── */
.wa-float {
  position: fixed; z-index: 990; right: 22px; bottom: 22px; width: 54px; height: 54px;
  display: grid; place-items: center; border-radius: 50%;
  background: #1f2c25; color: #d9e8dd; border: 1px solid rgba(200, 169, 106, 0.35);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s var(--ease), background 0.4s;
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: #26362d; }
.sticky-cta {
  position: fixed; z-index: 989; left: 0; right: 0; bottom: 0;
  background: var(--gold); color: var(--ink); text-align: center;
  padding: 15px; font-size: 12px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
  transform: translateY(100%); transition: transform 0.5s var(--ease);
}
.sticky-cta.is-visible { transform: none; }

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 1100; background: rgba(8, 8, 9, 0.96);
  display: flex; align-items: center; justify-content: center; padding: 56px 20px;
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1180px, 92vw); }
.lightbox img { max-width: 100%; max-height: 84vh; object-fit: contain; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9); }
.lb-close { position: absolute; top: 18px; right: 24px; font-size: 30px; color: var(--stone); transition: color 0.3s, transform 0.3s; }
.lb-close:hover { color: var(--gold); transform: rotate(90deg); }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--stone); padding: 18px; transition: color 0.3s;
}
.lb-prev:hover, .lb-next:hover { color: var(--gold); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: 0.3em; color: var(--stone-2); }

/* ── Reveal animation ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════
   SUBPAGES — page hero, breadcrumbs, prose, spec tables
   (shared by project pages, about, legal, 404)
   ═══════════════════════════════════════════════════════════ */

/* Page hero (interior subpages) */
.page-hero {
  position: relative; min-height: 62svh; display: flex; flex-direction: column;
  padding-bottom: clamp(44px, 7vh, 76px); overflow: hidden;
}
.page-hero .hero-media img { object-position: center 55%; }
.page-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,15,16,0.62) 0%, rgba(15,15,16,0.28) 40%, rgba(15,15,16,0.88) 100%);
}
.page-hero-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--container); margin-top: auto; margin-inline: auto;
  padding: calc(var(--nav-h) + clamp(26px, 5vh, 56px)) var(--pad) 0;
}
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); max-width: 14ch; }
.page-hero .page-lede { margin-top: 20px; color: rgba(246, 244, 239, 0.82); font-size: clamp(1rem, 1.3vw, 1.12rem); max-width: 52ch; }
.page-hero .hero-actions { margin-top: 34px; }

/* Breadcrumb above the h1 */
.crumbs { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(246, 244, 239, 0.6); }
.crumbs a { color: rgba(246, 244, 239, 0.78); transition: color 0.3s; }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { opacity: 0.45; }
.crumbs [aria-current] { color: var(--gold); }

/* Sub-nav (jump links within a page) */
.subnav { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 22px 0; border-bottom: 1px solid rgba(246, 244, 239, 0.1); }
.subnav a { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); transition: color 0.3s; }
.subnav a:hover { color: var(--gold); }

/* Editorial prose blocks */
.prose { max-width: 62ch; }
.prose p { color: var(--muted-dark); margin-top: 18px; font-size: 1.02rem; }
.prose p:first-of-type { margin-top: 26px; }
.prose strong { color: var(--ivory); font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 84px); align-items: center; }
.split-media { margin: 0; box-shadow: var(--paper-shadow); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Offset image pair (echoes .about-frame) */
.media-pair { position: relative; padding-bottom: 56px; }
.media-pair .split-media img { aspect-ratio: 4 / 4.7; }
.media-pair-sm {
  position: absolute; right: -6%; bottom: 0; width: 52%; margin: 0;
  border: 8px solid var(--ink); box-shadow: var(--paper-shadow);
}
.media-pair-sm img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Spec table — dense fact rows */
.spec-table { border-top: 1px solid var(--hairline); }
.spec-table li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 15px 0; border-bottom: 1px solid rgba(246, 244, 239, 0.12); }
.spec-table span { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone-2); padding-top: 3px; }
.spec-table strong { font-weight: 600; font-size: 1rem; text-align: right; }

/* Numbered overview list (echoes .arch-points) */
.points-list { border-top: 1px solid var(--hairline); }
.points-list li { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(246, 244, 239, 0.1); }
.points-list li > span { flex: none; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--gold); padding-top: 6px; }
.points-list h3 { font-size: 1.15rem; }
.points-list p { color: var(--muted-dark); font-size: 0.92rem; margin-top: 3px; }

/* Config cards on project pages */
.config-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.config-card { background: var(--ink-2); border: 1px solid rgba(246, 244, 239, 0.07); padding: 30px 28px; transition: border-color 0.5s var(--ease), transform 0.5s var(--ease); }
.config-card:hover { border-color: rgba(200, 169, 106, 0.32); transform: translateY(-5px); }
.config-card .cfg-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.config-card h3 { font-size: 1.5rem; margin-top: 10px; }
.config-card p { color: var(--muted-dark); font-size: 0.92rem; margin-top: 10px; }

/* About page — values & philosophy */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 72px; margin-top: 24px; }
.principle .num {
  font-family: var(--font-serif); font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(200, 169, 106, 0.55); display: block;
}
.principle h3 { font-size: 1.4rem; margin-top: 16px; }
.principle p { color: var(--muted-dark); font-size: 0.95rem; margin-top: 10px; max-width: 46ch; }
.philosophy-wrap { max-width: 980px; text-align: center; }
.pull-quote {
  font-family: var(--font-serif); font-weight: 500; font-style: italic;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.42; letter-spacing: 0.01em;
  color: var(--ivory); margin-top: 26px;
}
.quote-src { margin-top: 26px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--stone-2); }

/* Legal pages */
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 48px; }
.legal-body h2:first-of-type { margin-top: 36px; }
.legal-body p { color: var(--muted-dark); margin-top: 14px; font-size: 0.98rem; }
.legal-body ul { list-style: disc; padding-left: 22px; margin-top: 12px; color: var(--muted-dark); font-size: 0.98rem; }
.legal-body li { margin-top: 8px; }
.legal-updated { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone-2); margin-top: 30px; }

/* Compact hero for legal/utility pages */
.page-hero--compact { min-height: 38svh; padding-top: 110px; }
.page-hero--compact h1 { font-size: clamp(2rem, 4vw, 3.2rem); }

/* Screen-reader-only helper */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 404 */
.error-page { min-height: 100svh; display: flex; align-items: center; text-align: center; }
.error-page .code { font-family: var(--font-serif); font-size: clamp(7rem, 22vw, 15rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--hairline); }
.error-page .code em { font-style: normal; color: var(--gold); -webkit-text-stroke: 0; }
.error-page p { color: var(--muted-dark); margin-top: 18px; }
.error-page .hero-actions { justify-content: center; margin-top: 36px; }

/* Subpage responsive tweaks */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .config-grid { grid-template-columns: 1fr; }
  .media-pair-sm { right: 0; }
  .page-hero { min-height: 52svh; }
  .principles { grid-template-columns: 1fr; gap: 40px; }
  .status-band { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page-hero h1 { max-width: 100%; }
  .spec-table li { flex-direction: column; gap: 2px; }
  .spec-table strong { text-align: left; }
  .media-pair { padding-bottom: 40px; }
  .media-pair-sm { width: 56%; border-width: 6px; }
}

/* ── Reveal (subpages: show above-the-fold content immediately) ── */
.no-io .reveal { opacity: 1; transform: none; }

/* ── Skip link ─────────────────────────────────────────────── */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 1200;
  background: var(--gold); color: var(--ink); padding: 12px 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  transition: top 0.3s;
}
.skip-link:focus { top: 16px; }

/* ── Mega menu (Projects, desktop) ─────────────────────────── */
.nav-item.has-mega { position: relative; }
.mega-trigger .caret { display: inline-block; font-size: 8px; margin-left: 5px; transform: translateY(-1px); transition: transform 0.35s var(--ease); }
.has-mega.is-open .mega-trigger .caret, .has-mega:focus-within .mega-trigger .caret { transform: rotate(180deg); }
.mega {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 14px);
  width: min(880px, calc(100vw - 48px));
  background: rgba(13, 13, 14, 0.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(246, 244, 239, 0.1); border-top: 1px solid rgba(200, 169, 106, 0.4);
  padding: 18px; box-shadow: 0 44px 90px -30px rgba(0, 0, 0, 0.8);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
}
.has-mega.is-open .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 4px); }
.mega-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mega-card { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3.3; }
.mega-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 1.4s var(--ease), filter 0.45s var(--ease); filter: saturate(0.9) brightness(0.85); }
.mega-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(13, 13, 14, 0.88)); }
/* the soft veil that settles over the cards which are NOT under the pointer (see the group
   block below) — a tint, not a blackout: the photograph must still read through it */
.mega-card::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(9, 9, 10, 0.28); opacity: 0; transition: opacity 0.45s var(--ease); }
.mega-card:hover img { transform: scale(1.1) translateY(-2%); filter: saturate(1) brightness(0.95); }
.mega-body { position: absolute; z-index: 2; inset: auto 0 0; padding: 14px 15px; display: flex; flex-direction: column; gap: 3px; transform: translateY(4px); transition: transform 0.5s var(--ease), opacity 0.45s var(--ease); }
.mega-card:hover .mega-body { transform: none; }

/* Group focus: the moment Projects opens, every card sits behind a soft veil with a
   blurred, gently muted photograph — visible, never blacked out — then the single card
   under the pointer resolves to full clarity. The menu reads as one choice at a time
   instead of four competing photographs. */
@media (hover: hover) {
  .has-mega.is-open .mega-card img, .has-mega:focus-within .mega-card img {
    transform: scale(1.06);   /* a little bleed so the blur has no soft rim at the edges */
    filter: saturate(0.62) brightness(0.72) blur(3px);
    /* veiling is a step, not the 1.4s cinematic pan — that stays for the card you point at */
    transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
  }
  .has-mega.is-open .mega-card::before, .has-mega:focus-within .mega-card::before { opacity: 1; }
  .has-mega.is-open .mega-card .mega-body, .has-mega:focus-within .mega-card .mega-body { opacity: 0.85; }

  /* pointed at (or tabbed to) → veil lifts, blur clears, colour and lift return */
  .has-mega.is-open .mega-card:hover img, .has-mega.is-open .mega-card:focus-visible img,
  .has-mega:focus-within .mega-card:hover img, .has-mega:focus-within .mega-card:focus-visible img {
    transform: scale(1.1) translateY(-2%);
    filter: saturate(1) brightness(0.95) blur(0);
    transition: transform 1.4s var(--ease), filter 0.45s var(--ease);
  }
  .has-mega.is-open .mega-card:hover::before, .has-mega.is-open .mega-card:focus-visible::before,
  .has-mega:focus-within .mega-card:hover::before, .has-mega:focus-within .mega-card:focus-visible::before { opacity: 0; }
  .has-mega.is-open .mega-card:hover .mega-body, .has-mega.is-open .mega-card:focus-visible .mega-body,
  .has-mega:focus-within .mega-card:hover .mega-body, .has-mega:focus-within .mega-card:focus-visible .mega-body { opacity: 1; }
}

.mega-body strong { font-family: var(--font-serif); font-weight: 500; font-size: 1.08rem; color: var(--ivory); letter-spacing: 0.02em; }
.mega-body em { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.mega-card--all { background: linear-gradient(150deg, var(--gold), var(--gold-deep)); display: grid; place-items: center; transition: filter 0.4s; }
.mega-card--all::after { display: none; }
.mega-card--all:hover { filter: brightness(1.06); }
.mega-all-inner { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.3; color: var(--ink); text-align: center; }
.mega-strip {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 12px; padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 30px); overflow: hidden;
  background: #17120e url("../images/towerA.jpeg") center / cover no-repeat;
}
.mega-strip-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 13, 14, 0.88) 20%, rgba(13, 13, 14, 0.35)); }
.mega-strip strong { position: relative; z-index: 2; font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.25; color: var(--ivory); }
.mega-strip-cta {
  position: relative; z-index: 2; flex: none; padding: 11px 24px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ivory); border: 1px solid rgba(246, 244, 239, 0.55);
  transition: all 0.4s var(--ease);
}
.mega-strip:hover .mega-strip-cta { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ── Project tiles — VVIP-style image-first cards ──────────── */
.project-grid { grid-template-columns: repeat(2, 1fr); }
/* Four towers lay out as a clean 2 x 2 — no full-width breaker row. */
.project-grid .project-card { background: transparent; border: 0; }
.project-grid .project-card:hover { transform: none; border-color: transparent; box-shadow: none; }
.project-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3.9; background: var(--ink-2); }

.project-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02); filter: saturate(0.9);
  transition: transform 2.4s var(--ease), filter 0.5s var(--ease);
}
/* Hover = slow cinematic pan, not a plain zoom */
.project-tile:hover img, .project-tile:focus-visible img { transform: scale(1.09) translateX(-1.6%); filter: saturate(1) brightness(1) blur(0); }

/* The same treatment the Projects menu gives its cards: on a pointer device the tile
   photograph rests softly veiled — blurred and muted, never blacked out — and resolves
   to full clarity under the pointer or keyboard focus. Deliberately scoped to hover
   devices above the stacked-card breakpoint, because touch screens and the ≤900px
   layout have no hover state that could ever clear it. */
@media (hover: hover) and (min-width: 901px) {
  /* scale(1.04) is bleed, not zoom: a blur samples outside the box, so the inset
     photograph has to overhang the clip by more than its radius on every side */
  .project-tile img { transform: scale(1.04); filter: saturate(0.62) brightness(0.72) blur(3px); }
  .project-tile:hover img, .project-tile:focus-visible img { transform: scale(1.09) translateX(-1.6%); filter: saturate(1) brightness(1) blur(0); }
}
.project-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15, 15, 16, 0.1) 38%, rgba(15, 15, 16, 0.85)); transition: opacity 1s var(--ease); }
.status-chip {
  position: absolute; z-index: 3; top: 18px; right: 18px;
  padding: 8px 16px; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); background: rgba(13, 13, 14, 0.55); border: 1px solid rgba(200, 169, 106, 0.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.project-overlay { position: absolute; z-index: 2; inset: auto 0 0; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.project-mark {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(200, 169, 106, 0.6); background: rgba(13, 13, 14, 0.35);
  font-family: var(--font-serif); font-size: 1.35rem; color: var(--gold);
  transition: transform 0.6s var(--ease), background 0.6s;
}
.project-tile:hover .project-mark { background: rgba(200, 169, 106, 0.16); transform: translateY(-3px); }
.project-name { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--ivory); line-height: 1.1; }
.project-tag { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(246, 244, 239, 0.75); }
.project-more {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  width: 100%; max-height: 0; opacity: 0; transform: translateY(12px); overflow: hidden;
  transition: max-height 0.7s var(--ease), opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.project-tile:hover .project-more, .project-tile:focus-visible .project-more { max-height: 150px; opacity: 1; transform: none; }
.project-desc { color: rgba(246, 244, 239, 0.85); font-size: 0.95rem; max-width: 52ch; }

/* ── Gallery: project filters + video tiles ────────────────── */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 26px; }
.gf-btn {
  padding: 11px 20px; border: 1px solid var(--hairline-dark); background: transparent;
  color: var(--muted-light); font: inherit; font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer;
  transition: all 0.35s var(--ease);
}
.gf-btn:hover { color: var(--ink); border-color: var(--gold-deep); }
.gf-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.gf-btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.gallery-grid.has-filter .g-item { grid-column: auto; grid-row: auto; }
.g-item.is-hidden { display: none; }
.g-item--video .g-play {
  position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(246, 244, 239, 0.65); background: rgba(13, 13, 14, 0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: all 0.45s var(--ease);
}
.g-item--video .g-play::before { content: ""; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--ivory); margin-left: 4px; transition: border-color 0.3s; }
.g-item--video:hover .g-play { background: var(--gold); border-color: var(--gold); transform: translate(-50%, -50%) scale(1.08); }
.g-item--video:hover .g-play::before { border-left-color: var(--ink); }
#lightboxVideo { display: none; max-width: min(1100px, 92vw); max-height: 76vh; background: #000; }
.lightbox.is-video #lightboxVideo { display: block; }
.lightbox.is-video figure img { display: none; }

/* ── Blog cards (expandable editorial articles) ────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 34px); align-items: start; }
.blog-card { background: var(--ink-2); border: 1px solid rgba(246, 244, 239, 0.06); transition: transform 0.55s var(--ease), border-color 0.5s var(--ease), box-shadow 0.55s var(--ease); }
.blog-card:hover, .blog-card[open] { border-color: rgba(200, 169, 106, 0.36); }
/* Hover reacts on the WHOLE card — a lift + shadow. The photograph only breathes
   inside its own frame, because .blog-media clips it (see display:block below). */
.blog-card:hover { position: relative; z-index: 3; transform: translateY(-8px); box-shadow: 0 42px 80px -46px rgba(0, 0, 0, 0.85); }
.blog-card summary { list-style: none; cursor: pointer; display: block; }
.blog-card summary::-webkit-details-marker { display: none; }
.blog-card summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
/* display:block matters here — overflow:hidden is ignored on an inline box, which is
   what allowed the scaled image to paint outside the card on hover. */
.blog-media { display: block; overflow: hidden; }
.blog-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 2.4s var(--ease); }
.blog-card summary:hover .blog-media img { transform: scale(1.04); }
.blog-body-wrap { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 12px; }
.blog-meta { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.blog-body-wrap h2 { font-size: 1.55rem; line-height: 1.25; }
.blog-teaser { color: var(--muted-dark); font-size: 0.95rem; }
.blog-body-wrap .text-link { align-self: flex-start; margin-top: 6px; }
.blog-article { border-top: 1px solid rgba(246, 244, 239, 0.08); margin-top: 8px; padding-top: 18px; display: flex; flex-direction: column; gap: 14px; color: var(--muted-dark); font-size: 0.95rem; line-height: 1.75; }
.blog-article strong { color: var(--ivory); font-weight: 600; }
.blog-card[open] .text-link::after { transform: scaleX(1); opacity: 1; }

/* ── About — tan-coffee editorial concept ──────────────────── */
.section-light.about { background: linear-gradient(180deg, #f7f2e9 0%, #f0e7d8 100%); }
.about h2 { color: #43301f; }
.about .eyebrow-dark { color: #a98868; }
.about .section-sub { color: #7d6c58; }
.about .stat-num { color: #43301f; }
.about .stat-num span { color: #a98868; }
.about .stat-label { color: #8a7a66; }
.about-frame { box-shadow: 0 34px 70px -38px rgba(74, 54, 36, 0.5); }
.about-quote {
  margin: 36px 0 0; padding: 6px 0 6px 26px; border-left: 2px solid var(--gold-deep);
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5; color: #4a3624;
}
.about-quote cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--font-sans); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: #8a7a66; }

/* ═══════════════════════════════════════════════════════════
   KINGDOM — tower status chips, tower cards, status band
   ═══════════════════════════════════════════════════════════ */

/* Status chip variants on the project tiles */
.status-chip--soon { color: rgba(246, 244, 239, 0.92); border-color: rgba(246, 244, 239, 0.4); }
.status-chip--delivered { color: #a7d8b6; border-color: rgba(167, 216, 182, 0.45); }

/* Developer credit under the home "about" stats */
.about-by {
  margin-top: 30px; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: #8a7a66;
}
.about-by strong { color: #43301f; }

/* Tower overview cards (about page) */
.tower-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.tower-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 30px 26px 32px; background: var(--ink-2);
  border: 1px solid rgba(246, 244, 239, 0.07);
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.tower-card:hover { border-color: rgba(200, 169, 106, 0.34); transform: translateY(-6px); }
.tower-badge {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(200, 169, 106, 0.6); color: var(--gold);
  font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 6px;
  transition: background 0.5s var(--ease), transform 0.5s var(--ease);
}
.tower-card:hover .tower-badge { background: rgba(200, 169, 106, 0.16); transform: translateY(-2px); }
.tower-card h3 { font-size: 1.32rem; }
.tower-card p { color: var(--muted-dark); font-size: 0.92rem; flex: 1; }
.tower-status { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.tower-status--soon { color: var(--stone-2); }
.tower-status--done { color: #a7d8b6; }

/* Status band on tower pages */
.status-band {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.status-band h2 { font-family: var(--font-serif); font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--gold); margin-top: 14px; }
.status-band .prose p:first-of-type { margin-top: 0; }

/* Journal — tower-wise group headings */
.blog-group-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 46px); }
.blog-group-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 16px; }
.blog-group-head .section-sub { margin-top: 14px; }

/* ═══════════════════════════════════════════════════════════
   CURSOR ACCENT — trailing ring + dot, magnetic buttons
   ═══════════════════════════════════════════════════════════ */
.cursor-ring, .cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; opacity: 0;
  transform: translate3d(-120px, -120px, 0);
  transition: opacity 0.4s linear, width 0.45s var(--ease), height 0.45s var(--ease),
              margin 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease);
  will-change: transform;
}
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--gold); }
.cursor-ring {
  width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%;
  border: 1px solid rgba(200, 169, 106, 0.5); display: grid; place-items: center;
  transition: opacity 0.4s linear, width 0.45s var(--ease), height 0.45s var(--ease),
              margin 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease),
              border-radius 0.45s var(--ease);
}
.cursor-ring span {
  font-size: 0; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); opacity: 0; white-space: nowrap;
  transition: opacity 0.3s linear, font-size 0.35s var(--ease);
}
body.has-cursor .cursor-ring, body.has-cursor .cursor-dot { opacity: 1; }

/* Over anything clickable — the ring opens up */
body.cursor-hover .cursor-ring {
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  background: rgba(200, 169, 106, 0.12); border-color: var(--gold);
}
body.cursor-hover .cursor-dot { width: 0; height: 0; margin: 0; }

/* Over a gallery tile — the ring becomes a "View" chip */
body.cursor-view .cursor-ring {
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  background: var(--gold); border-color: var(--gold);
}
body.cursor-view .cursor-ring span { font-size: 9px; opacity: 1; }
body.cursor-view .cursor-dot { width: 0; height: 0; margin: 0; }

/* Over a text field — the ring becomes a caret */
body.cursor-text .cursor-ring {
  width: 2px; height: 26px; margin: -13px 0 0 -1px; border-radius: 0;
  background: rgba(200, 169, 106, 0.75); border-color: transparent;
}
body.cursor-text .cursor-ring span { opacity: 0; }
body.cursor-text .cursor-dot { opacity: 0; }

/* Pressed */
body.cursor-down .cursor-ring { border-color: var(--gold); background: rgba(200, 169, 106, 0.22); }

/* Magnetic buttons lean toward the pointer */
.magnetic {
  transition: transform 0.22s var(--ease), background 0.45s var(--ease), color 0.45s var(--ease),
              border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

@media (hover: none), (pointer: coarse) {
  .cursor-ring, .cursor-dot { display: none; }
}

/* ── Comparison table (projects page) ──────────────────────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
.cmp-table th, .cmp-table td { padding: 20px 22px; border-bottom: 1px solid rgba(246, 244, 239, 0.1); vertical-align: middle; }
.cmp-table thead th {
  font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone-2); border-bottom-color: rgba(200, 169, 106, 0.35);
}
.cmp-table tbody th { width: 84px; }
.cmp-table tbody td { font-size: 0.96rem; color: var(--ivory); }
.cmp-table tbody td:first-of-type a {
  font-family: var(--font-serif); font-size: 1.14rem; color: var(--ivory);
  transition: color 0.35s var(--ease);
}
.cmp-table tbody td:first-of-type a:hover { color: var(--gold); }
.cmp-table tbody tr { transition: background 0.45s var(--ease); }
.cmp-table tbody tr:hover { background: rgba(246, 244, 239, 0.03); }
.cmp-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(200, 169, 106, 0.55); color: var(--gold); font-family: var(--font-serif); font-size: 1.05rem;
}
.cmp-status { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ivory); }
.cmp-status--soon { color: var(--stone-2); }
.cmp-status--done { color: #a7d8b6; }

/* "View all" button under a teaser section on the home page */
.section-more { display: flex; justify-content: center; margin-top: clamp(38px, 5vw, 58px); }

/* ═══════════════════════════════════════════════════════════
   VIEWPORT TUNING — small phones, mid-desktop, short screens,
   and touch devices (hover: none)
   ═══════════════════════════════════════════════════════════ */

/* Touch devices: nothing may be hidden behind a hover state */
@media (hover: none) {
  .g-cap { opacity: 1; transform: none; }
  .g-item::after { opacity: 0; }
  .project-more { opacity: 1; transform: none; max-height: none; }
  .project-tile img { filter: none; }
  /* no pointer, no hover state — keep the journal cards perfectly still */
  .blog-card:hover { transform: none; box-shadow: none; }
  .blog-card summary:hover .blog-media img { transform: none; }
}

/* Mid-desktop: four gallery columns get cramped below ~1240px */
@media (min-width: 1025px) and (max-width: 1240px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Short viewports (landscape phones, small laptops) */
@media (max-height: 560px) and (min-width: 721px) {
  .hero { min-height: 560px; }
  .page-hero { min-height: 430px; }
  .cta-inner { padding-block: 64px; }
}

/* Shorter screens: scale the hero headline so it fits above the fold instead of
   growing taller than the viewport. Desktop/tablet only — the phone hero keeps
   its own type scale and its clearance for the sticky enquiry bar. */
@media (min-width: 721px) and (max-height: 800px) {
  /* the heading carries a deliberate <br>, so widen its measure here — at
     short heights an extra two wrapped lines is what pushes the hero off-fold */
  .hero-title { font-size: clamp(2.5rem, 5.6vw, 4.3rem); max-width: 20ch; }
  .hero-eyebrow { margin-bottom: 16px; }
  .hero-sub { margin-top: 18px; }
  .hero-actions { margin-top: 28px; }
  .hero-inner { padding-bottom: clamp(64px, 10vh, 104px); }
  .page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
  .page-hero { padding-bottom: clamp(36px, 6vh, 60px); }
}

/* Tablets: the full-screen menu must fit six items without crowding the brand */
@media (min-width: 721px) and (max-width: 1024px) {
  .mobile-menu { gap: 20px; padding-top: calc(var(--nav-h) + 18px); }
  .mobile-menu a:not(.btn) { font-size: clamp(1.5rem, 3.6vw, 2.1rem); padding: 9px 0; }
  .mobile-menu .btn { padding: 13px 28px; }
}

/* Short screens: tighten the menu so it needs no scrolling if it can fit */
@media (max-height: 700px) {
  .mobile-menu { gap: 18px; padding-top: calc(var(--nav-h) + 22px); padding-bottom: 24px; }
  .mobile-menu a:not(.btn) { font-size: clamp(1.3rem, 5.4vw, 1.9rem); padding: 7px 0; }
  .mobile-menu .btn { padding: 12px 26px; margin-top: 4px; }
  .mobile-menu-foot { letter-spacing: 0.24em; }
}

/* Small phones */
@media (max-width: 420px) {
  :root { --pad: 18px; }
  .stats { gap: 26px 16px; }
  .stat-num { font-size: clamp(1.95rem, 9.5vw, 2.5rem); }
  .stat-label { letter-spacing: 0.14em; font-size: 10px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .gallery-filters { gap: 8px; }
  .gf-btn { flex: 1 1 100%; text-align: center; }
  .subnav { gap: 8px 18px; padding: 18px 0; }
  .cmp-table th, .cmp-table td { padding: 16px 14px; }
  .tower-card { padding: 24px 20px 26px; }
  .mega-strip { flex-direction: column; align-items: flex-start; gap: 14px; }
  .mega-strip-cta { align-self: flex-start; }
  .btn { letter-spacing: 0.18em; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .featured { grid-template-columns: 1.2fr 1fr; min-height: 0; }
  .why-row { grid-template-columns: 64px 240px 1fr; }
  .mega-track { grid-template-columns: repeat(2, 1fr); }
  .tower-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .about-grid, .arch-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { margin-bottom: 12px; }
  .tower-grid { grid-template-columns: repeat(2, 1fr); }
  .status-band { grid-template-columns: 1fr; gap: 22px; }
  /* stacked layouts: keep the offset frames inside the container */
  .about-frame-sm { right: 0; }
  .arch-frame-sm { left: 0; }
  .arch-copy { position: static; }
  .featured { grid-template-columns: 1fr; }
  .featured-media { min-height: 54vh; }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .amenity img { aspect-ratio: 4 / 3.4; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .g-w3 { grid-column: span 2; }
  .quote-grid { grid-template-columns: 1fr; max-width: 640px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .loc-time { width: 74px; }
}

@media (max-width: 720px) {
  :root { --nav-h: 66px; }
  h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  h2 { font-size: clamp(2rem, 8.4vw, 2.7rem); }
  .hero-inner { padding-bottom: 110px; }
  .hero-actions .btn { padding: 14px 24px; }
  .scroll-cue { display: none; }
  .about-frame-sm { right: 0; width: 56%; border-width: 6px; }
  .stats { gap: 26px 18px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(3) { grid-column: auto; }
  .project-tile { aspect-ratio: 4 / 3.4; }
  .project-more { opacity: 1; transform: none; max-height: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .tower-grid { grid-template-columns: 1fr; }
  .status-band h2 { font-size: 1.9rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .arch-frame-sm { left: 0; bottom: -28px; width: 58%; }
  .arch-media { padding-top: 40px; }
  .loc-list li { flex-direction: column; gap: 4px; }
  .loc-time { width: auto; }
  .location-map { min-height: 380px; }
  .why-row { grid-template-columns: 48px 1fr; }
  .why-row p { grid-column: 2; margin-top: 6px; }
  .amenity-grid { gap: 12px; }
  .amenity figcaption {
  left: 10px;
  right: 10px;
  bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.05;
  gap: 6px;
}

.amenity figcaption::before {
  width: 12px;
}
  .gallery-grid { gap: 10px; }
  .contact-rows li { padding: 16px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .wa-float { right: 16px; bottom: calc(20px + 52px); width: 50px; height: 50px; }
  .lightbox { padding: 48px 8px; }
  .lb-prev { left: 2px; }
  .lb-next { right: 2px; }
  .lb-count { bottom: 12px; }
}

/* ═══════════════════════════════════════════════════════════
   TOWER TILES — tablet & phone layout
   Below ~900px a tile is simply not tall enough to hold the
   photograph plus the expanded caption: the bottom-anchored
   overlay used to grow up past the tile top, clip itself, and
   put the description underneath the status chip. So the tile
   becomes a stacked card — photograph on top, caption on a
   solid panel beneath — and nothing can overlap.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .project-tile {
    display: flex; flex-direction: column;
    aspect-ratio: auto;
    background: var(--ink-2);
    border: 1px solid rgba(246, 244, 239, 0.08);
    transition: border-color 0.5s var(--ease);
  }
  .project-tile:hover, .project-tile:focus-visible { border-color: rgba(200, 169, 106, 0.34); }
  .project-tile > img {
    position: static; inset: auto; width: 100%; height: auto;
    aspect-ratio: 16 / 10; transform: none; filter: saturate(1);
  }
  .project-tile:hover img, .project-tile:focus-visible img { transform: none; filter: saturate(1); }
  /* the shade existed only to seat white type over the photograph */
  .project-shade { display: none; }
  .status-chip { top: 14px; right: 14px; padding: 7px 13px; font-size: 9.5px; letter-spacing: 0.16em; max-width: calc(100% - 28px); }
  .project-overlay { position: static; inset: auto; width: 100%; padding: 20px 20px 24px; gap: 10px; }
  .project-mark { width: 42px; height: 42px; font-size: 1.15rem; }
  .project-name { font-size: 1.5rem; }
  .project-tag { font-size: 10px; letter-spacing: 0.16em; color: var(--muted-light); }
  .project-more {
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 12px; max-height: none; opacity: 1; transform: none; overflow: visible;
  }
  .project-desc { max-width: none; color: var(--muted-dark); }
}

/* Phones: the longest status chip must still sit on one line */
@media (max-width: 420px) {
  .status-chip { top: 12px; right: 12px; padding: 6px 11px; font-size: 9px; letter-spacing: 0.11em; max-width: calc(100% - 24px); }
  .project-tile > img { aspect-ratio: 4 / 3; }
}

/* ── Motion preferences ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
