/* =============================================================================
   Vandon Forbes Real Estate
   Dark, cinematic, minimal — inspired by r2.me, branded for Vandon Forbes.
   ============================================================================= */

:root {
  --bg:        #0c0c0e;   /* warm charcoal, not pure black */
  --bg-2:      #090909;
  --surface:   #151414;
  --surface-2: #1b1a19;
  --line:      rgba(236, 232, 225, 0.13);
  --line-soft: rgba(236, 232, 225, 0.07);
  --text:      #f5f5f4;   /* near-white (r2) */
  --text-dim:  #bdbdba;   /* light cool grey */
  --text-mute: #83837f;
  --accent:    #b49a72;   /* champagne — used sparingly */
  --accent-hi: #d6c19a;
  --accent-dim:rgba(180, 154, 114, 0.14);

  /* r2.me-style typography: one grotesque everywhere (Space Grotesk is the
     free stand-in for Colophon "Relative" that r2.me uses). */
  --font-grotesk:  "Space Grotesk", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif:    var(--font-grotesk);
  --font-sans:     var(--font-grotesk);
  --font-display:  var(--font-grotesk);
  --font-mono:     var(--font-grotesk);
  --font-wordmark: var(--font-grotesk);

  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 72px);
  --nav-h: 104px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* --- Reusable type helpers ------------------------------------------------ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 400;
}
.mono { font-family: var(--font-mono); }
.dim { color: var(--text-dim); }
.dashed-rule {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 0;
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
.display {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.4vw, 6.4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* =============================================================================
   Top navigation
   ============================================================================= */
.nav {
  position: absolute;        /* r2-style: the header is NOT fixed — it scrolls away */
  inset: 0 0 auto 0;
  display: flex;
  align-items: flex-start;
  padding-top: 18px;
  z-index: 100;
}
.nav.scrolled { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
.nav__inner {
  width: 100%;
  max-width: none;           /* full-bleed like r2 — logo hugs the top-left corner */
  margin: 0;
  padding-inline: clamp(22px, 2.6vw, 42px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(30px, 4vw, 54px);
}
.brand { display: flex; align-items: center; gap: 15px; }
/* r2-style vertical stacked logo: signature V on top, wordmark beneath */
.brand--stack { flex-direction: column; align-items: flex-start; gap: 7px; }
.brand__v { height: 32px; width: auto; display: block; filter: drop-shadow(0 1px 9px rgba(0,0,0,0.45)); }
.brand__stack-words {
  font-family: var(--font-grotesk); font-weight: 500;
  font-size: 12px; letter-spacing: 0.2em; line-height: 1.28;
  text-transform: uppercase; color: var(--text);
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}
/* Nav logo: signature V on top, "Vandon Forbes" set vertically beneath (r2-style) */
.brand--vert { flex-direction: column; align-items: center; gap: 9px; }
.brand--vert .brand__v { height: 38px; width: auto; display: block; filter: drop-shadow(0 1px 10px rgba(0,0,0,0.5)); }
/* Nav logo: just the signature V (r2-minimal) */
.brand--mark .brand__v { height: 42px; width: auto; display: block; filter: drop-shadow(0 1px 9px rgba(0,0,0,0.4)); }
.brand__vword {
  writing-mode: vertical-rl;
  font-family: var(--font-grotesk); font-weight: 500;
  font-size: 11px; letter-spacing: 0.36em; line-height: 1;
  text-transform: uppercase; color: #f4f0e8;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}
/* Horizontal lockup logo (blue stitched V + "Vandon Forbes" wordmark) */
.brand__lockup { height: 38px; width: auto; display: block; }
.footer .brand__lockup { height: 60px; }
.admin-bar .brand__lockup { height: 34px; }
.brand__mark { height: 34px; width: auto; }
.brand__icon { height: 46px; width: auto; display: block; }
.brand__name {
  font-family: var(--font-wordmark);
  font-size: 1.46rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
}
.brand__name small {
  display: block;
  font-family: var(--font-sans);
  font-size: 8px;
  letter-spacing: 0.36em;
  color: var(--text-dim);
  margin-top: 6px;
  padding-left: 2px;
}
.footer .brand__icon { height: 92px; }
.footer .brand__name { font-size: 1.7rem; }
.footer .brand__name small { font-size: 9.5px; }
.brand__logo { height: 50px; width: auto; display: block; }
.footer .brand__logo { height: 72px; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand__word small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.34em;
  color: var(--text-dim);
  margin-top: 3px;
}
.nav__links { display: flex; align-items: center; gap: 30px; margin-top: 16px; }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 245, 244, 0.96);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  transition: color 0.25s ease;
  position: relative;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: #fff; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 1px; background: var(--accent);
}
.nav__toggle { display: none; background: none; border: 0; color: var(--text); margin-left: auto; }

/* Vertical edge labels (r2 signature): brand top-right, contact bottom-right */
.side-label, .side-contact {
  position: fixed;
  right: 18px;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f5f5f4;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
  z-index: 90;
}
.side-label { top: 34px; pointer-events: none; }
.side-contact { bottom: 34px; transition: color 0.25s ease; }
.side-contact:hover { color: var(--accent-hi); }

/* =============================================================================
   Hero — full-bleed, cinematic, slow motion (the "moving pics")
   ============================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding-top: var(--nav-h);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  /* Slow Ken Burns drift even without a real photo dropped in yet */
  animation: kenburns 26s ease-in-out infinite alternate;
}
.hero__media video,
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
/* Fallback cinematic gradient skyline if no hero asset present */
.hero__media--fallback {
  background:
    radial-gradient(120% 90% at 72% 14%, rgba(180,154,114,0.10), transparent 55%),
    radial-gradient(100% 80% at 18% 92%, rgba(236,231,223,0.05), transparent 52%),
    linear-gradient(180deg, #131211 0%, #0c0c0e 52%, #070707 100%);
}
@keyframes kenburns {
  from { transform: scale(1.0) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 35%, rgba(0,0,0,0.8) 100%);
}
.hero__inner { width: 100%; }
.hero__eyebrow { margin-bottom: 26px; opacity: 0; animation: fadeUp 1s ease 0.2s forwards; }
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.9rem);
  max-width: 17ch;
  line-height: 1.06;
  opacity: 0; animation: fadeUp 1.1s ease 0.35s forwards;
}
.hero__sub {
  margin-top: 28px;
  max-width: 46ch;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.9;
  opacity: 0; animation: fadeUp 1.1s ease 0.55s forwards;
}
.hero__cta { margin-top: 42px; opacity: 0; animation: fadeUp 1.1s ease 0.75s forwards; }
.hero__scroll {
  position: absolute; bottom: 26px; left: var(--gutter);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em;
  color: var(--text-mute); text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.hero__scroll::before {
  content: ""; width: 38px; height: 1px; background: var(--text-mute);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100% { transform: scaleX(0.4); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* =============================================================================
   Buttons
   ============================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text);
  padding: 15px 26px; border: 1px solid var(--line);
  background: transparent; transition: all 0.3s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent-hi); gap: 18px; }
.btn--solid { background: var(--text); border-color: var(--text); color: #181510; }
.btn--solid:hover { background: #fffaf2; border-color: #fffaf2; color: #181510; }
.btn .arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* =============================================================================
   Section scaffolding
   ============================================================================= */
.section { padding-block: clamp(72px, 11vw, 150px); }
.section__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: end; margin-bottom: 56px;
}
.section__head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.section__head p {
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.9;
  color: var(--text-dim); max-width: 44ch; justify-self: end;
}

/* =============================================================================
   Listings — filter row + grid (the Portfolio analog)
   ============================================================================= */
.filterbar { margin-bottom: 44px; }
.filterbar__label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--text-mute); margin-bottom: 18px;
}
.filterbar__chips { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.chip {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em;
  color: var(--text-dim); background: none; border: 0; padding: 4px 0;
  border-bottom: 1px solid transparent; transition: color 0.25s, border-color 0.25s;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(18px, 2.4vw, 34px) clamp(16px, 2vw, 28px);
}
.card { display: block; position: relative; }
.card__media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--surface);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 6px 11px;
  background: rgba(5,7,10,0.72); backdrop-filter: blur(6px);
  border: 1px solid var(--line-soft); color: var(--text);
}
.card__badge--accent { color: var(--accent-hi); border-color: rgba(180,154,114,0.45); }
.card__body { padding-top: 16px; }
.card__name { font-family: var(--font-display); font-size: 1.65rem; font-weight: 400; letter-spacing: 0; line-height: 1.1; }
.card__loc {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--text-dim); margin-top: 7px; text-transform: uppercase;
}
.card__meta {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-soft);
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim);
}
.card__meta b { color: var(--text); font-weight: 400; }

