/* Gold Peach Commercial — "Prestige" layer (gpc-frontage 3.0, T20447).
   Loads after gpc.css on every page. The commercial division of Gold Peach Realty:
   real listing photography, a filmed hero, before/after proof, a case-study ledger.
   Palette stays in the Frontage family (asphalt / paper / sodium brass) so inner pages
   built on gpc-* classes keep working; the highway-sign gimmicks give way to an
   institutional, editorial register. Prefix: gpx-. */

:root {
  /* The theme's built CSS shortens custom-property names, so this layer carries its own
     copy of every token it uses (values copied from src/gpc.css). */
  --ff-display: 'Instrument Serif', 'IS Fallback', 'Times New Roman', serif;
  --ff-sign: 'Overpass', 'OP Fallback', Arial, sans-serif;
  --ff-route: 'B612 Mono', 'BM Fallback', 'Courier New', monospace;
  --fs-lead: clamp(1.125rem, 1.02rem + .4vw, 1.375rem);
  --gutter: clamp(1rem, 4.2vw, 3rem);
  --hdr: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-1: 0 1px 2px rgba(15,17,19,.08), 0 8px 24px -12px rgba(15,17,19,.25);
  --shadow-2: 0 2px 6px rgba(15,17,19,.12), 0 30px 60px -28px rgba(15,17,19,.55);
  --ink: #181A1C; --muted: #52575C; --paper-hi: #F7F6F2; --line-d: #30363C;
  --gold: #C99A45; --gold-hi: #E2BC6E; --gold-deep: #8A6522; --gold-line: rgba(201, 154, 69, .38);
  --night: #0E1012; --night-2: #16191C; --night-3: #1F2327;
  --ivory: #F5F2EA; --ivory-2: #ECE7DC; --stone: #D9D2C3;
  --ink-soft: #3A3F44;
  --gpx-wrap: 1320px;
}
@media (max-width: 1099px) { :root { --hdr: 68px; } }

/* ── Division lockup (header + footer) ─────────────────────────────────── */
.gpx-lockup { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ivory); }
.gpx-lockup img { height: 44px; width: auto; }
.gpx-lockup-rule { width: 1px; align-self: stretch; margin-block: 6px; background: var(--gold-line); }
.gpx-lockup-div { display: grid; line-height: 1; gap: .3rem; }
.gpx-lockup-div b { font-family: var(--ff-sign); font-weight: 700; font-size: .95rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-hi); }
.gpx-lockup-div span { font-family: var(--ff-sign); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(245, 242, 234, .62); }
.gpf-brand .gpx-lockup img { max-width: none; }
@media (max-width: 1099px) { .gpx-lockup img { height: 34px; } .gpx-lockup-div b { font-size: .8rem; letter-spacing: .26em; } .gpx-lockup-div span { display: none; } }
@media (max-width: 420px) { .gpx-lockup img { height: 28px; } .gpx-lockup { gap: .6rem; } }
.gpx-lockup--footer img { height: 56px; }

