﻿/* ============================================================
   REALTORPICK - public site
   Dark cinematic base, warm gold accent, editorial serif.
   ============================================================ */

:root {
  --bg: #0b0b10;
  --bg-2: #101018;
  --bg-3: #16161f;
  --ink: #f4f1ea;
  --ink-dim: #a8a49b;
  --line: rgba(244, 241, 234, 0.09);
  --gold: #c9a962;
  --gold-2: #e6cf96;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --rad: 18px;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }

.gold-it { font-style: italic; color: var(--gold-2); }
.kicker {
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px; font-weight: 600;
}

/* ---------- top loading bar ---------- */
#pagebar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  z-index: 300; opacity: 0; transition: width 0.3s ease, opacity 0.4s ease 0.2s;
}
#pagebar.on { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 13px 26px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s, color 0.25s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #171205;
  box-shadow: 0 10px 30px -8px rgba(201, 169, 98, 0.45);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(201, 169, 98, 0.6); }
.btn-ghost {
  background: rgba(244, 241, 234, 0.06); color: var(--ink);
  border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(244, 241, 234, 0.12); transform: translateY(-2px); }
.btn-line { background: none; color: var(--gold-2); border: 1px solid rgba(201, 169, 98, 0.35); }
.btn-line:hover { background: rgba(201, 169, 98, 0.1); }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-wide { width: 100%; }
.btn.loading { pointer-events: none; opacity: 0.75; }
.btn.loading span { visibility: hidden; }
.btn.loading::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 2px solid rgba(23, 18, 5, 0.3); border-top-color: #171205;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
.btn { position: relative; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  /* Always readable over the photo field: soft scrim even before scrolling. */
  background: linear-gradient(to bottom, rgba(11, 11, 16, 0.88) 0%, rgba(11, 11, 16, 0.45) 62%, rgba(11, 11, 16, 0) 100%);
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.nav-in > *, .nav-links > * { text-shadow: 0 1px 10px rgba(5, 5, 9, 0.7); }
.nav.scrolled { background: rgba(11, 11, 16, 0.88); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.35rem; }
.brand em { color: var(--gold); font-style: normal; }
.brand-mark { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.93rem; font-weight: 500; }
.nav-links > a { color: var(--ink-dim); transition: color 0.25s; }
.nav-links > a:hover { color: var(--ink); }
.nav-phone { color: var(--ink) !important; font-variant-numeric: tabular-nums; }
.nav-burger { display: none; background: none; border: 0; width: 40px; height: 36px; position: relative; }
.nav-burger span {
  position: absolute; left: 8px; right: 8px; height: 2px; background: var(--ink);
  transition: 0.3s var(--ease);
}
.nav-burger span:nth-child(1) { top: 10px; } .nav-burger span:nth-child(2) { top: 17px; } .nav-burger span:nth-child(3) { top: 24px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  perspective: 1100px;
}
.hero-field { position: absolute; inset: -6%; transform-style: preserve-3d; }
.hf-card {
  position: absolute; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); opacity: 0;
  animation: hf-in 1.4s var(--ease) forwards;
  will-change: transform;
}
.hf-card img { width: 100%; height: 100%; object-fit: cover; }
.hf-card::after { content: ""; position: absolute; inset: 0; background: rgba(11, 11, 16, 0.22); }
@keyframes hf-in { from { opacity: 0; } to { opacity: 1; } }
.hero-vignette {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse 66% 58% at 36% 52%, rgba(11,11,16,0.78) 0%, rgba(11,11,16,0.42) 58%, rgba(11,11,16,0) 100%),
    linear-gradient(105deg, rgba(11,11,16,0.72) 0%, rgba(11,11,16,0.25) 55%, rgba(11,11,16,0) 80%),
    linear-gradient(to bottom, rgba(11,11,16,0.45), rgba(11,11,16,0.1) 30%, rgba(11,11,16,0.35) 70%, rgba(11,11,16,0.97) 100%);
}
.hero-copy { position: relative; z-index: 3; padding: 140px 0 100px; }
.hero-copy h1 { text-shadow: 0 2px 30px rgba(5,5,9,0.75), 0 1px 3px rgba(5,5,9,0.6); }
.hero-copy .hero-sub, .hero-copy .hero-kicker, .hero-stats { text-shadow: 0 1px 14px rgba(5,5,9,0.8); }
.hero-kicker { font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 22px; font-weight: 600; }
.hero-sub { max-width: 560px; margin-top: 24px; color: var(--ink-dim); font-size: 1.13rem; }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 64px; flex-wrap: wrap; }
.hero-stats strong { font-family: var(--serif); font-size: 2.2rem; color: var(--gold-2); display: block; font-weight: 400; }
.hero-stats span { font-size: 0.82rem; color: var(--ink-dim); letter-spacing: 0.06em; text-transform: uppercase; }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 1.5px solid rgba(244,241,234,0.35); border-radius: 999px;
}
.hero-scroll span {
  position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--gold-2); border-radius: 3px; animation: scrollhint 1.8s ease infinite;
}
@keyframes scrollhint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.sec-head { max-width: 640px; margin-bottom: 54px; }
.sec-sub { color: var(--ink-dim); margin-top: 16px; font-size: 1.05rem; }

