/* Bluffs at Boca — site styles. Tokens live in tokens.css. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 28px;
  color: var(--ink-900);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: var(--nav-offset); }

:focus-visible { outline: 2px solid var(--ocean-700); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--lime-400); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 20px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--navy-800);
  font: 600 15px/20px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type primitives ---------- */
.eyebrow {
  font: 600 14px/20px var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.label {
  font: 400 13px/16px var(--font-display);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime-400); flex: none; }

/* ---------- Button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-sm);
  font: 600 15px/20px var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s ease;
}
.btn--primary { background: var(--sunset-700); color: var(--on-dark); }
.btn--primary:hover { background: #9C4C09; }

/* ---------- Glass nav ---------- */
.site-nav {
  position: fixed; z-index: 50;
  top: 24px; left: 50%; transform: translateX(-50%);
  max-width: calc(100% - 2 * var(--gutter));
}
.site-nav__pill {
  display: flex; align-items: center; gap: 56px;
  padding: 14px 32px;
  border: 1px solid var(--on-dark);
  border-radius: var(--radius-pill);
  background: rgba(46, 58, 107, .85);
  box-shadow: 0 8px 32px rgba(43, 43, 43, .12);
  color: var(--on-dark);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-nav__pill {
    background: rgba(46, 58, 107, .5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}
.wordmark {
  font: 600 var(--fs-wordmark)/30px var(--font-display);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__links { display: flex; gap: 40px; margin: 0; padding: 0; list-style: none; }
.site-nav__links a {
  font: 500 15px/20px var(--font-display);
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  opacity: 1;
  transition: opacity .2s ease;
}
.site-nav__links a:hover { opacity: .75; }
.site-nav__menu-btn { display: none; }

/* ---------- 1 · Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  height: min(100svh, 1000px);
  min-height: 720px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 60px;
  background: var(--navy-800);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__media, .hero__media video, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(46, 58, 107, .8) 1.3%, rgba(90, 113, 209, 0) 53.6%);
}
.hero__content {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
}
.hero__intro { display: flex; flex-direction: column; gap: 28px; max-width: 740px; }
.hero__title {
  font: 300 var(--fs-display)/var(--lh-display) var(--font-display);
  letter-spacing: -0.02em;
  margin-left: -0.083em; /* cancel Jost Light's left side-bearing so the "B" lines up with the eyebrow and subline */
}
.hero__subline { font: 700 var(--fs-subline)/var(--lh-subline) var(--font-body); }
.hero__cta { padding-top: 24px; }
.hero__address { text-align: right; white-space: nowrap; }

.coord-rail {
  position: absolute; right: 48px; top: calc(50% - 36.5px); translate: 0 -50%;
  writing-mode: vertical-rl; rotate: 180deg;
  display: flex; align-items: center; gap: 20px;
  color: var(--on-dark);
  white-space: nowrap;
}
.coord-rail__rule { inline-size: 120px; block-size: 1px; background: currentColor; flex: none; }
.coord-rail__rule--long { inline-size: 160px; }

/* ---------- Shared section patterns ---------- */
.section { padding-block: var(--section-pad); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px;
}
.section-head__heading { display: flex; flex-direction: column; gap: var(--space-4); }
.eyebrow--dot {
  display: inline-flex; align-items: center; gap: var(--space-3);
  color: var(--sand-700);
}
.eyebrow--dot::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--lime-400); flex: none;
}
.h2 {
  font: 300 var(--fs-h2)/var(--lh-h2) var(--font-display);
  letter-spacing: -0.01em;
  color: var(--ink-700);
}
.body-lg { font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); }
.caption { font-size: 13px; line-height: 20px; color: var(--ink-500); }
.dot--10 { width: 10px; height: 10px; }

/* ---------- 2 · Introduction ---------- */
.intro { background: var(--surface); }
.intro__head .section-head__heading { width: 700px; max-width: 100%; }
.intro__body {
  width: 460px; flex: none; padding-top: 36px;
  font-size: var(--fs-body-lg); line-height: var(--lh-body-lg);
}
.location { margin: var(--space-8) 0 0; display: flex; flex-direction: column; gap: var(--space-3); }
.location__map {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 1200 / 510;
  background: var(--mist-100);
}
.location__map img { width: 100%; height: 100%; object-fit: cover; }

.map-pin {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink-900);
  box-shadow: 0 4px 12px rgba(43, 43, 43, .16);
  font: 600 14px/20px var(--font-display);
  letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap;
}
.map-pin--pier  { left: 8.5%;   top: 11.96%; }
.map-pin--north { right: 2.25%; top: 3.92%; }
.map-pin--site  { left: 51.08%; top: 56.47%; background: var(--navy-800); color: var(--on-dark); }
.map-leader {
  position: absolute; left: 64.67%; top: 60%; width: 8%; height: 14.51%;
  overflow: visible;
}
.map-leader line { stroke: var(--navy-800); stroke-width: 1; }