/* ── Shared type + section scaffolding ─────────────────────────────────── */
.gpx { --pad: clamp(4.5rem, 3rem + 6vw, 9rem); }
.gpx-wrap { width: min(100% - 2 * var(--gutter), var(--gpx-wrap)); margin-inline: auto; }
.gpx-sec { position: relative; padding-block: var(--pad); }
.gpx-sec--night { background: var(--night); color: var(--ivory); --focus: var(--gold-hi); }
.gpx-sec--night-2 { background: var(--night-2); color: var(--ivory); --focus: var(--gold-hi); }
.gpx-sec--ivory { background: var(--ivory); color: var(--ink); }
.gpx-sec--stone { background: var(--ivory-2); color: var(--ink); }
.gpx-kicker { display: flex; align-items: center; gap: .85rem; margin: 0 0 1.4rem; font-family: var(--ff-sign); font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); }
.gpx-sec--night .gpx-kicker, .gpx-sec--night-2 .gpx-kicker, .gpx-hero .gpx-kicker { color: var(--gold-hi); }
.gpx-kicker::before { content: ""; width: 2.6rem; height: 1px; background: currentColor; opacity: .8; }
.gpx-kicker b { font-family: var(--ff-route); font-weight: 700; letter-spacing: .08em; }
.gpx-h2 { font-family: var(--ff-display); font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 1.4rem; max-width: 18ch; }
.gpx-h2 em { color: var(--gold-deep); font-style: italic; }
.gpx-sec--night .gpx-h2 em, .gpx-sec--night-2 .gpx-h2 em { color: var(--gold-hi); }
.gpx-lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 60ch; color: var(--ink-soft); margin: 0; }
.gpx-sec--night .gpx-lead, .gpx-sec--night-2 .gpx-lead { color: rgba(245, 242, 234, .78); }
.gpx-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 5rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.gpx-head .gpx-h2 { margin: 0; }
@media (max-width: 900px) { .gpx-head { grid-template-columns: 1fr; } }

.gpx-btn { display: inline-flex; align-items: center; gap: .7rem; padding: 1rem 1.45rem; border-radius: 2px; font-family: var(--ff-sign); font-weight: 700; font-size: .95rem; letter-spacing: .02em; text-decoration: none; border: 1px solid transparent; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.gpx-btn--gold { background: var(--gold); color: var(--night); }
.gpx-btn--gold:hover { background: var(--gold-hi); color: var(--night); transform: translateY(-1px); }
.gpx-btn--line { border-color: rgba(245, 242, 234, .45); color: var(--ivory); }
.gpx-btn--line:hover { border-color: var(--gold-hi); color: var(--gold-hi); }
.gpx-btn--ink { background: var(--night); color: var(--ivory); }
.gpx-btn--ink:hover { background: var(--night-3); color: var(--gold-hi); }
.gpx-btn--ink-line { border-color: rgba(14, 16, 18, .35); color: var(--ink); }
.gpx-btn--ink-line:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.gpx-btn svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease); }
.gpx-btn:hover svg { transform: translateX(3px); }
.gpx-btns { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ── Filmed hero ────────────────────────────────────────────────────────── */
.gpx-hero { position: relative; min-height: min(100svh, 980px); display: grid; align-items: end; color: var(--ivory); background: var(--night); overflow: hidden; isolation: isolate; }
.gpx-hero-media, .gpx-hero-media picture, .gpx-hero-media img, .gpx-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gpx-hero-media { z-index: -2; }
.gpx-hero-media img { object-position: 62% 50%; }
.gpx-hero-video { object-position: 62% 50%; opacity: 0; transition: opacity 1.2s var(--ease); }
.gpx-hero-video.is-playing { opacity: 1; }
.gpx-hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(14,16,18,.92) 0%, rgba(14,16,18,.72) 34%, rgba(14,16,18,.18) 66%, rgba(14,16,18,.05) 100%),
  linear-gradient(0deg, rgba(14,16,18,.96) 0%, rgba(14,16,18,0) 38%); }