/* ---------- tag filter ---------- */
.tagbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.tag {
  background: none; border: 1px solid var(--line); color: var(--ink-dim);
  border-radius: 999px; padding: 8px 18px; font-size: 0.88rem; font-weight: 500;
  transition: all 0.25s var(--ease);
}
.tag:hover { color: var(--ink); border-color: rgba(244,241,234,0.3); }
.tag.is-on { background: var(--gold); border-color: var(--gold); color: #171205; font-weight: 600; }

/* ---------- work grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--rad);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s, opacity 0.4s, scale 0.4s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201, 169, 98, 0.35); }
.card.hide { display: none; }
.card-media { position: relative; aspect-ratio: 16 / 10.4; overflow: hidden; background: var(--bg-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-star {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(11,11,16,0.72); backdrop-filter: blur(6px);
  color: var(--gold-2); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(201,169,98,0.3);
}
.card-meta {
  position: absolute; bottom: 12px; right: 12px; z-index: 2; display: flex; gap: 8px;
}
.card-meta span {
  background: rgba(11,11,16,0.72); backdrop-filter: blur(6px); border: 1px solid var(--line);
  font-size: 0.74rem; padding: 5px 10px; border-radius: 999px; color: var(--ink-dim);
}
.card-body { padding: 20px 22px 24px; }
.card-body h3 { font-size: 1.35rem; margin-bottom: 4px; }
.card-body p { color: var(--ink-dim); font-size: 0.92rem; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.card-tags span {
  font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(201,169,98,0.25); padding: 3px 10px; border-radius: 999px;
}
.empty { color: var(--ink-dim); text-align: center; padding: 60px 0; }
.empty a { color: var(--gold-2); text-decoration: underline; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  position: relative; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--rad); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.5s var(--ease);
}
.svc:hover { transform: translateY(-5px); border-color: rgba(201,169,98,0.35); box-shadow: var(--shadow); }
.svc-pop { border-color: rgba(201,169,98,0.5); background: linear-gradient(160deg, rgba(201,169,98,0.08), var(--bg-3) 55%); }
.svc-flag {
  position: absolute; top: -12px; right: 20px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #171205;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.svc-icon {
  width: 54px; height: 54px; border-radius: 14px; color: var(--gold-2);
  background: rgba(201,169,98,0.1); border: 1px solid rgba(201,169,98,0.22);
  display: grid; place-items: center;
}
.svc h3 { font-size: 1.3rem; }
.svc p { color: var(--ink-dim); font-size: 0.92rem; flex: 1; }
.svc-price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; }
.svc-price strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; color: var(--gold-2); }
.svc-price span { color: var(--ink-dim); font-size: 0.85rem; }

/* ---------- process ---------- */
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  counter-reset: step;
}
.steps li { border-top: 1px solid var(--line); padding-top: 22px; position: relative; }
.steps span { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; }
.steps h3 { font-size: 1.2rem; margin: 10px 0 8px; }
.steps p { color: var(--ink-dim); font-size: 0.92rem; }

/* ---------- CTA ---------- */
.cta { padding: 130px 0; background:
  radial-gradient(ellipse 70% 90% at 50% 120%, rgba(201,169,98,0.16), transparent 70%), var(--bg-2); }
