:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* photography zone: light, airy, warm */
  --cream: #FAF5EC;
  --black: #0E0C0B;
  --white: #FFFFFF;
  --ink: #221D19;
  --ink-muted: #6F6456;
  --ink-faint: #A2968450;
  --hair: rgba(34, 29, 25, 0.12);
  --gold: #D3A24E;
  --gold-deep: #9A6F2A;
  --gold-soft: rgba(211, 162, 78, 0.16);

  /* real estate zone: matches getwithgreg.com (navy, gold, cream) */
  --navy: #16233A;
  --navy-deep: #0F192B;
  --re-ink: #F5F0E6;
  --re-ink-muted: #B7C0CC;
  --re-ink-faint: #7C8A9A;
  --re-hair: rgba(245, 240, 230, 0.16);

  --radius: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  background: #1A1715;
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* One phone-width column. On desktop it floats centered like an app. */
.page {
  max-width: 480px;
  margin: 0 auto;
  background: var(--black);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}
@media (min-width: 560px) {
  body { padding: 28px 0; }
  .page { border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
}

/* ================= HERO (shared) ================= */
.hero {
  position: relative;
  height: 64vh;
  min-height: 440px;
  max-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 30%;
  animation: kenburns 14s var(--ease-out) both;
}
@keyframes kenburns {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
.hero-fade { position: absolute; inset: 0; pointer-events: none; }
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 24px 26px;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 9vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero p {
  font-size: 15px;
  line-height: 1.5;
  max-width: 31ch;
  margin: 0 auto 18px;
}

/* Share button, top right of the first hero */
.share-btn {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 14px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(250, 245, 236, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s var(--ease-out);
}
.share-btn:active { transform: scale(0.9); }
.share-btn svg { width: 17px; height: 17px; }

.socials { display: flex; justify-content: center; gap: 10px; }
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s var(--ease-out);
}
.socials a:active { transform: scale(0.88); }
.socials svg { width: 17px; height: 17px; }

/* ================= PHOTOGRAPHY ZONE ================= */
/* Dark, cinematic: the photo fades to black and the page stays dark below it */
.zone-photo { background: var(--black); color: #F5F0E6; padding-bottom: 36px; }
.zone-photo .hero-img {
  object-position: 50% 60%;
  transform-origin: 50% 35%;
  animation: kenburns-photo 14s var(--ease-out) both;
}
/* Slow zoom centered on the couple, so their heads stay in frame at every screen size */
@keyframes kenburns-photo {
  from { transform: scale(1.1); }
  to   { transform: scale(1.02); }
}
.zone-photo .hero-fade {
  background: linear-gradient(180deg,
    rgba(14,12,11,0) 50%,
    rgba(14,12,11,0.75) 68%,
    rgba(14,12,11,0.96) 82%,
    var(--black) 100%);
}
.zone-photo h1 { color: #FAF5EC; }
.zone-photo h1 em { color: var(--gold); }
.zone-photo .hero p { color: rgba(245,240,230,0.72); }
.zone-photo .socials a {
  background: rgba(245,240,230,0.1);
  border: 1px solid rgba(245,240,230,0.22);
  color: #FAF5EC;
}
.zone-photo .label h2 { color: #FAF5EC; }
.zone-photo .label .rule { background: rgba(245,240,230,0.16); }
.zone-photo .btn { background: #F5F0E6; box-shadow: 0 8px 22px rgba(0,0,0,0.4); }
.zone-photo .btn.primary { background: var(--gold); box-shadow: 0 10px 28px rgba(211,162,78,0.3); }
.zone-photo .disclosure { color: rgba(245,240,230,0.5); opacity: 1; }
.zone-photo .bridge { border: 1px solid rgba(245,240,230,0.1); }

.inner { padding: 0 20px; }

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 4px 14px;
}
.label h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  margin: 0;
  white-space: nowrap;
}
.label .rule { flex: 1; height: 1px; background: var(--hair); }

.stack { display: flex; flex-direction: column; gap: 10px; }

.btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(34,29,25,0.04), 0 6px 18px rgba(34, 29, 25, 0.07);
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(34, 29, 25, 0.12); }
}
.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: var(--gold-deep);
}
.btn-icon svg { width: 19px; height: 19px; }
.btn-text { flex: 1; min-width: 0; }
.btn-label { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.btn-sub { display: block; font-size: 12.5px; opacity: 0.68; margin-top: 2px; }
.btn-arrow { flex-shrink: 0; opacity: 0.45; transition: transform 0.25s var(--ease-out); }
.btn-arrow svg { width: 15px; height: 15px; display: block; }
.btn:active .btn-arrow { transform: translateX(3px); }

/* Primary CTA: gold, with a soft shimmer that sweeps across every few seconds */
.btn.primary {
  background: var(--gold);
  color: #2A1D08;
  box-shadow: 0 10px 26px rgba(211, 162, 78, 0.38);
}
.btn.primary .btn-icon { background: rgba(255,255,255,0.3); color: #2A1D08; }
.btn.primary .btn-arrow { opacity: 0.7; }
.btn.primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-18deg);
  animation: shimmer 4.5s ease-in-out 1.6s infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%   { left: -60%; }
  28%  { left: 130%; }
  100% { left: 130%; }
}

.disclosure {
  font-size: 11.5px;
  color: var(--ink-muted);
  opacity: 0.8;
  text-align: center;
  margin: 10px 4px 0;
}

/* Transition into real estate */
.bridge {
  margin: 44px 20px 0;
  padding: 26px 20px 28px;
  border-radius: 22px;
  background: var(--navy);
  color: var(--re-ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bridge::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(211,162,78,0.35), transparent);
}
.bridge p {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  margin: 0 0 16px;
}
.bridge p em { font-style: italic; color: var(--gold); font-weight: 500; }
.scroll-cue {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: var(--gold);
  color: #2A1D08;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s var(--ease-out);
}
.scroll-cue:active { transform: scale(0.95); }
.scroll-cue svg { width: 14px; height: 14px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* ================= REAL ESTATE ZONE ================= */
.zone-realestate {
  background: var(--navy);
  color: var(--re-ink);
  padding-bottom: 36px;
}
.zone-realestate .hero-img { object-position: 50% 18%; animation: none; }
.zone-realestate.in-view .hero-img { animation: kenburns 14s var(--ease-out) both; }
.zone-realestate .hero-fade {
  background: linear-gradient(180deg,
    rgba(22,35,58,0) 40%,
    rgba(22,35,58,0.72) 62%,
    rgba(22,35,58,0.96) 80%,
    var(--navy) 100%);
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}
.brand-badge img { height: 34px; width: auto; }
.brand-badge img.wide { height: 20px; }
.zone-realestate h1 { color: var(--re-ink); }
.zone-realestate .hero p { color: var(--re-ink-muted); }
.zone-realestate .socials a {
  background: rgba(245,240,230,0.1);
  border: 1px solid rgba(245,240,230,0.22);
  color: var(--re-ink);
}
.zone-realestate .label h2 { color: var(--re-ink); }
.zone-realestate .label .rule { background: var(--re-hair); }

/* Featured listings: swipeable cards with a peek of the next one */
.listings {
  position: relative;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 20px 14px;
  margin: 0;
  scrollbar-width: none;
}
.listings::-webkit-scrollbar { display: none; }
.listing {
  position: relative;
  flex: 0 0 84%;
  scroll-snap-align: center;
  background: var(--cream);
  color: var(--ink);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s var(--ease-out);
}
.listing:active { transform: scale(0.98); }
.listing-photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
@media (hover: hover) { .listing:hover .listing-photo img { transform: scale(1.04); } }
.tag {
  position: absolute;
  top: 14px;
  left: 12px;
  padding: 6px 12px;
  background: var(--gold);
  color: #2A1D08;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  transform: rotate(-4deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.listing-body { padding: 14px 16px 16px; }
.listing-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  color: var(--navy);
}
.listing-addr { font-size: 13.5px; font-weight: 500; margin-top: 6px; }
.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hair);
  font-size: 12.5px;
  color: var(--ink-muted);
}
.listing-meta b { color: var(--ink); font-weight: 600; }
.listing-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
}
.listing-cta svg { width: 13px; height: 13px; }