/* Nav past the hero: near-solid navy so white text keeps contrast over light sections */
.site-nav__pill { transition: background-color .25s ease; }
.site-nav.is-solid .site-nav__pill { background: rgba(46, 58, 107, .92); }

/* ---------- 3 · Project Video ---------- */
.video-section { padding-top: 60px; overflow-x: clip; }
.section-head--center {
  flex-direction: column; align-items: center; gap: var(--space-4);
  max-width: 720px; margin-inline: auto; text-align: center;
}
.video-stage { position: relative; isolation: isolate; margin-top: var(--space-8); }
/* Navy band: starts 62.7% down the video (Figma 647 of 224+675) and runs to the section bottom, full bleed */
.video-stage::before {
  content: ""; position: absolute; z-index: -1;
  top: 62.7%; bottom: calc(-1 * var(--section-pad));
  left: 50%; width: 100vw; translate: -50% 0;
  background: var(--navy-800);
}
.seam-dot {
  position: absolute; z-index: 1;
  top: calc(62.7% - 12px);
  left: calc(50% - 50vw + 72px);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--lime-400);
}
.video-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: var(--navy-800);
}
.video-frame__poster, .video-frame video, .video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0;
}
.video-frame__play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-5);
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--on-dark);
}
.video-frame__play .label { padding-left: 0.3em; } /* optically centre tracked caps */
.play-btn { display: block; width: 96px; height: 96px; border-radius: 50%; transition: transform .2s ease; }
.video-frame__play:hover .play-btn { transform: scale(1.05); }
.video-frame__play:focus-visible { outline: none; }
.video-frame__play:focus-visible .play-btn { outline: 3px solid var(--lime-400); outline-offset: 4px; }

/* Designed line breaks on tablet/desktop; balanced wrapping on mobile */
.h2 { text-wrap: balance; }
@media (max-width: 767px) { .br-lg { display: none; } }

/* ---------- 4 · Community Benefits ---------- */
.benefits { background: var(--sand-50); }
.benefits__head { align-items: flex-end; }
.benefits__head .section-head__heading { width: 680px; max-width: 100%; gap: 20px; }
.benefits__aside { width: 420px; flex: none; color: var(--ink-700); }
.benefits__diagram {
  display: grid; grid-template-columns: 720fr 416fr; gap: var(--space-8);
  align-items: start; margin-top: 40px;
}
.site-plan {
  position: relative; margin: 0;
  aspect-ratio: 720 / 688;
  overflow: hidden;
  border: 1px solid var(--hairline); border-radius: var(--radius-md);
  background: var(--surface);
}
.site-plan img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }

.marker {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--lime-400); border: 3px solid var(--on-dark);
  filter: drop-shadow(0 4px 5px rgba(43, 43, 43, .25));
  font: 600 15px/1 var(--font-display); color: var(--ink-900);
}
.site-plan .marker { position: absolute; }