.gpx-hero-inner { padding-top: calc(var(--hdr) + clamp(3rem, 8vh, 6rem)); padding-bottom: clamp(2rem, 5vh, 3.5rem); }
.gpx-hero-copy { max-width: 46rem; }
.gpx-hero-h1 { font-family: var(--ff-display); font-size: clamp(2.9rem, 1.3rem + 5.2vw, 6.6rem); line-height: .98; letter-spacing: -.015em; margin: 0 0 1.5rem; }
.gpx-hero-h1 em { color: var(--gold-hi); font-style: italic; }
.gpx-hero-sub { font-size: clamp(1.1rem, 1rem + .45vw, 1.4rem); line-height: 1.55; color: rgba(245, 242, 234, .86); max-width: 38rem; margin: 0 0 2rem; }
.gpx-hero-sub a { color: var(--gold-hi); }
.gpx-hero-foot { margin-top: clamp(2.5rem, 7vh, 5rem); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: end; border-top: 1px solid rgba(245, 242, 234, .16); padding-top: 1.25rem; }
.gpx-hero-facts { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; color: rgba(245, 242, 234, .72); }
.gpx-hero-facts b { color: var(--ivory); font-weight: 700; }
.gpx-hero-facts a { color: var(--gold-hi); text-decoration: none; font-weight: 700; }
.gpx-hero-credit { margin: 0; font-family: var(--ff-route); font-size: .72rem; letter-spacing: .06em; color: rgba(245, 242, 234, .62); text-align: right; }
.gpx-hero-credit a { color: rgba(245, 242, 234, .8); }
@media (max-width: 700px) {
  .gpx-hero { min-height: 92svh; }
  .gpx-hero-shade { background: linear-gradient(0deg, rgba(14,16,18,.97) 8%, rgba(14,16,18,.72) 52%, rgba(14,16,18,.3) 100%); }
  .gpx-hero-credit { text-align: left; }
}

/* ── Intent doors ───────────────────────────────────────────────────────── */
.gpx-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--stone); }
.gpx-door { position: relative; display: flex; flex-direction: column; gap: .8rem; padding: clamp(1.8rem, 3vw, 2.8rem) clamp(1.2rem, 2.4vw, 2.4rem) clamp(1.8rem, 3vw, 2.6rem); text-decoration: none; color: var(--ink); border-right: 1px solid var(--stone); transition: background .35s var(--ease); }
.gpx-door:last-child { border-right: 0; }
.gpx-door:hover { background: var(--ivory-2); color: var(--ink); }
.gpx-door-no { font-family: var(--ff-route); font-size: .78rem; color: var(--gold-deep); letter-spacing: .08em; }
.gpx-door-t { font-family: var(--ff-display); font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.05; }
.gpx-door-b { color: var(--ink-soft); margin: 0; }
.gpx-door-go { margin-top: auto; padding-top: .8rem; font-weight: 700; font-size: .92rem; color: var(--gold-deep); display: inline-flex; gap: .5rem; align-items: center; }
.gpx-door::after { content: ""; position: absolute; left: 0; right: 100%; top: -1px; height: 2px; background: var(--gold); transition: right .5s var(--ease-out); }
.gpx-door:hover::after, .gpx-door:focus-visible::after { right: 0; }
@media (max-width: 900px) { .gpx-doors { grid-template-columns: 1fr; } .gpx-door { border-right: 0; border-bottom: 1px solid var(--stone); } }