.empty-state {
  font-family: var(--font-mono); color: var(--text-mute); font-size: 13px;
  padding: 60px 0; text-align: center; letter-spacing: 0.06em;
}

/* =============================================================================
   Listings toolbar — search · sort · per-page
   ============================================================================= */
.listings-toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 18px 28px; margin-top: 28px; padding-top: 26px;
  border-top: 1px dashed var(--line-soft);
}
.toolbar__search {
  position: relative; display: flex; align-items: center;
  flex: 1 1 280px; max-width: 420px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s;
}
.toolbar__search:focus-within { border-color: var(--accent); }
.toolbar__search-icon {
  position: absolute; left: 14px; color: var(--text-mute); pointer-events: none;
}
.toolbar__search input {
  flex: 1; min-width: 0; background: none; border: 0; color: var(--text);
  font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.03em;
  padding: 13px 38px 13px 42px;
}
.toolbar__search input::placeholder { color: var(--text-mute); }
.toolbar__search input:focus { outline: none; }
.toolbar__search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.toolbar__clear {
  position: absolute; right: 8px; background: none; border: 0; color: var(--text-mute);
  font-size: 13px; line-height: 1; padding: 7px; transition: color 0.2s;
}
.toolbar__clear:hover { color: var(--text); }

.toolbar__controls { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.toolbar__field { display: flex; flex-direction: column; gap: 7px; }
.toolbar__field-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-mute);
}
.toolbar__field select {
  appearance: none; -webkit-appearance: none;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--text); background-color: var(--surface);
  border: 1px solid var(--line); padding: 11px 38px 11px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23b49a72' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 11px;
  transition: border-color 0.25s; cursor: pointer;
}
.toolbar__field select:hover { border-color: var(--accent); }
.toolbar__field select:focus { outline: none; border-color: var(--accent); }
.toolbar__field select option { background: var(--surface); color: var(--text); }