.h4 { font: 500 var(--fs-h4)/var(--lh-h4) var(--font-display); color: var(--ink-700); }
.benefits__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink-700); }
.benefits__list li {
  display: flex; gap: 20px; align-items: flex-start;
  padding-block: 28px;
  border-bottom: 1px solid var(--hairline);
}
.benefits__list .h4 { padding-top: 3px; }
.benefits__note { padding-top: var(--space-5); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Site plan opens the PDF */
.site-plan__link { position: absolute; inset: 0; display: block; }
.site-plan__link:focus-visible { outline-offset: -4px; }
.site-plan__hint {
  position: absolute; right: 16px; bottom: 16px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--navy-800); color: var(--on-dark);
  font-size: 12px; letter-spacing: 0.16em;
  opacity: 0; transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.site-plan:hover .site-plan__hint,
.site-plan:focus-within .site-plan__hint { opacity: 1; transform: none; }
@media (hover: none) { .site-plan__hint { opacity: 1; transform: none; } }

/* ---------- 5 · Project Documents ---------- */
.documents { background: var(--sand-50); padding-bottom: calc(var(--section-pad) + 44px); }
.documents__head { align-items: flex-end; }
.documents__head .section-head__heading { width: 780px; max-width: 100%; }
.documents__aside { width: 380px; flex: none; text-align: right; font-size: 15px; line-height: 24px; color: var(--ink-700); }

.doc-table {
  width: 100%; margin-top: var(--space-8);
  border-collapse: collapse; table-layout: fixed;
}
.doc-table .c-type { width: 184px; }
.doc-table .c-format, .doc-table .c-size { width: 134px; }
.doc-table .c-updated { width: 164px; }
.doc-table .c-action { width: 190px; }
.doc-table th, .doc-table td { padding: 0 24px 0 0; text-align: left; vertical-align: middle; font-weight: inherit; }
.doc-table th:last-child, .doc-table td:last-child { padding-right: 0; }
.doc-table thead th {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-700);
  font: 400 13px/16px var(--font-display); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-500);
}
.doc-table tbody tr { border-bottom: 1px solid var(--hairline); }
.doc-table tbody td, .doc-table tbody th { padding-block: 24px; font-size: 15px; line-height: 24px; color: var(--ink-500); }
.doc-table .doc-type { color: var(--sand-700); }
.doc-table .doc-title { font: 500 var(--fs-h4)/var(--lh-h4) var(--font-display); color: var(--ink-700); }
.doc-table .doc-action { text-align: right; }
.doc-action a {
  font: 600 15px/20px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ocean-700); text-decoration: none; white-space: nowrap;
}
.doc-action a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 6 · Footer ---------- */
.site-footer {
  position: relative; isolation: isolate; overflow: hidden;
  padding: var(--space-9) 0 var(--space-7);
  background: var(--navy-800); color: var(--on-dark);
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../assets/svg/contours.svg") center top / cover no-repeat;
  opacity: .08;
}
.site-footer .container { display: flex; flex-direction: column; gap: var(--space-8); }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.site-footer__brand { width: 380px; display: flex; flex-direction: column; gap: var(--space-4); }
.site-footer__nav { width: 200px; }
.site-footer__contact { width: 320px; }
.site-footer__nav, .site-footer__contact { display: flex; flex-direction: column; gap: var(--space-3); }
.site-footer__eyebrow { color: var(--sand-400); }
.site-footer__nav ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.site-footer__nav li, .site-footer__nav a, .site-footer__contact p { font-size: 15px; line-height: 24px; }
.site-footer__eyebrow { line-height: 20px; }
.site-footer a { text-decoration: none; }
.site-footer__nav a:hover, .site-footer__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__contact a { text-decoration: none; }

.site-footer__giant {
  font: 600 min(150px, calc((100vw - 2 * var(--gutter)) * 0.125))/0.9 var(--font-display);
  letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--sand-400);
  white-space: nowrap;
}
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-top: var(--space-8);
  border-top: 1px solid var(--on-dark);  /* Figma: white 100% — see HANDOFF §9.5 */
  font-size: 13px; line-height: 20px;
}
.site-footer__credit { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__credit img { width: 107px; height: 22px; }

/* =====================================================================
   Responsive — tablet 768–1199, mobile < 768.
   Layout from Figma frames 3:1156 / 3:2659; content stays desktop.
   ===================================================================== */
.hide-sm { }
.site-menu { display: none; }

@media (max-width: 1199px) {
  /* Nav → compact pill + full-screen menu */
  .site-nav { left: var(--gutter); right: var(--gutter); transform: none; max-width: none; }
  .site-nav__pill { justify-content: space-between; gap: 24px; padding: 12px 16px 12px 28px; }
  .site-nav__pill > .dot, .site-nav__links { display: none; }
  .site-nav__menu-btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 6px 8px; border: 0; background: none; color: inherit; cursor: pointer;
    font: 500 15px/20px var(--font-display); letter-spacing: 0.04em;
  }
  .site-menu:not([hidden]) {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: 0; z-index: -1;
    padding: 128px var(--gutter) 48px;
    background: var(--navy-800); color: var(--on-dark);
    overflow-y: auto;
  }
  .site-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  .site-menu a {
    display: block; padding: 8px 0;
    font: 300 var(--fs-h2)/var(--lh-h2) var(--font-display); letter-spacing: -0.01em;
    text-decoration: none;
  }
  .site-menu a:hover { color: var(--lime-400); }
  .site-menu__meta { color: rgba(255,255,255,.7); }
  .menu-open, .menu-open body { overflow: hidden; }
  .menu-open .site-nav__pill { background: rgba(46,58,107,.92); }

  /* Hero */
  .hero { height: min(100svh, 920px); min-height: 640px; padding-bottom: 64px; }
  .hero__content { flex-direction: column; align-items: flex-start; gap: 32px; }
  .hero__address { text-align: left; }
  .coord-rail { right: 24px; }

  /* Section heads stack */
  .section-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .section-head--center { align-items: center; }
  .intro__head .section-head__heading,
  .benefits__head .section-head__heading,
  .documents__head .section-head__heading { width: auto; }
  .intro__body, .benefits__aside, .documents__aside { width: auto; padding-top: 0; text-align: left; }
  .location { margin-top: 48px; }

  /* Video */
  .seam-dot { left: calc(50% - 50vw + var(--gutter) - 12px); }

  /* Benefits */
  .benefits__diagram { grid-template-columns: 1fr; gap: 48px; margin-top: 48px; }

  /* Documents: drop Format + Updated */
  .doc-table { table-layout: auto; }
  .doc-table col { width: auto !important; }
  .doc-table tr > :nth-child(3), .doc-table tr > :nth-child(5) { display: none; }
  .doc-table tr > :first-child { width: 120px; }

  /* Footer */
  .site-footer { padding: 80px 0 48px; }
  .site-footer__top { display: grid; grid-template-columns: 264px 1fr; gap: 48px 0; }
  .site-footer__brand { grid-column: 1 / -1; width: auto; }
  .site-footer__nav, .site-footer__contact { width: auto; max-width: 320px; }
  .site-footer .container { gap: 56px; }
}