/* ── Before / after ─────────────────────────────────────────────────────── */
.gpx-ba-shell { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(1.25rem, 3vw, 2.75rem); align-items: start; }
@media (max-width: 1000px) { .gpx-ba-shell { grid-template-columns: 1fr; } }
.gpx-ba { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--night-3); border-radius: 2px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); touch-action: pan-y; user-select: none; --pos: 50%; }
.gpx-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gpx-ba-after { clip-path: inset(0 0 0 var(--pos)); }
.gpx-ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--gold-hi); box-shadow: 0 0 0 1px rgba(14,16,18,.25); pointer-events: none; }
.gpx-ba-knob { position: absolute; top: 50%; left: var(--pos); width: 3.25rem; height: 3.25rem; margin: -1.625rem 0 0 -1.625rem; border-radius: 50%; background: var(--night); border: 2px solid var(--gold-hi); display: grid; place-items: center; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.gpx-ba-knob svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--gold-hi); stroke-width: 2; }
.gpx-ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.gpx-ba-range:focus-visible + .gpx-ba-line { box-shadow: 0 0 0 3px var(--gold-hi); }
.gpx-ba-tag { position: absolute; top: 1rem; padding: .35rem .65rem; font-family: var(--ff-route); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(14,16,18,.78); color: var(--ivory); pointer-events: none; }
.gpx-ba-tag--b { left: 1rem; }
.gpx-ba-tag--a { right: 1rem; background: var(--gold); color: var(--night); }
.gpx-ba-tabs { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.gpx-ba-tab { width: 100%; display: grid; grid-template-columns: 4.25rem 1fr; gap: .9rem; align-items: center; padding: .55rem; background: transparent; border: 1px solid transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; border-radius: 2px; transition: background .25s var(--ease), border-color .25s var(--ease); }
.gpx-ba-tab img { width: 4.25rem; height: 2.85rem; object-fit: cover; opacity: .75; transition: opacity .25s var(--ease); }
.gpx-ba-tab b { display: block; font-size: .95rem; }
.gpx-ba-tab span { display: block; font-size: .8rem; color: rgba(245, 242, 234, .62); line-height: 1.35; }
.gpx-ba-tab:hover { background: rgba(245, 242, 234, .05); }
.gpx-ba-tab[aria-selected="true"] { border-color: var(--gold-line); background: rgba(201, 154, 69, .08); }
.gpx-ba-tab[aria-selected="true"] img { opacity: 1; }
.gpx-ba-note { margin: 1.25rem 0 0; font-size: .82rem; line-height: 1.55; color: rgba(245, 242, 234, .6); max-width: 70ch; }
.gpx-ba-cap { margin: 1rem 0 0; font-size: .95rem; color: rgba(245, 242, 234, .82); min-height: 3em; }
.gpx-sec--ivory .gpx-ba-tab span, .gpx-sec--stone .gpx-ba-tab span { color: var(--muted); }
.gpx-sec--ivory .gpx-ba-note, .gpx-sec--stone .gpx-ba-note, .gpx-sec--ivory .gpx-ba-cap, .gpx-sec--stone .gpx-ba-cap { color: var(--ink-soft); }
@media (max-width: 1000px) { .gpx-ba-tabs { grid-auto-flow: column; grid-auto-columns: minmax(12rem, 1fr); overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x mandatory; } .gpx-ba-tabs li { scroll-snap-align: start; } }

/* Static pair grid (inner pages, no JS required) */
.gpx-pairs { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.gpx-pair { margin: 0; }
.gpx-pair figcaption { margin-top: .9rem; font-size: .95rem; color: var(--ink-soft); }
.gpx-pair figcaption b { color: var(--ink); }

/* ── Case-study ledger ─────────────────────────────────────────────────── */
.gpx-cases { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.gpx-case { position: relative; display: block; text-decoration: none; color: var(--ivory); background: var(--night-2); overflow: hidden; border-radius: 2px; isolation: isolate; min-height: 26rem; }
.gpx-case:nth-child(1) { grid-column: span 7; grid-row: span 2; min-height: 40rem; }
.gpx-case:nth-child(2), .gpx-case:nth-child(3) { grid-column: span 5; }
.gpx-case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.gpx-case:hover img { transform: scale(1.04); }
.gpx-case::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14,16,18,.94) 0%, rgba(14,16,18,.55) 42%, rgba(14,16,18,.05) 75%); }
.gpx-case-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.25rem, 2.5vw, 2.25rem); }
.gpx-case-type { font-family: var(--ff-route); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); margin: 0 0 .6rem; }
.gpx-case-t { font-family: var(--ff-display); font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.8rem); line-height: 1.02; margin: 0 0 .7rem; }
.gpx-case-specs { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; margin: 0; padding: 0; list-style: none; font-size: .88rem; color: rgba(245, 242, 234, .8); }
.gpx-case-specs li::before { content: "— "; color: var(--gold); }
.gpx-case-go { display: inline-flex; gap: .5rem; align-items: center; margin-top: 1rem; font-weight: 700; font-size: .9rem; color: var(--gold-hi); }
@media (max-width: 1000px) { .gpx-case:nth-child(n) { grid-column: span 12; grid-row: auto; min-height: 24rem; } .gpx-case:nth-child(1) { min-height: 30rem; } }

