/* ==========================================================================
   Site styles for Hightower property sites (this copy: Fringe on 15th)
   Layout concept: photography-led garden community. Full-bleed imagery,
   a light canvas, the secondary brand color as the structural color and
   the primary brand color reserved for calls to action.

   CHANGE PER PROPERTY: only the block marked below (colors and fonts).
   Also update the Google Fonts <link> in both pages and in
   api/_admin/pages.js, and the swatches in assets/js/property.js (brand).
   ========================================================================== */

:root {
  /* ===== CHANGE PER PROPERTY: brand palette ===== */
  /* Fringe on 15th (Fringe family: navy and blue, with the building's mustard): Ink, Dusk (secondary), Fringe Blue (primary), Mustard (accent), Paper */
  --ink: #1b1e24;          /* body text, footer (logo ink) */
  --ink-soft: #363b45;
  --muted: #5c6370;        /* secondary text */
  --secondary: #2f3747;    /* structure: labels, links, filters, contact band, map */
  --secondary-deep: #1e2430; /* announcement bar, hover for secondary */
  --secondary-tint: #e7e9ee; /* light wash of secondary */
  --primary: #1f4e86;      /* calls to action: buttons, highlights */
  --primary-deep: #173d6a; /* hover for primary */
  --primary-tint: #e2eaf4; /* light wash of primary (special badges) */
  --accent: #e2b04a;       /* soft labels on dark backgrounds */
  --accent-tint: #fbf1dc;  /* quiet section bands (pets, tour band) */
  --paper: #faf9f6;        /* page background */
  --white: #ffffff;
  --line: #e4e3df;         /* hairlines; lean them toward the palette */
  --line-strong: #cfcdc6;
  --success: #2f6b4f;
  /* A few soft tints elsewhere are written as hex (map roads, open/closed text in the
     contact band, the green "live" dot). They suit most palettes; search "#" if a new one clashes. */

  /* ===== CHANGE PER PROPERTY: fonts (load them in the Google Fonts <link>) ===== */
  --font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "Lato", "Helvetica Neue", Arial, system-ui, sans-serif;
  /* Optional: --logo-h (44px), --logo-h-sm (38px), --logo-footer-h (56px), --display-nums (tabular-nums). */
  /* ===== end of per-property settings ===== */

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.5rem + 2.8vw, 3.75rem);
  --step-5: clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem);

  /* Space & shape */
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1240px;
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius: 4px;
  --radius-lg: 10px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-variant-numeric: var(--nums, normal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-x: clip; /* clip: no scroll container, so the sticky header survives the menu scroll lock */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 64px);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

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

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--secondary);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--accent); }

.display { font-family: var(--font-display); font-size: var(--step-4); line-height: 1.04; letter-spacing: -.01em; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--primary); --btn-fg: var(--white); --btn-bd: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.5rem;
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { --btn-bg: var(--primary-deep); --btn-bd: var(--primary-deep); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); }
.btn--light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.6); }
.btn--light:hover { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); }
.btn--secondary { --btn-bg: var(--secondary); --btn-bd: var(--secondary); }
.btn--secondary:hover { --btn-bg: var(--secondary-deep); --btn-bd: var(--secondary-deep); }
.btn--sm { min-height: 40px; padding: .55rem 1.1rem; font-size: .78rem; }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--secondary); text-decoration: none; padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .3s var(--ease), color .2s;
}
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--primary); }
.text-link svg { width: 14px; height: 14px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--secondary-deep); color: var(--white);
  font-size: .8125rem; letter-spacing: .02em;
}
.announce .wrap { display: flex; justify-content: center; align-items: center; gap: .75rem; min-height: 40px; padding-block: 8px; text-align: center; flex-wrap: wrap; }
.announce a { color: var(--white); font-weight: 600; text-underline-offset: 3px; }
.announce .dot { width: 6px; height: 6px; border-radius: 50%; background: #8fd1a8; box-shadow: 0 0 0 4px rgba(143,209,168,.2); flex: none; }
@media (max-width: 559px) { .announce .dot { display: none; } } /* on phones the text wraps and left the dot alone on its own line */

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60;
  background: var(--white);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(28,30,30,.35); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: var(--logo-h, 44px); width: auto; }