.cta-in { text-align: center; }
.cta p { color: var(--ink-dim); margin-top: 14px; font-size: 1.08rem; }
.cta .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 0; background: var(--bg); }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 50px; }
.footer-tag { color: var(--ink-dim); margin-top: 12px; max-width: 280px; font-size: 0.93rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 0.93rem; }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.footer-col a, .footer-col span { color: var(--ink-dim); transition: color 0.25s; }
.footer-col a:hover { color: var(--ink); }
.footer-area { padding: 0 0 24px; color: var(--ink-dim); font-size: 0.84rem; line-height: 1.9; }
.footer-area strong { color: var(--gold-2); font-weight: 500; }
.footer-area a { color: var(--ink-dim); transition: color 0.25s; }
.footer-area a:hover { color: var(--gold-2); }

/* ---------- city landing pages ---------- */
.city-head { padding: 175px 0 0; }
.city-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
.city-head .hero-sub { max-width: 640px; }
.city-copy { max-width: 780px; }
.city-copy p { color: var(--ink-dim); margin-bottom: 18px; font-size: 1.05rem; }
a.tag { display: inline-block; }
a.tag:hover { border-color: rgba(201, 169, 98, 0.5); color: var(--ink); }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding: 22px 0; font-size: 0.82rem; color: var(--ink-dim);
}

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(5, 5, 9, 0.72); backdrop-filter: blur(6px); animation: fade 0.3s ease; }
.modal-card {
  position: relative; width: min(460px, 100%);
  background: linear-gradient(170deg, #191922, #101017);
  border: 1px solid rgba(201,169,98,0.25); border-radius: 22px;
  padding: 34px 32px 28px; box-shadow: var(--shadow);
  animation: pop 0.4s var(--ease);
}
@keyframes pop { from { transform: translateY(18px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
.modal-x {
  position: absolute; top: 14px; right: 16px; background: none; border: 0;
  color: var(--ink-dim); font-size: 1.6rem; line-height: 1; transition: color 0.2s;
}
.modal-x:hover { color: var(--ink); }
.modal-card h3 { font-size: 1.65rem; margin-bottom: 8px; }
.modal-card > .modal-pane > p { color: var(--ink-dim); font-size: 0.94rem; margin-bottom: 20px; }
.modal-card label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; color: var(--ink); }
.modal-card label .opt { color: var(--ink-dim); font-weight: 400; }
.modal-card input:not(.hp), .modal-card textarea {
  width: 100%; margin-top: 6px; background: rgba(244,241,234,0.05);
  border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
  padding: 12px 14px; font: inherit; font-size: 0.98rem; transition: border-color 0.25s, background 0.25s;
}
.modal-card input:focus, .modal-card textarea:focus { outline: none; border-color: var(--gold); background: rgba(244,241,234,0.08); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; opacity: 0; }
.modal-alt { display: block; text-align: center; color: var(--ink-dim); margin-top: 14px; font-size: 0.85rem; }
.modal-alt a { color: var(--gold-2); text-decoration: underline; }
.book-opt {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; margin-bottom: 12px;
  background: rgba(244, 241, 234, 0.04);
  transition: transform 0.3s var(--ease), border-color 0.25s, background 0.25s;
}
.book-opt:hover { transform: translateY(-2px); border-color: rgba(201,169,98,0.5); background: rgba(201,169,98,0.07); }
.book-opt-gold { border-color: rgba(201,169,98,0.45); background: linear-gradient(150deg, rgba(201,169,98,0.12), rgba(244,241,234,0.03) 60%); }
.book-ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; color: var(--gold-2);
  background: rgba(201,169,98,0.12); border: 1px solid rgba(201,169,98,0.25);
}
.book-ic svg { width: 24px; height: 24px; }
.book-tx { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.book-tx strong { font-size: 1.05rem; }
.book-tx small { color: var(--ink-dim); font-size: 0.84rem; }
.book-go { color: var(--gold-2); font-size: 1.3rem; transition: transform 0.3s var(--ease); }
.book-opt:hover .book-go { transform: translateX(4px); }

.modal-err { color: #ff8a8a; font-size: 0.87rem; margin: -6px 0 12px; display: none; }
.modal-err.on { display: block; }
.modal-done { text-align: center; padding: 12px 0; }
.modal-done svg { margin: 0 auto 16px; }
.modal-done p { color: var(--ink-dim); margin: 8px 0 20px; }

/* ---------- reveal on scroll ---------- */
/* Hidden-until-observed only when JS runs (.js set inline in <head>) —
   without it the page below the hero would render blank. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.r1 { transition-delay: 0.08s; } .r2 { transition-delay: 0.16s; } .r3 { transition-delay: 0.24s; } .r4 { transition-delay: 0.32s; }

/* ---------- blur-up images ---------- */
.bimg { background-size: cover; background-position: center; filter: blur(0); }
.js .bimg:not(.in) { opacity: 0.001; }
img.bimg { transition: opacity 0.5s ease; }
.card-media .bimg, .p-item .bimg { opacity: 1; }
.card-media .bimg:not(.in), .p-item .bimg:not(.in) { opacity: 1; }

/* ---------- spinner ---------- */
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(244,241,234,0.15); border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   PROJECT PAGE (unbranded)
   ============================================================ */
.p-hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; }
.p-hero-media { position: absolute; inset: 0; }
.p-hero-img { width: 100%; height: 100%; object-fit: cover; }
.p-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,11,16,0.25), rgba(11,11,16,0.05) 40%, rgba(11,11,16,0.92) 100%);
}
.p-hero-copy { position: relative; z-index: 2; width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding-bottom: 90px; }
.p-loc { font-size: 0.82rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 12px; font-weight: 600; }
.p-facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.p-facts span {
  background: rgba(11,11,16,0.55); backdrop-filter: blur(8px); border: 1px solid var(--line);
  padding: 7px 15px; border-radius: 999px; font-size: 0.84rem; color: var(--ink);
}
.p-facts .p-tag { color: var(--gold-2); border-color: rgba(201,169,98,0.35); }
.p-scroll { bottom: 30px; }