/* ── Presentation package ───────────────────────────────────────────────── */
.gpx-pack { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.gpx-pack-media { position: relative; }
.gpx-pack-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.gpx-pack-media img + img { position: absolute; width: 52%; aspect-ratio: 3 / 2; right: -8%; bottom: -8%; border: 6px solid var(--ivory); box-shadow: var(--shadow-2); }
.gpx-pack-list { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: pk; }
.gpx-pack-list li { counter-increment: pk; display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid var(--stone); }
.gpx-pack-list li:last-child { border-bottom: 1px solid var(--stone); }
.gpx-pack-list li::before { content: counter(pk, decimal-leading-zero); font-family: var(--ff-route); font-size: .8rem; color: var(--gold-deep); padding-top: .25rem; }
.gpx-pack-list b { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.gpx-pack-list span { color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 900px) { .gpx-pack { grid-template-columns: 1fr; } .gpx-pack-media img + img { right: 4%; } .gpx-pack-media { margin-bottom: 3rem; } }

/* ── Markets by corridor ───────────────────────────────────────────────── */
.gpx-corr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(245, 242, 234, .14); }
.gpx-corr-col { padding: 2rem clamp(1rem, 2vw, 2rem) 1rem 0; }
.gpx-corr-col + .gpx-corr-col { padding-left: clamp(1rem, 2vw, 2rem); border-left: 1px solid rgba(245, 242, 234, .14); }
.gpx-corr-h { font-family: var(--ff-route); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); margin: 0 0 .4rem; }
.gpx-corr-sub { margin: 0 0 1.2rem; font-size: .9rem; color: rgba(245, 242, 234, .6); }
.gpx-corr ul { list-style: none; margin: 0; padding: 0; }
.gpx-corr li a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(245, 242, 234, .08); text-decoration: none; color: var(--ivory); font-family: var(--ff-display); font-size: 1.45rem; line-height: 1.1; transition: color .25s var(--ease), padding .3s var(--ease); }
.gpx-corr li a span { font-family: var(--ff-sign); font-size: .78rem; color: rgba(245, 242, 234, .5); letter-spacing: .04em; }
.gpx-corr li a:hover { color: var(--gold-hi); padding-left: .4rem; }
@media (max-width: 900px) { .gpx-corr { grid-template-columns: 1fr; } .gpx-corr-col + .gpx-corr-col { padding-left: 0; border-left: 0; border-top: 1px solid rgba(245, 242, 234, .14); } }

/* ── Property types strip ──────────────────────────────────────────────── */
.gpx-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--stone); border: 1px solid var(--stone); }
.gpx-type { background: var(--ivory); padding: 1.6rem 1.4rem 1.4rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .5rem; min-height: 11rem; transition: background .3s var(--ease); }
.gpx-type:hover { background: var(--night); color: var(--ivory); }
.gpx-type b { font-family: var(--ff-display); font-weight: 400; font-size: 1.6rem; line-height: 1.05; }
.gpx-type span { font-size: .92rem; color: var(--ink-soft); }
.gpx-type:hover span { color: rgba(245, 242, 234, .7); }
.gpx-type i { margin-top: auto; font-style: normal; font-family: var(--ff-route); font-size: .72rem; letter-spacing: .1em; color: var(--gold-deep); }
.gpx-type:hover i { color: var(--gold-hi); }
@media (max-width: 1000px) { .gpx-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gpx-types { grid-template-columns: 1fr; } }

/* ── Division / parent band ────────────────────────────────────────────── */
.gpx-parent { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(2rem, 4vw, 3rem); border: 1px solid var(--gold-line); background: linear-gradient(120deg, rgba(201,154,69,.10), rgba(201,154,69,0) 55%); }
.gpx-parent img { height: 64px; width: auto; }
.gpx-parent p { margin: 0; color: rgba(245, 242, 234, .82); max-width: 60ch; }
.gpx-parent p b { color: var(--ivory); }
@media (max-width: 900px) { .gpx-parent { grid-template-columns: 1fr; } }

