/* =========================================================
   103 Princes Park Avenue — BSD Properties
   ========================================================= */

:root {
  --paper: #F4EFE6;
  --paper-2: #EBE4D7;
  --card: #FBF8F3;
  --ink: #141D19;
  --ink-2: #27312C;
  --muted: #6A665D;
  --oak: #B07A43;
  --oak-2: #D9AE7B;
  --oak-3: #8F5E2F;
  --forest: #1B2E26;
  --line: rgba(20, 29, 25, .13);
  --line-light: rgba(255, 255, 255, .18);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1240px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--oak); color: #fff; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(84px, 12vw, 168px) 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -.01em; }
h1, h2, h3, .brand, .big-num, .enq-bg, .marquee-track, .near-list .d, .lightbox figcaption { font-variant-numeric: lining-nums; }
h2 { font-size: clamp(2.4rem, 5vw, 4.1rem); margin: 18px 0 26px; }
h2 em, h1 em { font-style: italic; color: var(--oak); }
small { font-size: .78em; color: var(--muted); margin-left: .4em; letter-spacing: .02em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .9em;
  font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--oak);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--oak-2); }
.hero .eyebrow { color: rgba(255, 255, 255, .92); text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.hero .eyebrow::before { background: var(--oak-2); }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-2); margin-bottom: 18px; }
.fine { font-size: .82rem; color: var(--muted); margin: 14px 0 26px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 54px; padding: 0 1.7em; border-radius: 999px;
  font-weight: 600; font-size: .92rem; letter-spacing: .02em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), background-color .35s, color .35s, border-color .35s, box-shadow .35s;
}
.btn:focus-visible, .g-item:focus-visible, .tour-play:focus-visible, .lb-btn:focus-visible { outline: 2px solid var(--oak-2); outline-offset: 3px; }
.btn-sm { height: 42px; padding: 0 1.25em; font-size: .84rem; }
.btn-oak { background: var(--oak); color: #fff; box-shadow: 0 10px 30px -12px rgba(176, 122, 67, .8); }
.btn-oak:hover { background: var(--oak-3); transform: translateY(-2px); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.text-link {
  display: inline-flex; align-items: center; gap: .5em; margin-top: 14px;
  font-weight: 600; font-size: .95rem; color: var(--oak-3);
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
  transition: gap .35s var(--ease), color .3s;
}
.text-link:hover { gap: .9em; color: var(--oak); }
.text-link-light { color: var(--oak-2); }
.text-link-light:hover { color: #fff; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--gutter);
  color: #fff;
  transition: background-color .45s, padding .45s, color .45s, box-shadow .45s;
}
.nav.scrolled {
  background: rgba(244, 239, 230, .88);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink); padding-block: 12px; box-shadow: 0 1px 0 var(--line);
}
.brand { display: inline-flex; align-items: baseline; gap: .4em; font-family: var(--serif); font-size: 1.55rem; line-height: 1; }
.brand-mark { font-weight: 600; letter-spacing: .14em; }
.brand-name { font-style: italic; opacity: .85; }
.nav-links { display: flex; gap: clamp(20px, 3vw, 38px); font-size: .86rem; font-weight: 500; letter-spacing: .03em; }
.nav-links a { position: relative; opacity: .88; transition: opacity .3s; }
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--ink); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: -2% 0 0; z-index: -2; will-change: transform; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 58%; }
.js .hero-media img { transform: scale(1.14); transition: transform 2.8s var(--ease); }
.js .is-loaded .hero-media img { transform: scale(1.03); }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 15, 12, .55) 0%, rgba(10, 15, 12, 0) 20%, rgba(10, 15, 12, 0) 38%, rgba(10, 15, 12, .55) 66%, rgba(10, 15, 12, .9) 100%),
    linear-gradient(90deg, rgba(10, 15, 12, .45) 0%, rgba(10, 15, 12, 0) 55%);
}
.hero-content { padding-top: 140px; padding-bottom: 44px; }
.hero-title { font-size: clamp(3.3rem, 9.2vw, 8.6rem); line-height: .92; margin: 20px 0 24px; letter-spacing: -.02em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: block; }
.hero-title em { color: var(--oak-2); }
.js .hero-title .line > span { transform: translateY(108%); transition: transform 1.3s var(--ease); }
.js .is-loaded .hero-title .line > span { transform: none; }
.js .is-loaded .hero-title .line:nth-child(2) > span { transition-delay: .14s; }
.hero-sub { max-width: 560px; font-size: clamp(1rem, 1.35vw, 1.14rem); color: rgba(255, 255, 255, .86); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.js .fade-up { opacity: 0; transform: translateY(20px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, .3s); }
.js .is-loaded .fade-up { opacity: 1; transform: none; }

.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  border-top: 1px solid var(--line-light); padding: 24px 0 34px;
}
.hero-meta div { display: flex; flex-direction: column; gap: 3px; }
.hero-meta span { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hero-meta strong { font-weight: 600; font-size: .98rem; }

.scroll-cue { position: absolute; right: var(--gutter); bottom: 120px; width: 1px; height: 84px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 100px); align-items: center; }
.num-block { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.big-num {
  font-family: var(--serif); font-weight: 600; line-height: .8; letter-spacing: -.04em;
  font-size: clamp(9rem, 26vw, 24rem);
  color: var(--oak);
  /* oak-grain fill, echoing the front door */
  background:
    repeating-linear-gradient(177deg, rgba(70, 36, 10, .13) 0 2px, transparent 2px 10px),
    repeating-linear-gradient(183deg, rgba(255, 236, 210, .10) 0 1px, transparent 1px 17px),
    linear-gradient(115deg, #94602F 0%, #C08850 26%, #E0B783 46%, #B57C43 64%, #87572A 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
}
.num-caption { font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding-left: .4em; }
.intro-copy p:not(.eyebrow):not(.lead) { color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper-2); padding: 24px 0; }
.marquee-track {
  display: flex; width: max-content;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1; color: var(--ink-2);
  animation: marquee 48s linear infinite;
}
.marquee-track span { display: inline-flex; align-items: center; white-space: nowrap; }
.marquee-track span::after { content: "✦"; font-style: normal; font-size: .5em; color: var(--oak); margin: 0 1.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Features ---------- */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.feat-media { position: sticky; top: 100px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.feat-media img { width: 100%; height: 100%; object-fit: cover; }
.feat-media figcaption, .g-item .cap {
  position: absolute; left: 16px; bottom: 16px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(20, 29, 25, .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.feat-list { list-style: none; margin-top: 36px; border-top: 1px solid var(--line); }
.feat-list li { display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.feat-list h3 { font-size: 1.6rem; margin: 4px 0 4px; }
.feat-list p { color: var(--muted); font-size: .98rem; }
.ico {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--oak); background: var(--card);
}
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Section head ---------- */
.section-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 0; }
.section-head > p { color: var(--muted); max-width: 440px; justify-self: end; }

/* ---------- Gallery ---------- */
.gallery { padding-top: 0; }
.gallery-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 16px; }
.g-item {
  position: relative; display: block; overflow: hidden; border: 0; padding: 0;
  border-radius: var(--radius); background: var(--paper-2); cursor: zoom-in; text-align: left;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-a, .g-c { aspect-ratio: 16 / 9; }
.g-b { grid-column: 2; grid-row: 1 / span 2; }
.g-b img { object-position: 50% 72%; }

/* ---------- Virtual tour ---------- */
.tour { background: var(--ink); color: #fff; }
.tour h2 em { color: var(--oak-2); }
.tour .section-head > p { color: rgba(255, 255, 255, .7); }
.tour-frame { position: relative; aspect-ratio: 16 / 8; border-radius: 24px; overflow: hidden; background: #000; }
.tour-frame > img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.9); transform: scale(1.02); transition: transform 1.6s var(--ease), filter .6s; }
.tour-frame:hover > img { transform: scale(1.06); filter: brightness(.5) saturate(.9); }
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-frame.live > img, .tour-frame.live .tour-play { display: none; }
.tour-play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: none; border: 0; color: #fff; cursor: pointer;
  font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
}
.play-ring {
  position: relative; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 4px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .5s var(--ease), background-color .4s, border-color .4s;
}
.play-ring::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.tour-play:hover .play-ring { transform: scale(1.08); background: var(--oak); border-color: var(--oak); }
.tour-note { margin-top: 18px; }

/* ---------- Location ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(36px, 5vw, 84px); align-items: stretch; }
.loc-copy > p:not(.eyebrow):not(.fine) { color: var(--muted); }
.near-list { list-style: none; margin-top: 30px; border-top: 1px solid var(--line); }
.near-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.near-list .d { font-family: var(--serif); font-size: 1.4rem; color: var(--oak-3); white-space: nowrap; }
.map { position: relative; min-height: 520px; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(.18) contrast(1.04); transition: filter .7s; }
.map:hover iframe { filter: none; }

/* ---------- Enquire ---------- */
.enquire { position: relative; overflow: hidden; background: var(--forest); color: #fff; }
.enquire h2 em { color: var(--oak-2); }
.enq-bg {
  position: absolute; right: -2vw; bottom: -6vw; pointer-events: none;
  font-family: var(--serif); font-weight: 600; font-size: clamp(14rem, 38vw, 34rem); line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(217, 174, 123, .16);
}
.enq-grid { position: relative; }
.enq-copy { max-width: 620px; }
.enq-copy > p:not(.eyebrow) { color: rgba(255, 255, 255, .74); max-width: 470px; }
.contact-list { list-style: none; margin-top: 36px; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list .k { display: block; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.contact-list a { border-bottom: 1px solid rgba(255, 255, 255, .3); transition: border-color .3s, color .3s; }
.contact-list a:hover { color: var(--oak-2); border-color: var(--oak-2); }
.ico-light { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: var(--oak-2); flex: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .62); padding: 48px 0 40px; font-size: .86rem; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 24px 48px; align-items: end; }
.brand-foot { color: #fff; margin-bottom: 10px; }
.disclaimer { font-size: .78rem; line-height: 1.6; max-width: 560px; }
.copy a:hover { color: #fff; }

/* ---------- Mobile sticky CTA ---------- */
.mcta { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  border: 0; padding: 0; background: transparent; color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.lightbox::backdrop { background: rgba(10, 14, 12, .94); }
.lightbox figure { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; object-fit: contain; }
.lightbox figcaption { font-family: var(--serif); font-style: italic; font-size: 1.4rem; }
.lb-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; justify-self: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); cursor: pointer;
  transition: background-color .3s;
}
.lb-btn:hover { background: var(--oak); border-color: var(--oak); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { position: absolute; top: 20px; right: 20px; }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .intro-grid, .feat-grid, .loc-grid { grid-template-columns: 1fr; }
  .feat-media { position: relative; top: 0; }
  .section-head { grid-template-columns: 1fr; }
  .section-head > p { justify-self: start; }
  .foot-grid { grid-template-columns: 1fr; align-items: start; }
  .map { min-height: 420px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav { padding-block: 14px; }
  .nav > .btn { display: none; }
  .brand { font-size: 1.35rem; }
  .hero-media img { object-position: 50% 45%; }
  .hero-content { padding-bottom: 30px; }
  .hero-title { font-size: clamp(2.4rem, 12.2vw, 3.3rem); }
  .hero-shade { background: linear-gradient(180deg, rgba(10, 15, 12, .5) 0%, rgba(10, 15, 12, .3) 18%, rgba(10, 15, 12, .5) 40%, rgba(10, 15, 12, .72) 62%, rgba(10, 15, 12, .92) 100%); }
  .hero-title, .hero-sub { text-shadow: 0 2px 22px rgba(0, 0, 0, .45); }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 28px; }
  .scroll-cue { display: none; }
  .num-block { align-items: center; }
  .big-num { font-size: 46vw; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-b { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; }
  .tour-frame { aspect-ratio: 4 / 5; }
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 16px; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev, .lb-next { grid-row: 2; margin-top: 10px; }
  .lb-prev { grid-column: 1; }
  .lb-next { grid-column: 2; }
  .lb-close { top: 12px; right: 12px; }

  .mcta {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    display: flex; transform: translateY(160%); transition: transform .55s var(--ease);
  }
  .mcta.show { transform: none; }
  .mcta .btn { flex: 1; box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .55); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .fade-up { opacity: 1; transform: none; }
  .js .hero-title .line > span, .js .hero-media img { transform: none; }
}
