/* ==========================================================================
   1811 JOHN BREBEUF, River Heights, Winnipeg
   A Paragon Living community
   Palette: Tricorn Black #2F2F30 · Ice Cube #E3E4E1 · Rockweed #443735
   Type:    Bebas Neue (display) · Raleway (body)
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Bebas Neue';
  src: url('../assets/fonts/bebas-neue-latin.woff2') format('woff2'),
       url('../assets/fonts/BebasNeue-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('../assets/fonts/raleway-var-latin.woff2') format('woff2-variations'),
       url('../assets/fonts/raleway-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #2F2F30;          /* Tricorn Black */
  --ink-deep: #232324;
  --ice: #E3E4E1;          /* Ice Cube */
  --paper: #F2F2F0;
  --rockweed: #443735;     /* warm dark brown accent */
  --rockweed-deep: #362B29;
  --on-photo: #EFEFEC;

  --ink-60: rgba(47, 47, 48, .72);
  --hairline-dark: rgba(47, 47, 48, .16);
  --hairline-light: rgba(227, 228, 225, .22);

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Raleway', 'Helvetica Neue', sans-serif;

  --container: min(1200px, 92vw);
  --section-pad: clamp(4.5rem, 9vw, 8rem);
  --ease-out: cubic-bezier(.22, .61, .2, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ice);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
sup { font-size: .6em; }

::selection { background: var(--rockweed); color: var(--ice); }

:focus-visible { outline: 2px solid var(--rockweed); outline-offset: 3px; }
.section--dark :focus-visible,
.cta :focus-visible,
.footer :focus-visible,
.hero :focus-visible { outline-color: var(--ice); }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 300;
  background: var(--ink); color: var(--ice);
  padding: .6em 1.2em; text-decoration: none; font-size: .85rem;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container { width: var(--container); margin-inline: auto; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .95;
  letter-spacing: .012em;
  text-transform: uppercase;
}
h2 { font-size: clamp(2.6rem, 5.2vw, 4.3rem); }

p { max-width: 60ch; }

.eyebrow {
  display: flex; align-items: center; gap: .9rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--rockweed);
}
.eyebrow::before {
  content: ''; width: 2.2rem; height: 1px;
  background: currentColor; opacity: .7; flex: none;
}
.eyebrow--onphoto { color: var(--on-photo); }

.section-head {
  display: flex; align-items: baseline; gap: 1.1rem;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.section-index {
  font-family: var(--font-display);
  font-size: 1.6rem; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(47, 47, 48, .45);
}
.section-head--ondark .section-index { -webkit-text-stroke-color: rgba(227, 228, 225, .5); }
.section-head--ondark .eyebrow { color: rgba(227, 228, 225, .78); }

.footnote { font-size: .74rem; color: var(--ink-60); max-width: 62ch; margin-top: 1rem; }

.text-link {
  display: inline-block; margin-top: 1.4rem;
  font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--rockweed);
  border-bottom: 1px solid currentColor; padding-bottom: .35em;
  transition: opacity .25s;
}
.text-link:hover { opacity: .65; }
.text-link span { display: inline-block; transition: transform .3s var(--ease-out); }
.text-link:hover span { transform: translateX(5px); }

.inline-link {
  display: inline; padding: 0; border: 0; background: none;
  font: inherit; color: var(--rockweed); cursor: pointer;
  border-bottom: 1px solid currentColor;
  transition: opacity .25s;
}
.inline-link:hover { opacity: .65; 
    
}
/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  font-family: var(--font-display);
  font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase;
  line-height: 1; text-decoration: none; white-space: nowrap;
  padding: 1.05em 1.7em .88em;   /* Bebas rides high, rebalance */
  border: 1px solid transparent;
  transition: background .3s, color .3s, border-color .3s;
}
.btn--lg { font-size: 1.18rem; padding: 1.1em 2em .92em; }
.btn__arrow { display: inline-block; transition: transform .3s var(--ease-out); font-family: var(--font-body); font-weight: 600; }
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--solid { background: var(--rockweed); color: var(--on-photo); }
.btn--solid:hover { background: var(--rockweed-deep); }

.btn--ghost { border-color: rgba(239, 239, 236, .55); color: var(--on-photo); }
.btn--ghost:hover { background: var(--on-photo); color: var(--ink); border-color: var(--on-photo); }

.btn--dark { background: var(--ink); color: var(--ice); }
.btn--dark:hover { background: var(--rockweed); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  background: var(--ink);
  transition: opacity .3s ease, visibility .3s ease;
}
.preloader img { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.985); } }
html.is-loaded .preloader { opacity: 0; visibility: hidden; }
html.is-loaded .preloader img { animation: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background .4s, box-shadow .4s;
}
.nav__inner {
  width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-block: 1.15rem;
  transition: padding .4s;
}
.nav__brand { position: relative; display: block; }
.nav__logo { width: 82px; height: auto; transition: opacity .35s; }
.nav__logo--dark { position: absolute; inset: 0; opacity: 0; }

.nav__links { display: flex; gap: 2.2rem; margin-left: auto; }
.nav__links a {
  font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--on-photo);
  position: relative; padding-bottom: .4em;
  transition: color .35s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { display: flex; align-items: center; gap: 1.2rem; }
.nav__cta { font-size: .92rem; padding: .95em 1.5em .78em; }