@media (max-width: 767px) {
  .hide-sm { display: none; }
  .site-nav__pill { padding: 10px 12px 10px 20px; }

  /* Hero */
  .hero { height: min(100svh, 780px); min-height: 620px; padding-bottom: 40px; }
  .hero__intro { gap: 20px; }
  .hero__cta { padding-top: 8px; width: 100%; }
  .hero__cta .btn { width: 100%; }
  .hero__content { gap: 24px; }
  .hero__address { white-space: normal; }
  .coord-rail { display: none; }

  /* Intro map: crop to the site, pins resized */
  .location { margin-top: 40px; }
  .location__map { aspect-ratio: 342 / 300; }
  .location__map img { object-position: 93% 50%; }
  .map-pin { font-size: 13px; padding: 6px 14px 6px 12px; letter-spacing: 0.14em; }
  .map-pin--pier { left: 8px; top: 12px; }
  .map-pin--pier::before { content: "←"; margin-right: 2px; font-family: system-ui, sans-serif; }
  .map-pin--north { right: 8px; top: 12px; }
  .map-pin--site { left: 26%; top: 47%; }
  .map-leader { display: none; }

  /* Video */
  .video-section { padding-top: 40px; }
  .video-stage { margin-top: 40px; }
  .play-btn { width: 64px; height: 64px; }
  .play-btn svg { width: 64px; height: 64px; }
  .video-frame__play .label { display: none; }

  /* Benefits list */
  .benefits__list li { padding-block: 24px; gap: 16px; }

  /* Documents → stacked rows */
  .doc-table, .doc-table tbody { display: block; }
  .doc-table thead, .doc-table colgroup { display: none; }
  .doc-table { margin-top: 40px; border-top: 1px solid var(--ink-700); }
  .doc-table tbody tr {
    display: grid; grid-template-columns: auto auto 1fr auto; align-items: center;
    column-gap: 0; row-gap: 6px; padding-block: 20px;
  }
  .doc-table tbody td, .doc-table tbody th { padding: 0; width: auto !important; }
  .doc-table tr > :first-child { grid-column: 1 / -1; }
  .doc-table .doc-title { grid-column: 1 / -1; margin-bottom: 4px; }
  .doc-table tr > :nth-child(3) { display: block; grid-column: 1; }
  .doc-table tr > :nth-child(4) { grid-column: 2; }
  .doc-table tr > :nth-child(4)::before { content: "\00a0·\00a0"; }
  .doc-table .doc-action { grid-column: 4; }

  /* Footer */
  .site-footer { padding: 64px 0 40px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 40px; }
  .site-footer .container { gap: 48px; }
  .site-footer__giant {
    white-space: normal;
    font-size: min(72px, calc((100vw - 2 * var(--gutter)) / 4.9));
  }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 32px; }
}

/* Responsive refinements */
@media (max-width: 1199px) {
  .h2 .br-lg { display: none; }
  .map-pin--site { left: 40%; top: 50%; }
  .map-leader { left: 54%; top: 57%; width: 10%; height: 18%; }
}
@media (max-width: 767px) {
  .br-lg { display: none; }
  .hero__address { text-wrap: balance; letter-spacing: 0.24em; }
}
.bal { display: block; text-wrap: balance; }
.site-footer__bottom .legal-link { text-decoration: none; }
.site-footer__bottom .legal-link:hover, .site-footer__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Client logo (Nov 10) */
.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark__mark { width: auto; height: 32px; flex: none; }
.site-footer__logo { display: inline-block; }
.site-footer__logo img { width: 140px; height: auto; }
@media (max-width: 767px) {
  .wordmark__mark { height: 26px; }
  .wordmark { gap: 10px; }
  .site-footer__logo img { width: 120px; }
}

