/* ============ TOKENS ============ */
/* Theme "navy" (default): deep navy + warm brass */
:root {
  --ink: #14213d;          /* primary dark */
  --ink-rgb: 20, 33, 61;
  --ink-soft: #2b3a5c;
  --ink-deep: var(--ink-deep);     /* footer */
  --cream: #faf6ef;        /* page background */
  --cream-rgb: 250, 246, 239;
  --sand: #efe7da;         /* alternate section background */
  --line: var(--line);
  --gold: #b88a44;         /* accent */
  --gold-dark: var(--gold-dark);
  --gold-soft: #d9b77e;    /* accent on dark backgrounds */
  --gold-soft-rgb: 217, 183, 126;
  --glow-1: #b88a44;
  --glow-2: #2f4a80;
  --glow-3: #d9b77e;
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(var(--ink-rgb), 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

/* Theme "green": Bilien's brand colors (green, white, light gray) */
:root[data-theme="green"] {
  --ink: #1e3a2f;
  --ink-rgb: 30, 58, 47;
  --ink-soft: #2d5243;
  --ink-deep: #142a21;
  --cream: #f8f9f7;
  --cream-rgb: 248, 249, 247;
  --sand: #eceeea;
  --line: #d6dbd4;
  --gold: #3f7d52;
  --gold-dark: #336843;
  --gold-soft: #a9d4b4;
  --gold-soft-rgb: 169, 212, 180;
  --glow-1: #4f9a66;
  --glow-2: #2d5243;
  --glow-3: #a9d4b4;
  --text: #29302c;
  --muted: #5f6862;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.55rem; }
em { font-style: italic; color: var(--gold); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin: 0 0 14px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block; padding: 15px 30px; border-radius: 999px;
  background: var(--gold); color: var(--white); text-decoration: none;
  font-weight: 500; font-size: .95rem; letter-spacing: .02em; border: 1px solid var(--gold);
  cursor: pointer; transition: background .25s, transform .25s, color .25s;
  font-family: var(--sans);
}
.btn:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--small { padding: 10px 22px; font-size: .88rem; }
.btn--full { width: 100%; }

/* ============ PHOTO PLACEHOLDERS ============ */
.photo-slot {
  position: relative;
  background:
    linear-gradient(135deg, rgba(var(--ink-rgb), .85), rgba(var(--ink-rgb), .7)),
    repeating-linear-gradient(45deg, var(--ink-soft) 0 12px, var(--ink) 12px 24px);
  background-size: cover; background-position: center;
}
.photo-slot::after {
  content: attr(data-label);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  color: rgba(255,255,255,.55); font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; text-align: center; width: 80%;
  pointer-events: none;
}
/* once a real photo is added via inline style background-image, hide label */
.photo-slot.has-photo::after { display: none; }

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 22px 0;
}
.nav.scrolled { background: rgba(var(--cream-rgb), .96); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(0,0,0,.06); padding: 12px 0; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.nav.scrolled .brand { color: var(--ink); }
.brand__mark {
  width: 40px; height: 40px; border: 1.5px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; color: var(--gold);
}
.brand__text { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) {
  text-decoration: none; color: rgba(255,255,255,.9); font-size: .92rem; font-weight: 500;
}
.nav.scrolled .nav__links a:not(.btn) { color: var(--ink); }
.nav__links a:not(.btn):hover { color: var(--gold); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: .3s; }
.nav.scrolled .nav__toggle span { background: var(--ink); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  color: var(--white); overflow: hidden; background: var(--ink);
}

/* Slideshow (Ken Burns: slow zoom + crossfade) */
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.12); transition: opacity 1.8s ease;
}
.hero__slide.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate(0, 0); } to { transform: scale(1) translate(-1%, -1%); } }

/* Animated fallback: drifting warm light, hidden once photos load */
.hero__glow { position: absolute; inset: 0; overflow: hidden; transition: opacity 1.5s; }
.hero.has-slides .hero__glow { opacity: 0; }
.hero__glow span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero__glow span:nth-child(1) { width: 520px; height: 520px; background: var(--glow-1); top: -10%; right: 5%; }
.hero__glow span:nth-child(2) { width: 420px; height: 420px; background: var(--glow-2); bottom: -5%; left: 30%; animation-duration: 22s; animation-delay: -6s; }
.hero__glow span:nth-child(3) { width: 300px; height: 300px; background: var(--glow-3); top: 40%; right: 30%; opacity: .3; animation-duration: 26s; animation-delay: -12s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-80px, 60px) scale(1.15); }
  100% { transform: translate(60px, -40px) scale(.95); }
}

.hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(var(--ink-rgb), .92) 0%, rgba(var(--ink-rgb), .6) 55%, rgba(var(--ink-rgb), .3) 100%); }
.hero__content { position: relative; z-index: 2; padding: 120px 0 200px; width: min(800px, 100% - 32px); margin-left: max(16px, calc((100% - 1180px) / 2)); }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--gold-soft); }
.hero__lead { font-size: 1.12rem; max-width: 560px; color: rgba(255,255,255,.85); margin-bottom: 34px; }

/* Staggered entrance */
.hero__in { opacity: 0; transform: translateY(26px); animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Rotating headline word */
.rotator { display: block; position: relative; height: 1.2em; overflow: hidden; }
.rotator__word {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font-style: italic; color: var(--gold-soft);
  transform: translateY(110%); opacity: 0;
  transition: transform .7s cubic-bezier(.7,0,.2,1), opacity .7s;
}
.rotator__word.is-active { transform: none; opacity: 1; }
.rotator__word.is-leaving { transform: translateY(-110%); opacity: 0; }

/* Intent chips */
.intent__label { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.65); margin: 0 0 12px; }
.intent__chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  padding: 13px 28px; border-radius: 999px; text-decoration: none; font-weight: 500;
  border: 1px solid rgba(var(--gold-soft-rgb), .6); color: var(--white); background: rgba(255,255,255,.04);
  backdrop-filter: blur(6px); transition: background .25s, color .25s, transform .25s, border-color .25s;
}
.chip:hover, .chip:focus-visible { background: var(--gold); border-color: var(--gold); transform: translateY(-3px); outline: none; }

/* Self-drawing skyline */
.skyline {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 180px; z-index: 1;
  fill: none; stroke: var(--gold-soft); stroke-width: 1.4; stroke-linejoin: round; opacity: .55;
}
.skyline path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 4.5s ease-in-out .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Scroll cue */
.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 14px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-soft); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ============ STRIP ============ */
.strip { background: var(--ink); color: var(--white); padding: 34px 0; }
.strip__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.strip__item { display: flex; flex-direction: column; gap: 4px; }
.strip__item + .strip__item { border-left: 1px solid rgba(255,255,255,.12); }
.strip__num { font-family: var(--serif); font-size: 1.7rem; color: var(--gold-soft); }
.strip__label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* ============ ABOUT ============ */
.about__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__photo { aspect-ratio: 4 / 5; background-position: 52% 30%; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.about__photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.about__text p { color: var(--muted); }
.about__sig { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--ink); margin-top: 28px; }
.about__meta { font-size: .82rem; letter-spacing: .04em; }

/* ============ VALUES ============ */
.values { background: var(--sand); padding: clamp(56px, 7vw, 84px) 0; }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.value { border-top: 1.5px solid var(--gold); padding-top: 22px; }
.value__num { font-family: var(--serif); font-size: 1rem; color: var(--gold); letter-spacing: .1em; }
.value h3 { font-size: 2rem; margin: 4px 0 8px; }
.value p { margin: 0; color: var(--muted); }

/* ============ PRESS ============ */
.press { background: var(--ink); color: var(--white); padding: clamp(56px, 7vw, 88px) 0; }
.press__inner { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.press__label { border-right: 1px solid rgba(255,255,255,.15); padding-right: 32px; }
.press .eyebrow { color: var(--gold-soft); }
.press__outlet { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; line-height: 1.1; margin: 0; }
.press__quote { margin: 0; }
.press__quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.4; margin: 0 0 16px; }
.press__quote figcaption { font-size: .88rem; color: rgba(255,255,255,.65); }
.press__quote a { color: var(--gold-soft); text-decoration: none; white-space: nowrap; }
.press__quote a:hover { text-decoration: underline; }

/* ============ SERVICES ============ */
.services { background: var(--white); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  padding: 38px 32px; border-radius: var(--radius); background: var(--cream);
  border: 1px solid transparent; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--gold-soft); box-shadow: var(--shadow); }