.listings-meta {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-mute); margin: 0 0 26px;
}

/* =============================================================================
   Numbered pagination
   ============================================================================= */
.pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; margin-top: clamp(40px, 5vw, 64px);
}
.page-btn {
  min-width: 44px; height: 44px; padding: 0 13px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--text-dim); background: transparent; border: 1px solid var(--line);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.page-btn:hover:not(:disabled):not(.page-btn--current) {
  color: var(--text); border-color: var(--accent);
}
.page-btn--current {
  color: #181510; background: var(--accent); border-color: var(--accent);
  font-weight: 500; cursor: default;
}
.page-btn--nav { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.page-btn:disabled { opacity: 0.32; cursor: not-allowed; }
.page-ellipsis {
  min-width: 22px; text-align: center; color: var(--text-mute);
  font-family: var(--font-mono); font-size: 13px; user-select: none;
}

@media (max-width: 640px) {
  .listings-toolbar { flex-direction: column; align-items: stretch; }
  .toolbar__search { max-width: none; }
  .toolbar__controls { justify-content: space-between; }
  .toolbar__field { flex: 1; }
  .toolbar__field select { width: 100%; }
  .page-btn { min-width: 40px; height: 40px; padding: 0 10px; }
}

/* =============================================================================
   Listing detail page
   ============================================================================= */
.detail-hero {
  position: relative; height: 64svh; min-height: 420px; overflow: hidden;
  background: var(--surface);
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.7));
}
.detail-head {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px);
  padding-block: clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--line-soft);
}
.detail-head__title { font-size: clamp(2.4rem, 6vw, 5rem); text-transform: uppercase; line-height: 1.0; }
.detail-head__addr {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim); margin-top: 22px; line-height: 1.9;
}
.detail-head__status {
  display: inline-block; margin-bottom: 22px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); border: 1px solid rgba(180,154,114,0.4);
  padding: 6px 12px;
}
.detail-head__body p { color: var(--text-dim); font-family: var(--font-mono); font-size: 13.5px; line-height: 1.95; }
.detail-head__contact { margin-top: 26px; }
.detail-head__contact a { color: var(--accent-hi); border-bottom: 1px solid rgba(180,154,114,0.4); }