.nav { display: none; }
.nav ul { display: flex; gap: clamp(1rem, .2rem + 1.4vw, 2rem); }
.nav a {
  position: relative; text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--ink-soft);
  padding-block: .5rem; transition: color .2s; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--primary);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-phone {
  display: none; align-items: center; gap: .5rem; text-decoration: none; font-weight: 600; font-size: .9375rem;
  color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.header-phone svg { width: 16px; height: 16px; color: var(--secondary); }
.header-actions .btn--ghost { display: none; }

.menu-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .3s var(--ease), background .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 559px) {
  .header-actions .btn--tour { display: none; }
  .brand img { height: var(--logo-h-sm, 38px); }
}
@media (min-width: 1080px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .header-actions .btn--ghost { display: inline-flex; }
}
@media (min-width: 1280px) {
  .header-phone { display: inline-flex; }
}
/* A wide logo can leave too little room for the full nav. main.js measures the header and sets:
   .nav-tight   -> drop the phone number from the header (it is still in the menu, contact band and footer)
   .nav-compact -> still too tight: use the menu button and drawer, as on tablets */
html.nav-tight .header-phone, html.nav-compact .header-phone { display: none; }
html.nav-compact .nav { display: none; }
html.nav-compact .menu-toggle { display: inline-grid; }
html.nav-compact .drawer { display: flex; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 45;
  background: var(--white);
  padding: 1.5rem max(16px, env(safe-area-inset-right, 0px)) calc(2rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 2rem; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.menu-open .drawer { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.drawer ul { display: grid; }
.drawer li a {
  display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 2rem; line-height: 1.1; text-decoration: none;
}
/* Shorter phone screens: tighten the menu so the buttons and address fit without scrolling */
@media (max-height: 900px) and (max-width: 1079px) {
  .drawer { gap: 1.5rem; padding-top: 1rem; }
  .drawer li a { padding: clamp(.6rem, 1.5vh, 1rem) 0; font-size: clamp(1.5rem, 3.6vh, 2rem); }
}
.drawer li a svg { width: 18px; height: 18px; color: var(--muted); }
.drawer-foot { display: grid; gap: .75rem; margin-top: auto; }
.drawer-foot p { color: var(--muted); font-size: .9375rem; }
@media (min-width: 720px) { .drawer { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
@media (min-width: 1080px) { .drawer { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  min-height: clamp(560px, 78vh, 820px);
  display: flex; align-items: flex-end;
  background: var(--secondary-deep);
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: hero-zoom 14s var(--ease) both; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,34,38,var(--hero-top, .34)) 0%, rgba(20,34,38,0) 32%, rgba(20,34,38,.35) 60%, rgba(20,34,38,.82) 100%),
    linear-gradient(90deg, rgba(20,34,38,var(--hero-side, .58)) 0%, rgba(20,34,38,calc(var(--hero-side, .58) * .45)) 45%, rgba(20,34,38,0) 72%);
}
/* A hero photo with bright sky or white walls behind the copy can set --hero-top / --hero-side
   in the property block (e.g. .5 / .62) to darken the top and left edges a little more on desktop. */
/* Phones and tablets: the copy sits over the top of the photo (often bright sky), so darken evenly */
@media (max-width: 999px) {
  .hero::after { background: linear-gradient(180deg, rgba(20,34,38,.55) 0%, rgba(20,34,38,.45) 45%, rgba(20,34,38,.85) 100%); }
}
.hero .wrap { padding-block: clamp(3rem, 2rem + 5vw, 6rem); display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: 1fr auto; } }
.hero-copy { max-width: 760px; display: grid; gap: 1.5rem; }
.hero h1 {
  font-family: var(--font-display); font-size: var(--step-5); line-height: .98; letter-spacing: -.015em;
}
.hero-sub { font-size: var(--step-1); line-height: 1.55; max-width: 54ch; color: rgba(255,255,255,.95); }
/* A soft shadow keeps the eyebrow, headline and intro legible over bright sky (buttons excluded) */
.hero-copy > :not(.hero-ctas) { text-shadow: 0 1px 2px rgba(0,0,0,.3), 0 2px 16px rgba(0,0,0,.45); }
/* The small line above the headline is white (brand-colored rule beside it): an accent-colored line
   disappears over sky and white walls */
.hero .eyebrow--light { color: var(--white); font-weight: 600; }
.hero .eyebrow--light::before { background: var(--accent); height: 2px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: .5rem; }
@media (max-width: 559px) { .hero-ctas .btn { flex: 1 1 100%; justify-content: center; } }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }

.avail-card {
  background: rgba(255,255,255,.96); color: var(--ink);
  border-radius: var(--radius-lg); padding: 1.5rem; width: 100%; max-width: 340px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.45);
  display: grid; gap: 1rem;
  animation: rise .9s .3s var(--ease) both;
}
.avail-card .status { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--step--1); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--success); }
.avail-card .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(47,107,79,.15); }
.avail-card .price { font-family: var(--font-display); font-size: 2.75rem; line-height: 1; }
.avail-card .price small { font-family: var(--font-body); font-size: .875rem; color: var(--muted); margin-left: .25rem; }
.avail-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1rem; margin: 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .875rem; }
.avail-card dt { color: var(--muted); }
.avail-card dd { margin: 0 0 .5rem; font-weight: 600; font-variant-numeric: tabular-nums; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- Key facts strip ---------- */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts li { padding: 1.5rem 1rem 1.5rem 0; display: grid; gap: .25rem; border-bottom: 1px solid var(--line); }
.facts li:nth-child(odd) { padding-right: 1rem; }
.facts li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.facts li:nth-last-child(-n+2) { border-bottom: 0; }
.facts .k { font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts .v { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; font-variant-numeric: var(--display-nums, tabular-nums); }
@media (min-width: 900px) {
  .facts ul { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .facts li, .facts li:nth-child(odd), .facts li:nth-child(even) { padding: 2rem 1.5rem; border-bottom: 0; border-left: 1px solid var(--line); }
  .facts li:first-child { border-left: 0; padding-left: 0; }
}
/* Six facts in a row get narrow on small laptops and tablets in landscape: tighter padding, slightly smaller values */
@media (min-width: 900px) and (max-width: 1239px) {
  .facts li, .facts li:nth-child(odd), .facts li:nth-child(even) { padding: 1.75rem 1rem; }
  .facts li:first-child { padding-left: 0; }
  .facts .v { font-size: 1.5rem; }
}

/* ---------- Intro ---------- */
.intro-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .intro-grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 7rem); align-items: center; } }
.intro-copy { display: grid; gap: 1.5rem; }
.intro-copy p { color: var(--ink-soft); max-width: 58ch; }
.intro-copy .signature { display: flex; gap: 1.5rem; flex-wrap: wrap; padding-top: .5rem; }
/* Three photos: one tall on the left, two stacked on the right. The tall one sets the height. */
.intro-media { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; }
.intro-media figure { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; min-height: 0; }
.intro-media figure:first-of-type { grid-row: 1 / 3; aspect-ratio: 2 / 3; }
.intro-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 560px) and (max-width: 959px) { .intro-media figure:first-of-type { aspect-ratio: 4 / 5; } }
.intro-media .tag {
  position: absolute; left: 1rem; bottom: 1rem; background: var(--white); padding: .75rem 1rem; border-radius: var(--radius);
  font-size: .8125rem; display: flex; gap: .6rem; align-items: center; box-shadow: 0 10px 30px -12px rgba(0,0,0,.3);
  max-width: calc((100% - 1rem) * 1.4 / 2.4 - 2rem); /* stays inside the tall photo */
}
.intro-media .tag svg { width: 16px; height: 16px; color: var(--primary); flex: none; }
@media (max-width: 559px) {
  .intro-media .tag { left: .75rem; bottom: .75rem; max-width: calc((100% - 1rem) * 1.4 / 2.4 - 1.5rem); padding: .6rem .75rem; font-size: .75rem; line-height: 1.35; }
}

