/* ---------- fonts (Google Fonts files, self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/montserrat-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --limestone: #F4F1EC;
  --linen: #FBFAF7;
  --oak: #C9B59A;
  --charcoal: #2B2B2D;
  --ink: #141416;
  --brass: #A88B5C;         /* hairlines, focus rings, non-text accents */
  --brass-text: #7A6238;    /* brass for small text on limestone/linen: 5.1:1 */
  --rocca-pink: #F47B9E;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --max: 1200px;
  --measure: 640px;
  --section: 64px;
  --hairline: 1px solid rgba(43, 43, 45, 0.18);
  --hairline-light: 1px solid rgba(255, 255, 255, 0.22);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}
@media (min-width: 900px) {
  :root { --gutter: 40px; --section: 120px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--limestone);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}
h2 { font-size: clamp(2.25rem, 6vw, 3.75rem); margin: 0.25em 0 0.55em; }
.label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin: 0 0 0.5em;
}
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.section { padding-block: var(--section); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn--light { color: #fff; }
.btn--light:hover, .btn--light:focus-visible { background: #fff; color: var(--ink); }
.btn--dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.btn--dark:hover, .btn--dark:focus-visible { background: var(--charcoal); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 0.6875rem; }
.btn--full { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* fade-up (only when JS is present) */
.js .fade { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .fade.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .fade { opacity: 1; transform: none; transition: none; } }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter);
  padding-top: calc(10px + env(safe-area-inset-top));
  color: #fff;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__logo img { height: 48px; width: auto; }
.header__wordmark { font: 500 1.25rem/1 var(--font-display); letter-spacing: 0.02em; text-decoration: none; color: inherit; padding: 14px 0; }
.header__nav { display: none; gap: 30px; }
.header__nav a { font: 500 0.6875rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; padding: 12px 0; }
.header__nav a:hover { text-decoration: underline; }
.header__cta { border-color: rgba(255, 255, 255, 0.7); }
.header.is-solid { background: rgba(244, 241, 236, 0.94); color: var(--charcoal); border-bottom: var(--hairline); backdrop-filter: blur(6px); }
.header.is-solid .header__cta { border-color: var(--charcoal); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__menu {
  width: 44px; height: 44px; display: grid; place-content: center; gap: 5px;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.7); cursor: pointer; color: inherit;
}
.header__menu span { display: block; width: 18px; height: 1px; background: currentColor; }
.header.is-solid .header__menu { border-color: var(--charcoal); }
@media (min-width: 900px) {
  .header__nav { display: flex; }
  .header__actions { display: none; }
  .header__logo img { height: 56px; }
}

/* ---------- side rail (desktop) ---------- */
.rail {
  position: fixed; right: 0; top: 50%; transform: translate(0, -50%); z-index: 40;
  display: none; padding: 10px 0 10px 24px;
  opacity: 0; transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.rail.is-visible { opacity: 1; pointer-events: auto; }
body[data-overlay] .rail { opacity: 0; pointer-events: none; }
.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rail a {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  min-height: 24px; padding-right: 20px; text-decoration: none;
  font: 500 0.625rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--charcoal);
}
.rail a span.rail__label { opacity: 0; transform: translateX(8px); padding: 4px 8px; background: var(--limestone); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.rail a::after { content: ""; width: 14px; height: 1px; background: rgba(43, 43, 45, 0.35); transition: width 0.25s var(--ease), background 0.25s var(--ease); flex: none; }
.rail a.is-active::after { width: 28px; background: var(--brass); }
.rail:hover a span.rail__label, .rail:focus-within a span.rail__label { opacity: 1; transform: none; }
.rail a.is-active { color: var(--ink); }
.rail a:hover::after, .rail a:focus-visible::after { background: var(--brass); }
@media (min-width: 1100px) { .rail { display: block; } }

/* ---------- mobile menu ---------- */
.menu {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100dvh; background: var(--ink); color: #fff;
  display: none; flex-direction: column; justify-content: center;
  padding: calc(24px + env(safe-area-inset-top)) 28px calc(24px + env(safe-area-inset-bottom));
}
.menu[open] { display: flex; }
.menu::backdrop { background: transparent; }
.menu__close {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px;
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; color: #fff;
  font: 400 28px/1 var(--font-display); cursor: pointer;
}
.menu__eyebrow { color: var(--oak); }
.menu__list { list-style: none; margin: 0 0 32px; padding: 0; }
.menu__list a {
  display: block; padding: 8px 0; text-decoration: none; color: #fff;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.75rem, 6.5vw, 2.4rem); line-height: 1.15;
}
.menu__list a.is-active { color: var(--oak); }
.menu__cta { align-self: flex-start; }
@media (min-width: 900px) { .menu[open] { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; align-items: end;
  color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media picture { height: 100%; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(20, 20, 22, 0.82) 0%, rgba(20, 20, 22, 0.35) 45%, rgba(20, 20, 22, 0.2) 100%);
}
.hero__content {
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
  padding-top: 120px;
}
.hero__eyebrow { color: var(--oak); }
.hero h1 { color: #fff; font-size: clamp(2.9rem, 11vw, 6.75rem); max-width: 10ch; }
.hero__line { max-width: 34ch; font-size: clamp(1rem, 2.3vw, 1.2rem); line-height: 1.6; margin: 1em 0 1.6em; opacity: 0.94; }
.hero__scroll { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; }
.hero__scroll span { width: 1px; height: 28px; background: rgba(255, 255, 255, 0.7); }
@media (min-width: 900px) {
  .hero__content { padding-bottom: 96px; }
}

/* ---------- tour ---------- */
.tour { padding-bottom: 0; }
.tour__copy { margin-bottom: 24px; }
.tour__runtime { color: var(--brass-text); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; }
.facade {
  position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden;
  border: var(--hairline); cursor: pointer;
}
.facade__poster, .facade__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facade__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(20, 20, 22, 0.25); border: 0; cursor: pointer; color: #fff;
  transition: background 0.25s var(--ease);
}
.facade__play span {
  width: 76px; height: 76px; border: 1px solid #fff; border-radius: 50%;
  display: grid; place-items: center; background: rgba(20, 20, 22, 0.45); backdrop-filter: blur(3px);
  transition: transform 0.25s var(--ease);
}
.facade__play span svg { margin-left: 4px; }
.facade:hover .facade__play { background: rgba(20, 20, 22, 0.4); }
.facade:hover .facade__play span { transform: scale(1.06); }
.facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.facade__note {
  position: absolute; left: 16px; right: 16px; bottom: 14px; margin: 0;
  color: #fff; font: 500 0.6875rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  display: none;
}
.facade.is-pending .facade__note { display: block; }
.facade.is-pending .facade__play { cursor: default; }
.facade.is-pending .facade__play span { opacity: 0.45; }
.facade.is-playing .facade__poster, .facade.is-playing .facade__play, .facade.is-playing .facade__note { display: none; }
@media (max-width: 899px) {
  .tour__player { width: 100%; }
  .facade { border-left: 0; border-right: 0; }
}

/* ---------- glance ---------- */
.glance-wrap { padding-top: calc(var(--section) * 0.6); }
.glance { display: grid; grid-template-columns: repeat(2, 1fr); border-top: var(--hairline); border-bottom: var(--hairline); }
.glance__item { display: flex; flex-direction: column; gap: 6px; padding: 20px 14px; border-bottom: var(--hairline); }
.glance__item:nth-child(odd) { border-right: var(--hairline); }
.glance__item:nth-last-child(-n+2) { border-bottom: 0; }
.glance__value { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: var(--ink); }
.glance__label { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.82; }
@media (min-width: 900px) {
  .glance { grid-template-columns: repeat(6, 1fr); }
  .glance__item { border-bottom: 0; border-right: var(--hairline); padding: 30px 22px; }
  .glance__item:last-child { border-right: 0; }
  .glance__value { font-size: 2.5rem; }
}

/* ---------- story ---------- */
.story__grid { display: grid; gap: 28px; }
.story__media { margin: 0; }
.story__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 899px) {
  /* Stacked, the story reads like a chapter: picture, then title, then words. Its bottom padding
     is dropped so the gap to chapter 01 is one section space, not the story's plus the chapter's. */
  .story__media { order: -1; }
  .story { padding-bottom: 0; }
}
@media (min-width: 900px) {
  .story__grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .story__media { position: sticky; top: 96px; }
}

/* ---------- chapters ---------- */
.chapter { padding-block: var(--section) 0; }
.chapter:last-child { padding-bottom: var(--section); }
.chapter__head { display: flex; gap: 18px; align-items: baseline; margin: 0; }
.chapter__head .label { display: inline; margin: 0; }
.chapter__num { color: var(--brass-text); opacity: 0.75; }
.chapter__strip {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter); /* snap cards to the text gutter, not the screen edge */
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chapter__strip::-webkit-scrollbar { display: none; }
.chapter__strip > figure { flex: 0 0 86%; scroll-snap-align: start; margin: 0; }
.chapter__strip img, .chapter__strip video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--ink); }
.chapter__strip figcaption { font-size: 0.75rem; letter-spacing: 0.02em; opacity: 0.8; margin-top: 8px; }
.chapter__text { padding-top: 28px; }
.materials { list-style: none; margin: 28px 0 0; padding: 0; border-top: var(--hairline); }
.materials li {
  font: 500 0.6875rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 0; border-bottom: 1px solid rgba(43, 43, 45, 0.08);
}
@media (min-width: 900px) {
  .chapter__body { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; }
  .chapter--flip .chapter__body { grid-template-columns: 5fr 7fr; }
  .chapter--flip .chapter__media { order: 2; }
  .chapter__strip { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: auto; margin: 0; padding: 0; overflow: visible; }
  .chapter__strip > figure:first-child { grid-column: 1 / -1; }
  .chapter__strip > figure:first-child img, .chapter__strip > figure:first-child video { aspect-ratio: 3 / 2; }
  .chapter__strip > figure:last-child:nth-child(even) { grid-column: 1 / -1; }
  .chapter__strip > figure:last-child:nth-child(even) img, .chapter__strip > figure:last-child:nth-child(even) video { aspect-ratio: 3 / 2; }
  .chapter__text { padding-top: 8px; position: sticky; top: 96px; }
}

/* ---------- note ---------- */
.note { background: var(--linen); border-top: var(--hairline); border-bottom: var(--hairline); padding-block: 48px; }
.note .label { color: var(--brass-text); }
.note__text { font-size: 0.875rem; line-height: 1.9; margin: 0; }
@media (min-width: 900px) { .note { padding-block: 72px; } }

/* ---------- plans & gallery ---------- */
.plans__tabs, .tour__tabs { display: flex; gap: 0; border-bottom: var(--hairline); margin-bottom: 20px; }
/* Level tabs on the left, the Imperial / Metric toggle on the right, one hairline under both. */
.plans__bar { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; border-bottom: var(--hairline); margin-bottom: 20px; }
.plans__bar .plans__tabs { border-bottom: 0; margin-bottom: 0; }
.plans__units { display: flex; align-items: center; gap: 2px; }
.plans__units button {
  background: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font: 600 0.625rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal);
  min-height: 32px; padding: 0 12px;
}
.plans__units button[aria-pressed="true"] { border-color: var(--brass); color: var(--ink); }
/* Phones: three level tabs and two unit pills do not share one row, so the pills drop under the
   hairline, right-aligned above the drawing. */
@media (max-width: 599px) {
  .plans__bar { flex-wrap: wrap; border-bottom: 0; margin-bottom: 14px; }
  .plans__bar .plans__tabs { width: 100%; border-bottom: var(--hairline); }
  .plans__units { width: 100%; justify-content: flex-end; padding-top: 10px; }
}
.plans__tabs [role="tab"], .tour__tabs [role="tab"] {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
  font: 600 0.6875rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--charcoal);
  min-height: 44px; padding: 0 16px;
}
.plans__tabs [role="tab"][aria-selected="true"], .tour__tabs [role="tab"][aria-selected="true"] { border-bottom-color: var(--brass); color: var(--ink); }
.plans__panels img { width: 100%; height: auto; background: #fff; border: var(--hairline); }
.plans__full { display: block; }
.plans__full[hidden] { display: none; } /* the class above would otherwise beat the hidden attribute */
.plans__pdf {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px;
  font: 600 0.6875rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-text);
}
.plans__pdf + .plans__pdf { margin-left: 28px; } /* floorplans and feature sheet links side by side on wide screens */
.plans__note { margin: 14px 0 0; max-width: var(--measure); font-size: 0.75rem; line-height: 1.6; opacity: 0.75; }
.plans__gallery-title { margin-top: calc(var(--section) * 0.75); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.gallery__item { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__item:focus-visible { outline-offset: -2px; }
.gallery__item.is-hidden { display: none; }
.gallery__more {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 12px;
  background: transparent; border: var(--hairline); cursor: pointer; color: var(--charcoal);
  font: 600 0.6875rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase;
}
.gallery__more:hover { border-color: var(--brass); color: var(--ink); }
.plans__again { margin: 28px 0 0; font: 600 0.6875rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .plans__panels { max-width: 900px; }
}

/* ---------- location ---------- */
.location { background: var(--linen); border-top: var(--hairline); }
.location__grid { display: grid; gap: 40px; }
.location__map iframe { width: 100%; aspect-ratio: 4 / 3; border: var(--hairline); filter: grayscale(0.35) contrast(0.95); }
.drives { display: grid; margin: 28px 0 0; border-top: var(--hairline); }
.drives div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(43, 43, 45, 0.08); font-size: 0.8125rem; }
.drives dt { font-weight: 500; }
.drives dd { margin: 0; opacity: 0.82; white-space: nowrap; }
@media (min-width: 900px) {
  .location__grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .location__map iframe { aspect-ratio: 3 / 2; }
}

/* ---------- inquire ---------- */
.inquire__grid { display: grid; gap: 40px; }
.inquire__contact { font-size: 0.9375rem; }
.inquire__contact span { font-weight: 500; }
.inquire__form label { display: block; margin-bottom: 18px; }
.inquire__form label span { display: block; font: 600 0.6875rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 8px; }
.inquire__form label em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; opacity: 0.8; }
.inquire__form input:not([type="hidden"]):not(.hp), .inquire__form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 16px/1.5 var(--font-body); color: var(--ink);
  background: var(--linen); border: var(--hairline); border-radius: 0; -webkit-appearance: none;
}
.inquire__form textarea { resize: vertical; }
.inquire__form input:focus, .inquire__form textarea:focus { outline: none; border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.inquire__status { margin: 14px 0 0; font-size: 0.9375rem; min-height: 1.5em; }
.inquire__status.is-error { color: #8a2d2d; }
.inquire__form.is-sent label, .inquire__form.is-sent button { display: none; }
.inquire__form.is-sent .inquire__status { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); }
@media (min-width: 900px) {
  .inquire__grid { grid-template-columns: 5fr 7fr; gap: 80px; }
  .inquire__form { max-width: 560px; }
}

/* ---------- footer ---------- */
.footer { background: var(--charcoal); color: rgba(255, 255, 255, 0.86); padding-block: 56px calc(72px + env(safe-area-inset-bottom)); font-size: 0.875rem; line-height: 1.8; }
.footer__grid { display: grid; gap: 32px; }
.footer__brand img { height: 72px; width: auto; }
.footer__brokerage { margin: 16px 0 0; font-weight: 500; }
.footer__address { font-style: normal; }
.footer__address a { text-decoration: none; }
.footer__address a:hover { text-decoration: underline; }
.footer__social { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__social a { font: 600 0.6875rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; padding: 10px 0; color: var(--rocca-pink); }
.footer__social a:hover { text-decoration: underline; }
.footer__legal { margin-top: 40px; padding-top: 24px; border-top: var(--hairline-light); font-size: 0.6875rem; line-height: 1.8; opacity: 0.7; }
.footer__legal p { margin: 0 0 6px; }
.footer--plain { padding-block: 40px calc(72px + env(safe-area-inset-bottom)); }
.footer--plain .footer__legal { margin-top: 0; padding-top: 0; border-top: 0; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr auto; gap: 48px; align-items: start; }
  .footer__social { justify-content: flex-end; flex-wrap: nowrap; gap: 6px 18px; }
  .footer { padding-bottom: 72px; }
}

/* ---------- sticky bar (mobile) ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%); transition: transform 0.35s var(--ease);
}
.stickybar a {
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  color: #fff; background: var(--ink); text-decoration: none;
  font: 600 0.6875rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase;
}
.stickybar a + a { background: var(--charcoal); }
.stickybar a:only-child { grid-column: 1 / -1; }
.stickybar.is-visible { transform: none; }
body[data-overlay] .stickybar { transform: translateY(110%); }
@media (min-width: 900px) { .stickybar { display: none; } }

/* ---------- dialogs ---------- */
.modal, .lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100dvh; background: rgba(20, 20, 22, 0.97); color: #fff;
}
.modal::backdrop, .lightbox::backdrop { background: transparent; }
.modal { display: none; place-items: center; }
.modal[open] { display: grid; }
.modal__frame { width: min(100vw, 177.78dvh); aspect-ratio: 16 / 9; background: #000; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; }
.modal__close, .lightbox__btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(20, 20, 22, 0.6); color: #fff;
  font: 400 28px/1 var(--font-display); cursor: pointer; border-radius: 50%;
}
.modal__close { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.lightbox { display: none; overflow: hidden; }
.lightbox[open] { display: block; }
.lightbox__figure { position: absolute; inset: 0; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox__figure img { display: block; width: 100%; height: 100%; min-height: 0; min-width: 0; object-fit: contain; touch-action: pan-x pinch-zoom; user-select: none; }
.lightbox__figure figcaption { padding: 10px 72px calc(14px + env(safe-area-inset-bottom)); text-align: center; font-size: 0.8125rem; opacity: 0.8; min-height: 1.5em; }
.lightbox__prev { left: 10px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 10px; top: 50%; margin-top: -24px; }
.lightbox__close--top { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.lightbox__close--thumb { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
.lightbox__count { position: absolute; left: 16px; bottom: calc(26px + env(safe-area-inset-bottom)); margin: 0; font-size: 0.75rem; letter-spacing: 0.12em; opacity: 0.75; }
@media (min-width: 900px) {
  .lightbox__close--thumb { display: none; }
  .lightbox__prev { left: 24px; }
  .lightbox__next { right: 24px; }
}

/* ---------- tour tabs: Video / 3D Tour ---------- */
.tour__tabs { margin-bottom: 16px; }
.tour__tabs [role="tab"] { font-size: 0.75rem; min-height: 48px; padding: 0 20px; border-bottom-width: 3px; }
@media (min-width: 900px) {
  .tour__tabs [role="tab"] { font-size: 0.875rem; letter-spacing: 0.18em; min-height: 56px; padding: 0 32px; }
}
.facade--iguide .facade__play span {
  width: auto; height: auto; padding: 15px 22px; border-radius: 999px;
  font: 600 0.6875rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase;
}
.tour__full { margin: 4px 0 0; font: 600 0.6875rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; }
.tour__full a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brass-text); text-decoration: none; }
@media (max-width: 899px) {
  .tour__tabs, .tour__full { margin-inline: var(--gutter); }
}