.nav--scrolled { background: rgba(227, 228, 225, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--hairline-dark); }
.nav--scrolled .nav__inner { padding-block: .7rem; }
.nav--scrolled .nav__logo--light { opacity: 0; }
.nav--scrolled .nav__logo--dark { opacity: 1; }
.nav--scrolled .nav__links a { color: var(--ink); }

/* burger */
.nav__burger { display: none; width: 42px; height: 42px; position: relative; z-index: 260; }
.nav__burger span {
  position: absolute; left: 9px; right: 9px; height: 2px;
  background: var(--on-photo); transition: transform .35s, top .35s, background .35s;
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 24px; }
.nav--scrolled .nav__burger span { background: var(--ink); }
body.menu-open .nav__burger span { background: var(--ice); }
body.menu-open .nav__burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 250;
  background: var(--ink);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .45s, visibility .45s;
}
.mobile-menu nav { display: grid; gap: 1.4rem; text-align: center; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(2.4rem, 9vw, 3.4rem);
  line-height: 1; text-transform: uppercase; text-decoration: none;
  color: var(--ice);
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s, transform .5s;
  transition-delay: calc(var(--i) * 70ms);
}
.mobile-menu .btn {
  justify-self: center; margin-top: 1rem;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s, transform .5s, background .3s;
  transition-delay: calc(var(--i) * 70ms);
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
body.menu-open .nav {
  z-index: 260;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.menu-open .nav__logo--light { opacity: 1; }
body.menu-open .nav__logo--dark { opacity: 0; }
body.menu-open .mobile-menu a,
body.menu-open .mobile-menu .btn { opacity: 1; transform: none; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--on-photo);
  overflow: hidden;
}
.hero__media, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 40%;
}
.hero__media img { will-change: transform; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(47,47,48,.45) 0%, rgba(47,47,48,0) 26%),
    linear-gradient(90deg, rgba(47,47,48,.5) 0%, rgba(47,47,48,.12) 55%, rgba(47,47,48,0) 75%),
    linear-gradient(199deg, rgba(47,47,48,0) 28%, rgba(47,47,48,.9) 88%);
}

.hero__side {
  position: absolute; z-index: 2;
  left: 2rem; top: 50%; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: .66rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(239, 239, 236, .66);
}

.hero__content {
  position: relative; z-index: 2;
  width: var(--container); margin-inline: auto;
  padding-bottom: clamp(2.5rem, 5vh, 4.5rem);
}
.hero__title {
  font-size: clamp(3.4rem, 8vw, 7rem);
  margin: 1.1rem 0 1.2rem;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(24, 24, 25, .45);
}
.hero__title em { font-style: normal; }
.hero__lede {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  font-weight: 500;
  max-width: 46ch;
  color: #F6F5F2;
  text-shadow: 0 1px 16px rgba(24, 24, 25, .65), 0 0 40px rgba(24, 24, 25, .4);
}
.eyebrow--onphoto { text-shadow: 0 1px 12px rgba(24, 24, 25, .6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero__foot {
  position: relative; z-index: 2;
  width: var(--container); margin-inline: auto;
  display: flex; align-items: center; gap: 3rem;
  border-top: 1px solid var(--hairline-light);
  padding-block: 1.1rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(239, 239, 236, .72);
}
.hero__scrollcue { margin-left: auto; display: inline-flex; align-items: center; gap: .8rem; }
.hero__scrollcue i {
  width: 1px; height: 30px; background: rgba(239,239,236,.7);
  display: inline-block;
  animation: cue 2.1s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 46% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-pad); overflow: hidden; }
.section--ice { background: var(--ice); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--ice); }
.section--dark::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); background-size: 240px;
  opacity: .07; mix-blend-mode: screen;
}
.section--dark .container { position: relative; z-index: 1; }

.ghost-numeral::after, .footer__ghost::after { content: attr(data-ghost); }
.ghost-numeral {
  position: absolute; top: -.08em; left: -.03em;
  font-family: var(--font-display); font-size: clamp(14rem, 34vw, 30rem);
  line-height: 1; color: rgba(47, 47, 48, .045);
  pointer-events: none; user-select: none;
}
.ghost-numeral--right { left: auto; right: -.03em; color: rgba(227, 228, 225, .05); }
.footer__ghost {
  position: absolute; bottom: -.18em; right: -.02em;
  font-family: var(--font-display); font-size: clamp(12rem, 28vw, 24rem);
  line-height: 1; color: rgba(227, 228, 225, .035);
  pointer-events: none; user-select: none;
}

/* ---------- 01 Community ---------- */
.community__grid {
  display: grid; grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.community__copy h2 { max-width: 15ch; margin-bottom: 1.4rem; }
.community__copy p + p { margin-top: 1rem; }

.community__media { position: relative; margin-right: calc(50% - 50vw); }
.community__media img { width: 100%; height: 100%; object-fit: cover; }

.badge-card {
  position: absolute; left: -1px; bottom: -2rem;
  max-width: 300px;
  background: var(--rockweed); color: var(--ice);
  padding: 1.4rem 1.6rem;
  box-shadow: 0 24px 48px -24px rgba(47, 47, 48, .5);
}
.badge-card__num {
  display: block;
  font-family: var(--font-display); font-size: 2rem; line-height: 1;
  border-bottom: 1px solid var(--hairline-light);
  padding-bottom: .5rem; margin-bottom: .7rem;
}
.badge-card p { font-size: .86rem; line-height: 1.55; color: rgba(227, 228, 225, .92); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(4rem, 7vw, 6rem);
  border-top: 1px solid var(--hairline-dark);
}
.stats__item { padding: 1.6rem 1.5rem 0; border-left: 1px solid var(--hairline-dark); }
.stats__item:first-child { border-left: 0; padding-left: 0; }
.stat-num, .stat-unit {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5.5vw, 5rem); line-height: 1;
  color: var(--rockweed);
}
.stats__item dd {
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-60); margin-top: .5rem;
}