/* ---------- Floor plans ---------- */
.plans { background: var(--white); }
.plan-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filters { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; } /* many options scroll sideways instead of wrapping */
.filters button {
  border: 0; background: transparent; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
  font-size: .875rem; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; white-space: nowrap; flex: none;
}
/* Phones: the bedroom buttons share the full width so "3 Bedroom" isn't cut off at the edge */
@media (max-width: 559px) {
  .plan-tools { width: 100%; }
  .filters { display: flex; width: 100%; }
  .filters button { flex: 1 1 auto; padding: .5rem .45rem; font-size: .8125rem; }
}
.filters button[aria-pressed="true"] { background: var(--secondary); color: var(--white); }
.filters button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.plan-note { font-size: .875rem; color: var(--muted); }

.plan-grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.plan {
  display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); transition: border-color .25s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.plan:hover { border-color: var(--line-strong); box-shadow: 0 24px 50px -30px rgba(33,63,72,.35); transform: translateY(-2px); }
.plan-figure {
  position: relative; display: block; width: 100%; padding: 1.5rem; margin: 0; border: 0; cursor: zoom-in;
  background: var(--paper); aspect-ratio: 4 / 3.2; overflow: hidden; /* keeps every card's picture box the same height */
}
.plan-figure img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.plan:hover .plan-figure img { transform: scale(1.03); }
.plan-figure .zoom {
  position: absolute; right: .75rem; bottom: .75rem; width: 36px; height: 36px; border-radius: 50%; background: var(--white);
  display: grid; place-items: center; box-shadow: 0 4px 14px -6px rgba(0,0,0,.3);
}
.plan-figure .zoom svg { width: 16px; height: 16px; }
/* Plans without a drawing: a property photo, or a plain tile with the bedroom count */
.plan-figure--photo, .plan-figure--none { cursor: default; }
.plan-figure--photo, .plan:only-child .plan-figure.plan-figure--photo { padding: 0; }
.plan-figure--photo img { object-fit: cover; mix-blend-mode: normal; }
.plan-figure--none { display: grid; place-content: center; justify-items: center; gap: .5rem; background: var(--accent-tint); color: var(--secondary); }
.plan-figure__beds { font-family: var(--font-display); font-size: clamp(3.5rem, 2.5rem + 3vw, 5rem); line-height: 1; font-variant-numeric: var(--display-nums, tabular-nums); }
.plan-figure__beds small { font-size: .35em; margin-left: .2em; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; }
.plan-figure__note {
  position: absolute; right: .75rem; bottom: .75rem; padding: .3rem .65rem; border-radius: 999px; background: rgba(255,255,255,.92);
  font-size: .75rem; font-weight: 500; color: var(--ink-soft);
}
.plan-figure--none .plan-figure__note { position: static; background: none; padding: 0; color: var(--muted); }
.chip {
  position: absolute; z-index: 1; left: .75rem; top: .75rem; padding: .3rem .65rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; background: var(--white); color: var(--ink);
  display: inline-flex; align-items: center; gap: .4rem;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--now { color: var(--success); }
.chip--soon { color: var(--primary); }
.chip--wait { color: var(--muted); }
.plan-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.plan-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; } /* a long plan name pushes the price onto its own line */
.plan-title h3 { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.plan-title h3 { min-width: 0; }
.plan-title .price { flex: none; margin-left: auto; white-space: nowrap; text-align: right; font-size: .8125rem; color: var(--muted); line-height: 1.3; }
.plan-title .price strong { display: block; font-size: 1.25rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.specs div { padding: .85rem 0; display: grid; gap: .1rem; }
.specs div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.specs dt { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan { grid-template-columns: minmax(0, 1fr); } /* content can't widen the card */
.plan-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: auto; }
.plan-actions .btn { padding-inline: .75rem; }
@media (min-width: 720px) and (max-width: 1079px) {
  .plan.is-solo { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .plan.is-solo .plan-figure { aspect-ratio: auto; height: 100%; min-height: 280px; }
}
/* Exactly two or four floor plans: two wide cards per row on desktop instead of an empty column or a lone card */
@media (min-width: 1080px) {
  .plan-grid:has(> .plan:nth-child(2):last-child), .plan-grid:has(> .plan:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid:has(> .plan:nth-child(2):last-child) .plan-figure, .plan-grid:has(> .plan:nth-child(4):last-child) .plan-figure { aspect-ratio: 16 / 10; }
}
/* A property with a single floor plan: one full-width card; from 1000px the drawing sits beside the details */
@media (min-width: 720px) {
  .plan-grid:has(> .plan:only-child) { grid-template-columns: minmax(0, 1fr); }
  .plan:only-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .plan:only-child .plan-figure { aspect-ratio: 5 / 4; height: auto; min-height: 0; padding: 2rem; }
  .plan:only-child .plan-body { padding: 2rem; }
}
@media (min-width: 1000px) {
  .plan:only-child { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: none; }
  .plan:only-child .plan-figure { aspect-ratio: auto; height: 100%; min-height: 360px; }
}
.nowrap { white-space: nowrap; }
.plans-foot { margin-top: 2rem; font-size: .8125rem; color: var(--muted); max-width: 80ch; }
.plan-title .price .per { font-size: .8125rem; font-weight: 400; color: var(--muted); }
.plan-units { display: grid; margin-top: -.25rem; }
.plan-units li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .15rem .75rem;
  padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .875rem;
}
.plan-units .u-name { font-weight: 600; white-space: nowrap; }
/* A house's street address ("4424 W Charter Oak Rd") is long, so it may wrap on narrow cards. */
.plan-units .u-name--house { white-space: normal; }
.plan-units .u-more { display: block; font-size: .875rem; }
.plan-units .u-more a { color: var(--secondary); font-weight: 600; text-underline-offset: 3px; }
.plan-units .u-when { color: var(--muted); white-space: nowrap; }
.plan-units .u-rent { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.plan-units .u-special { grid-column: 1 / -1; justify-self: start; }
.plan-units .u-apply { grid-column: 3; grid-row: 1; display: none; }
.plan-units li:has(.u-apply) { grid-template-columns: auto 1fr auto auto; }
.plan-units li:has(.u-apply) .u-apply { display: inline; grid-column: 4; font-weight: 600; color: var(--primary); text-underline-offset: 3px; }
.plan-empty { font-size: .875rem; color: var(--muted); }
.u-special, .special {
  display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem; border-radius: 999px;
  background: var(--primary-tint); color: var(--primary-deep); font-size: .75rem; font-weight: 600; letter-spacing: .02em;
}

/* ---------- Availability page (mirrors Hightower's "Available homes") ---------- */
.homes .wrap { padding-block: clamp(2.75rem, 2rem + 3vw, 5rem) clamp(3rem, 2rem + 4vw, 5.5rem); }
.homes-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; }
.homes-title { display: grid; gap: 1rem; }
.homes-count { font-weight: 600; margin-top: 1.5rem; min-height: 1.6em; }
.homes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 2rem 1.5rem; margin-top: 1.25rem; }
.unit { display: flex; flex-direction: column; min-width: 0; padding: 10px 10px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .3s var(--ease); scroll-margin-top: calc(var(--header-h) + 24px); }
.unit:hover { border-color: var(--line-strong); box-shadow: 0 20px 40px -30px rgba(33,63,72,.35); }
.unit__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--paper); overflow: hidden; text-decoration: none; }
.unit__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.unit__media img.is-plan { object-fit: contain; padding: 1rem; mix-blend-mode: multiply; }
.unit:hover .unit__media img { transform: scale(1.03); }
.unit__nophoto { font-size: .9375rem; color: var(--muted); }
.unit__special { position: absolute; left: .6rem; top: .6rem; padding: .3rem .65rem; border-radius: 999px; background: var(--primary); color: var(--white); font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.unit__body { display: flex; flex-direction: column; flex: 1; padding: 14px 4px 0; }
.unit__addr { font-size: 1.25rem; line-height: 1.3; font-weight: 600; letter-spacing: -.005em; }
.unit__addr a { text-decoration: none; }
.unit__addr a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.unit__sub { font-size: .875rem; color: var(--muted); }
.unit__price { margin-top: .5rem; font-size: 1.375rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.unit__per { font-size: .9375rem; font-weight: 400; color: var(--muted); }
.unit__facts { display: flex; flex-wrap: wrap; gap: 0 .9rem; margin-top: .25rem; font-size: .9375rem; color: var(--ink-soft); }
.unit__avail, .unit__pets, .unit__terms { font-size: .9375rem; color: var(--muted); }
.unit__avail { display: flex; align-items: center; gap: .45rem; }
.unit__terms { color: var(--primary-deep); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--muted); }
.dot--now { background: var(--success); }
.dot--soon { background: var(--primary); }
.unit__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: 1rem; }
.homes-empty { grid-column: 1 / -1; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.5rem; display: grid; gap: 1rem; justify-items: start; }
.homes-empty h2 { font-family: var(--font-display); font-size: var(--step-3); }
.homes-note { margin-top: 2rem; font-size: .8125rem; color: var(--muted); max-width: 80ch; }
.homes-tour { background: var(--accent-tint); }
.homes-tour .wrap { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; flex-wrap: wrap; }
.homes-tour .display { font-size: var(--step-3); }
.homes-tour .lede { margin-top: .5rem; }
.homes-tour-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Amenities ---------- */
.amenities-grid { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .amenities-grid { grid-template-columns: 1.05fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; } }
.amenity-visual { position: relative; display: grid; gap: 1rem; }
@media (min-width: 1000px) { .amenity-visual { position: sticky; top: calc(var(--header-h) + 2rem); } }
.amenity-visual figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.amenity-visual img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s var(--ease); }
.amenity-visual figcaption { font-size: .8125rem; color: var(--muted); }
.amenity-lists { display: grid; gap: 3rem; }
.amenity-group h3 { font-family: var(--font-display); font-size: var(--step-3); margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; }
.amenity-group h3 span { white-space: nowrap; }
.amenity-group h3 span { font-family: var(--font-body); font-size: .8125rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.amenity-list { display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) { .amenity-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
@media (min-width: 1000px) and (max-width: 1139px) { .amenity-list { grid-template-columns: 1fr; } }
.amenity-list li { display: flex; align-items: center; gap: .85rem; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.amenity-list li > span { min-width: 0; }
.amenity-list svg { width: 20px; height: 20px; flex: none; color: var(--secondary); stroke-width: 1.5; }
.amenity-list sup { color: var(--primary); font-weight: 700; }
.footnote { font-size: .8125rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { background: var(--ink); color: var(--white); }
.gallery .lede { color: rgba(255,255,255,.72); }
.gallery-grid {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(140px, 22vw, 300px);
}
.gallery-grid button {
  position: relative; padding: 0; margin: 0; border: 0; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; background: #2a2e2e;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .3s; }
.gallery-grid button:hover img { transform: scale(1.04); }
.gallery-grid button::after {
  content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .85rem; text-align: left;
  font-size: .8125rem; color: var(--white); background: linear-gradient(transparent, rgba(0,0,0,.6));
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.gallery-grid button:hover::after, .gallery-grid button:focus-visible::after { opacity: 1; transform: none; }
.gallery-grid .g-wide { grid-column: span 2; }
/* Five photos: on phones the big one spans the row so the last photo isn't left alone (desktop: one 2x2 plus four) */
@media (max-width: 899px) { .gallery-grid:has(> button:nth-child(5):last-child) > .g-big { grid-column: span 2; } }
/* Three photos (big, tall, tall): same on phones, so the big one leads and the other two sit side by side */
@media (max-width: 899px) { .gallery-grid:has(> button:nth-child(3):last-child) > .g-big { grid-column: span 2; } }
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-grid .g-tall { grid-row: span 2; }
  .gallery-grid .g-big { grid-column: span 2; grid-row: span 2; }
}
.gallery-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.gallery-foot p { color: rgba(255,255,255,.6); font-size: .875rem; }
.gallery-foot__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Pets ---------- */
.pets { background: var(--accent-tint); }
.pets-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .pets-grid { grid-template-columns: .95fr 1.05fr; gap: clamp(3rem, 6vw, 6rem); } }
.pets figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; }
.pets figure img { width: 100%; height: 100%; object-fit: cover; }
.pets-copy { display: grid; gap: 1.5rem; }
.policy { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-strong); }
@media (min-width: 560px) { .policy { grid-template-columns: 1fr 1fr; } }
.policy div { padding: 1.25rem 0; border-bottom: 1px solid var(--line-strong); display: grid; gap: .25rem; align-content: start; }
@media (min-width: 560px) { .policy div:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line-strong); } .policy div:nth-child(odd) { padding-right: 1.5rem; } }
.policy dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.policy dd { margin: 0; font-size: 1.0625rem; }