/* Horizontal logo in nav + legal headers (Nov 10) */
.wordmark__logo { display: block; height: 40px; width: auto; }
.site-nav__pill { padding-block: 10px; }               /* keeps the pill ~60px tall like Figma */
@media (max-width: 1199px) { .site-nav__pill { padding-block: 8px; } }
@media (max-width: 767px) { .wordmark__logo { height: 32px; } }
.wordmark, .wordmark__logo { flex: none; }
.wordmark__logo { max-width: none; }

/* Logo hugs the left curve of the pill (equal inset top/left) */
.site-nav__pill { padding-left: 12px; }
@media (max-width: 1199px) { .site-nav__pill { padding-left: 10px; } }
@media (max-width: 767px)  { .site-nav__pill { padding-left: 9px; } }

/* Mobile: giant footer wordmark on one line, scaled to the content width */
@media (max-width: 767px) {
  .site-footer__giant {
    white-space: nowrap;
    font-size: calc((100vw - 2 * var(--gutter)) / 8.05);
  }
}

/* ---------- 3b · Renderings gallery + lightbox ---------- */
.renderings { background: var(--navy-800); color: var(--on-dark); padding-top: 0; }
.video-section { padding-bottom: var(--space-9); }           /* band runs straight into the navy gallery */
.renderings__eyebrow { color: var(--sand-400); }
.renderings__title { color: var(--on-dark); }
.gallery {
  list-style: none; margin: var(--space-8) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
}
.gallery__item {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .06);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__zoom {
  position: absolute; right: 12px; bottom: 12px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(46, 58, 107, .75); color: #fff;
  opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease;
}
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: none; }
@media (hover: none) { .gallery__zoom { opacity: 1; transform: none; } }
.gallery__item:focus-visible { outline: 2px solid var(--lime-400); outline-offset: 3px; }

@media (max-width: 1199px) { .gallery { grid-template-columns: repeat(2, 1fr); margin-top: 48px; } }
@media (max-width: 767px)  { .gallery { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; } .video-section { padding-bottom: 64px; } }

.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(20, 25, 48, .96); color: #fff;
}
.lightbox::backdrop { background: rgba(20, 25, 48, .96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 72px 96px 32px; max-width: 100%; max-height: 100%; }
.lightbox__img { max-width: min(1600px, 100%); max-height: calc(100dvh - 170px); width: auto; height: auto; border-radius: var(--radius-md); object-fit: contain; }
.lightbox__caption { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; width: 100%; font: 500 18px/26px var(--font-display); }
.lightbox__count { color: rgba(255, 255, 255, .7); white-space: nowrap; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%;
  background: rgba(46, 58, 107, .6); color: #fff; cursor: pointer; transition: background-color .2s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .15); }
.lightbox__btn:focus-visible { outline: 2px solid var(--lime-400); outline-offset: 3px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 24px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 24px; top: 50%; translate: 0 -50%; }
@media (max-width: 767px) {
  .lightbox__figure { padding: 72px 12px 96px; }
  .lightbox__img { max-height: calc(100dvh - 220px); }
  .lightbox__caption { font-size: 15px; line-height: 22px; flex-direction: column; gap: 4px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; translate: none; }
  .lightbox__prev { left: calc(50% - 64px); } .lightbox__next { right: calc(50% - 64px); }
}
.menu-open, html:has(.lightbox[open]) { overflow: hidden; }
/* band ends exactly where the video section ends (its bottom padding changed when the gallery was added) */
.video-section { --video-pad-b: var(--space-9); padding-bottom: var(--video-pad-b); }
.video-stage::before { bottom: calc(-1 * var(--video-pad-b)); }
@media (max-width: 767px) { .video-section { --video-pad-b: 64px; } }

/* Feature rendering spans the full row (7 = 1 + 3×2 / 2×3) */
.gallery__feature { grid-column: 1 / -1; }

/* Illustrative-purposes disclaimer (Nov 10) */
.site-footer .container { row-gap: var(--space-8); }
.site-footer__disclaimer {
  margin-top: calc(-1 * var(--space-8) + 24px);  /* sits 24px under the copyright row, not a full section gap */
  max-width: none;
  font-size: 12px; line-height: 18px;
  color: rgba(255, 255, 255, .7);
}
@media (max-width: 767px) { .site-footer__disclaimer { margin-top: calc(-1 * var(--space-8) + 20px); } }
