/* Off Broadway Condominiums — styles
   Palette drawn from the entrance sign: brick, antique gold, cream, evergreen, wildflowers */
:root {
  --cream: #fbf7ef;
  --paper: #f4ecdc;
  --brick: #9a4a38;
  --brick-deep: #6f2f22;
  --gold: #a07c2b;
  --gold-soft: #c9a54e;
  --ink: #2a2420;
  --muted: #6b5f55;
  --evergreen: #35502f;
  --plum: #8a4a78;
  --sun: #d9a931;
  --radius: 18px;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brick); }
.wrap { width: min(1120px, 92vw); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); color: var(--brick-deep); }
h3 { font-size: 1.5rem; color: var(--brick-deep); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 .9rem;
}
.rule { width: 72px; height: 2px; background: var(--gold-soft); border: 0; margin: 1.2rem 0 1.6rem; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.scrolled { background: rgba(251,247,239,.94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(160,124,43,.25); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; transition: color .3s; }
.brand svg { width: 46px; height: auto; stroke: currentColor; }
.nav.scrolled .brand { color: var(--brick-deep); }
.nav.scrolled .brand svg { stroke: var(--gold); }
.menu { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; color: #fff; font-weight: 600; font-size: .95rem; letter-spacing: .04em; transition: color .2s; }
.nav.scrolled .menu a { color: var(--ink); }
.menu a:hover { color: var(--gold-soft); }
.burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: #fff; }
.nav.scrolled .burger { color: var(--ink); }
.burger span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .25s, opacity .25s; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  overflow: hidden; background: #2a1812; isolation: isolate;
}
.collage {
  position: absolute; inset: -20% -10%; z-index: -2;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  transform: rotate(-7deg);
}
.col { display: flex; flex-direction: column; gap: 14px; animation: drift 70s linear infinite; will-change: transform; }
.col:nth-child(even) { animation-direction: reverse; animation-duration: 85s; }
.col:nth-child(3n) { animation-duration: 95s; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.tile { border-radius: 14px; overflow: hidden; flex: none; background: var(--paper); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.tile img, .tile svg { width: 100%; height: 100%; object-fit: cover; }
.tile.r1 { aspect-ratio: 4 / 5; } .tile.r2 { aspect-ratio: 1 / 1; } .tile.r3 { aspect-ratio: 3 / 4; } .tile.r4 { aspect-ratio: 5 / 4; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(42,24,18,.35) 0%, rgba(42,24,18,.72) 70%),
    linear-gradient(180deg, rgba(42,24,18,.55) 0%, rgba(42,24,18,.15) 30%, rgba(42,24,18,.5) 100%);
}
.hero-inner { text-align: center; padding: 8rem 1rem 6rem; color: #fff; }
.plaque {
  display: inline-block; background: var(--cream); color: var(--brick-deep);
  padding: 2.2rem clamp(1.6rem, 5vw, 3.6rem) 2rem; border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(160,124,43,.4), inset 0 0 0 7px var(--cream), inset 0 0 0 8px rgba(160,124,43,.45);
}
.plaque .logo { width: clamp(150px, 26vw, 250px); margin: 0 auto .6rem; }
.plaque h1 { font-size: clamp(2.2rem, 6.4vw, 4.2rem); margin: 0; text-transform: uppercase; color: #7a5a1b; letter-spacing: .02em; }
.plaque .sub { font-family: var(--serif); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; font-size: clamp(.95rem, 2.2vw, 1.3rem); color: var(--brick-deep); margin: .2rem 0 .1rem; }
.plaque .addr { font-size: .95rem; color: var(--muted); margin: 0; }
.tagline { text-wrap: balance; line-height: 1.3; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3.4vw, 2.1rem); margin: 2.2rem auto 1.6rem; max-width: 30ch; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.btn { display: inline-block; padding: .85rem 1.8rem; border-radius: 999px; background: var(--gold); color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .05em; transition: transform .2s, background .2s; }
.btn:hover { background: var(--brick); transform: translateY(-2px); }
.btn.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.8); margin-left: .6rem; }
.btn.ghost:hover { background: rgba(255,255,255,.15); }
.scroll-cue { position: absolute; bottom: 1.6rem; left: 50%; translate: -50% 0; color: #fff; opacity: .8; font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; text-decoration: none; }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 34px; background: #fff; margin: .5rem auto 0; animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* ---------- SECTIONS ---------- */
section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.welcome .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.welcome p { color: var(--muted); }
.lead { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.4; color: var(--ink); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fact { background: var(--paper); border-radius: var(--radius); padding: 1.6rem 1.2rem; text-align: center; border: 1px solid rgba(160,124,43,.25); }
.fact b { display: block; font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--brick); line-height: 1; }
.fact span { font-size: .9rem; color: var(--muted); }

.values { background: var(--paper); position: relative; }
.values .head { text-align: center; max-width: 640px; margin: 0 auto 3.2rem; }
.values .head .rule { margin-inline: auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.card { background: var(--cream); border-radius: var(--radius); padding: 2rem 1.7rem; border-top: 4px solid var(--gold-soft); box-shadow: 0 10px 30px rgba(111,47,34,.08); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(111,47,34,.14); }
.card .ico { width: 46px; height: 46px; margin-bottom: 1rem; stroke: var(--brick); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card:nth-child(2) { border-top-color: var(--plum); } .card:nth-child(3) { border-top-color: var(--evergreen); } .card:nth-child(4) { border-top-color: var(--sun); }

.story { background: linear-gradient(180deg, var(--cream), #f1e6d0); }
.story .grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.timeline { border-left: 2px solid var(--gold-soft); padding-left: 1.8rem; display: grid; gap: 2rem; }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: calc(-1.8rem - 7px); top: .5rem; width: 12px; height: 12px; background: var(--brick); border-radius: 50%; box-shadow: 0 0 0 4px var(--cream); }
.tl .yr { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; color: var(--brick); line-height: 1; }
.tl p { margin: .3rem 0 0; color: var(--muted); }

.garden { position: relative; background: var(--evergreen); color: #f1ead9; text-align: center; overflow: hidden; }
.garden::before, .garden::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(70px); opacity: .35; }
.garden::before { background: var(--plum); left: -120px; top: -120px; }
.garden::after { background: var(--sun); right: -120px; bottom: -140px; }
.garden .wrap { position: relative; z-index: 1; max-width: 780px; }
.garden h2 { color: #fff; }
.garden .eyebrow { color: var(--gold-soft); }
.garden .rule { margin-inline: auto; }
.garden p.big { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.4; font-style: italic; margin: 0; }

.visit .box { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: 26px; overflow: hidden; border: 1px solid rgba(160,124,43,.3); }
.visit .info { padding: clamp(2rem, 5vw, 3.6rem); }
.visit .info p { color: var(--muted); }
.visit address { font-style: normal; font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--brick-deep); line-height: 1.25; margin: 1rem 0 1.4rem; }
.visit .art { background: linear-gradient(135deg, var(--brick) 0%, var(--brick-deep) 100%); display: grid; place-items: center; padding: 2rem; min-height: 280px; position: relative; }
.visit .art::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(0deg, transparent 47%, #fff 48% 52%, transparent 53%), linear-gradient(90deg, transparent 47%, #fff 48% 52%, transparent 53%); background-size: 46px 22px, 92px 22px; }
.visit .art svg { width: min(300px, 80%); position: relative; stroke: var(--gold-soft); }

footer { background: #231712; color: #cdbfa6; text-align: center; padding: 3rem 0 2.4rem; font-size: .9rem; }
footer .logo { width: 90px; margin: 0 auto 1rem; }
footer p { margin: .2rem 0; }
footer .name { font-family: var(--serif); font-size: 1.4rem; color: #fff; letter-spacing: .08em; text-transform: uppercase; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .welcome .grid, .story .grid, .visit .box { grid-template-columns: 1fr; }
  .collage { grid-template-columns: repeat(4, 1fr); }
  .col:nth-child(n+5) { display: none; }
  .burger { display: block; }
  .menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream); padding: .5rem 0 1rem; box-shadow: 0 14px 24px rgba(0,0,0,.15);
    display: none;
  }
  .menu.open { display: flex; }
  .menu a { color: var(--ink); display: block; padding: .8rem 6vw; }
  .btn.ghost { margin: .8rem 0 0; }
  .brand span { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .col, .scroll-cue::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