/* ---------- Neighborhood ---------- */
.hood { background: var(--white); }
.commutes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 3rem; }
@media (min-width: 900px) { .commutes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.commutes div { background: var(--white); padding: 1.5rem; display: grid; gap: .35rem; }
.commutes .v { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; font-variant-numeric: var(--display-nums, tabular-nums); }
.commutes .v small { font-family: var(--font-body); font-size: .875rem; color: var(--muted); margin-left: .25rem; }
.commutes .k { font-size: .875rem; color: var(--ink-soft); }

.hood-grid { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .hood-grid { grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: start; } }
.map-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.map-card svg { display: block; width: 100%; height: auto; }
.map-card .map-legend {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: .75rem; color: var(--muted);
}
.map-card .map-legend a { pointer-events: auto; }
.map-ring { fill: none; stroke: var(--line-strong); stroke-dasharray: 3 5; }
.map-ring-label { fill: var(--muted); font-size: 11px; font-family: var(--font-body); letter-spacing: .06em; }
.map-road { stroke: #e6e9e2; stroke-width: 10; stroke-linecap: round; fill: none; }
.map-road-label { fill: #8f9893; font-size: 10px; font-family: var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.map-poi circle { fill: var(--white); stroke: var(--secondary); stroke-width: 2; transition: r .2s, fill .2s; }
.map-poi text { font-size: 11px; font-family: var(--font-body); fill: var(--ink); opacity: 0; transition: opacity .2s; pointer-events: none; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.map-poi.is-dim { opacity: .25; }
.map-poi.is-hot circle { fill: var(--primary); stroke: var(--primary); r: 7; }
.map-poi.is-hot text { opacity: 1; font-weight: 600; }
.map-home rect { fill: var(--secondary); }
.map-home text { fill: var(--white); font-size: 11px; font-weight: 600; font-family: var(--font-body); letter-spacing: .12em; }

.hood-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hood-tabs button {
  border: 1px solid var(--line); background: var(--white); padding: .5rem .95rem; border-radius: 999px; cursor: pointer;
  font-size: .8125rem; font-weight: 600; color: var(--ink-soft); transition: all .2s;
}
.hood-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.poi-list li {
  display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; padding: .9rem .25rem; border-bottom: 1px solid var(--line);
  cursor: default; transition: background .2s;
}
.poi-list li:hover, .poi-list li:focus-within { background: var(--paper); }
.poi-list .n { font-weight: 600; }
.poi-list .a { grid-column: 1; font-size: .8125rem; color: var(--muted); }
.poi-list .d { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--secondary); white-space: nowrap; }
.hood-note { margin-top: 1rem; font-size: .8125rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: var(--secondary); color: var(--white); position: relative; overflow: hidden; }
.contact .lede { color: rgba(255,255,255,.8); }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; } }
.contact-info { display: grid; gap: 2rem; }
.info-list { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.2); }
.info-list > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.info-list dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; padding-top: .2rem; }
.info-list dd { margin: 0; font-variant-numeric: tabular-nums; }
.info-list a { color: var(--white); text-underline-offset: 3px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .1rem 1rem; }
.hours .today { font-weight: 700; }
.open-now { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; margin-top: .4rem; color: #cfe8d9; }
.open-now::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.open-now.closed { color: #f1d9cd; }

.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: 0 40px 80px -40px rgba(0,0,0,.45); }
.form-card h3 { font-family: var(--font-display); font-size: var(--step-3); margin-bottom: .35rem; }
.form-card .form-intro { color: var(--muted); margin-bottom: 1.5rem; font-size: .9375rem; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; min-width: 0; align-content: start; }
.field label, .field legend { font-size: .8125rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field input:not([type="radio"]), .field select { height: 50px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary) 18%, transparent); }
.field.has-error input, .field.has-error select { border-color: #b3402a; }
.field .err { font-size: .75rem; color: #b3402a; min-height: 0; }
.field .err:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field legend { padding: 0; margin-bottom: .4rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: grid; place-items: center; min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; color: var(--ink-soft); transition: all .2s;
}
.seg input:checked + span { background: var(--secondary-tint); border-color: var(--secondary); color: var(--secondary-deep); }
.seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.form-actions { display: grid; gap: .75rem; margin-top: 1.5rem; }
.form-fine { font-size: .75rem; color: var(--muted); }
.form-success { display: grid; gap: 1rem; text-align: left; }
.form-success .check { width: 52px; height: 52px; border-radius: 50%; background: var(--secondary-tint); color: var(--secondary); display: grid; place-items: center; }
.form-success .check svg { width: 24px; height: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); font-size: .9375rem; }
.site-footer .wrap { padding-block: 4.5rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
.footer-top { display: grid; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (min-width: 600px) { .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1280px) { .footer-top { grid-template-columns: minmax(0, 1.8fr) 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand img { height: var(--logo-footer-h, 56px); width: auto; margin-bottom: 1.25rem; }
.footer-brand p:not(.mgmt) { max-width: 34ch; }
.site-footer h4 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--white); }
/* Managed-by (Hightower): label then logo on one line, matching the CrumbLabz credit */
.mgmt { display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; gap: .4rem .6rem; margin-top: 1.25rem; font-size: .8125rem; color: rgba(255,255,255,.55); }
.site-footer a.mgmt-link { display: inline-flex; align-items: center; color: #eef2ef; padding: .25rem 0; transition: opacity .2s; }
.site-footer a.mgmt-link:hover { opacity: .8; }
.mgmt-logo { display: block; height: 12px; width: auto; }

/* Legal + bottom bar (Admin + CrumbLabz credit) */
.footer-legal { display: grid; gap: 1rem; padding-block: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-legal .eho { display: inline-flex; align-items: center; gap: .6rem; font-size: .8125rem; width: fit-content; }
.footer-legal .eho svg { width: 24px; height: 24px; }
.legal { margin: 0; font-size: .75rem; line-height: 1.6; color: rgba(255,255,255,.45); max-width: 110ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: .8125rem; }
.footer-meta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.site-footer .footer-meta a { color: rgba(255,255,255,.55); text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; }
.site-footer .footer-meta a:hover { color: var(--white); }
.footer-credit { display: inline-flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.55); }
.footer-credit a { display: inline-flex; padding: .25rem 0; transition: opacity .2s; }
.footer-credit a:hover { opacity: .8; }
.footer-credit img { width: 84px; height: auto; display: block; }

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .6rem max(12px, env(safe-area-inset-right, 0px)) calc(.6rem + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.mobile-bar.is-visible { transform: none; }
@media (min-width: 760px) { .mobile-bar { display: none; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(14,17,17,.94); color: var(--white);
  display: grid; grid-template-rows: auto 1fr auto; padding: calc(env(safe-area-inset-top, 0px) + .75rem) max(12px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 1rem) max(12px, env(safe-area-inset-left, 0px));
}
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .875rem; }
.lb-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; padding-block: 1rem; } /* definite track so the photo's max-height: 100% fits the screen */
.lb-stage img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--radius); }
.lb-stage.is-plan img { background: var(--white); padding: 1rem; }
.lb-caption { text-align: center; font-size: .9375rem; color: rgba(255,255,255,.8); min-height: 1.5em; }
.lb-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06);
  display: grid; place-items: center; cursor: pointer; color: var(--white); transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn svg { width: 18px; height: 18px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-stage.is-plan .lb-prev, .lb-stage.is-plan .lb-next { display: none; }

/* ---------- Utility / motion ---------- */
.reveal { transition: transform .8s var(--ease); }
.reveal.pre { transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal.pre { transform: none; }
}

/* Wider body fonts (e.g. Poppins): let the wordmark shrink rather than run past the edge */
.site-footer a.mgmt-link { min-width: 0; flex: 0 1 auto; }
.mgmt-logo { max-width: 100%; }
/* Phones: keep "managed by HIGHTOWER" on one line */
@media (max-width: 479px) {
  .mgmt { font-size: .75rem; gap: .5rem; }
  .mgmt-logo { height: 10px; }
}