/* ---------- 02 Homes / explorer ---------- */
.homes__intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.homes__intro p { color: rgba(227, 228, 225, .8); }

.explorer {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.explorer__tabs { display: grid; }
.explorer__tab {
  display: flex; gap: 1.3rem; align-items: flex-start;
  text-align: left;
  padding: 1.5rem 1.2rem;
  border-top: 1px solid var(--hairline-light);
  border-left: 3px solid transparent;
  transition: background .35s, border-color .35s;
}
.explorer__tab:last-child { border-bottom: 1px solid var(--hairline-light); }
.explorer__tab-num {
  font-family: var(--font-display); font-size: 1.55rem; line-height: 1;
  white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(227, 228, 225, .55);
  transition: color .35s;
  padding-top: .18em;
}
.explorer__tab-body { display: grid; gap: .3rem; }
.explorer__tab-body strong {
  font-family: var(--font-display); font-weight: 400; font-size: 1.35rem;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1;
}
.explorer__tab-body span { font-size: .88rem; color: rgba(227, 228, 225, .68); line-height: 1.55; }
.explorer__tab:hover { background: rgba(227, 228, 225, .05); }
.explorer__tab.is-active {
  border-left-color: var(--ice);
  background: rgba(227, 228, 225, .06);
}
.explorer__tab.is-active .explorer__tab-num { color: var(--ice); -webkit-text-stroke-color: transparent; }

.explorer__stage { position: relative; margin: 0; }
.explorer__caption {
  margin-top: 1rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(227, 228, 225, .58);
  text-align: right;
}

/* --- cutaway diagram --- */
.cutaway { width: 100%; height: auto; display: block; }
.cutaway__zone {
  fill: transparent;
  stroke: transparent; stroke-width: 2;
  transition: fill .45s, stroke .45s;
  cursor: pointer;
  pointer-events: all;
}
.cutaway__zone:hover { stroke: rgba(227, 228, 225, .45); }
.cutaway__zone:focus-visible { outline: none; stroke: rgba(227, 228, 225, .7); }
.cutaway.is-upper [data-zone="upper"],
.cutaway.is-lower [data-zone="lower"] {
  fill: rgba(227, 228, 225, .13);
  stroke: var(--ice);
}
.cutaway__level {
  font-family: var(--font-display); font-size: 34px;
  fill: transparent; stroke: rgba(227, 228, 225, .45); stroke-width: 1;
  transition: fill .45s, stroke .45s;
}
.cutaway.is-upper [data-zone-label="upper"],
.cutaway.is-lower [data-zone-label="lower"] {
  fill: var(--ice); stroke: transparent;
}
.cutaway__plate {
  font-family: var(--font-display); font-size: 12px;
  fill: rgba(227, 228, 225, .8); letter-spacing: .08em;
}
.cutaway__note {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  fill: rgba(227, 228, 225, .5);
}
.cutaway__bracket {
  font-family: var(--font-display); font-size: 21px;
  letter-spacing: .22em; text-transform: uppercase;
  fill: rgba(227, 228, 225, .45);
}

.homes__features {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0 3rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.homes__features li {
  border-top: 1px solid var(--hairline-light);
  padding: 1rem 0;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(227, 228, 225, .82);
  display: flex; align-items: center; gap: .9rem;
}
.homes__features li::before { content: none; }
.feat__ic {
  flex: none; display: inline-flex;
  width: 22px; height: 22px;
  color: var(--ice);
  opacity: .85;
}
.feat__ic svg { width: 100%; height: 100%; display: block; }
.homes__features li { gap: 1rem; }

/* ---------- 03 Interiors ---------- */
.interiors__grid {
  display: grid; grid-template-columns: 4fr 7fr;
  gap: clamp(2.5rem, 5vw, 5rem);
}
.interiors__copy { position: sticky; top: 110px; align-self: start; }
.interiors__copy h2 { margin-bottom: 1.3rem; }
.interiors__list { list-style: none; margin-top: 2rem; }
.interiors__list li {
  border-top: 1px solid var(--hairline-dark);
  padding: .9rem 0;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-60);
  display: flex; align-items: center; gap: .9rem;
}
.interiors__list li:last-child { border-bottom: 1px solid var(--hairline-dark); }
.interiors__list li::before {
  content: '+';
  font-family: var(--font-display); font-size: 1.1rem;
  color: var(--rockweed);
}

.interiors__mosaic {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-content: start;
}
.interiors__img { position: relative; display: flex; flex-direction: column; }
.interiors__img img { width: 100%; height: auto; flex: 1 1 auto; min-height: 0; object-fit: cover; }
.interiors__img figcaption { flex: none; }
.interiors__img figcaption {
  margin-top: .7rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-60);
  display: flex; align-items: center; gap: .8rem;
}
.interiors__img figcaption::before { content: ''; width: 1.6rem; height: 1px; background: var(--rockweed); }
.interiors__img--a { grid-column: 1 / 13; }
.interiors__img--b { grid-column: 1 / 8; }
.interiors__img--c { grid-column: 8 / 13; margin-top: clamp(2rem, 5vw, 4rem); }