/* Spec table */
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin-top: 30px; }
.spec { background: var(--bg); padding: 20px; }
.spec__k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); }
.spec__v { font-size: 1.15rem; font-weight: 300; margin-top: 8px; }

/* Highlights */
.highlights { list-style: none; padding: 0; margin: 30px 0 0; }
.highlights li {
  font-family: var(--font-mono); font-size: 13px; color: var(--text-dim);
  padding: 12px 0 12px 26px; border-bottom: 1px dashed var(--line-soft); position: relative;
}
.highlights li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); }

/* Gallery + floor plans */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 28px); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; background: var(--surface); }
.gallery figcaption {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-mute); margin-top: 12px;
}
.floorplans .gallery img { object-fit: contain; background: #fff; padding: 10px; }
.floorplan-pdf {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 3/2;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-hi); gap: 10px;
}

/* QR block */
.qr-block {
  display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  border: 1px solid var(--line-soft); padding: 26px; background: var(--surface);
}
.qr-block img, .qr-block canvas { width: 132px; height: 132px; background: #fff; padding: 8px; }
.qr-block__txt { max-width: 32ch; }
.qr-block__txt h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); margin: 0 0 10px; font-weight: 400; }
.qr-block__txt p { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); line-height: 1.8; margin: 0; }

/* =============================================================================
   Footer
   ============================================================================= */
.footer { border-top: 1px solid var(--line-soft); padding-block: clamp(56px, 8vw, 96px); background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer__brand .brand__word { font-size: 1.6rem; }
.footer h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute); margin: 0 0 16px; font-weight: 400; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); line-height: 2.1; }
.footer a:hover { color: var(--accent-hi); }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px dashed var(--line-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-mute); text-transform: uppercase; }

/* =============================================================================
   Scroll-reveal animation
   ============================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media { animation: none; }
  .hero__eyebrow, .hero h1, .hero__sub, .hero__cta { animation: none; opacity: 1; }
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 900px) {
  .section__head { grid-template-columns: 1fr; }
  .section__head p { justify-self: start; }
  .detail-head { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .side-label, .side-contact { display: none; }
  .footer__grid { grid-template-columns: 1fr; }

  /* r2-style full-screen mobile menu */
  .nav { position: fixed; padding-top: 16px; }
  .nav__inner { align-items: center; }
  .brand { position: relative; z-index: 260; }
  .nav__toggle {
    display: block; position: relative; z-index: 260; margin-left: auto;
    color: var(--text); font-size: 24px; line-height: 1;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  }
  .nav__links {
    position: fixed; inset: 0; z-index: 150; margin: 0;
    background: #0d0d0f;
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: clamp(98px, 23vw, 132px) var(--gutter) 48px;
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
  }
  .nav__links.open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a {
    font-family: var(--font-grotesk); font-size: clamp(1.5rem, 8vw, 2.1rem);
    font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--text); text-shadow: none; padding: 26px 2px; width: 100%;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__links a:first-child { border-top: 1px solid var(--line-soft); }
  .nav__links a[aria-current="page"]::after { display: none; }
  body.nav-open { overflow: hidden; }
}

/* =============================================================================
   PREMIUM — cinematic portfolio layer
   Film grain · Ken Burns hero slideshow · marquee · statement · portfolio
   cards · animated stats · approach · footer CTA.
   ============================================================================= */

/* --- Film grain (subtle luxury texture over everything, below the nav) ----- */
.grain {
  position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce) { .grain { display: none; } }