/* ── Spec table (case studies) ─────────────────────────────────────────── */
.gpx-specs { width: 100%; border-collapse: collapse; font-size: .98rem; }
.gpx-specs th, .gpx-specs td { text-align: left; padding: .8rem 0; border-bottom: 1px solid var(--stone); vertical-align: top; }
.gpx-specs th { width: 42%; font-family: var(--ff-route); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); padding-right: 1rem; }
.gpx-source { font-size: .82rem; color: var(--muted); margin-top: .8rem; }

/* ── Gallery ───────────────────────────────────────────────────────────── */
.gpx-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.gpx-gallery figure { margin: 0; grid-column: span 2; }
.gpx-gallery figure:nth-child(5n+1) { grid-column: span 4; grid-row: span 2; }
.gpx-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; border-radius: 2px; }
@media (max-width: 800px) { .gpx-gallery { grid-template-columns: 1fr 1fr; } .gpx-gallery figure, .gpx-gallery figure:nth-child(5n+1) { grid-column: span 1; grid-row: auto; } .gpx-gallery figure:nth-child(3n+1) { grid-column: span 2; } }

/* ── Inner-page video band ─────────────────────────────────────────────── */
.gpx-film { position: relative; aspect-ratio: 16 / 9; max-height: 80vh; width: 100%; overflow: hidden; background: var(--night); }
.gpx-film video, .gpx-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── Reveal (armed only when JS runs) ──────────────────────────────────── */
.js .gpx-rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .gpx-rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .gpx-rv { opacity: 1; transform: none; transition: none; }
  .gpx-hero-video { display: none; }
  .gpx-case img, .gpx-door::after { transition: none; }
}

/* ── Inner pages (T20447): photo hero, prose, valuation form, case-study grid ── */
.gpx-ihero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--ivory); min-height: clamp(520px, 74vh, 760px); display: grid; align-items: end; --focus: var(--gold-hi); }
.gpx-ihero-media { position: absolute; inset: 0; z-index: -2; }
.gpx-ihero-media img { width: 100%; height: 100%; object-fit: cover; }
.gpx-ihero .gpx-hero-shade { z-index: -1; }
.gpx-ihero-inner { padding-block: clamp(4rem, 10vh, 7rem) clamp(2.5rem, 6vh, 4rem); max-width: var(--gpx-wrap); }
.gpx-ihero-h1 { font-family: var(--ff-display); font-size: clamp(2.6rem, 1.3rem + 4.2vw, 5.6rem); line-height: 1; letter-spacing: -.012em; margin: 0 0 1.25rem; max-width: 16ch; }
.gpx-ihero-h1 em { color: var(--gold-hi); font-style: italic; }
.gpx-ihero .gpx-hero-sub { max-width: 40rem; }
.gpx-ihero-note { margin: 1.75rem 0 0; font-family: var(--ff-route); font-size: .72rem; letter-spacing: .05em; color: rgba(245, 242, 234, .6); }
@media (max-width: 700px) { .gpx-ihero { min-height: 86svh; } .gpx-ihero .gpx-hero-shade { background: linear-gradient(0deg, rgba(14,16,18,.97) 10%, rgba(14,16,18,.7) 55%, rgba(14,16,18,.25) 100%); } }

.gpx-prose { max-width: 50rem; }
.gpx-prose h3 { font-family: var(--ff-display); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.1; margin: 2.25rem 0 .8rem; }
.gpx-prose h3:first-child { margin-top: 0; }
.gpx-prose p { color: var(--ink-soft); font-size: 1.06rem; }

.gpx-valform { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; scroll-margin-top: calc(var(--hdr) + 1rem); }
.gpx-valform .gpc-form-shell { background: var(--paper-hi); padding: clamp(1.25rem, 3vw, 2.5rem); border-top: 3px solid var(--gold); box-shadow: var(--shadow-1); }
@media (max-width: 900px) { .gpx-valform { grid-template-columns: 1fr; } }