.card__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; margin-bottom: 22px; }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ============ NEIGHBORHOODS ============ */
.hoods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hood { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 220px; color: var(--white); }
.hood--lg { grid-column: span 2; min-height: 340px; }
.hood__img { position: absolute; inset: 0; transition: transform .6s; }
.hood:hover .hood__img { transform: scale(1.05); }
.hood::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--ink-rgb), .92) 0%, rgba(var(--ink-rgb), .55) 45%, rgba(var(--ink-rgb), .05) 85%); }
.hood__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; z-index: 1; }
.hood__body h3 { color: var(--white); margin: 0; }
.hood__body p { margin: 6px 0 0; font-size: .92rem; color: rgba(255,255,255,.85); max-width: 420px; }

/* ============ LISTINGS ============ */
.listings { background: var(--sand); }
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.listing { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s; }
.listing:hover { transform: translateY(-6px); }
.listing__img { aspect-ratio: 4 / 3; }
.tag { position: absolute; top: 16px; left: 16px; background: var(--gold); color: var(--white); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; z-index: 1; }
.listing__body { padding: 22px 24px 26px; }
.listing__body h3 { font-size: 1.35rem; margin-bottom: 4px; }
.listing__meta { margin: 0; color: var(--muted); font-size: .9rem; }

/* ============ TESTIMONIALS ============ */
.testimonials { background: var(--ink); }
.section__head--light h2 { color: var(--white); }
.quotes { max-width: 820px; margin: 0 auto; }
.quote { margin: 0; text-align: center; }
.quote blockquote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--white); line-height: 1.45; margin: 0 0 26px;
}
.quote figcaption { color: var(--gold-soft); font-weight: 600; letter-spacing: .04em; }
.quote figcaption span { color: rgba(255,255,255,.6); font-weight: 400; }

/* ============ CONTACT ============ */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact__list li { padding: 14px 0; border-bottom: 1px solid rgba(var(--ink-rgb), .1); display: flex; gap: 18px; }
.contact__list li span { width: 90px; flex-shrink: 0; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--gold); }
.contact__form { background: var(--white); padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact__form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 500; color: var(--ink); }
.contact__form input, .contact__form select, .contact__form textarea {
  font: inherit; font-size: .95rem; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream); color: var(--text); transition: border-color .2s; width: 100%;
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus { outline: none; border-color: var(--gold); }

/* ============ FOOTER ============ */
.footer { background: var(--ink-deep); color: rgba(255,255,255,.65); padding: 48px 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.brand--light { color: var(--white); margin-bottom: 14px; }
.footer__small { font-size: .82rem; line-height: 1.7; margin: 0; }
.footer__small p { margin: 0; }
.footer__right { text-align: right; }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .cards, .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .hoods { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .contact__grid, .press__inner { grid-template-columns: 1fr; }
  .press__label { border-right: 0; padding-right: 0; }
  .about__photo { max-width: 440px; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 80vw); flex-direction: column; align-items: flex-start;
    background: var(--cream); padding: 100px 32px; gap: 22px; transform: translateX(100%); transition: transform .35s;
    box-shadow: -10px 0 30px rgba(0,0,0,.1);
  }
  .nav__links a:not(.btn) { color: var(--ink) !important; font-size: 1.05rem; }
  .nav.open .nav__links { transform: none; }
  .nav.open .nav__toggle span { background: var(--ink); }
  .nav__toggle { position: relative; z-index: 2; }
}
@media (max-width: 640px) {
  .cards, .listing-grid, .hoods, .values__grid { grid-template-columns: 1fr; }
  .hood--lg { grid-column: auto; min-height: 260px; }
  .strip__inner { grid-template-columns: 1fr; }
  .strip__item + .strip__item { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .footer__right { text-align: left; }
  .about__photo::before { inset: 12px -12px -12px 12px; }
  .skyline { height: 110px; }
  .rotator { font-size: .78em; }
  .hero__content { padding: 110px 0 150px; }
  .chip { padding: 11px 22px; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__in { animation: none; opacity: 1; transform: none; }
  .hero__glow span, .hero__slide.is-active, .scroll-cue span { animation: none; }
  .skyline path { animation: none; stroke-dashoffset: 0; }
}