/* ---------- 04 Gallery ---------- */
.gallery { padding-bottom: clamp(3rem, 6vw, 5rem); }
.gallery__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.gallery__hint {
  font-size: .7rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(227, 228, 225, .6);
  display: flex; align-items: center; gap: .7rem; flex: none;
}

.gallery__track {
  display: flex; gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-inline: max(calc((100vw - 1200px) / 2), 4vw);
  padding-bottom: .5rem;
  scrollbar-width: none;
  cursor: grab;
  position: relative; z-index: 1;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery__track.is-dragging .gallery__card { pointer-events: none; }

.gallery__card {
  flex: none;
  scroll-snap-align: center;
  position: relative;
  cursor: pointer;
}
.gallery__card img {
  height: clamp(300px, 46vh, 430px);
  width: auto;
  max-width: 86vw;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  user-select: none;
}
.gallery__card--wide img { aspect-ratio: 1.85 / 1; }
.gallery__card figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-top: .75rem; margin-top: .1rem;
  border-top: 1px solid var(--hairline-light);
  font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(227, 228, 225, .75);
}
.gallery__count { font-family: var(--font-display); font-size: .95rem; letter-spacing: .12em; color: rgba(227,228,225,.5); }
.gallery__expand {
  position: absolute; top: .9rem; right: .9rem;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: rgba(35, 35, 36, .72); color: var(--ice);
  font-size: 1.2rem;
  opacity: 0; transition: opacity .3s, background .3s;
  backdrop-filter: blur(4px);
}
.gallery__card:hover .gallery__expand, .gallery__expand:focus-visible { opacity: 1; }
.gallery__expand:hover { background: var(--rockweed); }
@media (hover: none) { .gallery__expand { opacity: 1; } }

.gallery__stage { position: relative; }
.gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font-size: 1.3rem; color: var(--ice);
  background: rgba(40, 39, 38, .78);
  border: 1px solid rgba(227, 228, 225, .35);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  transition: background .3s, border-color .3s, opacity .35s, transform .35s;
}
.gallery__arrow:hover { background: var(--rockweed); border-color: var(--rockweed); }
.gallery__arrow--prev { left: clamp(.9rem, 2.5vw, 2.2rem); }
.gallery__arrow--next { right: clamp(.9rem, 2.5vw, 2.2rem); }
.gallery__arrow.is-hidden {
  opacity: 0; pointer-events: none;
  transform: translateY(-50%) scale(.85);
}

.gallery__progress {
  width: var(--container); margin: 2.2rem auto 0;
  height: 2px; background: rgba(227, 228, 225, .18);
  position: relative; z-index: 1;
}
.gallery__progress i {
  display: block; height: 100%; width: 10%;
  background: var(--ice);
  transition: width .15s linear;
}

/* ---------- 05 Neighborhood ---------- */
.neighborhood__grid {
  display: grid; grid-template-columns: 7fr 4fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
}
.neighborhood__aside {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 1.4rem;
  border-left: 1px solid var(--hairline-dark);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: .4rem;
}
.neighborhood__copy h2 { margin-bottom: 1.3rem; }
.neighborhood__copy p + p { margin-top: 1rem; }

.neighborhood__address {
  font-style: normal;
  padding-left: 1.2rem;
  border-left: 3px solid var(--rockweed);
  line-height: 1.5;
}
.neighborhood__address strong { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- interactive 3D neighborhood map ---------- */
#jb-map-root {
  position: relative; width: 100%;
  height: 660px; max-height: 84vh;
  overflow: hidden; isolation: isolate;
  background: #262524;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  box-shadow: 0 40px 90px -40px rgba(35, 35, 36, .55);
}
#jb-map-root * { box-sizing: border-box; }
.jb-mapwrap { position: absolute; inset: 0; z-index: 1; }
#jb-map { position: absolute; inset: 0; }
#jb-map canvas { outline: none; }

.jb-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(120% 90% at 60% 40%, transparent 55%, rgba(24, 24, 25, .45) 100%); }
.jb-grain { position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .05;
  background-image: var(--grain); background-size: 240px; }

/* glass panel */
.jb-panel { position: absolute; z-index: 5; top: 18px; left: 18px; bottom: 18px; width: 348px;
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(227, 228, 225, .93);
  -webkit-backdrop-filter: blur(22px) saturate(1.05); backdrop-filter: blur(22px) saturate(1.05);
  border: 1px solid rgba(47, 47, 48, .1);
  border-top: 3px solid var(--rockweed);
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateX(-14px);
  transition: opacity .7s ease .25s, transform .7s ease .25s; }
.jb-ready .jb-panel { opacity: 1; transform: none; }

