/* ==========================================================================
   8662 BREWERTON ROAD — DESIGN SYSTEM
   Charcoal / warm white / soft gray / muted bronze accent.
   Editorial, architectural typography: Fraunces (display) + Inter (UI).
   ========================================================================== */

:root {
  /* Palette */
  --ink:        #101214;   /* near black */
  --charcoal:   #16181b;
  --charcoal-2: #1d2024;
  --paper:      #f7f4ef;   /* warm white */
  --paper-2:    #efebe3;   /* tinted band */
  --gray:       #8a8f94;
  --gray-dark:  #5c6166;
  --accent:     #b8a071;   /* Howard Hanna gold — sampled from brand artwork */
  --hh-green:   #0f3a32;   /* Howard Hanna deep green */
  --line-light: rgba(16, 18, 20, 0.12);
  --line-dark:  rgba(247, 244, 239, 0.14);

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --section-pad: clamp(5rem, 10vw, 8.5rem);
  --nav-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem; z-index: 200; text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   Shared elements
   ========================================================================== */

.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}
.container--narrow { max-width: 760px; }
.container--details { max-width: 900px; }

.section { padding-block: var(--section-pad); }

.section--dark {
  background: var(--charcoal);
  color: var(--paper);
}
.section--tinted { background: var(--paper-2); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.section__title--large { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }

.section__lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.75;
  color: rgba(247, 244, 239, 0.72);
  max-width: 62ch;
  margin-bottom: 2rem;
}
.section__lead--dark { color: var(--gray-dark); }

.section p + p { margin-top: 1.1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn--light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--light:hover { background: #fff; }

.btn--ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(247, 244, 239, 0.45);
}
.btn--ghost-light:hover { border-color: var(--paper); }

.btn--text {
  padding: 1.05rem 0.25rem;
  border: none;
  color: rgba(247, 244, 239, 0.7);
}
.btn--text:hover { color: var(--paper); transform: none; }

.btn--nav {
  padding: 0.65rem 1.4rem;
  background: transparent;
  color: var(--paper);
  border-color: rgba(247, 244, 239, 0.4);
}
.btn--nav:hover { border-color: var(--accent); color: var(--accent); transform: none; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(16, 18, 20, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(247, 244, 239, 0.08);
}

.nav__inner {
  width: min(1320px, 100% - 3rem);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.nav__logo { height: 22px; width: auto; }
.nav__brand-divider {
  width: 1px; height: 22px;
  background: rgba(247, 244, 239, 0.3);
}
.nav__brand-text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  color: var(--paper);
  white-space: nowrap;
}

.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(247, 244, 239, 0.75);
  transition: color 0.3s var(--ease);
}
.nav__links a:hover { color: var(--paper); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 10px;
}
.nav__toggle span {
  display: block; height: 1.5px; width: 100%;
  background: var(--paper);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-menu {
  background: rgba(16, 18, 20, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(247, 244, 239, 0.08);
}
.mobile-menu nav {
  display: flex; flex-direction: column;
  padding: 1.25rem 1.5rem 2rem;
}
.mobile-menu a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(247, 244, 239, 0.85);
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(247, 244, 239, 0.07);
}
.mobile-menu__cta { color: var(--accent) !important; border-bottom: none !important; }

/* ==========================================================================
   Section 1 — Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }
.hero__img {
  width: 100%; height: 112%;
  object-fit: cover;
  will-change: transform;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 13, 15, 0.42) 0%,
    rgba(12, 13, 15, 0.30) 40%,
    rgba(12, 13, 15, 0.78) 100%
  );
}

.hero__content {
  position: relative;
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
  padding-block: clamp(6rem, 14vh, 9rem) clamp(4.5rem, 10vh, 7rem);
  max-width: 1200px;
}

.hero__eyebrow { margin-bottom: 1.75rem; }

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 5.2vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 21ch;
  text-wrap: balance;
}

.hero__address {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.8);
}

.hero__price {
  display: inline-flex;
  flex-direction: column;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(247, 244, 239, 0.35);
}
.hero__price-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.65);
  margin-bottom: 0.35rem;
}
.hero__price-value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: 0.01em;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-top: 2.6rem;
}
.hero__contact-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.65);
  text-decoration: none;
  padding: 1.05rem 0.5rem;
  transition: color 0.3s var(--ease);
}
.hero__contact-link:hover { color: var(--paper); }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  padding: 0 1rem;
  display: block;
}
.hero__scroll-line {
  display: block;
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, rgba(247,244,239,0.7));
  animation: scrollPulse 2.6s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.4; transform-origin: top; }
  50%      { transform: scaleY(1);   opacity: 1;   transform-origin: top; }
}

/* ==========================================================================
   Section 2 — Statistics
   ========================================================================== */

.stats {
  background: var(--paper);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line-light);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.stats__item {
  text-align: center;
  padding: 0.75rem 1rem;
  border-left: 1px solid var(--line-light);
}
.stats__item:first-child { border-left: none; }

.stats__item dd {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.1;
  color: var(--ink);
}
.stats__item dt {
  order: 2;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 0.6rem;
}
.stats__item { display: flex; flex-direction: column; }
.stats__item dd { order: 1; }

/* ==========================================================================
   Section 3 — Property Film
   ========================================================================== */

.film { text-align: center; }
.film .section__lead { margin-inline: auto; }

.film__frame {
  position: relative;
  max-width: 1080px;
  margin: 3rem auto 0;
  border: 1px solid rgba(247, 244, 239, 0.12);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
}

.film__frame .video-embed,
.film__poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c0d0f;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}
.film__poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.6s var(--ease);
  opacity: 0.9;
}
.film__poster:hover img { transform: scale(1.025); opacity: 1; }