.p-body { width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0 90px; }
.p-desc { max-width: 720px; margin: 0 auto 60px; text-align: center; color: var(--ink-dim); font-size: 1.12rem; }

.p-videos { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; margin-bottom: 70px; }
.p-video { position: relative; border-radius: var(--rad); overflow: hidden; background: var(--bg-3); box-shadow: var(--shadow); }
/* Full content width: YouTube (inside killerplayer) picks streaming quality
   from the rendered player size — a bigger player pulls 1080p sooner. */
.p-video.is-landscape { flex: 1 1 720px; max-width: 1100px; }
.p-video.is-portrait { flex: 0 1 360px; max-width: 400px; }
/* width:1px + min-width:100% — iOS WebKit sizes iframes to their CONTENT's
   min-width (killerplayer hard-codes 1080x1920 inside), blowing the card up
   to a zoomed corner of the player on phones. An absolute width the engine
   can honor + min-width restores the intended 100% on every browser. */
.p-video iframe { display: block; width: 1px; min-width: 100%; border: 0; position: relative; z-index: 2; transition: opacity 0.5s ease; }
/* Lazy-load fade and skeleton only apply with JS; the <noscript> iframe
   must render immediately with no shimmer behind it, and the src-less
   data-src iframe must not add an empty box above it. */
.p-video iframe[data-src] { display: none; }
.js .p-video iframe[data-src] { display: block; }
.js .p-video iframe { opacity: 0; }
.p-video iframe.in { opacity: 1; }
.p-video-skel { display: none; }
.js .p-video-skel { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(120deg, var(--bg-3), #1c1c27, var(--bg-3)); background-size: 200% 100%; animation: shimmer 1.6s ease infinite; }
@keyframes shimmer { 0% { background-position: 130% 0; } 100% { background-position: -130% 0; } }

.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 14px; }
.p-item { position: relative; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--bg-3); }
.p-item a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.p-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.p-item:hover img { transform: scale(1.045); }
.p-item.is-landscape { grid-column: span 2; }
.p-item.is-portrait { grid-row: span 2; }
/* Tail fillers: the odd-one-out photo gets promoted so the grid ends flush. */
.p-item.p-tail-big { grid-column: span 2; grid-row: span 2; }
.p-item.p-tail-wide { grid-column: span 4; grid-row: span 2; }
.p-zoom {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 10px;
  background: rgba(11,11,16,0.6); backdrop-filter: blur(6px); color: var(--ink);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none; /* overlay badge — clicks must fall through to the link */
}
.p-item:hover .p-zoom, .p-item:focus-within .p-zoom { opacity: 1; }