.jb-head { padding: 18px 18px 10px; }
.jb-title { margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: 1.7rem; line-height: 1; color: var(--ink); letter-spacing: .03em; }
.jb-sub { margin: 4px 0 0; font-size: 11.5px; line-height: 1.35; color: #6B7170; }

.jb-search { position: relative; margin: 4px 16px 10px; }
.jb-search svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px;
  transform: translateY(-50%); color: #6B7170; pointer-events: none; }
.jb-search input { width: 100%; height: 38px; padding: 0 12px 0 34px;
  border: 1px solid rgba(47, 47, 48, .16); background: rgba(255, 255, 255, .62);
  color: var(--ink); font: inherit; font-size: 13px; outline: none;
  transition: border-color .2s, background .2s; }
.jb-search input::placeholder { color: #8A8F8B; }
.jb-search input:focus { border-color: var(--rockweed); background: rgba(255, 255, 255, .85); }
.jb-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.jb-chipswrap { position: relative; }
.jb-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px;
  scrollbar-width: none; }
.jb-chips::-webkit-scrollbar { display: none; }
.jb-chip-arrow {
  position: absolute; top: calc(50% - 6px); transform: translateY(-50%); z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .8rem; color: var(--ink);
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(47, 47, 48, .18);
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .25);
  cursor: pointer;
  transition: opacity .3s, background .2s;
}
.jb-chip-arrow:hover { background: #fff; }
.jb-chip-arrow--prev { left: 8px; }
.jb-chip-arrow--next { right: 8px; }
.jb-chip-arrow.is-hidden { opacity: 0; pointer-events: none; }
.jb-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
  border-radius: 999px; border: 1px solid rgba(47, 47, 48, .18); background: rgba(255, 255, 255, .4);
  color: var(--ink); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.jb-chip:hover { background: rgba(255, 255, 255, .7); }
.jb-chip.is-on { background: var(--rockweed); border-color: var(--rockweed); color: var(--ice); }
.jb-chip-ic { display: inline-grid; place-items: center; }
.jb-chip-ic svg { width: 11px; height: 11px; }

.jb-list { flex: 1; overflow-y: auto; padding: 2px 10px 8px; scrollbar-width: thin;
  scrollbar-color: rgba(47, 47, 48, .3) transparent; }
.jb-list::-webkit-scrollbar { width: 6px; }
.jb-list::-webkit-scrollbar-thumb { background: rgba(47, 47, 48, .25); }
.jb-item { display: flex; width: 100%; align-items: center; gap: 11px; padding: 9px 8px;
  border: 0; background: transparent; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink); position: relative;
  transition: background .18s; }
.jb-item:hover { background: rgba(47, 47, 48, .06); }
.jb-item.is-active { background: rgba(68, 55, 53, .12); }
.jb-item.is-active::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; background: var(--rockweed); }
.jb-item-ic { flex: 0 0 auto; width: 32px; height: 32px;
  display: grid; place-items: center; background: rgba(47, 47, 48, .07);
  border: 1px solid rgba(47, 47, 48, .1); color: var(--ink); transition: background .18s, color .18s; }