.film__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(247, 244, 239, 0.75);
  background: rgba(12, 13, 15, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.film__play svg { margin-left: 4px; }
.film__poster:hover .film__play {
  background: rgba(184, 160, 113, 0.85);
  transform: translate(-50%, -50%) scale(1.05);
}

.film__badge {
  position: absolute;
  bottom: 1.4rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.85);
  background: rgba(12, 13, 15, 0.55);
  border: 1px solid rgba(247, 244, 239, 0.25);
  padding: 0.55rem 1.1rem;
  white-space: nowrap;
}

.video-embed iframe,
.video-embed video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ==========================================================================
   Section 4 — Location story
   ========================================================================== */

.location__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.location__text p { color: var(--gray-dark); max-width: 54ch; }
.location__text .section__title { color: var(--ink); }

.location__points {
  list-style: none;
  margin-top: 2.4rem;
}
.location__points li {
  padding: 0.95rem 0;
  border-top: 1px solid var(--line-light);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}
.location__points li::before {
  content: "";
  flex: none;
  width: 18px; height: 1px;
  background: var(--accent);
  transform: translateY(-4px);
}

.location__media {
  border: 1px solid var(--line-light);
}
/* Natural ratio — the aerial is annotated, so cropping loses the labels */
.location__media img { display: block; width: 100%; height: auto; }
.location__caption {
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ==========================================================================
   Section 5 — Micron / regional growth
   ========================================================================== */

.micron { text-align: center; background: var(--ink); }
.micron .section__lead { margin-inline: auto; }

.micron__media {
  margin-top: 3.5rem;
  border: 1px solid rgba(247, 244, 239, 0.1);
}
/* Natural aspect ratio — the aerial is annotated, so cropping it would
   cut the road shields and the Micron direction marker. */
.micron__media img {
  display: block;
  width: 100%;
  height: auto;
}
.micron__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(247, 244, 239, 0.1);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.42);
  text-align: left;
}

/* Tap/click the aerial to open it full screen */
.micron__media.is-zoomable img { cursor: zoom-in; }
.micron__zoom {
  flex: none;
  color: var(--accent);
  white-space: nowrap;
  transition: opacity 0.3s var(--ease);
}
.micron__zoom::after { content: " \2197"; }
.micron__media.is-zoomable:hover .micron__zoom { opacity: 0.75; }

