/* =========================================================
   Thomas Galicia Real Estate — brand system
   Palette drawn from the TG monogram: ink black, warm ivory,
   and a brushed-gold accent. Serif display + tracked sans.
   ========================================================= */

:root{
  --ink:        #0b0b0c;
  --ink-2:      #131315;
  --ink-3:      #1c1c1f;
  --hairline:   rgba(245, 241, 230, 0.10);
  --ivory:      #f5f1e6;
  --ivory-dim:  rgba(245, 241, 230, 0.68);
  --ivory-faint:rgba(245, 241, 230, 0.40);
  --gold:       #cda85e;
  --gold-bright:#f3d98b;
  --gold-deep:  #9c7a35;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', 'Helvetica Neue', Arial, sans-serif;

  --max: 1240px;
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
  --radius: 2px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 118px; }

body{
  margin:0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{ max-width:100%; display:block; }
a{ color: inherit; }

h1,h2,h3,h4{
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--ivory);
}

::selection{ background: var(--gold-deep); color: var(--ivory); }

/* ---------- utility ---------- */
.eyebrow{
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 0.9em;
  font-weight: 400;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  padding: 0.95em 2.1em;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration:none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor:pointer;
  transition: all .35s ease;
  white-space: nowrap;
}
.btn-gold{
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #1a1408;
  font-weight: 500;
}
.btn-gold:hover{ filter: brightness(1.08); transform: translateY(-1px); }

.btn-outline{
  border-color: var(--ivory-faint);
  color: var(--ivory);
  background: transparent;
}
.btn-outline:hover{ border-color: var(--gold); color: var(--gold-bright); }

.btn-ghost{
  border-color: var(--gold-deep);
  color: var(--gold-bright);
  background: transparent;
  padding: 0.7em 1.6em;
}
.btn-ghost:hover{ background: rgba(205,168,94,0.1); border-color: var(--gold); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(11,11,12,0.85), rgba(11,11,12,0));
  backdrop-filter: blur(6px);
  transition: background .4s ease, box-shadow .4s ease;
}
.site-header.is-scrolled{
  background: rgba(11,11,12,0.92);
  box-shadow: 0 1px 0 var(--hairline);
}
.header-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.3rem var(--gutter);
  display:flex;
  align-items:center;
  gap: 0.9rem;
  transition: padding .4s ease;
}
.brand{
  display:flex;
  align-items:center;
  gap: 1.25rem;
  text-decoration:none;
  margin-right: auto;
}
.brand-mark{ flex: none; }
/* Larger, prominent logo in the top ribbon (condenses on scroll). */
.site-header .brand-mark{ width: 94px; height: auto; transition: width .4s ease; }
.brand-text{ display:flex; flex-direction:column; line-height:1.15; white-space:nowrap; }
.brand-text strong{
  font-family: var(--serif);
  font-size: 1.96rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ivory);
  transition: font-size .4s ease;
}
.brand-text em{
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* On scroll, condense the ribbon a bit — still notably larger than before. */
.site-header.is-scrolled .header-inner{ padding-top: 1.38rem; padding-bottom: 1.38rem; }
.site-header.is-scrolled .brand-mark{ width: 64px; }
.site-header.is-scrolled .brand-text strong{ font-size: 1.63rem; }

.main-nav{ display:flex; gap: 1.05rem; }
.main-nav a{
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration:none;
  color: var(--ivory-dim);
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color .25s ease;
}
.main-nav a::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:0;
  height:1px; background: var(--gold);
  transition: right .3s ease;
}
.main-nav a:hover{ color: var(--ivory); }
.main-nav a:hover::after{ right:0; }

.nav-cta{ flex: none; }

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width: 38px; height: 38px;
  background:transparent; border:1px solid var(--hairline);
  border-radius: var(--radius);
  cursor:pointer;
}
.nav-toggle span{
  display:block; height:1px; margin:0 9px;
  background: var(--ivory);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.mobile-nav{
  display:none;
  flex-direction:column;
  gap: 0;
  background: var(--ink-2);
  border-top: 1px solid var(--hairline);
}
.mobile-nav a{
  padding: 1rem var(--gutter);
  text-decoration:none;
  color: var(--ivory-dim);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--hairline);
}
.mobile-nav .mobile-cta{
  color: var(--gold-bright);
  background: rgba(205,168,94,0.08);
}
.mobile-nav.is-open{ display:flex; }

@media (max-width: 920px){
  .main-nav, .nav-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .site-header .brand-mark{ width: 71px; }
  .site-header.is-scrolled .brand-mark{ width: 55px; }
  .header-inner{ padding: 1.6rem var(--gutter); }
}
@media (max-width: 480px){
  .brand-text strong{ font-size: 1.4rem; }
  .brand-text em{ display:none; }
  .site-header .brand-mark{ width: 62px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:
    radial-gradient(ellipse at 18% 22%, rgba(205,168,94,0.10), transparent 45%),
    linear-gradient(180deg, #0b0b0c 0%, #131315 60%, #0b0b0c 100%);
}
.hero-glow{
  position:absolute;
  inset: -20% -10% auto auto;
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(205,168,94,0.16), transparent 60%);
  filter: blur(10px);
  pointer-events:none;
}

/* ---- Floating 3D icon field ---- */
.floaties{ position:absolute; inset:0; z-index:1; pointer-events:none; }
.floatie{
  position:absolute;
  left: var(--x); top: var(--y);
  width: calc(60px * var(--s, 1));
  height: calc(60px * var(--s, 1));
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.floatie svg{
  width:100%; height:100%;
  fill:none; stroke: var(--gold);
  stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.45;
  filter: drop-shadow(0 8px 18px rgba(205,168,94,0.18));
  transform-origin: center;
  animation: floatBob 8s ease-in-out infinite;
}
@keyframes floatBob{
  0%,100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-16px) rotate(5deg); }
}
.floatie:nth-child(1) svg{ animation-duration: 7.5s; }
.floatie:nth-child(2) svg{ animation-duration: 9s;  animation-delay: -2s; }
.floatie:nth-child(3) svg{ animation-duration: 8.2s; animation-delay: -4s; }
.floatie:nth-child(4) svg{ animation-duration: 10s; animation-delay: -1s; }
.floatie:nth-child(5) svg{ animation-duration: 6.8s; animation-delay: -3s; }
.floatie:nth-child(6) svg{ animation-duration: 9.5s; animation-delay: -5s; }
@media (max-width: 720px){ .floatie:nth-child(n+4){ display:none; } }