/* --- Intro reveal: black → slogan "illuminates" in → photo pops in behind -- */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.intro__veil { position: absolute; inset: 0; background: #050506; transition: opacity 1.9s ease; }
.intro.bg-in .intro__veil { opacity: 0; }
.intro__slogan {
  position: relative; z-index: 1; margin: 0;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2rem, 6.4vw, 4.8rem); letter-spacing: 0.05em; line-height: 1.12;
  color: var(--text); text-align: center;
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.intro.text-out .intro__slogan { opacity: 0; transform: translateY(-10px); }
.intro__slogan .word { display: inline-block; white-space: nowrap; }
.intro__slogan .sp { display: inline-block; width: 0.42em; }
.intro__slogan .ch {
  display: inline-block; opacity: 0; transform: translateY(16px); filter: blur(9px);
  animation: introCh 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes introCh { to { opacity: 1; transform: none; filter: blur(0); } }
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.8s ease, visibility 0.8s; }
/* Failsafe so a stalled script can never trap the page behind the veil */
.intro { animation: introSafety 0.01s linear 9s forwards; }
@keyframes introSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* --- Hero slideshow: crossfade + slow Ken Burns zoom/pan ------------------- */
.hero__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #08080a; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 2.6s ease-in-out;
  /* Always-running, gentle breathing zoom — runs on every slide regardless of
     active state, so a crossfade never snaps the transform back ("resets"). */
  animation: kenburns 28s ease-in-out infinite alternate;
  will-change: opacity, transform;
}
.hero__slide.is-active { opacity: 1; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0.8%, 0.6%, 0); }
  to   { transform: scale(1.17) translate3d(-1.8%, -1.3%, 0); }
}
.hero__vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 38%, transparent 42%, rgba(0,0,0,0.5) 100%);
}
.hero__scrim {
  background:
    linear-gradient(180deg, rgba(8,8,10,0.5) 0%, rgba(8,8,10,0) 20%, rgba(8,8,10,0) 70%, rgba(8,8,10,0.6) 100%);
}
.hero__title {
  font-size: clamp(2.7rem, 6.2vw, 5.6rem);
  max-width: 16ch; line-height: 1.04; letter-spacing: -0.005em;
  opacity: 0; animation: fadeUp 1.2s ease 0.35s forwards;
}
.hero__sub { max-width: 50ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
}
.hero__foot .hero__scroll { position: static; left: auto; bottom: auto; }
.hero__count {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em;
  color: var(--text-dim); display: flex; align-items: center; gap: 8px;
}
.hero__count i { color: var(--accent); font-style: normal; }
.hero__count #hero-total { color: var(--text-mute); }

/* --- Marquee of asset classes --------------------------------------------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line-soft);
  background: var(--bg-2); padding: 22px 0;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 0; white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 300; color: var(--text-mute); padding: 0 38px; position: relative;
}
.marquee__track span::after {
  content: "✦"; position: absolute; right: -7px; top: 50%; transform: translateY(-50%);
  font-size: 9px; color: var(--accent); opacity: 0.7;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* --- Statement (big editorial line) --------------------------------------- */
.statement { padding-block: clamp(72px, 12vw, 160px); }
.statement__lead {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1.18; letter-spacing: -0.005em;
  max-width: 22ch; margin-top: 26px; color: var(--text);
}
.statement__lead { max-width: 26ch; }

/* --- Portfolio grid + premium cards --------------------------------------- */
.section--portfolio { padding-top: clamp(40px, 6vw, 80px); }
.portfolio { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: clamp(20px, 2.4vw, 38px); }
.section__cta { margin-top: 54px; }

.card__media { aspect-ratio: 3 / 2; }
.card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(7,7,9,0.55) 100%);
  opacity: 0; transition: opacity 0.6s ease;
}
.card:hover .card__media::after { opacity: 1; }
.card:hover .card__media img { transform: scale(1.07); }
.card__badge {
  background: rgba(8,8,10,0.55); border-color: rgba(236,232,225,0.18);
  letter-spacing: 0.2em; backdrop-filter: blur(8px);
}
.card__body { padding-top: 20px; }
.card__name { font-size: 1.78rem; transition: color 0.3s ease; }
.card:hover .card__name { color: var(--accent-hi); }
.card__loc { letter-spacing: 0.12em; }
.card__meta { margin-top: 16px; padding-top: 16px; }