.p-foot { text-align: center; padding: 26px 0 34px; color: var(--ink-dim); font-size: 0.85rem; border-top: 1px solid var(--line); }

/* ---------- lightbox (PhotoSwipe skin — its CSS is lazy-loaded by site.js) ---------- */
.pswp { --pswp-bg: #050509; }
.pswp__counter { font-size: 0.88rem; letter-spacing: 0.1em; color: var(--ink-dim); text-shadow: none; }

/* ---------- admin quick-edit pill (rendered only for a logged-in admin) ---------- */
.admin-edit-bar {
  position: fixed; top: 14px; right: 14px; z-index: 400;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #171205;
  font-size: 0.85rem; font-weight: 600; padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 4px 18px rgba(5, 5, 9, 0.5);
  transition: filter 0.2s, transform 0.2s;
}
.admin-edit-bar:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ---------- 404 ---------- */
.err { padding-top: 200px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .grid, .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 22px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .p-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .p-item.p-tail-wide { grid-column: span 2; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  h1 { font-size: clamp(2.1rem, 10.5vw, 3.2rem); }
  .hero-sub { font-size: 1.03rem; }
  .hero-stats { gap: 26px; }
  .hero-stats strong { font-size: 1.7rem; }
  /* Text overlaps more of the photo field on small screens — dim it further. */
  .hf-card::after { background: rgba(11, 11, 16, 0.6); }
  .hero-vignette {
    background:
      radial-gradient(ellipse 130% 66% at 50% 55%, rgba(11,11,16,0.92) 0%, rgba(11,11,16,0.6) 60%, rgba(11,11,16,0.2) 100%),
      linear-gradient(to bottom, rgba(11,11,16,0.6), rgba(11,11,16,0.35) 30%, rgba(11,11,16,0.55) 70%, rgba(11,11,16,0.98) 100%);
  }
  .hero-copy h1 { text-shadow: 0 2px 26px rgba(5,5,9,0.95), 0 1px 4px rgba(5,5,9,0.9); }
  .grid, .svc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .p-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 8px; }
  .p-item.p-tail-wide { grid-column: span 2; }
  .p-video.is-landscape { flex-basis: 100%; }

  .nav-burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 105; background: rgba(11,11,16,0.97);
    flex-direction: column; justify-content: center; font-size: 1.3rem; gap: 30px;
    opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s 0.35s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity 0.35s ease; }
  body.menu-open { overflow: hidden; }
  /* backdrop-filter on .nav would turn it into the containing block for the
     fixed menu overlay (and clip it to the bar) — never combine the two. */
  body.menu-open .nav { backdrop-filter: none; transition: none; }
  .nav-burger { z-index: 110; }
  body.menu-open .nav-burger span:nth-child(1) { top: 17px; transform: rotate(45deg); }
  body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-burger span:nth-child(3) { top: 17px; transform: rotate(-45deg); }
}

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

/* QA helper: append ?static=1 to any page URL to freeze all animation. */
body.no-anim *, body.no-anim *::before, body.no-anim *::after {
  animation: none !important; transition: none !important;
}
body.no-anim .reveal, body.no-anim .hf-card { opacity: 1 !important; transform: none; }