.micron__callouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-dark);
  border-top: none;
}
.micron__callout {
  padding: clamp(1.8rem, 4vw, 3rem) 1.5rem;
  border-left: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.micron__callout:first-child { border-left: none; }

.micron__callout-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.micron__callout-value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.2;
}

.micron__disclaimer {
  margin-top: 2.2rem;
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(247, 244, 239, 0.45);
  max-width: 68ch;
  margin-inline: auto;
}

/* ==========================================================================
   Section 6 — The opportunity
   ========================================================================== */

.opportunity__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.opportunity__editorial p {
  color: var(--gray-dark);
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
}

.opportunity__features { border-top: 1px solid var(--line-light); }
.feature {
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line-light);
}
.feature h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}
.feature p {
  font-size: 0.95rem;
  color: var(--gray-dark);
  line-height: 1.65;
}

/* ==========================================================================
   Section 7 — Gallery
   ========================================================================== */

.gallery .section__title { margin-bottom: 0; }

.gallery__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery__item {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  background: var(--charcoal);
  cursor: zoom-in;
  overflow: hidden;
  /* Uniform 16:9 cells keep every row the same height. Thumbnails crop
     slightly; the lightbox always shows the full uncropped image. */
  aspect-ratio: 16 / 9;
}
/* One full-width feature image opens the grid */
.gallery__item--feature { grid-column: 1 / -1; }

.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), opacity 0.5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.035); }

.gallery__item figcaption,
.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.1rem 0.9rem;
  background: linear-gradient(to top, rgba(12,13,15,0.75), transparent);
  color: rgba(247, 244, 239, 0.9);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: left;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.gallery__item:hover .gallery__caption,
.gallery__item:focus-visible .gallery__caption { opacity: 1; }

.gallery__note {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  color: var(--gray);
  text-align: center;
}

/* ==========================================================================
   Section 8 — Property details
   ========================================================================== */

.details .section__title { margin-bottom: 0; }

.details__list {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(3rem, 7vw, 6rem);
}

.details__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-light);
}
.details__row dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}
.details__row dd {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.12rem;
  text-align: right;
  line-height: 1.4;
}

/* ==========================================================================
   Section 9 — Map
   ========================================================================== */

.map .section__lead { margin-bottom: 0; }

.map__frame {
  margin-top: 3rem;
  border: 1px solid var(--line-light);
  background: var(--paper);
}
.map__canvas {
  position: relative;
  width: 100%;
  height: clamp(380px, 55vh, 560px);
}

/* Grayscale treatment keeps the map inside the site's palette */
.map__canvas .leaflet-layer { filter: grayscale(1) contrast(0.92) brightness(1.03); }

.map__placeholder {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background:
    linear-gradient(rgba(247,244,239,0.92), rgba(247,244,239,0.92)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(16,18,20,0.03) 14px 15px);
}
.map__placeholder-label {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--gray-dark);
}
.map__placeholder-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gray);
}

.map__note {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: var(--gray);
}

/* Custom Leaflet markers */
.map-pin {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.map-pin__dot {
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(184, 160, 113, 0.25);
}
.map-pin--context .map-pin__dot {
  width: 9px; height: 9px;
  background: var(--gray-dark);
  box-shadow: 0 0 0 3px rgba(92, 97, 102, 0.2);
}
.map-pin__label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(247, 244, 239, 0.92);
  padding: 3px 8px;
  border: 1px solid var(--line-light);
}
.map-pin__sub {
  display: block;
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--gray-dark);
  text-transform: none;
}

/* ==========================================================================
   Section 10 — Contact / broker CTA
   ========================================================================== */

.contact { background: var(--charcoal); }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.contact__broker {
  margin-top: 2.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
}
.contact__brand {
  height: 30px; width: auto;
  margin-bottom: 1.4rem;
  opacity: 0.95;
}
.contact__broker-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
}
.contact__broker-co {
  color: rgba(247, 244, 239, 0.6);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}