/* --- Stats band ----------------------------------------------------------- */
.stats { border-block: 1px solid var(--line-soft); background: var(--bg-2); padding-block: clamp(56px, 8vw, 104px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.stat { background: var(--bg-2); padding: clamp(26px, 3vw, 46px) clamp(20px, 2.4vw, 36px); }
.stat__num {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1; color: var(--text);
  letter-spacing: -0.01em;
}
.stat__label {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim); margin-top: 16px; line-height: 1.5;
}

/* --- Approach ------------------------------------------------------------- */
.approach { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.approach__item { background: var(--bg); padding: clamp(28px, 3vw, 44px); transition: background 0.4s ease; }
.approach__item:hover { background: var(--surface); }
.approach__item h3 { font-size: 1.6rem; margin: 16px 0 14px; }
.approach__copy { font-family: var(--font-mono); font-size: 13px; line-height: 1.95; color: var(--text-dim); margin: 0; }

/* --- About copy ----------------------------------------------------------- */
.about__copy { font-family: var(--font-mono); font-size: 15px; line-height: 2.05; color: var(--text-dim); }

/* --- Footer CTA + refinements --------------------------------------------- */
.footer__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding-bottom: clamp(48px, 6vw, 80px); margin-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line-soft);
}
.footer__cta h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 16ch; }
.footer__tag { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.9; margin-top: 22px; max-width: 36ch; color: var(--text-dim); }

/* --- Premium responsive --------------------------------------------------- */
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .approach { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .brand__lockup { height: 30px; }
  .footer .brand__lockup { height: 46px; }
  .hero__foot { padding-inline: var(--gutter); }
  .stats__grid { grid-template-columns: 1fr; }
  .approach { grid-template-columns: 1fr; }
  .marquee__track span { font-size: 1.3rem; padding: 0 26px; }
}

/* =============================================================================
   r2-style footer — newsletter (left) · brand + offices (center) ·
   contact + social (right), with dashed separators.
   ============================================================================= */
.footer { border-top: 1px solid var(--line-soft); padding-block: clamp(56px, 7vw, 104px); background: var(--bg-2); }
.r2footer { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.r2footer__col { display: flex; flex-direction: column; }
.r2footer__arrow { font-family: var(--font-mono); color: var(--text-dim); font-size: 17px; letter-spacing: 1px; margin-bottom: clamp(36px, 6vw, 86px); }
.r2footer h5 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text); font-weight: 500; margin: 0 0 4px;
}
.r2footer .dashed-rule { margin: 16px 0; border-top: 1px dashed var(--line); }
.newsletter { display: flex; gap: 0; margin-top: 10px; align-items: stretch; }
.newsletter input {
  flex: 1; min-width: 0; background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  color: var(--text); font-family: var(--font-mono); font-size: 13px; padding: 13px 14px;
}
.newsletter input::placeholder { color: var(--text-mute); }
.newsletter input:focus { outline: none; border-color: var(--accent); }
.newsletter button {
  background: none; border: 0; color: var(--text); font-family: var(--font-mono);
  font-size: 13px; padding: 0 4px 0 18px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px;
}
.newsletter button:hover { color: var(--accent-hi); }
.footer-mark { margin-bottom: 30px; }
.footer-mark .brand__v { height: 42px; }
.footer-mark .brand__stack-words { font-size: 15px; letter-spacing: 0.18em; }
.r2block { margin-bottom: 18px; }
.r2block h6 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text); font-weight: 500; margin: 0 0 7px;
}
.r2block p { font-family: var(--font-mono); font-size: 13px; line-height: 1.65; color: var(--text-dim); margin: 0; }
.r2block a { color: var(--text-dim); }
.r2block a:hover { color: var(--accent-hi); }
.r2social { display: flex; gap: 12px; margin: 26px 0 16px; }
.r2social a {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--text-dim); transition: all 0.25s ease;
}
.r2social a:hover { color: #181510; background: var(--text); border-color: var(--text); }
.r2footer__copy { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); margin: 12px 0 0; }
@media (max-width: 860px) {
  .r2footer { grid-template-columns: 1fr 1fr; gap: 44px; }
  .r2footer__col--news { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .r2footer { grid-template-columns: 1fr; } }

/* Inner pages (portfolio, listing detail): clear the fixed-position nav logo */
.inner-main { padding-top: clamp(96px, 11vw, 140px); }

/* About — "Our Focus" block */
.about-focus { margin-top: clamp(30px, 4vw, 48px); }

/* PDF document preview (floor plans + flyers): first-page frame + download */
.pdf-doc { margin: 0; }
.pdf-doc__frame {
  position: relative; aspect-ratio: 17 / 22; background: #fff;
  border: 1px solid var(--line-soft); overflow: hidden;
}
.pdf-doc__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.pdf-doc__open { position: absolute; inset: 0; } /* click the preview to open the PDF */
.pdf-doc__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute);
}
.btn--mini { padding: 9px 15px; font-size: 11px; }