.jb-item-ic svg { width: 15px; height: 15px; }
.jb-item.is-active .jb-item-ic { background: var(--rockweed); border-color: var(--rockweed); color: var(--ice); }
.jb-item-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.jb-item-nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.jb-item-sub { font-size: 10.5px; color: #6B7170; }
.jb-item-min { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: var(--ink); background: rgba(68, 55, 53, .1);
  border: 1px solid rgba(68, 55, 53, .3); padding: 4px 9px; border-radius: 999px;
  font-variant-numeric: tabular-nums; }
.jb-item-min svg { width: 13px; height: 13px; color: var(--rockweed); }
.jb-item.is-active .jb-item-min { background: var(--rockweed); border-color: var(--rockweed); color: var(--ice); }
.jb-item.is-active .jb-item-min svg { color: var(--ice); }
.jb-empty { padding: 22px 12px; font-size: 12.5px; color: #6B7170; text-align: center; }
.jb-count { padding: 10px 18px 13px; font-size: 10.5px; letter-spacing: .03em;
  color: #6B7170; border-top: 1px solid rgba(47, 47, 48, .09); }

/* POI pin markers */
.jb-poi { z-index: 1; position: relative; width: 30px; height: 42px; padding: 0; border: 0;
  background: transparent; cursor: pointer;
  transform: scale(var(--jb-s, 1)); transform-origin: 50% 100%;
  transition: transform .2s ease, filter .2s ease; }
.jb-poi-pin { position: absolute; inset: 0; display: block; }
.jb-poi-pin svg { width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); }
.jb-pb { fill: #8D7266; }
.jb-pc { fill: #2F2F30; }
.jb-poi:hover, .jb-poi.is-hot { transform: scale(calc(var(--jb-s, 1) * 1.14)) translateY(-2px); }
.jb-poi.is-active { transform: scale(calc(var(--jb-s, 1) * 1.2)) translateY(-3px); }
.jb-poi.is-active .jb-pb { fill: #AC8F81; }
.jb-poi.is-active .jb-poi-pin svg { filter: drop-shadow(0 4px 10px rgba(172, 143, 129, .55)); }
.jb-poi-ring { position: absolute; left: 50%; bottom: -4px; width: 16px; height: 6px;
  transform: translateX(-50%); border-radius: 50%; background: rgba(172, 143, 129, .55);
  opacity: 0; pointer-events: none; }
.jb-poi.is-active .jb-poi-ring { animation: jbRing 1.6s ease-out infinite; }
@keyframes jbRing {
  0% { opacity: .7; transform: translateX(-50%) scale(.6); }
  100% { opacity: 0; transform: translateX(-50%) scale(2.4); } }

/* hero marker */
.jb-hero-mk { z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none; opacity: 0; transform: translateY(8px);
  transition: opacity .9s ease, transform .9s ease; }
.jb-hero-in .jb-hero-mk { opacity: 1; transform: none; }
.jb-hero-pin img { display: block; width: 46px; height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)); }
.jb-hero-lb { display: block; padding: 8px 12px 6px;
  background: rgba(47, 47, 48, .74); border: 1px solid rgba(227, 228, 225, .24);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .55); }
.jb-hero-lb img { display: block; width: 64px; height: auto; }

/* popup */
.jb-pop { z-index: 3; }
.jb-pop .maplibregl-popup-content { padding: 0; overflow: hidden;
  background: rgba(40, 39, 38, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(227, 228, 225, .14); box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .65);
  font-family: var(--font-body); border-radius: 0; }
.jb-pop .maplibregl-popup-tip { border-top-color: rgba(40, 39, 38, .92);
  border-bottom-color: rgba(40, 39, 38, .92); }
.jb-pop .maplibregl-popup-close-button { color: #B9BDB9; font-size: 17px; right: 6px; top: 4px;
  background: none; }
.jb-pop .maplibregl-popup-close-button:hover { color: var(--ice); background: none; }
.jb-pop-in { padding: 13px 16px 12px; }
.jb-pop-nm { margin: 0 14px 2px 0; font-size: 14px; font-weight: 700; color: var(--ice); }
.jb-pop-sub { margin: 0; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: #8F918E; }
.jb-pop-row { display: flex; align-items: center; gap: 12px; margin-top: 9px; }
.jb-pop-stat { display: inline-flex; align-items: center; gap: 5px; font-size: 11px;
  color: #B9BDB9; white-space: nowrap; }
.jb-pop-stat svg { width: 13px; height: 13px; color: #AC8F81; }
.jb-pop-stat b { color: var(--ice); font-variant-numeric: tabular-nums; }
.jb-pop-dist { color: #9BA09C; font-weight: 600; }

/* controls */
.jb-ctrl { position: absolute; z-index: 4; right: 14px; bottom: 26px; display: flex;
  flex-direction: column; gap: 6px; }
.jb-ctrl button { width: 36px; height: 36px; border: 1px solid rgba(227, 228, 225, .16);
  background: rgba(40, 39, 38, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ice); font-size: 16px; font-family: var(--font-body); font-weight: 600;
  cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.jb-ctrl button:hover { background: rgba(68, 55, 53, .75); border-color: rgba(227, 228, 225, .3); }
.jb-ctrl button[data-act="tilt"] { font-size: 12px; letter-spacing: .04em; }
.jb-ctrl button[data-act="rotl"], .jb-ctrl button[data-act="rotr"] { font-size: 15px; }

/* attribution / fallback */
#jb-map-root .maplibregl-ctrl-attrib { background: rgba(38, 37, 36, .7); color: #85898B;
  font-size: 9.5px; }
#jb-map-root .maplibregl-ctrl-attrib a { color: #9BA09C; }
.jb-fallback { display: grid; place-items: center; min-height: 320px;
  background: linear-gradient(160deg, #2F2F30, #443735); }
.jb-fb { text-align: center; padding: 40px; }
.jb-fb-t { font-family: var(--font-display); font-size: 26px; text-transform: uppercase;
  color: var(--ice); margin: 0 0 8px; }
.jb-fb-m { color: rgba(227, 228, 225, .75); font-size: 14px; margin: 0; }

@media (max-width: 919px) {
  #jb-map-root { height: auto; max-height: none; }
  .jb-mapwrap { position: relative; height: 440px; }
  .jb-panel { position: relative; inset: auto; width: 100%; max-height: none;
    border-left: 0; border-right: 0; border-bottom: 0; transform: none; }
  .jb-list { flex: none; max-height: 48vh; min-height: 320px; }
  .jb-chips { flex-wrap: nowrap; overflow-x: auto; padding: 0 42px 12px;
    scroll-behavior: smooth; }
  .jb-chip { flex: none; }
  .jb-ctrl { bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .jb-panel, .jb-hero-mk, .jb-poi { transition: none; }
  .jb-poi.is-active .jb-poi-ring { animation: none; opacity: .5; }
}

/* amenities (SEO content) */
.amenities {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 3rem;
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  border-top: 1px solid var(--hairline-dark);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.amenities__col h3 {
  font-size: 1.35rem; letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: .9rem;
}
.amenities__col ul { list-style: none; }
.amenities__col li {
  font-size: .88rem; line-height: 1.5;
  color: var(--ink-60);
  padding: .5rem 0 .5rem 1.1rem;
  position: relative;
}
.amenities__col li::before {
  content: '';
  position: absolute; left: 0; top: .95em;
  width: 5px; height: 5px;
  background: var(--rockweed);
}

/* ---------- 06 FAQ ---------- */
.faq__grid {
  display: grid; grid-template-columns: 4fr 8fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.faq__list { border-bottom: 1px solid var(--hairline-dark); }
.faq__item { border-top: 1px solid var(--hairline-dark); }
.faq__item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.2rem 0;
  font-weight: 700; font-size: .98rem;
  cursor: pointer;
  transition: color .3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--rockweed); }
.faq__icon {
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1;
  color: var(--rockweed);
  transition: transform .35s var(--ease-out);
  flex: none;
}
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item p {
  padding: 0 0 1.4rem;
  font-size: .95rem; color: var(--ink-60);
  max-width: 62ch;
}
.faq__item a { color: var(--rockweed); }

/* ---------- CTA finale ---------- */
.cta {
  position: relative;
  background: var(--ink-deep); color: var(--on-photo);
  text-align: center;
  padding-block: clamp(6rem, 12vw, 10rem);
  overflow: hidden;
}
.cta__media, .cta__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 66%;
}
.cta__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(90% 80% at 50% 100%, rgba(68, 55, 53, .55), transparent 70%),
    rgba(35, 35, 36, .78);
}
.cta__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1.1rem; width: var(--container); margin-inline: auto; }
.cta h2 { font-size: clamp(3.4rem, 8.5vw, 6.6rem); }
.cta p { max-width: 44ch; color: rgba(239, 239, 236, .85); }
.cta .btn { margin-top: 1rem; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--ink-deep); color: var(--ice);
  padding-top: clamp(4rem, 7vw, 6rem);
  overflow: hidden;
}
.footer .container { position: relative; z-index: 1; }
.footer__grid {
  display: grid;
  grid-template-columns: 4fr 2.5fr 3fr 3fr;
  gap: 3rem;
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
.footer__brand img { width: 110px; }
.footer__brand p { margin-top: 1.3rem; font-size: .88rem; color: rgba(227, 228, 225, .6); line-height: 1.65; }

.footer__col h3, .footer__paragon h3 {
  font-family: var(--font-body);
  font-size: .68rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(227, 228, 225, .58);
  margin-bottom: 1.2rem;
}
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.footer__col a, .footer__waitlist {
  font-size: .92rem; color: rgba(227, 228, 225, .82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
  padding: 0; text-align: left;
}
.footer__col a:hover, .footer__waitlist:hover { color: var(--ice); border-bottom-color: rgba(227,228,225,.5); }

.footer__social { display: flex; gap: .7rem; margin-top: 1rem; }
.footer__social a {
  width: 40px; height: 40px; border: 1px solid rgba(227, 228, 225, .3);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .3s, border-color .3s, color .3s;
}
.footer__social svg { width: 17px; height: 17px; }
.footer__social a:hover { background: var(--rockweed); border-color: var(--rockweed); color: var(--on-photo); }

.footer__paragon img { width: 168px; opacity: .9; transition: opacity .3s; }
.footer__paragon a:hover img { opacity: 1; }
.footer__paragon p { margin-top: 1.1rem; font-size: .82rem; color: rgba(227, 228, 225, .55); line-height: 1.6; }

.footer__bar {
  border-top: 1px solid var(--hairline-light);
  padding-block: 1.5rem 1.7rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2.5rem;
  font-size: .72rem; color: rgba(227, 228, 225, .58);
}
.footer__bar p { max-width: none; }

/* ---------- Waitlist modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: 1rem;
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(35, 35, 36, .66);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.modal__card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88svh, 100%);
  overflow-y: auto;
  background: var(--paper);
  border-top: 4px solid var(--rockweed);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  transform: translateY(16px) scale(.985);
  transition: transform .45s var(--ease-out);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
}
.modal.is-open .modal__card { transform: none; }
.modal__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-size: 1rem; color: var(--ink-60);
  transition: color .3s, transform .3s;
}
.modal__close:hover { color: var(--ink); transform: rotate(90deg); }

.modal__card h3 { font-size: clamp(2.2rem, 5vw, 2.9rem); margin: .7rem 0 .6rem; }
.modal__sub { font-size: .92rem; color: var(--ink-60); margin-bottom: 1.6rem; }

.field { margin-bottom: 1.25rem; }
.field label, .field legend {
  display: block;
  font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: .35rem;
}
.field__optional { opacity: .55; letter-spacing: .1em; text-transform: none; font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%;
  font: inherit; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(47, 47, 48, .35);
  border-radius: 0;
  padding: .55em 0;
  transition: border-color .3s;
}
.field input:focus { outline: none; border-bottom-color: var(--rockweed); border-bottom-width: 2px; }
.field input.is-invalid { border-bottom-color: #8C3B2E; }

.field--radios { border: 0; margin-top: 1.5rem; }
.radio-pills { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .6rem; }
.radio-pills label { cursor: pointer; }
.radio-pills input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pills span {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid rgba(47, 47, 48, .35);
  border-radius: 99px;
  padding: .6em 1.15em .55em;
  transition: background .25s, color .25s, border-color .25s;
}
.radio-pills input:checked + span { background: var(--rockweed); border-color: var(--rockweed); color: var(--ice); }
.radio-pills input:focus-visible + span { outline: 2px solid var(--rockweed); outline-offset: 2px; }

.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.modal__status { font-size: .85rem; min-height: 1.4em; margin: .4rem 0 .6rem; color: var(--ink-60); }
.modal__status.is-error { color: #8C3B2E; font-weight: 600; }

.modal__submit { width: 100%; }
.modal__submit[disabled] { opacity: .55; cursor: wait; }
.modal__fineprint { font-size: .72rem; color: var(--ink-60); opacity: .8; margin-top: .9rem; text-align: center; }

.modal__success { text-align: center; padding: 2rem 0 1rem; }
.modal__check {
  width: 74px; height: 74px;
  color: var(--rockweed);
  margin: 0 auto 1.4rem;
}
.modal__check circle { stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw 1s var(--ease-out) forwards; }
.modal__check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease-out) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.modal__success h3 { margin-bottom: .6rem; }
.modal__success p { max-width: 38ch; margin: 0 auto 1.6rem; font-size: .92rem; color: var(--ink-60); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(24, 24, 25, .94); }
.lightbox figure { position: relative; z-index: 1; max-width: min(1400px, 92vw); }
.lightbox img { max-height: 80svh; width: auto; max-width: 100%; margin-inline: auto; }
.lightbox figcaption {
  display: flex; justify-content: space-between; gap: 2rem;
  padding-top: .8rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(227, 228, 225, .75);
}
.lightbox__close {
  position: absolute; top: max(1.2rem, env(safe-area-inset-top)); right: 1.4rem; z-index: 2;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  color: var(--ice); font-size: 1.15rem;
  background: rgba(24, 24, 25, .6); backdrop-filter: blur(6px);
  border: 1px solid rgba(227, 228, 225, .6); border-radius: 50%;
  transition: background .3s, transform .3s;
}
.lightbox__close:hover { background: var(--rockweed); transform: rotate(90deg); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  color: var(--ice); font-size: 1.25rem;
  background: rgba(24, 24, 25, .6); backdrop-filter: blur(6px);
  border: 1px solid rgba(227, 228, 225, .6); border-radius: 50%;
  transition: background .3s, border-color .3s;
}
.lightbox__nav:hover { background: var(--rockweed); border-color: var(--rockweed); }
.lightbox__nav--prev { left: clamp(.6rem, 2.5vw, 2.5rem); }
.lightbox__nav--next { right: clamp(.6rem, 2.5vw, 2.5rem); }

/* On a phone the arrows land in the middle of the photo, where a bright image
   hides them. Drop them clear of the image, below it. */
@media (max-width: 700px) {
  .lightbox__nav {
    top: auto; transform: none;
    bottom: max(1.1rem, env(safe-area-inset-bottom));
    width: 46px; height: 46px;
  }
}

/* ---------- Reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0; transform: translateY(26px);
    transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  }
  [data-reveal].is-inview { opacity: 1; transform: none; }

  /* The hero <h1> is the LCP element. It must never sit at opacity 0 waiting
     for JavaScript, so paint it on the first frame and animate transform only.
     LCP then lands with FCP instead of after the preloader fade plus an .85s
     opacity transition. */
  .hero [data-reveal] {
    opacity: 1;
    transform: translateY(18px);
    animation: heroRise .6s var(--ease-out) forwards;
  }
  .hero [data-reveal][data-d="1"] { animation-delay: .05s; }
  .hero [data-reveal][data-d="2"] { animation-delay: .10s; }
  .hero [data-reveal][data-d="3"] { animation-delay: .15s; }
  .hero [data-reveal][data-d="4"] { animation-delay: .20s; }
  .hero [data-reveal].is-inview { transform: none; }
  @keyframes heroRise { to { transform: none; } }
  [data-d="1"] { transition-delay: .1s; }
  [data-d="2"] { transition-delay: .2s; }
  [data-d="3"] { transition-delay: .3s; }
  [data-d="4"] { transition-delay: .4s; }
  [data-d="5"] { transition-delay: .5s; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scrollcue i, .preloader img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__side { display: none; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }

  .hero__foot span:not(.hero__scrollcue) { display: none; }
  .hero__foot { justify-content: flex-end; }

  .community__grid { grid-template-columns: 1fr; }
  .community__media { margin-right: calc(50vw - 50%); margin-left: calc(50vw - 50%); }
  .community__media { margin-right: 0; margin-left: 0; }
  .badge-card { position: static; margin-top: 0; max-width: none; }

  .stats { grid-template-columns: 1fr 1fr; border-top: 0; }
  .stats__item { border-left: 0; border-top: 1px solid var(--hairline-dark); padding-left: 0; }

  .homes__intro { grid-template-columns: 1fr; }
  .explorer { grid-template-columns: 1fr; }
  .explorer__stage { order: -1; }

  .homes__features { grid-template-columns: 1fr 1fr; gap: 0 2rem; }

  .interiors__grid { grid-template-columns: 1fr; }
  .interiors__copy { position: static; }
  .interiors__img--b { grid-column: 1 / 8; }
  .interiors__img--c { grid-column: 8 / 13; margin-top: 3rem; }

  .neighborhood__grid { grid-template-columns: 1fr; }
  .neighborhood__aside { border-left: 0; padding-left: 0; }
  .amenities { grid-template-columns: 1fr 1fr; }
  .faq__grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .gallery__card img { height: clamp(240px, 36vh, 330px); }
  .gallery__arrow { width: 42px; height: 42px; font-size: 1.05rem; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 560px) {
  .homes__features { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: 1fr; gap: 1.75rem; }
  .interiors__img--b { grid-column: 1 / 13; }
  .interiors__img--c { grid-column: 1 / 13; margin-top: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .stats__item { padding: 1.2rem .9rem 0 0; }
  .hero__cta .btn { width: 100%; }
}