.gpx-case-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.gpx-case-grid p { color: var(--ink-soft); }
@media (max-width: 900px) { .gpx-case-grid { grid-template-columns: 1fr; } }
.gpx-cases--two .gpx-case:nth-child(n) { grid-column: span 6; grid-row: auto; min-height: 30rem; }
@media (max-width: 1000px) { .gpx-cases--two .gpx-case:nth-child(n) { grid-column: span 12; } }

.gpx-pairs { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.gpx-sec--night .gpx-pair figcaption { color: rgba(245, 242, 234, .78); }
.gpx-sec--night .gpx-pair figcaption b { color: var(--ivory); }
.gpx-sbs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.gpx-sbs-grid > div { position: relative; }
.gpx-sbs-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.gpx-sbs-grid .gpx-ba-tag { z-index: 1; }
.gpx-sbs-grid .gpx-ba-tag--a { right: auto; left: 1rem; }
@media (max-width: 700px) { .gpx-sbs-grid { grid-template-columns: 1fr; } }
.gpx-sec--ivory .gpx-pair figcaption, .gpx-sec--stone .gpx-pair figcaption { color: var(--ink-soft); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Signals and steps sit in gpx sections on the new pages */
.gpx-sec--night .gpc-signal-title, .gpx-sec--night-2 .gpc-signal-title { color: var(--ivory); }
.gpx-sec--night .gpc-signal-body, .gpx-sec--night-2 .gpc-signal-body { color: rgba(245, 242, 234, .74); }
.gpx-sec--night .gpc-signal-label { color: var(--gold-hi); }
.gpx-sec--night .gpc-list-title { color: var(--ivory); }
.gpx-sec--ivory .gpc-signals, .gpx-sec--stone .gpc-signals { border-top-color: var(--stone); }
.gpx-sec--ivory .gpc-signal, .gpx-sec--stone .gpc-signal { border-right-color: var(--stone); }
.gpx-sec--ivory .gpc-signal-title, .gpx-sec--stone .gpc-signal-title { color: var(--ink); }
.gpx-sec--ivory .gpc-signal-body, .gpx-sec--stone .gpc-signal-body { color: var(--ink-soft); }
.gpx-sec--ivory .gpc-signal-label, .gpx-sec--stone .gpc-signal-label { color: var(--gold-deep); }
.gpx .gpc-signals:has(> .gpc-signal:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gpx .gpc-signals:has(> .gpc-signal:nth-child(8)) .gpc-signal:nth-child(n+5) { border-top: 1px solid var(--line-d); }
.gpx-sec--ivory .gpc-signals:has(> .gpc-signal:nth-child(8)) .gpc-signal:nth-child(n+5) { border-top-color: var(--stone); }
.gpx .gpc-signals:has(> .gpc-signal:nth-child(8)) .gpc-signal:nth-child(5) { padding-left: 0; }
@media (max-width: 900px) { .gpx .gpc-signals:has(> .gpc-signal:nth-child(3):last-child) { grid-template-columns: 1fr; } }

.gpx-film-shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgba(14,16,18,.92) 0%, rgba(14,16,18,.35) 45%, rgba(14,16,18,0) 75%); }
.gpx-hero-h1 { font-size: clamp(2.9rem, 1.3rem + 4.6vw, 6rem); }
.gpx-hero-credit { font-family: var(--ff-sign); letter-spacing: .02em; font-size: .78rem; }
.gpx-lockup img { height: 50px; }
@media (max-width: 1099px) { .gpx-lockup img { height: 36px; } }
@media (max-width: 420px) { .gpx-lockup img { height: 30px; } }

/* T20447 r2: pairs two-up on wide screens, simpler gallery rhythm */
@media (min-width: 1001px) { .gpx-sec .gpx-pairs { grid-template-columns: 1fr 1fr; } .gpx-pairs .gpx-sbs { grid-column: 1 / -1; } }
.gpx-gallery figure, .gpx-gallery figure:nth-child(5n+1) { grid-column: span 2; grid-row: auto; }
.gpx-gallery figure:first-child { grid-column: span 4; grid-row: span 2; }
@media (max-width: 800px) { .gpx-gallery figure, .gpx-gallery figure:nth-child(5n+1), .gpx-gallery figure:nth-child(3n+1) { grid-column: span 1; grid-row: auto; } .gpx-gallery figure:first-child { grid-column: span 2; } }

/* Fluent Forms on the valuation page (contact.css only loads on /contact/) */
.gpx-valform .ff-el-input--label label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.gpx-valform .ff-el-form-control { border: 1px solid var(--stone) !important; border-radius: 2px !important; background: #fff; padding: .75rem .85rem !important; font: inherit; }
.gpx-valform .ff-el-form-control:focus { border-color: var(--gold-deep) !important; box-shadow: 0 0 0 3px rgba(201,154,69,.25) !important; }
.gpx-valform .ff-btn-submit { background: var(--gold) !important; color: var(--night) !important; border: 0 !important; border-radius: 2px !important; padding: 1rem 1.6rem !important; font-weight: 700 !important; letter-spacing: .02em; }
.gpx-valform .ff-btn-submit:hover { background: var(--gold-hi) !important; }

.gpx-ihero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── T20523: live MLS buttons, property-type cards, mobile call bar ───── */
.gpx-mls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem; }
.gpx-mls-btn { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.15rem; border: 1px solid rgba(245,242,234,.18); border-radius: 2px; color: var(--ivory); text-decoration: none; font-weight: 700; font-size: .95rem; transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease); }
.gpx-mls-btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--gold-hi); stroke-width: 2; flex: none; }
.gpx-mls-btn:hover { border-color: var(--gold-hi); background: rgba(201,154,69,.10); color: var(--gold-hi); }
.gpx-sec--ivory .gpx-mls-btn, .gpx-sec--stone .gpx-mls-btn { color: var(--ink); border-color: var(--stone); }
.gpx-sec--ivory .gpx-mls-btn svg, .gpx-sec--stone .gpx-mls-btn svg { stroke: var(--gold-deep); }
.gpx-mls-note { margin: 1.25rem 0 0; font-size: .82rem; color: rgba(245,242,234,.6); max-width: 75ch; }
.gpx-sec--ivory .gpx-mls-note, .gpx-sec--stone .gpx-mls-note { color: var(--muted); }
.gpx-tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.gpx-tcard { display: flex; flex-direction: column; background: #fff; text-decoration: none; color: var(--ink); border-radius: 2px; overflow: hidden; box-shadow: var(--shadow-1); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.gpx-tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: var(--ink); }
.gpx-tcard-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gpx-tcard-body { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.15rem 1.2rem; flex: 1; }
.gpx-tcard-body b { font-family: var(--ff-display); font-weight: 400; font-size: 1.55rem; line-height: 1.05; }
.gpx-tcard-body span { font-size: .92rem; color: var(--ink-soft); }
.gpx-tcard-body i { margin-top: auto; padding-top: .4rem; font-style: normal; font-weight: 700; font-size: .85rem; color: var(--gold-deep); }
.gpx-callbar { display: none; }
@media (max-width: 760px) {
  .gpx-callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; background: var(--night); border-top: 1px solid var(--gold-line); padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom)); gap: .5rem; }
  .gpx-callbar a { display: flex; justify-content: center; align-items: center; gap: .45rem; padding: .8rem .5rem; border-radius: 2px; font-weight: 700; font-size: .95rem; text-decoration: none; }
  .gpx-callbar a:first-child { background: var(--gold); color: var(--night); }
  .gpx-callbar a:last-child { border: 1px solid rgba(245,242,234,.35); color: var(--ivory); }
  body.gpf { padding-bottom: 4.5rem; }
}