.dots { display: flex; justify-content: center; gap: 6px; margin: 2px 0 4px; }
.dots span {
  width: 6px; height: 6px; border-radius: 3px;
  background: rgba(245,240,230,0.3);
  transition: width 0.3s var(--ease-out), background 0.3s;
}
.dots span.active { width: 18px; background: var(--gold); }

/* Real estate buttons: cream on navy, gold primary */
.zone-realestate .btn { background: var(--cream); box-shadow: 0 8px 22px rgba(0,0,0,0.22); }
.zone-realestate .btn .btn-icon { background: rgba(22,35,58,0.08); color: var(--navy); }
.zone-realestate .btn.primary { background: var(--gold); box-shadow: 0 10px 26px rgba(211,162,78,0.3); }
.zone-realestate .btn.primary .btn-icon { background: rgba(255,255,255,0.3); color: #2A1D08; }

/* ================= Sticky back pill ================= */
.sticky-back {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.4s var(--ease-out);
}
.sticky-back.show { transform: translateX(-50%) translateY(0); }
.sticky-back svg { width: 13px; height: 13px; }

/* ================= Footer ================= */
.footer {
  background: var(--navy);
  color: var(--re-ink-faint);
  text-align: center;
  font-size: 11.5px;
  line-height: 1.6;
  padding: 18px 24px calc(30px + env(safe-area-inset-bottom, 0px));
}
.footer a { color: var(--re-ink-faint); text-decoration: underline; text-underline-offset: 3px; }

/* ================= Toast ================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(14px);
  background: var(--ink);
  color: var(--cream);
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
  pointer-events: none;
  z-index: 50;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================= Entrance animations ================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.reveal.in { opacity: 1; transform: none; }

/* Respect people who've asked their phone for less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

.zone-photo .brand-badge { color: var(--ink); }
.zone-photo .hero { height: 70vh; min-height: 480px; max-height: 660px; }