.contact__broker-phone {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 160, 113, 0.55);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease);
}
.contact__broker-phone:hover { border-color: var(--accent); }

/* Broker portrait + identity row */
.contact__broker-row {
  display: flex;
  align-items: flex-end;
  gap: 1.6rem;
}
.contact__portrait {
  flex: none;
  width: clamp(130px, 17vw, 182px);
  height: auto;
  align-self: flex-end;
  /* Cutouts carry their own soft bottom fade into the section background */
}
.contact__broker-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.5rem;
}
.contact__broker-office {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: rgba(247, 244, 239, 0.5);
}
.contact__broker-office a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 244, 239, 0.2);
}
.contact__broker-office a:hover { color: var(--paper); }

/* Secondary listing-team row */
.contact__team {
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-dark);
}
.contact__team-label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.42);
  margin-bottom: 1.4rem;
}
.contact__team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
}
.team-member {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}
.team-member__photo {
  flex: none;
  width: 62px; height: 62px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: rgba(247, 244, 239, 0.05);
}
.team-member__name {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--paper);
  line-height: 1.3;
}
.team-member__title {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.45);
  margin-top: 0.15rem;
}
.team-member__phone {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.88rem;
  color: rgba(247, 244, 239, 0.78);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.team-member__phone:hover { color: var(--accent); }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.4rem;
}

/* ---------- Form ---------- */
.contact__form-wrap {
  border: 1px solid var(--line-dark);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.contact__form-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.45rem;
  margin-bottom: 1.8rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.form__field { margin-bottom: 1.4rem; }
.form__field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.55);
  margin-bottom: 0.5rem;
}
.form__field input,
.form__field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--paper);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(247, 244, 239, 0.25);
  padding: 0.55rem 0;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
.form__field textarea { resize: vertical; }
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.btn--submit { width: 100%; margin-top: 0.6rem; }

.form__status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(247, 244, 239, 0.75);
  min-height: 1.4em;
}
.form__status.is-error { color: #d9a08e; }
.form__status.is-success { color: #b8c9a8; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--ink);
  color: rgba(247, 244, 239, 0.65);
  padding: 4rem 0 6.5rem; /* bottom padding clears the mobile CTA bar */
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(247, 244, 239, 0.1);
}

.footer__brand { display: flex; gap: 1.4rem; align-items: flex-start; }
.footer__roundel { height: 52px; width: auto; opacity: 0.9; }
.footer__address {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--paper);
  line-height: 1.5;
}
.footer__broker { font-size: 0.85rem; margin-top: 0.6rem; }
.footer__broker a { color: inherit; }

.footer__nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(247, 244, 239, 0.55);
  transition: color 0.3s var(--ease);
}
.footer__nav a:hover { color: var(--paper); }

/* Compliance marks */
.footer__marks {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin: 2rem 0 1.6rem;
}
.footer__marks img {
  height: 52px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease);
}
.footer__marks img:hover { opacity: 0.85; }
.footer__marks img.is-wide { height: 34px; }

.footer__legal {
  padding-top: 2.2rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(247, 244, 239, 0.4);
  max-width: 90ch;
}
.footer__legal p + p { margin-top: 0.8rem; }
.footer__copy { color: rgba(247, 244, 239, 0.3); }

/* ==========================================================================
   Sticky mobile CTA
   ========================================================================== */

.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  grid-template-columns: 1fr 1fr;
  background: rgba(16, 18, 20, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(247, 244, 239, 0.12);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(0);
  transition: transform 0.4s var(--ease);
}
.mobile-cta.is-hidden { transform: translateY(110%); }

.mobile-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
}
.mobile-cta__btn--call { border-right: 1px solid rgba(247, 244, 239, 0.12); }
.mobile-cta__btn--inquire { color: var(--accent); }

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed; inset: 0;
  z-index: 150;
  background: #0c0d0f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }

.lightbox__figure {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.lightbox__scroll {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(247, 244, 239, 0.1);
}
.lightbox__figure figcaption {
  color: rgba(247, 244, 239, 0.7);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: 1px solid rgba(247, 244, 239, 0.25);
  color: var(--paper);
  font-size: 1.3rem;
  line-height: 1;
  width: 52px; height: 52px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close:hover,
.lightbox__nav:hover { border-color: var(--accent); background: rgba(184,160,113,0.15); }

.lightbox__close { top: 1.4rem; right: 1.4rem; font-size: 1.7rem; }
.lightbox__nav--prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.4rem; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Reveal animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }
.reveal.is-in { opacity: 1; transform: none; }

.reveal-img {
  opacity: 0;
  clip-path: inset(0 0 8% 0);
  transform: translateY(20px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease),
              clip-path 1.1s var(--ease);
}
.reveal-img.is-in { opacity: 1; transform: none; clip-path: inset(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-img {
    opacity: 1; transform: none; clip-path: none; transition: none;
  }
  .hero__scroll-line { animation: none; }
  .hero__img { height: 100% !important; transform: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1020px) {
  .nav__links { display: none; }
  .btn--nav { display: none; }
  .nav__toggle { display: flex; }
  .nav { background: rgba(16, 18, 20, 0.0); }

  .location__grid,
  .opportunity__grid,
  .contact__grid { grid-template-columns: 1fr; }

  .location__media { order: -1; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }

  .details__list { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --nav-h: 60px; }

  body { font-size: 1rem; }

  .nav__logo { height: 17px; }
  .nav__brand-text { font-size: 0.92rem; }

  .hero__actions .btn { width: 100%; text-align: center; }
  .hero__contact-link { padding-left: 0; }

  /* Stats: clean 2-column arrangement on mobile */
  .stats__grid { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .stats__item { border-left: none; }
  .stats__item:nth-child(even) { border-left: 1px solid var(--line-light); }
  .stats__item:last-child { grid-column: 1 / -1; }

  .micron__callouts { grid-template-columns: 1fr; }
  .micron__callout { border-left: none; border-top: 1px solid var(--line-dark); }
  .micron__callout:first-child { border-top: none; }

  /* Gallery: swipeable strip on mobile */
  .gallery__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin-inline: -1.5rem;
    padding-inline: 1.5rem;
    scrollbar-width: none;
  }
  .gallery__grid::-webkit-scrollbar { display: none; }
  .gallery__item,
  .gallery__item--feature {
    flex: 0 0 84%;
    scroll-snap-align: center;
    aspect-ratio: 16 / 9;
  }
  .gallery__item .gallery__caption { opacity: 1; }

  .details__row { flex-direction: column; gap: 0.3rem; }
  .details__row dd { text-align: left; }

  .form__row { grid-template-columns: 1fr; gap: 0; }

  .footer { padding-bottom: 8rem; }
  .footer__top { flex-direction: column; }

  /* Stack the portrait above the identity block — the agent title and
     company names wrap on narrow screens, which throws off a side-by-side
     baseline alignment. */
  .contact__broker-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .contact__portrait { width: 150px; margin-left: -6px; align-self: flex-start; }
  .contact__team-grid { flex-direction: column; gap: 1.5rem; }
  .footer__marks img { height: 44px; }
  .footer__marks img.is-wide { height: 29px; }

  .mobile-cta { display: grid; }

  /* Pan wide images instead of shrinking them to phone width */
  .lightbox__figure { max-width: 100%; width: 100%; }
  .lightbox__scroll {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .lightbox__scroll::-webkit-scrollbar { display: none; }
  .lightbox__scroll img {
    max-width: none;
    max-height: none;
    height: min(60vh, 460px);
    width: auto;
    flex: none;
  }
  .lightbox__hint { color: var(--accent); }

  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 0.6rem; }
  .lightbox__nav--next { right: 0.6rem; }
  .lightbox__close { top: 0.8rem; right: 0.8rem; }
}