/* ---------- site-wide promo bar ---------- */
.promo-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 101;
  height: 40px; display: flex; align-items: center; justify-content: center;
  padding: 0 14px; text-align: center;
  background: linear-gradient(90deg, #8a6d2f, var(--gold) 35%, var(--gold-2) 50%, var(--gold) 65%, #8a6d2f);
  color: #171205; font-weight: 600; font-size: 0.88rem; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.promo-bar em { font-style: normal; font-weight: 500; opacity: 0.75; margin-left: 4px; }
body.has-promo .nav { top: 40px; }
body.has-promo #pagebar { top: 40px; }

/* ---------- service card descriptions (multi-line + bullets) ---------- */
.svc-desc { color: var(--ink-dim); font-size: 0.92rem; flex: 1; }
.svc-desc ul { margin: 10px 0 0; padding-left: 2px; list-style: none; }
.svc-desc li { position: relative; padding-left: 18px; margin: 5px 0; }
.svc-desc li::before {
  content: "◆"; position: absolute; left: 0; top: 1px;
  color: var(--gold); font-size: 0.6rem; line-height: 2.1;
}

/* per-service promo ribbon */
.svc-promo {
  margin: 4px 0 10px;
  padding: 7px 12px;
  border-radius: 9px;
  background: linear-gradient(120deg, rgba(201,169,98,0.16), rgba(201,169,98,0.06));
  border: 1px solid rgba(201,169,98,0.45);
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* promo bar: mobile — allow two lines, keep nav offset in sync */
@media (max-width: 700px) {
  .promo-bar {
    height: 56px;
    padding: 6px 12px;
    white-space: normal;
    font-size: 0.78rem;
    line-height: 1.3;
  }
  .promo-bar span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .promo-bar em { display: inline; }
  body.has-promo .nav { top: 56px; }
  body.has-promo #pagebar { top: 56px; }
}

/* animated promo ribbon across the top of a service card.
   In-flow (not absolutely positioned) so any length of text wraps and the
   card grows with it — no clipping on narrow screens. Negative margins
   stretch it over the card's padding to meet the rounded edges.
   NOTE: no overflow:hidden on .svc — it would clip the MOST BOOKED pill
   that floats above the card edge; the ribbon rounds its own corners. */
.svc-haspromo { border-color: rgba(201,169,98,0.55); }
.svc-ribbon {
  margin: -30px -28px 4px;
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: center;
  /* Satin-gold base: a soft top light over a warm diagonal sweep, plus
     inset highlight/shade lines for a pressed-metal feel. The moving part
     is a two-layer glint (wide sheen + narrow bright core) that sweeps
     via transform and loops while fully OFF-SCREEN — smooth, no banding,
     and the restart can never flash into view. */
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 252, 240, 0.22), rgba(255, 252, 240, 0) 45%),
    linear-gradient(120deg, #eddca8, var(--gold) 55%, #b28e47);
  color: #171205; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.03em; line-height: 1.35;
  border-radius: calc(var(--rad) - 1px) calc(var(--rad) - 1px) 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 252, 235, 0.5),
    inset 0 -1px 0 rgba(80, 60, 22, 0.35),
    0 6px 18px -8px rgba(201, 169, 98, 0.55);
}
/* Continuous satin flow: soft LIGHT and DARK bands (silk-fold shimmer)
   drifting slowly and endlessly across the gold. The pattern is horizontal
   with a fixed 260px period; the layer is skewed for the diagonal look and
   translated by exactly one period per loop — perfectly seamless, no snap,
   no flash. Low alphas keep it elegant rather than busy. */
.svc-ribbon::before {
  content: ""; position: absolute; top: -8px; bottom: -8px;
  left: -300px; width: calc(100% + 620px);
  background: repeating-linear-gradient(90deg,
    rgba(255, 255, 248, 0)     0px,
    rgba(255, 255, 248, 0.17) 55px,
    rgba(255, 255, 248, 0)   110px,
    rgba(46, 32, 8, 0)       130px,
    rgba(46, 32, 8, 0.16)    185px,
    rgba(46, 32, 8, 0)       240px,
    rgba(255, 255, 248, 0)   260px);
  transform: skewX(-16deg) translateX(0);
  animation: ribbon-flow 11s linear infinite;
  pointer-events: none;
}
.svc-ribbon span { white-space: normal; text-align: center; position: relative; z-index: 1; }
.svc-ribbon em { font-style: normal; font-weight: 500; opacity: 0.75; white-space: nowrap; }
@keyframes ribbon-flow {
  to { transform: skewX(-16deg) translateX(-260px); }
}
/* with a ribbon, the MOST BOOKED pill joins the flow just below it,
   right-aligned so it mirrors its usual corner position */
.svc-haspromo .svc-flag { position: static; align-self: flex-end; margin: 2px 0 -4px; }
@media (prefers-reduced-motion: reduce) {
  .svc-ribbon::before { animation: none; display: none; }
}

/* nav scroll-spy active state */
.nav-links > a { position: relative; }
.nav-links > a.active { color: var(--gold-2); }
.nav-links > a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