/* ---- Word-by-word bio reveal ---- */
.reveal-words .word{
  display:inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotateX(28deg);
  transition: opacity .5s ease, transform .5s ease;
  will-change: opacity, transform;
}
.reveal-words.words-in .word{ opacity: 1; transform: none; }

/* ---- Golden Gate + SF skyline horizon ---- */
.hero-skyline{
  position:absolute; left:-2%; bottom:0; width:104%;
  z-index:1; pointer-events:none;
  opacity:0.55;
  transform: translateX(var(--sx, 0px));
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  -webkit-mask-image: linear-gradient(to top, #000 78%, transparent 100%);
  mask-image: linear-gradient(to top, #000 78%, transparent 100%);
}
.hero-skyline svg{
  display:block; width:100%; height:auto;
  animation: skyRise 1.7s cubic-bezier(.2,.7,.2,1) .25s both;
}
@keyframes skyRise{ from{ opacity:0; transform: translateY(28px); } to{ opacity:1; transform:none; } }
.hero-skyline .sk-water{ opacity:0.7; }
.hero-skyline .sk-susp{ opacity:0.6; }
.hero-skyline .sk-cable{ stroke-dasharray:1; stroke-dashoffset:1; animation: skDraw 2.4s ease .5s forwards; }
@keyframes skDraw{ to{ stroke-dashoffset:0; } }

/* Skyline buildings draw on left-to-right, staggered, finishing with the cable */
.hero-skyline .sk-skyline path{
  stroke-dasharray:1; stroke-dashoffset:1;
  animation: skDraw .5s ease forwards;
}
.hero-skyline .sk-skyline path:nth-child(1){ animation-delay:.90s; }
.hero-skyline .sk-skyline path:nth-child(2){ animation-delay:1.03s; }
.hero-skyline .sk-skyline path:nth-child(3){ animation-delay:1.16s; }
.hero-skyline .sk-skyline path:nth-child(4){ animation-delay:1.29s; }
.hero-skyline .sk-skyline path:nth-child(5){ animation-delay:1.42s; }
.hero-skyline .sk-skyline path:nth-child(6){ animation-delay:1.55s; }
.hero-skyline .sk-skyline path:nth-child(7){ animation-delay:1.68s; }
.hero-skyline .sk-skyline path:nth-child(8){ animation-delay:1.81s; }
.hero-skyline .sk-skyline path:nth-child(9){ animation-delay:1.94s; }
.hero-skyline .sk-skyline path:nth-child(10){ animation-delay:2.07s; }
.hero-skyline .sk-skyline path:nth-child(11){ animation-delay:2.20s; }
.hero-skyline .sk-skyline path:nth-child(12){ animation-delay:2.33s; }
.hero-skyline .sk-skyline path:nth-child(13){ animation-delay:2.46s; }

/* ---- Subtle light show (bridge shimmer + building windows) ---- */
.hero-skyline .sky-lights circle{
  fill: #fdf4df;
  opacity: 0;                 /* off until their delay (after the draw) */
}
.hero-skyline .bridge-lights circle{
  animation: skyTwinkle 3.4s ease-in-out infinite;
}
.hero-skyline .bld-lights circle{
  animation: skyWindow 5.6s ease-in-out infinite;
}
@keyframes skyTwinkle{       /* gentle shimmer along the cable */
  0%, 100% { opacity: 0.10; }
  50%      { opacity: 0.74; }
}
@keyframes skyWindow{        /* a window turning on, holding, then off */
  0%, 16%  { opacity: 0; }
  30%, 58% { opacity: 0.7; }
  74%, 100%{ opacity: 0; }
}
@media (max-width: 700px){ .hero-skyline{ opacity:0.4; left:-6%; width:112%; } }

/* ---- Washed-out brand portrait in the hero (left of text, tinted) ---- */
.hero-portrait{
  position:absolute; left:-1%; bottom:0;
  height:100%; max-height:none;   /* fill the hero top-to-bottom */
  z-index:1; pointer-events:none;
  opacity:0.62;                   /* 35% less washed out */
  /* feathered oval, lowered to reveal the desk, fully transparent before the
     photo edges so the rectangular boundary never shows a seam */
  -webkit-mask-image: radial-gradient(52% 68% at 46% 51%, #000 20%, rgba(0,0,0,0.5) 55%, transparent 78%);
          mask-image: radial-gradient(52% 68% at 46% 51%, #000 20%, rgba(0,0,0,0.5) 55%, transparent 78%);
}
.hero-portrait img{
  height:100%; width:auto; display:block;
  /* gold washout (restored) */
  filter: grayscale(.62) sepia(.5) brightness(.72) contrast(1.06);
}
.hero-portrait::after{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(52% 68% at 46% 49%, rgba(205,168,94,0.18), transparent 62%),
    linear-gradient(to right, transparent 40%, rgba(11,11,12,0.88) 82%),
    linear-gradient(to top, rgba(11,11,12,0.22), transparent 26%, transparent 60%, rgba(11,11,12,0.95));
}
@media (max-width: 1024px){ .hero-portrait{ opacity:0.49; left:-8%; } }
@media (max-width: 600px){
  /* Portrait: fill the hero, centered on Thomas's face */
  .hero-portrait{
    display: block;
    left: 0; right: 0; top: 0; bottom: 0;
    width: 100%; height: 100%;
    opacity: 0.34;
    -webkit-mask-image: radial-gradient(72% 72% at 50% 36%, #000 12%, rgba(0,0,0,0.55) 52%, transparent 80%);
            mask-image: radial-gradient(72% 72% at 50% 36%, #000 12%, rgba(0,0,0,0.55) 52%, transparent 80%);
  }
  .hero-portrait img{
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 18%;  /* frame face / upper body */
  }
  .hero-portrait::after{
    background:
      radial-gradient(72% 72% at 50% 34%, rgba(205,168,94,0.08), transparent 58%),
      linear-gradient(to bottom, rgba(11,11,12,0.15), rgba(11,11,12,0.28) 50%, rgba(11,11,12,0.82) 100%);
  }
}

/* ---- Rotating sold-listing photos, mirroring the portrait on the right ---- */
.hero-listings{
  position:absolute; top:0; right:0; bottom:0;
  width: min(48%, 880px);
  z-index:1; pointer-events:none;
  opacity:0.6;
  /* feathered oval centred toward the right, transparent before the edges */
  -webkit-mask-image: radial-gradient(62% 70% at 56% 50%, #000 18%, rgba(0,0,0,0.5) 54%, transparent 80%);
          mask-image: radial-gradient(62% 70% at 56% 50%, #000 18%, rgba(0,0,0,0.5) 54%, transparent 80%);
}
.hl-slide{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; object-position:center;
  opacity:0;
  transition: opacity 1.3s ease;
  /* same gold washout as the portrait */
  filter: grayscale(.62) sepia(.5) brightness(.6) contrast(1.05);
}
.hl-slide.is-active{ opacity:1; }
.hero-listings::after{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(62% 70% at 56% 48%, rgba(205,168,94,0.16), transparent 62%),
    linear-gradient(to left, transparent 38%, rgba(11,11,12,0.9) 84%),
    linear-gradient(to top, rgba(11,11,12,0.35), transparent 26%, transparent 60%, rgba(11,11,12,0.92));
}
@media (max-width: 1024px){ .hero-listings{ opacity:0.4; right:-6%; } }
@media (max-width: 600px){
  /* Listings: horizontal photo strip above the scroll cue */
  .hero-listings{
    display: block;
    top: auto; left: 0; right: 0;
    bottom: 7rem;
    width: 100%;
    height: 130px;
    opacity: 0.50;
    -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.6) 55%, transparent 100%);
            mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.6) 55%, transparent 100%);
  }
  .hero-listings::after{
    background:
      linear-gradient(to right, rgba(11,11,12,0.85) 0%, transparent 22%, transparent 78%, rgba(11,11,12,0.85) 100%),
      linear-gradient(to bottom, rgba(11,11,12,0.55), transparent 60%),
      radial-gradient(62% 70% at 56% 48%, rgba(205,168,94,0.08), transparent 62%);
  }
}
.hero-inner{
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8rem var(--gutter) 7rem;
  max-width: calc(var(--max) - 0px);
  text-align: center;
}
.hero-inner > *{ max-width: 760px; margin-left: auto; margin-right: auto; }
.hero .eyebrow{ font-size: 0.83rem; }   /* hero text +15% */
.hero h1{
  font-size: clamp(2.99rem, 6.9vw, 5.29rem);
  line-height: 1.08;
  margin-bottom: 0.45em;
  max-width: 1040px;   /* keep each sentence on one line at the larger size */
}
.hero-lede{
  font-size: 1.24rem;
  color: var(--ivory-dim);
  max-width: 700px;
  margin: 0 auto 2.4rem;
}
.hero-actions{ display:flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.scroll-cue{
  position:absolute;
  left: var(--gutter);
  bottom: 2.6rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: .6rem;
  text-decoration:none;
  color: var(--ivory-faint);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.scroll-cue-line{
  width:1px; height: 46px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse{
  0%,100%{ opacity:.35; transform: scaleY(.7); transform-origin: top; }
  50%{ opacity:1; transform: scaleY(1); transform-origin: top; }
}

/* =========================================================
   SHARED SECTION LAYOUT
   ========================================================= */
.section{
  padding: 6.5rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.alt-bg{ max-width: none; background: var(--ink-2); }
.alt-bg > *{ max-width: var(--max); margin-left:auto; margin-right:auto; }
/* Narrower elements (section intros, disclaimers) should stay flush left
   like they do in non-alt-bg sections, not get centered by the rule above. */
.alt-bg > .section-head,
.alt-bg > .pulse-disclaimer{ margin-left: 0; margin-right: auto; }

.section-head{ max-width: 680px; margin-bottom: 3.2rem; }
.section-head h2{ font-size: clamp(2rem, 4vw, 2.8rem); }
.section-lede{ color: var(--ivory-dim); font-size: 1.02rem; }

/* Bay Area Pulse intro + disclaimer are centered */
.pulse-section > .section-head{
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.pulse-section > .section-head .section-lede{ margin-left: auto; margin-right: auto; }
.pulse-section > .pulse-disclaimer{
  margin-left: auto; margin-right: auto;
  text-align: center;
}

/* =========================================================
   LISTINGS
   ========================================================= */
.listing-tabs{
  display:flex; flex-wrap:wrap; gap: 0.6rem;
  margin-bottom: 2.6rem;
}
.tab-btn{
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.7em 1.6em;
  cursor:pointer;
  transition: all .3s ease;
}
.tab-btn:hover{ color: var(--ivory); border-color: var(--ivory-faint); }
.tab-btn.is-active{
  color: #1a1408;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: transparent;
}

.listings-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.6rem;
}

/* ---- shared 3D tilt primitive (driven by JS via --rx/--ry) ---- */
.tilt{
  --rx: 0deg; --ry: 0deg; --lift: 0px; --mx: 50%; --my: 50%;
  transform: perspective(1000px) translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  will-change: transform;
}

.listing-card{
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition: transform .3s ease, border-color .35s ease, box-shadow .35s ease;
}
.listing-card:hover{
  --lift: -6px;
  border-color: rgba(205,168,94,0.45);
  box-shadow: 0 26px 55px -22px rgba(0,0,0,0.75);
}
.listing-media{
  position:relative;
  aspect-ratio: 4 / 3;
  overflow:hidden;
  background:
    linear-gradient(160deg, #2a2620, #15130f 60%),
    repeating-linear-gradient(135deg, rgba(245,241,230,0.035) 0 2px, transparent 2px 26px);
  display:flex; align-items:flex-end;
}
.listing-photo{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .6s ease;
}
.listing-card:hover .listing-photo{ transform: scale(1.08); }
.listing-media::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(11,11,12,0) 45%, rgba(11,11,12,0.7) 100%);
  pointer-events:none;
}
.listing-card .listing-status{ position:relative; z-index:2; }
.listing-card .listing-sample{ z-index:2; }

/* clickable photo button + gallery hint */
.listing-photo-btn{
  position:absolute; inset:0; z-index:1;
  padding:0; border:0; background:none; cursor:pointer;
  display:block; width:100%; height:100%;
}
.gallery-hint{
  position:absolute; right:0.9rem; bottom:0.9rem; z-index:3;
  display:inline-flex; align-items:center; gap:0.45em;
  font-size:0.66rem; letter-spacing:0.12em; text-transform:uppercase;
  color: var(--ivory);
  padding:0.5em 0.85em; border-radius:999px;
  background: rgba(11,11,12,0.62); border:1px solid rgba(245,241,230,0.22);
  backdrop-filter: blur(4px);
  opacity:0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease, border-color .3s ease;
}
.gallery-hint svg{ width:14px; height:14px; fill:none; stroke: var(--gold-bright); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.listing-card:hover .gallery-hint{ opacity:1; transform:none; border-color: rgba(205,168,94,0.6); }
.listing-photo-btn:focus-visible{ outline:2px solid var(--gold); outline-offset:-4px; }
.listing-photo-btn:focus-visible .gallery-hint{ opacity:1; transform:none; }

.listing-noimg{
  position:absolute; inset:0; z-index:1;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0.8rem;
  text-align:center; padding:0 1.5rem;
  color: var(--ivory-faint);
}
.listing-noimg svg{ width:34px; height:34px; fill:none; stroke:var(--gold-deep); stroke-width:1.2; stroke-linecap:round; stroke-linejoin:round; }
.listing-noimg span{ font-size:0.68rem; letter-spacing:0.18em; text-transform:uppercase; }

/* ---- Lightbox / gallery ---- */
.lightbox{ position:fixed; inset:0; z-index:120; display:none; }
.lightbox.is-open{ display:block; }
.lightbox-backdrop{ position:absolute; inset:0; background:rgba(6,6,7,0.92); backdrop-filter: blur(4px); animation: lbFade .25s ease; }
@keyframes lbFade{ from{ opacity:0; } to{ opacity:1; } }
.lightbox-dialog{
  position:absolute; inset:0;
  display:grid; grid-template-columns:auto 1fr auto; grid-template-rows:1fr auto;
  align-items:center; gap:0.5rem;
  padding: clamp(1rem, 4vw, 3rem);
}
.lb-stage{
  grid-column:2; grid-row:1;
  margin:0; display:flex; align-items:center; justify-content:center;
  min-height:0; height:100%;
}
.lb-stage img{
  max-width:100%; max-height:100%;
  object-fit:contain; border-radius:8px;
  box-shadow:0 30px 80px -20px rgba(0,0,0,0.9);
  animation: lbFade .25s ease;
}
.lb-nav{
  position:relative; z-index:2;
  width:54px; height:54px; border-radius:50%;
  background:rgba(20,18,16,0.7); border:1px solid var(--hairline);
  color:var(--ivory); font-size:2rem; line-height:1; cursor:pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.lb-prev{ grid-column:1; grid-row:1; }
.lb-next{ grid-column:3; grid-row:1; }
.lb-nav:hover{ background:var(--gold-deep); border-color:var(--gold); transform:scale(1.06); }
.lb-close{
  position:absolute; top:1.1rem; right:1.3rem; z-index:3;
  width:44px; height:44px; border-radius:50%;
  background:rgba(20,18,16,0.7); border:1px solid var(--hairline);
  color:var(--ivory); font-size:1.7rem; line-height:1; cursor:pointer;
  transition: background .25s ease, border-color .25s ease;
}
.lb-close:hover{ background:var(--gold-deep); border-color:var(--gold); }
.lb-bar{
  grid-column:1 / -1; grid-row:2;
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
  color:var(--ivory-dim); padding-top:0.8rem;
}
.lb-title{ font-family:var(--serif); font-size:1.1rem; color:var(--ivory); }
.lb-count{ font-size:0.85rem; letter-spacing:0.08em; color:var(--gold-bright); font-variant-numeric:tabular-nums; }
@media (max-width:560px){
  .lb-nav{ width:44px; height:44px; font-size:1.6rem; }
  .lb-close{ top:0.6rem; right:0.6rem; }
}
.listing-status{
  margin: 1rem;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.5em 1em;
  border-radius: 999px;
  background: rgba(11,11,12,0.65);
  border: 1px solid rgba(245,241,230,0.18);
  color: var(--ivory);
  backdrop-filter: blur(3px);
}
.listing-status.status-on-market{ border-color: rgba(205,168,94,0.55); color: var(--gold-bright); }
.listing-status.status-in-contract{ border-color: rgba(245,241,230,0.4); color: var(--ivory); }
.listing-status.status-closed{ border-color: rgba(245,241,230,0.22); color: var(--ivory-dim); }

.listing-monogram{
  position:absolute; top: 1rem; right: 1rem;
  width: 30px; opacity: 0.5;
}

.listing-body{ padding: 1.4rem 1.5rem 1.7rem; display:flex; flex-direction:column; gap: 0.35rem; flex:1; }
.listing-address{ font-family: var(--serif); font-size: 1.32rem; color: var(--ivory); margin:0; }
.listing-locale{ font-size: 0.78rem; letter-spacing: 0.08em; color: var(--ivory-faint); text-transform: uppercase; }
.listing-meta{ display:flex; gap: 1.1rem; font-size: 0.84rem; color: var(--ivory-dim); margin: 0.5rem 0 0.2rem; }
.listing-price-row{
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--hairline);
  display:flex; align-items:baseline; justify-content:space-between;
}
.listing-price{ font-family: var(--serif); font-size: 1.5rem; color: var(--gold-bright); }
.listing-price-label{ font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-faint); }

.listing-sample{
  position:absolute; top: 1rem; right: 1rem;
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.35em 0.8em; border-radius: 999px;
  background: rgba(226,164,164,0.14);
  border: 1px solid rgba(226,164,164,0.5);
  color: #e9bcbc;
  backdrop-filter: blur(3px);
}
.listing-note{
  margin: 0.1rem 0 0;
  font-size: 0.74rem; letter-spacing: 0.02em;
  color: var(--gold);
  font-style: italic;
}
.listing-source{
  margin-top: 0.7rem;
  display:inline-block;
  font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--ivory-faint);
  text-decoration: none;
}
.listing-source:hover{ color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* Request Marketing Package CTA on active / pending listing cards */
.listing-cta{
  margin-top: 1.1rem;
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--sans);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-bright);
  background: linear-gradient(180deg, rgba(205,168,94,0.12), rgba(205,168,94,0.04));
  border: 1px solid rgba(205,168,94,0.55);
  border-radius: 10px;
  padding: 0.85em 1em;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.listing-cta svg{ width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.listing-cta:hover{
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1407;
  transform: translateY(-1px);
}
.listing-cta:focus-visible{ outline: 2px solid var(--gold); outline-offset: 2px; }

.tab-count{ color: var(--gold); font-variant-numeric: tabular-nums; margin-left: 0.15em; }

.listings-empty{
  grid-column: 1 / -1;
  text-align:center;
  max-width: 640px;
  margin: 1.5rem auto;
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  color: var(--ivory-dim);
  font-size: 1.02rem;
  line-height: 1.7;
}
.listings-empty a{ color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.listings-disclaimer{
  margin-top: 2.4rem;
  font-size: 0.8rem;
  color: var(--ivory-faint);
  max-width: 780px;
  line-height: 1.7;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid{
  display:grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items:center;
}
@media (max-width: 880px){ .about-grid{ grid-template-columns: 1fr; gap: 2.4rem; } }

.about-portrait{ perspective: 1200px; }
.about-portrait-frame{
  position:relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow:hidden;
  background: linear-gradient(160deg, #211d16, #0e0d0b);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
  /* entrance state: popped down + hidden until scrolled into view */
  opacity: 0;
  transform: translateY(40px) scale(0.92) rotateX(8deg);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.about-portrait-frame.is-in{
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
}
.about-portrait-frame img{
  display:block; width:100%; height:100%;
  object-fit: cover; object-position: 50% 30%;
}
/* gentle perpetual float once it has arrived */
.about-portrait-frame.is-in{ animation: portraitFloat 6s ease-in-out 1s infinite; }
@keyframes portraitFloat{
  0%,100%{ transform: translateY(0) scale(1); }
  50%{ transform: translateY(-12px) scale(1.012); }
}
.about-portrait-frame::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(120% 90% at 50% -10%, rgba(205,168,94,0.18), transparent 55%);
}
.about-portrait-badge{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  padding: 1.6rem 1.2rem 1.1rem;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivory); text-align:center;
  background: linear-gradient(180deg, transparent, rgba(11,11,12,0.85));
}

.about-copy h2{ font-size: clamp(2rem, 4vw, 2.8rem); }
.about-lede{ font-size: 1.12rem; color: var(--ivory); }
.about-copy p{ color: var(--ivory-dim); }
.about-copy .nowrap{ white-space: nowrap; color: var(--gold-bright); }
/* text links inside bio paragraphs only — must NOT restyle the gold button */
.about-copy p a{
  color: var(--gold-bright); text-decoration: none;
  border-bottom: 1px solid rgba(205,168,94,0.45);
  transition: border-color .25s ease, color .25s ease;
}
.about-copy p a:hover{ color: var(--ivory); border-color: var(--gold-bright); }

.about-creds{
  list-style:none; margin: 2rem 0; padding:0;
  display:grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.8rem;
}
@media (max-width: 560px){ .about-creds{ grid-template-columns: 1fr; } }
.about-creds li{
  font-size: 0.86rem; color: var(--ivory-dim);
  padding-left: 1rem; border-left: 2px solid var(--gold-deep); line-height:1.5;
}
.about-creds li span{ display:block; font-family: var(--serif); font-size: 1.05rem; color: var(--ivory); margin-bottom: 0.1rem; }

/* Quiet team-affiliation row — informational, not a headline */
.about-team{
  display:flex; align-items:center; gap: 1rem;
  margin: 0 0 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
}
.about-team img{
  height: 26px; width: auto;
  opacity: 0.8;
}
.about-team span{
  font-size: 0.78rem; letter-spacing: 0.05em;
  color: var(--ivory-faint);
  line-height: 1.5;
}
@media (max-width: 560px){
  .about-team{ flex-direction:column; align-items:flex-start; gap: 0.6rem; }
}

.about-disclaimer{
  margin-top: 2.6rem;
  font-size: 0.78rem; color: var(--ivory-faint); max-width: 780px; line-height: 1.7;
}

/* =========================================================
   BAY AREA PULSE — NINE COUNTIES
   ========================================================= */
.counties{
  display:grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  align-items:start;
}
@media (max-width: 920px){ .counties{ grid-template-columns: 1fr; } }

.county-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  perspective: 1100px;
}
@media (max-width: 520px){ .county-grid{ grid-template-columns: repeat(2, 1fr); } }

.county-tile{
  position:relative;
  text-align:left;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at var(--mx) var(--my), rgba(205,168,94,0.16), transparent 60%),
    linear-gradient(160deg, #1b1813, #100e0b);
  color: var(--ivory);
  padding: 1.3rem 1.2rem 1.1rem;
  min-height: 116px;
  display:flex; flex-direction:column; justify-content:space-between;
  cursor:pointer;
  font: inherit;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.county-tile:hover{ --lift:-5px; border-color: rgba(205,168,94,0.55); box-shadow: 0 22px 45px -24px rgba(0,0,0,0.8); }
.county-tile:focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }
.county-tile.is-active{
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset, 0 22px 45px -24px rgba(0,0,0,0.8);
}
.county-tile-name{ font-family: var(--serif); font-size: 1.45rem; line-height:1.1; }
.county-tile-sub{ font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory-faint); margin-top: 0.15rem; }
.county-tile-go{
  margin-top: 0.9rem;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); opacity: 0; transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease;
}
.county-tile:hover .county-tile-go,
.county-tile.is-active .county-tile-go{ opacity: 1; transform: translateY(0); }

.county-detail{
  position: sticky; top: 96px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #161412, #0d0c0a);
  padding: 1.9rem;
  min-height: 280px;
}
.county-detail-empty{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap: 1rem; text-align:center; min-height: 240px; color: var(--ivory-faint);
}
.county-detail-empty svg{ width: 40px; height: 40px; fill:none; stroke: var(--gold-deep); stroke-width: 1.3; }
.county-detail-empty p{ max-width: 260px; font-size: 0.95rem; line-height:1.6; }

.county-detail-inner{ animation: fadeUp .5s ease both; }
@keyframes fadeUp{ from{ opacity:0; transform: translateY(10px); } to{ opacity:1; transform:none; } }
.county-detail-eyebrow{ font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.3rem; }
.county-detail-name{ font-family: var(--serif); font-size: 1.9rem; margin: 0 0 0.5rem; }
.county-detail-blurb{ color: var(--ivory-dim); font-size: 0.95rem; margin: 0 0 1.4rem; line-height:1.6; }

.county-links{ display:flex; flex-direction:column; gap: 0.7rem; }
.county-link{
  display:flex; flex-direction:column; gap: 0.2rem;
  text-decoration:none;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.county-link:hover{ border-color: rgba(205,168,94,0.6); background: rgba(205,168,94,0.06); transform: translateX(3px); }
.county-link-k{ font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory-faint); }
.county-link-v{ font-size: 0.96rem; color: var(--ivory); }
.county-link:hover .county-link-v{ color: var(--gold-bright); }
.county-detail-note{ margin: 1.2rem 0 0; font-size: 0.74rem; color: var(--ivory-faint); }

/* =========================================================
   1031 EXCHANGE
   ========================================================= */
.exchange-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 2.6rem;
}
@media (max-width: 820px){ .exchange-grid{ grid-template-columns: 1fr; } }
.exchange-card{
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  transition: border-color .3s ease, transform .3s ease;
}
.exchange-card:hover{ border-color: rgba(205,168,94,0.4); transform: translateY(-3px); }
.exchange-step{
  font-family: var(--serif); font-size: 1.5rem; color: var(--gold);
  letter-spacing: 0.06em;
}
.exchange-card h3{ font-size: 1.35rem; margin: 0.45rem 0 0.7rem; }
.exchange-card p{ color: var(--ivory-dim); font-size: 0.95rem; margin: 0; line-height: 1.65; }
.exchange-card strong{ color: var(--gold-bright); font-weight: 600; }
.exchange-card em{ color: var(--ivory); font-style: italic; }

.exchange-sources{ margin-bottom: 2.2rem; }
.exchange-sources-title{
  font-family: var(--serif); font-size: 1.4rem; color: var(--ivory); margin: 0 0 1.1rem;
}
.exchange-sources .county-links{
  display:grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem;
}
@media (max-width: 680px){ .exchange-sources .county-links{ grid-template-columns: 1fr; } }
.exchange-cta{ margin-bottom: 2.2rem; }
.exchange-disclaimer{
  font-size: 0.78rem; color: var(--ivory-faint); max-width: 940px; line-height: 1.7;
}

.pulse-disclaimer{
  margin-top: 2.4rem;
  font-size: 0.8rem;
  color: var(--ivory-faint);
  max-width: 780px;
  line-height: 1.7;
}

/* =========================================================
   FINANCING / RATES
   ========================================================= */
.rates-benchmarks{
  display:grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 1.4rem;
  margin-bottom: 1.8rem;
}
@media (max-width: 820px){ .rates-benchmarks{ grid-template-columns: 1fr 1fr; } .rate-tile-source{ grid-column: 1 / -1; } }
@media (max-width: 480px){ .rates-benchmarks{ grid-template-columns: 1fr; } }

.rate-tile{
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.8rem;
  display:flex; flex-direction:column; gap: 0.5rem;
}
.rate-tile-label{ font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-faint); }
.rate-tile-value{
  font-family: var(--serif);
  font-size: 3rem; line-height: 1;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.rate-tile-value span{ font-size: 1.4rem; color: var(--gold); margin-left: 2px; }
.rate-tile-meta{ font-size: 0.78rem; color: var(--ivory-dim); }
.rate-tile-source{ justify-content:center; }
.rate-tile-source p{ margin: 0; font-size: 0.85rem; color: var(--ivory-dim); line-height: 1.6; }
.rate-tile-source a{ color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.rates-more{
  border-top: 1px solid var(--hairline);
  padding-top: 1.8rem;
}
.rates-more-title{ font-family: var(--serif); font-size: 1.4rem; color: var(--ivory); margin: 0 0 0.4rem; }
.rates-more-lede{ color: var(--ivory-dim); font-size: 0.95rem; margin: 0 0 1.2rem; max-width: 640px; }
.rates-links{ display:flex; flex-wrap:wrap; gap: 0.8rem; }
.rates-links a{
  display:inline-flex; align-items:center; gap: 0.5em;
  font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--ivory);
  text-decoration:none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.7em 1.3em;
  transition: border-color .3s ease, color .3s ease;
}
.rates-links a:hover{ border-color: var(--gold); color: var(--gold-bright); }

.rates-fineprint{
  margin: 1.8rem 0 0;
  font-size: 0.78rem;
  color: var(--ivory-faint);
  line-height: 1.7;
  max-width: 920px;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items:start;
}
@media (max-width: 920px){
  .contact-grid{ grid-template-columns: 1fr; }
}
.contact-intro p{ color: var(--ivory-dim); }
.contact-points{ list-style:none; margin: 1.6rem 0; padding:0; display:flex; flex-direction:column; gap: 1rem; }
.contact-points li{ font-size: 0.94rem; color: var(--ivory-dim); border-left: 2px solid var(--gold-deep); padding-left: 1rem; }
.contact-points li span{ display:block; font-family: var(--serif); font-size: 1.08rem; color: var(--ivory); margin-bottom: 0.15rem; }
.contact-direct{ display:flex; flex-direction:column; gap: 0.4rem; margin: 1.6rem 0 0.8rem; }
.contact-direct a{ text-decoration:none; color: var(--gold-bright); font-size: 1.05rem; letter-spacing: 0.02em; }
.contact-direct a:hover{ text-decoration: underline; }
.license-line{ font-size: 0.78rem; color: var(--ivory-faint); margin-top: 0.6rem; }

.contact-form{
  background: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.contact-form h3{ font-size: 1.6rem; margin-bottom: 1.4rem; }
.field-row{ margin-bottom: 1.2rem; display:flex; flex-direction:column; gap: 0.45rem; }
.field-row.two-up{ flex-direction:row; gap: 1.2rem; }
.field-row.two-up > div{ flex:1; display:flex; flex-direction:column; gap: 0.45rem; }
@media (max-width: 520px){ .field-row.two-up{ flex-direction:column; } }

label{ font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory-faint); }
label .optional{ text-transform:none; letter-spacing:normal; }

input, select, textarea{
  width:100%;
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.8em 1em;
  transition: border-color .25s ease;
}
input:focus, select:focus, textarea:focus{
  outline:none;
  border-color: var(--gold);
}
textarea{ resize: vertical; min-height: 110px; }

.consent-row{
  display:flex; align-items:flex-start; gap: 0.7rem;
  text-transform:none; letter-spacing:normal; font-size: 0.78rem; color: var(--ivory-faint);
  margin: 0.4rem 0 1.4rem;
}
.consent-row input{ width: auto; margin-top: 0.2rem; accent-color: var(--gold); }
.consent-row a{ color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

.submit-btn{ width:100%; }
.form-status{
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--gold-bright);
  min-height: 1.4em;
}
.form-status.is-error{ color: #e2a4a4; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ border-top: 1px solid var(--hairline); background: var(--ink); }
.footer-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.2rem var(--gutter) 2rem;
  display:flex; flex-wrap:wrap; gap: 2.4rem;
  align-items:center; justify-content:space-between;
}
.footer-brand{ display:flex; align-items:center; gap: 0.9rem; }
.footer-brand strong{ display:block; font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.04em; }
.footer-brand span{ display:block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-faint); margin-top: 0.2rem; }
.footer-nav{ display:flex; gap: 1.6rem; flex-wrap:wrap; }
.footer-nav a{ font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration:none; color: var(--ivory-dim); }
.footer-nav a:hover{ color: var(--gold); }
.footer-fair-housing{ display:flex; align-items:center; gap: 0.7rem; color: var(--ivory-faint); font-size: 0.7rem; letter-spacing: 0.08em; line-height:1.3; }

.footer-legal{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 3rem;
  display:flex; flex-direction:column; gap: 0.9rem;
}
.footer-legal p{ font-size: 0.74rem; line-height: 1.8; color: var(--ivory-faint); margin:0; max-width: 980px; }

/* =========================================================
   REVEAL-ON-SCROLL
   ========================================================= */
[data-reveal]{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal]{ opacity:1; transform:none; }
  .about-portrait-frame{ opacity:1 !important; transform:none !important; }
  .reveal-words .word{ opacity:1 !important; transform:none !important; }
  .tilt{ transform:none !important; }
  .hero-skyline svg{ opacity:1 !important; transform:none !important; }
  .hero-skyline .sk-cable,
  .hero-skyline .sk-skyline path{ stroke-dashoffset:0 !important; }
  .hero-skyline .sky-lights circle{ animation:none !important; opacity:0.3 !important; }
}

/* =========================================================
   ACCESSIBILITY: skip link + visible keyboard focus (site-wide)
   ========================================================= */
.skip-link{
  position:absolute; left:50%; top:0; transform:translate(-50%,-120%);
  z-index:300;
  background: var(--gold); color:#1a1408;
  font-family: var(--sans); font-size:0.85rem; font-weight:600;
  letter-spacing:0.08em; text-transform:uppercase; text-decoration:none;
  padding:0.7rem 1.3rem; border-radius:0 0 8px 8px;
  transition: transform .2s ease;
}
.skip-link:focus{ transform:translate(-50%,0); outline:2px solid #1a1408; outline-offset:2px; }

:focus-visible{ outline:2px solid var(--gold-bright); outline-offset:2px; }

/* =========================================================
   LEGAL PAGES (privacy.html, legal.html)
   ========================================================= */
.legal-body{
  background:
    radial-gradient(ellipse at 12% -5%, rgba(205,168,94,0.07), transparent 45%),
    linear-gradient(180deg, #0b0b0c, #131315 60%, #0b0b0c);
  color: var(--ivory-dim);
  min-height:100vh;
}
.legal-header{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  max-width: var(--max); margin:0 auto;
  padding: 1.6rem var(--gutter);
  border-bottom: 1px solid var(--hairline);
}
.legal-header .brand{ display:flex; align-items:center; gap:1rem; text-decoration:none; }
.legal-header .brand-mark{ width:64px; height:auto; }
.legal-header .brand-text{ display:flex; flex-direction:column; line-height:1.15; white-space:nowrap; }
.legal-header .brand-text strong{ font-family:var(--serif); font-size:1.35rem; color:var(--ivory); letter-spacing:0.05em; }
.legal-header .brand-text em{ font-style:normal; font-size:0.62rem; letter-spacing:0.18em; text-transform:uppercase; color:var(--gold); }
.legal-back{
  flex:none; text-decoration:none; color: var(--ivory-dim);
  font-family:var(--sans); font-size:0.72rem; letter-spacing:0.16em; text-transform:uppercase;
  border:1px solid var(--hairline); border-radius:var(--radius); padding:0.7em 1.1em;
  transition: border-color .25s ease, color .25s ease;
}
.legal-back:hover{ border-color: rgba(205,168,94,0.55); color: var(--gold-bright); }
@media (max-width:560px){ .legal-header .brand-text em{ display:none; } .legal-header .brand-mark{ width:52px; } }

.legal-main{ padding: clamp(2.5rem, 6vw, 5rem) 0 4rem; }
.legal-wrap{ max-width: 820px; margin:0 auto; padding: 0 var(--gutter); }
.legal-wrap .eyebrow{ font-size:0.72rem; }
.legal-wrap h1{
  font-family:var(--serif); font-size: clamp(2.2rem, 5vw, 3.2rem); color:var(--ivory);
  line-height:1.1; margin:0.2rem 0 0.5rem;
}
.legal-updated{ font-size:0.85rem; color:var(--ivory-faint); letter-spacing:0.04em; margin:0 0 2rem; }
.legal-wrap h2{
  font-family:var(--serif); font-size: clamp(1.5rem, 3vw, 1.9rem); color:var(--ivory);
  margin:2.6rem 0 0.8rem; scroll-margin-top: 90px;
}
.legal-wrap h3{ font-size:1.08rem; color:var(--ivory); margin:1.6rem 0 0.5rem; font-weight:600; letter-spacing:0.02em; }
.legal-wrap p{ font-size:1.0rem; line-height:1.75; margin:0 0 1rem; color:var(--ivory-dim); }
.legal-wrap strong{ color:var(--ivory); font-weight:600; }
.legal-wrap em{ color:var(--ivory); }
.legal-wrap ul{ margin:0 0 1.3rem; padding-left:1.2rem; }
.legal-wrap li{ font-size:1.0rem; line-height:1.7; margin:0 0 0.6rem; color:var(--ivory-dim); }
.legal-wrap li::marker{ color: var(--gold-deep); }
.legal-wrap a{ color: var(--gold-bright); text-decoration:underline; text-underline-offset:3px; text-decoration-color: rgba(205,168,94,0.5); }
.legal-wrap a:hover{ color: var(--ivory); }
.legal-emph{ color: var(--ivory) !important; border-left:2px solid var(--gold-deep); padding-left:1rem; }
.legal-subhead{ font-family:var(--serif); font-size:1.15rem; color:var(--gold-bright) !important; margin-top:1.6rem !important; }

.legal-note{
  background: rgba(205,168,94,0.06);
  border:1px solid rgba(205,168,94,0.3);
  border-radius: var(--radius);
  padding:1.1rem 1.3rem; margin:0 0 2.2rem;
  font-size:0.9rem; line-height:1.65; color:var(--ivory-dim);
}

.legal-toc{
  display:flex; flex-wrap:wrap; gap:0.5rem 0.9rem;
  border-top:1px solid var(--hairline); border-bottom:1px solid var(--hairline);
  padding:1.1rem 0; margin:0 0 2rem;
}
.legal-toc a{
  font-family:var(--sans); font-size:0.72rem; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--ivory-faint); text-decoration:none;
}
.legal-toc a:hover{ color: var(--gold-bright); }

.legal-table-wrap{ overflow-x:auto; margin:0 0 1.3rem; }
.legal-table{ width:100%; border-collapse:collapse; font-size:0.88rem; }
.legal-table th, .legal-table td{ text-align:left; padding:0.7rem 0.8rem; border-bottom:1px solid var(--hairline); vertical-align:top; }
.legal-table th{ color:var(--ivory-faint); font-family:var(--sans); font-weight:500; font-size:0.66rem; letter-spacing:0.12em; text-transform:uppercase; }
.legal-table td{ color:var(--ivory-dim); }

.legal-foot-links{ margin-top:2.6rem !important; padding-top:1.6rem; border-top:1px solid var(--hairline); font-size:0.85rem; }

.legal-footer{
  border-top:1px solid var(--hairline);
  max-width: var(--max); margin:0 auto;
  padding: 2rem var(--gutter) 3rem;
  display:flex; flex-wrap:wrap; gap:1rem 2rem; align-items:center; justify-content:space-between;
}
.legal-footer p{ font-size:0.74rem; line-height:1.7; color:var(--ivory-faint); max-width:680px; margin:0; }
.legal-footer-nav{ display:flex; flex-wrap:wrap; gap:0.4rem 1.3rem; }
.legal-footer-nav a{ font-size:0.72rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--ivory-dim); text-decoration:none; }
.legal-footer-nav a:hover{ color: var(--gold-bright); }

/* Notice at collection (contact form) + footer legal links */
.form-notice{
  font-size: 0.78rem; line-height:1.6; color: var(--ivory-faint);
  background: rgba(205,168,94,0.05);
  border-left: 2px solid var(--gold-deep);
  padding: 0.7rem 0.9rem; margin: 0 0 1.4rem; border-radius: 4px;
}
.form-notice a{ color: var(--gold-bright); text-decoration: underline; text-underline-offset:2px; }
.footer-legal-links{ display:flex; flex-wrap:wrap; gap:0.5rem 1.4rem; margin-top:1.3rem; }
.footer-legal-links a{ font-size:0.72rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--ivory-dim); text-decoration:none; }
.footer-legal-links a:hover{ color: var(--gold-bright); text-decoration:underline; text-underline-offset:3px; }
