/* Fonts are served from this site rather than Google: one fewer
   connection before any text can appear, and no visitor data sent to a
   third party. Latin subset only; all weights come from one file per style. */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/assistant-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   realtorleighholmes — design system
   Single source of truth for color, type, spacing and shared components.
   Change a value here and it changes everywhere on the site.
   ========================================================================== */

:root {
  /* ---- Brand color ---------------------------------------------------- */
  --navy:        #15212b;          /* the base — nearly black, cool */
  --navy-deep:   #0c1319;          /* darker navy, for gradients only */
  --navy-soft:   #2a3947;          /* lifted navy, for hovers */
  --white:       #ffffff;          /* the main background */

  /* ---- Two accents ------------------------------------------------------
     The base is very dark (#15212b), so a single accent cannot serve the
     whole site — the two accents split it by background instead.

       --accent        #22403b  deep green. 11.3:1 on white, but only
                                1.5:1 on the base — effectively invisible
                                there. LIGHT BACKGROUNDS ONLY.
       --accent-light  #8fa3b8  lifted slate. 6.3:1 on the base, but only
                                2.6:1 on white. DARK BACKGROUNDS ONLY.
       --slate         #697f97  the mid-tone the two are drawn from. Sits at
                                roughly 4:1 either way, so it is for borders
                                and decoration rather than words.

     The rule: green on white, slate on dark. Swapping them makes the accent
     disappear into the background. Use either as trim — rules, dashes,
     underlines, focus states — never as a button fill or body copy. */
  --accent:        #3d6b60;   /* trim on white — lifted so it reads as green */
  --accent-surface: #22403b;  /* Leigh's exact green, as a large block */
  --accent-deep:   #2c4f47;   /* small text on white */
  --accent-light: #8fa3b8;

  /* ---- Secondary slate --------------------------------------------------
     The cool mid-tone between the navy and white. Used for supporting text,
     borders and quiet surfaces. --slate is the decorative value; the deeper
     two are the ones that carry actual words, because --slate itself only
     reaches 4.1:1 on white and small text needs 4.5:1. */
  --slate:       #697f97;
  --slate-deep:  #57708b;

  --ink:         #15212b;
  --ink-muted:   #4e6880;          /* 5.8:1 on white — supporting paragraphs */
  --ink-faint:   #5f7791;          /* 4.6:1 on white — small caps labels */
  --line:        rgba(105, 127, 151, 0.30);
  --line-strong: rgba(105, 127, 151, 0.55);
  --wash:        #f4f6f8;          /* barely-there slate-tinted surface */

  /* Reversed — for use inside a navy block */
  --on-navy:        rgba(255, 255, 255, 0.94);
  --on-navy-muted:  rgba(255, 255, 255, 0.66);
  --on-navy-line:   rgba(255, 255, 255, 0.20);

  /* ---- Type ------------------------------------------------------------ */
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body:    'Assistant', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --step-hero: clamp(3.4rem, 9vw, 7.5rem);
  --step-xl:   clamp(2.4rem, 5vw, 4rem);
  --step-lg:   clamp(1.9rem, 3.4vw, 2.9rem);
  --step-md:   clamp(1.3rem, 2vw, 1.6rem);
  --step-body: clamp(1.02rem, 1.1vw, 1.15rem);
  --step-sm:   0.95rem;
  --step-xs:   0.78rem;

  --tracking-eyebrow: 0.22em;      /* the small all-caps label above headings */

  /* ---- Space ----------------------------------------------------------- */
  --gutter:     clamp(1.25rem, 5vw, 4rem);
  --section-y:  clamp(4.5rem, 10vw, 9rem);
  --max:        1280px;
  --max-narrow: 780px;

  /* ---- Motion & chrome -------------------------------------------------- */
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h:     84px;

  /* Soft, consistent rounding. Big surfaces get more, small controls less. */
  --radius-lg: 22px;               /* large panels, feature video */
  --radius:    16px;               /* cards, images */
  --radius-sm: 10px;               /* buttons, inputs, badges */

  /* Shadows are layered and tinted navy, never neutral grey — a grey shadow
     over a warm photo reads as dirt. Each is a tight contact shadow plus a
     wide ambient one. */
  --shadow-sm: 0 1px 2px rgba(21, 33, 43, 0.06),
               0 4px 12px -4px rgba(21, 33, 43, 0.10);
  --shadow:    0 2px 4px rgba(21, 33, 43, 0.05),
               0 12px 28px -10px rgba(21, 33, 43, 0.18);
  --shadow-lg: 0 4px 8px rgba(21, 33, 43, 0.06),
               0 28px 60px -20px rgba(21, 33, 43, 0.30);
  --shadow-xl: 0 6px 14px rgba(21, 33, 43, 0.08),
               0 44px 90px -28px rgba(21, 33, 43, 0.38);

  /* Glass. Two recipes: light glass for use on white or on a photo,
     dark glass for use inside a navy block. */
  --glass-light:        rgba(255, 255, 255, 0.72);
  --glass-light-border: rgba(255, 255, 255, 0.55);
  --glass-dark:         rgba(255, 255, 255, 0.07);
  --glass-dark-border:  rgba(255, 255, 255, 0.16);
  --blur:               saturate(180%) blur(18px);

  /* Card surfaces. Overridden inside navy sections further down. */
  --surface:        #ffffff;
  --surface-border: rgba(21, 33, 43, 0.09);
}

@media (max-width: 720px) {
  :root { --nav-h: 68px; }
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.on-navy :focus-visible,
.hero :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: var(--white);
  padding: 0.9rem 1.4rem;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--navy {
  background: var(--navy);
  color: var(--on-navy);
  /* Inside a navy block, "card" means dark glass rather than a white panel */
  --surface: var(--glass-dark);
  --surface-border: var(--glass-dark-border);
}
.section--navy h2,
.section--navy h3 { color: var(--white); }

/* A green block, same treatment as .section--navy — pair the two classes in
   the HTML. Not currently used: green is kept for accents only. */
.section--green { background: var(--accent-surface); }

.section--wash { background: var(--wash); }

/* A barely-there wash. Glass needs something behind it to modulate; over flat
   white a frosted card is indistinguishable from a solid one. */
.section--glassbed {
  background:
    radial-gradient(70% 55% at 15% 0%,   rgba(105, 127, 151, 0.13), transparent 70%),
    radial-gradient(60% 55% at 90% 70%,  rgba(61, 107, 96, 0.10),  transparent 70%),
    var(--white);
}

/* Section heading block: eyebrow + title + optional lead-in line */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.section-head__text { max-width: 46ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex: none;
}
.section--navy .eyebrow { color: var(--on-navy-muted); }
.section--navy .eyebrow::before { background: var(--accent-light); }

.section-title { font-size: var(--step-xl); }

.lede {
  font-size: var(--step-md);
  line-height: 1.55;
  color: var(--ink-muted);
  font-weight: 300;
}
.section--navy .lede { color: var(--on-navy-muted); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  --btn-bd: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.05rem 2.1rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
  font-size: var(--step-sm);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  --btn-bg: var(--navy-soft);
  --btn-bd: var(--navy-soft);
}
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

/* Outline on a light background */
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--navy); --btn-fg: var(--white); --btn-bd: var(--navy); }

/* Solid white, for use over a photo or a navy block */
.btn--light { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-bd: var(--white); }
.btn--light:hover { --btn-bg: rgba(255,255,255,0.88); --btn-bd: rgba(255,255,255,0.88); }

/* Glass button, for use over a photo or a navy block */
.btn--outline-light {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-fg: var(--white);
  --btn-bd: rgba(255, 255, 255, 0.45);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
              0 10px 30px -12px rgba(12, 19, 25, 0.6);
}
.btn--outline-light:hover { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-bd: var(--white); }

.btn--sm { padding: 0.72rem 1.4rem; font-size: var(--step-xs); }

/* Quiet text link with an arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--step-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-arrow:hover { gap: 1rem; color: var(--accent-deep); border-color: var(--accent); }
.section--navy .link-arrow:hover { color: var(--accent-light); border-color: var(--accent-light); }
.section--navy .link-arrow { border-color: var(--on-navy-line); }

/* ==========================================================================
   Top navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0);
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
/* Starts transparent over the hero photo, then becomes frosted glass — the
   page content blurs through it rather than being hidden behind flat white. */
.nav.is-solid {
  background: var(--glass-light);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.6),
              0 1px 0 rgba(21, 33, 43, 0.07),
              0 12px 32px -18px rgba(21, 33, 43, 0.45);
}
/* Browsers without backdrop-filter get solid white instead of see-through */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.is-solid { background: var(--white); }
}

.nav__inner {
  height: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  /* Three columns with equal outer tracks, so the links sit in the true
     middle of the bar. With flex + space-between they drifted toward whichever
     side had the narrower content. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.nav__inner > .nav__right { justify-self: end; }

@media (max-width: 940px) {
  /* The links become a dropdown panel, so the bar is just logo and controls */
  .nav__inner { display: flex; justify-content: space-between; }
}

/* Logo swaps between the white and navy artwork depending on nav state.
   Over the hero it is hidden entirely — the hero already shows the same
   wordmark at full size, and two of them at once reads as a mistake. */
.nav__logo {
  display: block;
  flex: none;
  position: relative;
  transition: opacity 0.45s var(--ease);
}
/* Only on pages whose hero already shows the wordmark full size. Other pages
   keep the logo visible in the bar at all times. */
.nav--over-hero:not(.is-solid):not(.is-open) .nav__logo {
  opacity: 0;
  pointer-events: none;
}
.nav__logo img {
  height: clamp(34px, 4.6vw, 54px);
  width: auto;
  transition: opacity 0.4s var(--ease);
}
.nav__logo img.is-navy {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  opacity: 0;
}
.nav.is-solid .nav__logo img.is-white { opacity: 0; }
.nav.is-solid .nav__logo img.is-navy  { opacity: 1; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  padding-block: 0.4rem;
  position: relative;
  transition: color 0.4s var(--ease), opacity 0.3s var(--ease);
  text-shadow: 0 1px 12px rgba(12, 19, 25, 0.55);
}
.nav.is-solid .nav__link { color: var(--ink-muted); text-shadow: none; }
.nav.is-solid .nav__link:hover,
.nav.is-solid .nav__link[aria-current='page'] { color: var(--navy); }

.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

.nav__right { display: flex; align-items: center; gap: 1.25rem; }

/* Headshot sitting in the bar. Circular, navy hairline ring. */
.nav__portrait {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--wash);
  border: 2px solid rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(21, 33, 43, 0.10),
              0 10px 24px -10px rgba(21, 33, 43, 0.45);
}
.nav:not(.is-solid) .nav__portrait {
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 28px -10px rgba(12, 19, 25, 0.75);
}
.nav__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

/* Placeholder state — remove once the real cutout is dropped in */
.nav__portrait--empty {
  background: var(--wash);
  border-style: dashed;
  border-color: var(--line-strong);
  color: var(--ink-faint);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.15;
  text-transform: uppercase;
}
.nav:not(.is-solid) .nav__portrait--empty {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.85);
}

.nav__cta { display: inline-flex; }
/* Only shown inside the open mobile menu */
.nav__cta--mobile { display: none; }

/* Mobile menu */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--white);
  position: relative;
  transition: background 0.3s var(--ease), transform 0.35s var(--ease);
}
.nav.is-solid .nav__toggle span,
.nav.is-solid .nav__toggle span::before,
.nav.is-solid .nav__toggle span::after { background: var(--navy); }
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px; height: 1.5px;
  background: var(--white);
  transition: transform 0.35s var(--ease);
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after  { top: 7px; }

.nav.is-open .nav__toggle span { background: transparent !important; }
.nav.is-open .nav__toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav__toggle { display: grid; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    padding: 1rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links > li { width: 100%; }
  .nav__link {
    color: var(--ink) !important;
    text-shadow: none;
    display: block;
    width: 100%;
    padding-block: 1rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
  }
  .nav__link::after { display: none; }
  /* Call/text is the whole point of the site — it stays reachable in the
     mobile menu rather than disappearing with the desktop bar button. */
  .nav__cta { display: none; }
  .nav__links .nav__cta--mobile { display: flex; width: 100%; margin-top: 1.5rem; }
  .nav__portrait { width: 42px; height: 42px; }
}

/* ==========================================================================
   Hero — drone photo with the scroll-zoom "fly toward the house" effect
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;          /* avoids the mobile browser-chrome jump; vh is the fallback */
  min-height: 620px;
  overflow: hidden;
  background: var(--navy-deep);
  display: grid;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Zoom origin sits on the house, so the scale reads as flying toward it */
  transform-origin: 52% 58%;
  transform: scale(1.02);
  will-change: transform;
}

/* The type sits in the centre of the frame now, which is the brightest part of
   a daytime aerial. A soft centre vignette carries the wordmark, and the
   top/bottom gradient keeps the nav and the scroll cue legible. */
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(115% 85% at 50% 48%,
      rgba(12, 19, 25, 0.62) 0%,
      rgba(12, 19, 25, 0.42) 38%,
      rgba(12, 19, 25, 0.12) 70%,
      rgba(12, 19, 25, 0.00) 100%),
    linear-gradient(to bottom,
      rgba(12, 19, 25, 0.52) 0%,
      rgba(12, 19, 25, 0.16) 20%,
      rgba(12, 19, 25, 0.18) 68%,
      rgba(12, 19, 25, 0.60) 100%);
}

/* Centred stack: wordmark, location line, phone, buttons */
.hero__content {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--nav-h) var(--gutter) 0;
  text-align: center;
  color: var(--white);
  will-change: transform, opacity;
}

.hero__eyebrow {
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.6rem;
  text-shadow: 0 2px 18px rgba(12, 19, 25, 0.7);
}

/* The wordmark, doing the job the big serif name used to do */
.hero__logo {
  margin: 0 0 1.9rem;
  line-height: 0;
}
.hero__logo img {
  width: min(660px, 82vw);
  height: auto;
  margin-inline: auto;
  /* A soft drop shadow keeps the thin script strokes off a bright sky */
  filter: drop-shadow(0 6px 28px rgba(12, 19, 25, 0.55));
}

.hero__sub {
  font-size: var(--step-md);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34ch;
  margin: 0 auto 1.9rem;
  text-shadow: 0 2px 22px rgba(12, 19, 25, 0.7);
}

.hero__rule {
  width: 72px;
  height: 1px;
  background: var(--accent-light);
  margin: 0 auto 1.6rem;
}

.hero__phone {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  letter-spacing: 0.01em;
  /* Cormorant defaults to old-style figures, where 9 and 7 drop below the
     baseline. A phone number has to read cleanly, so force lining figures. */
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
  margin-bottom: 2rem;
  text-shadow: 0 3px 28px rgba(12, 19, 25, 0.6);
  transition: opacity 0.3s var(--ease);
}
.hero__phone:hover { opacity: 0.82; }
.hero__phone small {
  font-family: var(--font-body);
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.hero__more { margin: 1.5rem 0 0; }
.hero__more .link-arrow {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
}
.hero__more .link-arrow:hover { color: var(--white); border-color: var(--white); }

.contact__sms {
  display: none;              /* a phone-only shortcut — see .is-touch below */
  font-family: var(--font-body);
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-top: 0.5rem;
}
.is-touch .contact__sms { display: block; }

.hero__cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.hero__cue::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0));
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 720px) {
  .hero__cue { display: none; }

  /* Stacked buttons of different widths look untidy — make them match */
  .hero__actions { display: grid; gap: 0.75rem; }
  .hero__actions .btn { width: 100%; }

  .hero__phone {
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 1.75rem;
  }
}

/* ==========================================================================
   Scroll-triggered reveals (used site-wide)
   ========================================================================== */

/* Scoped to .js so that if JavaScript fails to load, everything is simply
   visible rather than permanently invisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
/* Staggered children inside a grid */
.js .reveal-group > * { opacity: 0; transform: translateY(28px); }
.js .reveal-group.is-in > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.js .reveal-group.is-in > *:nth-child(2) { transition-delay: 0.1s; }
.js .reveal-group.is-in > *:nth-child(3) { transition-delay: 0.2s; }
.js .reveal-group.is-in > *:nth-child(4) { transition-delay: 0.3s; }
.js .reveal-group.is-in > *:nth-child(5) { transition-delay: 0.4s; }
.js .reveal-group.is-in > *:nth-child(6) { transition-delay: 0.5s; }

/* ==========================================================================
   Intro strip — the personal-brand line under the hero
   ========================================================================== */

.intro {
  text-align: center;
  padding-block: clamp(3.25rem, 7vw, 6rem);
}
.intro__text {
  /* A short measure is what makes a large display line readable — at 60ch the
     eye has to travel too far to find the start of the next line. About 26
     characters breaks this sentence into three short, scannable lines. */
  max-width: 26ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 500;          /* Cormorant at 400 is too fine at this size */
  line-height: 1.22;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
/* Brokerage attribution under the intro. Navy version of the supplied
   white artwork. */
.intro__brokerage {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.intro__brokerage p {
  margin: 0;
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-faint);
}
.intro__brokerage img {
  width: clamp(190px, 24vw, 290px);
  height: auto;
  opacity: 0.9;
}

.intro__support {
  max-width: 54ch;
  margin: 1.4rem auto 0;
  font-size: var(--step-body);
  color: var(--ink-muted);
}

.intro__meta {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  max-width: 62ch;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ==========================================================================
   Listing cards (active + sold)
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* Four-up, for the sold row. Explicit columns rather than auto-fill so four
   items never wrap to 3 + 1 and leave one stranded on its own line. */
.card-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Two-up. With auto-fill, two cards sat in a three-column grid and left a
   visible hole where the third would be. */
.card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .card-grid--two { grid-template-columns: 1fr; } }
@media (max-width: 1080px) { .card-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .card-grid--four { grid-template-columns: 1fr; } }

/* A card: a raised surface with the photo bleeding to its top corners.
   On navy it becomes dark glass; on white it is a white panel. */
.listing {
  display: flex;
  flex-direction: column;
  /* Frosted rather than solid, over the section's faint wash — that is what
     makes it read as glass instead of as a white rectangle. */
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border: 1px solid rgba(61, 107, 96, 0.45);
  border-radius: var(--radius);
  overflow: hidden;
  /* A bright inner top edge reads as the lit rim of a pane of glass; the two
     outer shadows give it a contact point and a soft ambient lift. */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85),
              0 2px 6px rgba(21, 33, 43, 0.07),
              0 22px 48px -16px rgba(21, 33, 43, 0.30);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
              border-color 0.5s var(--ease);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .listing { background: var(--white); }
}
.section--navy .listing {
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10),
              0 24px 50px -24px rgba(0, 0, 0, 0.55);
}

.listing:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95),
              0 6px 14px rgba(21, 33, 43, 0.10),
              0 44px 80px -20px rgba(21, 33, 43, 0.42);
}
.section--navy a.listing:hover {
  border-color: var(--accent-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16),
              0 36px 70px -26px rgba(0, 0, 0, 0.65);
}

.listing__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--wash);
}
.section--navy .listing__media { background: rgba(255, 255, 255, 0.05); }

.listing__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.listing:hover .listing__media img { transform: scale(1.05); }

/* Empty-state slot, used until real listings are loaded in */
.listing__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.7rem;
  text-align: center;
  padding: 1.5rem;
  color: var(--ink-faint);
}
.section--navy .listing__placeholder {
  border-color: var(--on-navy-line);
  color: var(--on-navy-muted);
}
.listing__placeholder svg { width: 30px; height: 30px; opacity: 0.55; }
.listing__placeholder span {
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Frosted chip sitting on the photo, so the image reads through it */
.listing__badge {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--navy);
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px -8px rgba(12, 19, 25, 0.5);
}
.listing__badge--sold {
  background: rgba(12, 19, 25, 0.55);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.listing__body {
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.listing__price {
  font-family: var(--font-display);
  font-size: var(--step-md);
  letter-spacing: -0.005em;
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
  margin: 0 0 0.35rem;
}
.listing__addr {
  font-size: var(--step-sm);
  color: var(--ink-muted);
  margin: 0 0 0.9rem;
}
.section--navy .listing__addr { color: var(--on-navy-muted); }

.listing__blurb {
  font-size: var(--step-sm);
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 1.1rem;
}
.section--navy .listing__blurb { color: var(--on-navy-muted); }

.listing__cta { margin: 1.1rem 0 0; }

.listing__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.9rem;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.section--navy .listing__specs {
  color: var(--on-navy-muted);
  border-color: var(--on-navy-line);
}

/* ==========================================================================
   Video section — one feature, thumbnails beneath
   ========================================================================== */

.video-feature {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-deep);
  box-shadow: var(--shadow-lg);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.video-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.video-feature img,
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.9s var(--ease), opacity 0.5s var(--ease);
}
.video-feature:hover img,
.video-thumb:hover img { transform: scale(1.04); opacity: 0.85; }

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.video-play span {
  width: clamp(60px, 7vw, 88px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--accent-light);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
              0 14px 34px -12px rgba(12, 19, 25, 0.7);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.video-feature:hover .video-play span,
.video-thumb:hover .video-play span { background: rgba(255,255,255,0.3); transform: scale(1.06); }
.video-play svg { width: 22%; fill: var(--white); margin-left: 8%; }

.video-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: linear-gradient(to top, rgba(12,19,25,0.88), rgba(12,19,25,0));
  color: var(--white);
}
.video-caption h3 { font-size: var(--step-md); margin: 0 0 0.2rem; }
.video-caption p {
  margin: 0;
  font-size: var(--step-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.video-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-deep);
  box-shadow: var(--shadow);
  display: block;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.video-thumb:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-thumb .video-caption { padding: 1rem; }
.video-thumb .video-caption h3 { font-size: 1.05rem; }

/* ==========================================================================
   Contact box — appears at the bottom of every page
   ========================================================================== */

.contact {
  background: var(--navy);
  color: var(--on-navy);
  position: relative;
  overflow: hidden;
}
/* A soft lift behind the form, so the glass panel has something to sit on */
.contact::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 65%);
  pointer-events: none;
}
.contact .wrap { position: relative; }

/* The form sits on frosted dark glass */
.contact .form {
  background: var(--glass-dark);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
              0 30px 70px -30px rgba(0, 0, 0, 0.6);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}

.contact__title { font-size: var(--step-xl); margin-bottom: 1.25rem; }
.contact__direct {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--on-navy-line);
}
.contact__direct dt {
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.3rem;
}
.contact__direct dd {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: var(--step-md);
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
}
.contact__direct dd:last-child { margin-bottom: 0; }
.contact__direct a { transition: opacity 0.3s var(--ease); }
.contact__direct a:hover { opacity: 0.75; }

.form { display: grid; gap: 1.35rem; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.55rem; }
.field label {
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--on-navy-line);
  border-radius: 0;
  padding: 0.7rem 0;
  transition: border-color 0.35s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.32); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent-light); }

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.form__note {
  font-size: var(--step-xs);
  color: var(--on-navy-muted);
  max-width: 34ch;
  line-height: 1.5;
}

.form__status {
  font-size: var(--step-sm);
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--on-navy-line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  display: none;
}
.form__status.is-visible { display: block; }
.form__status.is-ok { border-color: rgba(255,255,255,0.6); }
.form__status.is-error { border-color: #e2a3a3; color: #ffd9d9; }

/* Honeypot — invisible to people, catches bots */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

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

.footer {
  background: var(--navy-deep);
  color: var(--on-navy-muted);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  font-size: var(--step-sm);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.7fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 820px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

.footer__logo {
  height: clamp(58px, 9vw, 96px);
  width: auto;
  margin-bottom: 1.75rem;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: var(--step-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1.15rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer a { transition: color 0.3s var(--ease); }
.footer a:hover { color: var(--white); }

.footer__bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--step-xs);
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}
.footer__brokerage {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer__brokerage img { height: 40px; width: auto; opacity: 0.9; }
.footer__legal { max-width: 62ch; }

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal, .js .reveal-group > * { opacity: 1 !important; transform: none !important; }
  .hero__img { transform: scale(1.06) !important; }
}

/* ==========================================================================
   LISTING PRESENTATION — the slideshow "player"
   Behaves like a video: auto-advances, has a scrubber, play/pause and
   chapter markers. Every slide is real text in the page, so search engines
   and screen readers get the whole presentation whether it plays or not.
   ========================================================================== */

.deck {
  position: relative;
  background: var(--navy-deep);
  color: var(--on-navy);
  overflow: hidden;
  isolation: isolate;
  /* Fills the screen under the fixed nav, but never gets so short on a
     landscape phone that the type collides. */
  height: calc(100svh - var(--nav-h));
  min-height: 560px;
  /* Sits below the fixed nav rather than under it, so the chapter bars along
     the deck's top edge are not hidden behind the menu. */
  margin-top: var(--nav-h);
  --surface: var(--glass-dark);
  --surface-border: var(--glass-dark-border);
}

.deck__stage {
  position: absolute;
  inset: 0;
}

/* ---- One slide ---------------------------------------------------------- */

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  /* `safe` keeps a slide that is taller than the screen from centring itself
     and spilling off the top behind the nav — it falls back to top-aligned
     and scrolls instead. Without this the first line of a long slide is
     simply cut off, with no way to reach it. */
  align-content: safe center;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Bottom padding clears the player bar (~82px) with room to spare, so the
     final item on a long slide is reachable rather than sitting under it. */
  padding: clamp(3.5rem, 7vh, 5rem) var(--gutter) clamp(7rem, 12vh, 8.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slide__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

/* Background photo with a slow push-in, so a still frame feels like footage */
.slide__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.slide__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.slide.is-active .slide__bg img {
  animation: kenburns 12s linear forwards;
}
@keyframes kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.16); }
}
.slide__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 80% at 50% 50%, rgba(12,19,25,0.62) 0%, rgba(12,19,25,0.80) 60%, rgba(12,19,25,0.92) 100%);
}

/* ---- Slide typography --------------------------------------------------- */

.slide__eyebrow {
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 0 0 1.1rem;
}

.slide__title {
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  line-height: 1.02;
  color: var(--white);
  margin: 0 0 1.25rem;
  max-width: 20ch;
}
.slide--centre .slide__title,
.slide--centre .slide__eyebrow,
.slide--centre .slide__lede { max-width: none; text-align: center; }
.slide--centre { justify-items: center; text-align: center; }

.slide__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  max-width: 52ch;
  margin: 0;
}

/* Each slide's contents rise in once the slide becomes active — this is what
   makes the deck read as motion rather than a stack of static pages. */
.js .slide__anim > * {
  opacity: 0;
  transform: translateY(20px);
}
.js .slide.is-active .slide__anim > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .slide.is-active .slide__anim > *:nth-child(2) { transition-delay: 0.12s; }
.js .slide.is-active .slide__anim > *:nth-child(3) { transition-delay: 0.24s; }
.js .slide.is-active .slide__anim > *:nth-child(4) { transition-delay: 0.36s; }
.js .slide.is-active .slide__anim > *:nth-child(5) { transition-delay: 0.48s; }

/* Buttons on a slide. Matched width so a stacked pair does not look ragged,
   and a real gap above so they never crowd the copy. */
.slide__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
}
.slide__actions .btn { min-width: 15rem; }

@media (max-width: 620px) {
  .slide__actions { display: grid; grid-auto-flow: row; gap: 0.75rem; }
  .slide__actions .btn { width: 100%; min-width: 0; }
}

/* ---- Infographic pieces used across slides ------------------------------ */

/* The one enormous number on the reach slide */
.stat-hero {
  font-family: var(--font-display);
  font-size: clamp(4rem, 13vw, 10rem);
  line-height: 0.9;
  color: var(--accent-light);
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
  margin: 0;
}
.stat-hero small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 1rem;
}

/* Row of supporting points */
.point-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(1.75rem, 4vh, 3rem);
}
.point {
  background: var(--glass-dark);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}
.point__n {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent-light);
  font-variant-numeric: lining-nums;
  display: block;
  margin-bottom: 0.4rem;
}
.point h3 {
  font-family: var(--font-body);
  font-size: var(--step-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 0.5rem;
}
.point p {
  font-size: var(--step-sm);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

/* Numbered checklist, accent rules between rows */
/* Held to a readable measure rather than the full slide, so the rules do not
   run out across the bright side of a background photo. */
.spec-list {
  list-style: none;
  margin: clamp(1.5rem, 3vh, 2.5rem) 0 0;
  padding: 0;
  max-width: 46ch;
}
.spec-list li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(0.75rem, 1.6vh, 1.1rem) 0;
  border-top: 1px solid rgba(143, 163, 184, 0.35);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  color: var(--white);
}
.spec-list li:last-child { border-bottom: 1px solid rgba(143, 163, 184, 0.35); }
.spec-list .spec-list__i {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--accent-light);
  color: var(--accent-light);
}
.spec-list .spec-list__i svg { width: 18px; height: 18px; }

/* Photo mosaic for the photography slide */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(90px, 16vh, 150px);
  gap: clamp(0.5rem, 1.2vw, 0.9rem);
  margin-top: clamp(1.5rem, 3.5vh, 2.5rem);
}
.mosaic img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.mosaic > *:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic > *:nth-child(4) { grid-column: span 2; }
@media (max-width: 760px) {
  .mosaic {
    grid-template-columns: repeat(2, 1fr);
    /* Shorter rows so the mosaic clears the player bar on a phone */
    grid-auto-rows: clamp(74px, 11vh, 110px);
  }
  .mosaic > *:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .mosaic > *:nth-child(4) { grid-column: span 2; }
}

/* Split layout: words one side, picture the other */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: center;
}
.split__media img {
  width: 100%;
  height: auto;              /* else the HTML height attribute wins */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .split__media { display: none; }
}

/* Compact sold row for use inside a slide */
.deck-solds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  margin-top: clamp(1.5rem, 3.5vh, 2.5rem);
}
.deck-sold img {
  width: 100%;
  height: auto;              /* else the HTML height attribute wins */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-lg);
}
.deck-sold p { margin: 0; }
.deck-sold__price {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.9vw, 1.6rem);
  color: var(--accent-light);
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
}
.deck-sold__addr {
  font-size: var(--step-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.66);
  margin-top: 0.2rem;
}
@media (max-width: 720px) {
  .deck-solds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deck-solds > *:nth-child(n+3) { display: none; }
}

/* The wordmark is roughly 4:1, so it needs far more width than a square
   badge would. It already ships white, so no filter is needed. */
.deck__logo { width: clamp(260px, 36vw, 440px); margin: 0 auto 2.25rem; }
.deck__logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(12, 19, 25, 0.55));
}

/* On a phone the deck has roughly half the height and a third of the width,
   so the same content has to be noticeably tighter to fit a single screen. */
@media (max-width: 760px) {
  .slide {
    padding: clamp(2rem, 5vh, 3rem) var(--gutter) clamp(7rem, 13vh, 8.5rem);
  }
  .slide__title { font-size: clamp(1.8rem, 7.5vw, 2.4rem); margin-bottom: 0.9rem; }
  .slide__lede  { font-size: 1rem; line-height: 1.5; }
  .slide__eyebrow { margin-bottom: 0.7rem; }
  .point-row { gap: 0.6rem; margin-top: 1.25rem; }
  .point { padding: 0.85rem 1rem; border-radius: var(--radius-sm); }
  .point h3 { margin-bottom: 0.25rem; }
  .point p { font-size: 0.9rem; line-height: 1.45; }
  .spec-list li { font-size: 1rem; padding: 0.6rem 0; gap: 0.9rem; }
  .spec-list .spec-list__i { width: 32px; height: 32px; }
  .stat-hero { font-size: clamp(3rem, 16vw, 4.5rem); }
}

/* ---- Player chrome ------------------------------------------------------ */

/* Chapter bars along the top, like a story */
.deck__track {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  gap: 4px;
  padding: 0.9rem var(--gutter) 0;
}
.deck__seg {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.deck__seg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-light);
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
}
.deck__seg:hover { background: rgba(255, 255, 255, 0.4); }

.deck__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem var(--gutter) 1.4rem;
  background: linear-gradient(to top, rgba(12,19,25,0.85), rgba(12,19,25,0));
}

.deck__btn {
  width: 44px; height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-dark-border);
  background: var(--glass-dark);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.deck__btn:hover { background: rgba(255,255,255,0.18); border-color: var(--accent-light); }
.deck__btn svg { width: 16px; height: 16px; fill: currentColor; }
.deck__btn .i-pause { display: none; }
.deck.is-playing .deck__btn--play .i-play  { display: none; }
.deck.is-playing .deck__btn--play .i-pause { display: block; }

.deck__label {
  flex: 1;
  min-width: 0;
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deck__count {
  font-size: var(--step-xs);
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
  flex: none;
}

@media (max-width: 620px) {
  .deck__label { display: none; }
}

/* Big invisible tap zones, so a phone works like a story */
.deck__tap {
  position: absolute;
  top: 3rem; bottom: 5rem;
  width: 28%;
  z-index: 4;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.deck__tap--prev { left: 0; }
.deck__tap--next { right: 0; }

/* Anyone who prefers less motion gets the deck as a plain stack of sections */
@media (prefers-reduced-motion: reduce) {
  .deck { height: auto; min-height: 0; }
  .deck__stage { position: static; }
  .slide {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-height: 70vh;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .slide.is-active .slide__bg img { animation: none; }
  .deck__track, .deck__bar, .deck__tap { display: none; }
}

/* ==========================================================================
   White cards on a dark section
   The dark block stays as the backdrop, but the card itself is white with
   dark type — the same card as on a white section, just sitting on colour.
   Pair with .section--navy (or .section--green) in the HTML.
   ========================================================================== */

.section--cards-white .listing {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(61, 107, 96, 0.55);
  color: var(--ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 4px 10px rgba(4, 9, 13, 0.28),
              0 30px 60px -24px rgba(4, 9, 13, 0.55);
}
.section--cards-white a.listing:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(4, 9, 13, 0.34),
              0 44px 80px -26px rgba(4, 9, 13, 0.62);
}
.section--cards-white .listing__media   { background: var(--wash); }
.section--cards-white .listing__price   { color: var(--ink); }
.section--cards-white .listing__addr    { color: var(--ink-muted); }
.section--cards-white .listing__blurb   { color: var(--ink-muted); }
.section--cards-white .listing__specs   { color: var(--ink-faint); border-color: var(--line); }
.section--cards-white .listing__placeholder { color: var(--ink-faint); }

/* ==========================================================================
   ALL-DARK PAGE (About)
   The base colour goes on the body, not just the sections, so nothing white
   shows between them or under an over-scroll bounce.
   ========================================================================== */

body.is-dark {
  background: var(--navy);
  color: var(--on-navy);
}

/* The bar has to invert too — a white bar on an all-dark page reads as a
   mistake rather than as chrome. */
.nav--dark.is-solid {
  background: rgba(21, 33, 43, 0.72);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08),
              0 12px 32px -18px rgba(0, 0, 0, 0.6);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav--dark.is-solid { background: var(--navy); }
}
.nav--dark.is-solid .nav__logo img.is-white { opacity: 1; }
.nav--dark.is-solid .nav__logo img.is-navy  { opacity: 0; }
.nav--dark.is-solid .nav__link { color: var(--on-navy-muted); text-shadow: none; }
.nav--dark.is-solid .nav__link:hover,
.nav--dark.is-solid .nav__link[aria-current='page'] { color: var(--white); }
.nav--dark.is-solid .nav__toggle span,
.nav--dark.is-solid .nav__toggle span::before,
.nav--dark.is-solid .nav__toggle span::after { background: var(--white); }
.nav--dark .nav__portrait { border-color: rgba(255, 255, 255, 0.85); }

@media (max-width: 940px) {
  .nav--dark .nav__links {
    background: rgba(21, 33, 43, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }
  .nav--dark .nav__link { color: var(--on-navy) !important; border-bottom-color: rgba(255,255,255,0.12); }
}

/* ---- Portrait and introduction ------------------------------------------ */

.bio {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .bio { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* The studio backdrop is dark charcoal, so rather than boxing the photo in a
   frame its edges are faded into the page and it sits in the same space. */
.bio__portrait img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 45%, #000 55%, transparent 100%);
          mask-image: radial-gradient(120% 100% at 50% 45%, #000 55%, transparent 100%);
}

.bio__name {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  color: var(--white);
  margin: 0 0 1.5rem;
}
.bio__lede {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  color: var(--white);
  margin: 0 0 1.75rem;
}
.bio__role {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--on-navy-line);
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
}

/* Heading in one column, prose in the other. A single narrow column of text on
   a wide dark page leaves most of the screen empty. */
.bio-block {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) {
  .bio-block { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---- Prose -------------------------------------------------------------- */

.prose {
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
}
.prose p + p { margin-top: 1.3em; }
.prose strong { color: var(--white); font-weight: 600; }

.pull {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.25;
  color: var(--white);
  max-width: 22ch;
  margin: 0;
  padding-left: clamp(1.25rem, 2.5vw, 2rem);
  border-left: 2px solid var(--accent-light);
}

/* ---- Timeline ----------------------------------------------------------- */

.timeline {
  display: grid;
  /* Explicit columns: six items under auto-fit landed as five plus one
     stranded on its own row. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 720px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .timeline { grid-template-columns: 1fr; } }
.timeline > div {
  padding-top: 1.1rem;
  border-top: 1px solid var(--accent-light);
}
.timeline dt {
  font-size: var(--step-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.45rem;
}
.timeline dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-md);
  line-height: 1.25;
  color: var(--white);
}

/* ==========================================================================
   BLOG
   ========================================================================== */

.wrap--narrow { max-width: 820px; }

/* Prose on a white page — the .prose base is written for the dark About page */
.prose--light { color: var(--ink-muted); }
.prose--light h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--ink);
  margin: 2.2em 0 0.7em;
}
.prose--light strong { color: var(--ink); }

.post { padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vh, 4.5rem)); }

.post__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 1rem;
  text-wrap: balance;
}
.post__meta {
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}
.post__media {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.post__media img { width: 100%; height: auto; }
.post__back { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* Index cards reuse the listing card, with the type set for reading */
.post-card__date {
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.5rem;
}
.post-card__title {
  font-size: var(--step-md);
  line-height: 1.2;
  margin: 0 0 0.7rem;
}
.post-card .listing__media { aspect-ratio: 3 / 2; }

/* ==========================================================================
   CONTACT — split screen, two chat panels
   Left is light and reaches Leigh's phone; right is dark and answers market
   questions. On a phone they become tabs rather than two squeezed columns.
   ========================================================================== */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100svh - var(--nav-h));
  margin-top: var(--nav-h);
}
@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; min-height: 0; }
}

.panel {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.75rem) clamp(1.25rem, 3vw, 3rem);
  min-width: 0;
}
.panel--light { background: var(--white); color: var(--ink); }
.panel--dark  {
  background: var(--navy);
  color: var(--on-navy);
  --surface: var(--glass-dark);
  --surface-border: var(--glass-dark-border);
}

.panel__head { flex: none; padding-bottom: 1.5rem; }
.panel__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0 0 0.6rem; }
.panel--dark .panel__title { color: var(--white); }
.panel__intro {
  font-size: var(--step-sm);
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
  max-width: 46ch;
}
.panel--dark .panel__intro { color: var(--on-navy-muted); }

/* ---- Thread -------------------------------------------------------------- */

.thread {
  flex: 1;
  min-height: clamp(260px, 42vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.5rem 0 1.25rem;
}

/* While the thread is empty its one line sits in the middle of the space,
   which is what an untouched chat panel should look like. */
.thread:has(.thread__empty) { justify-content: center; }

/* The empty state carries the weight — an LLM chat is mostly space */
.thread__empty {
  /* Vertical centring is done by justify-content on the thread, not by an
     auto margin: the base reset's `p:last-child { margin-bottom: 0 }` is more
     specific than this rule, so `margin: auto` left only the top margin auto
     and it swallowed the whole space, pinning the line to the bottom. */
  margin: 0 auto;
  align-self: center;
  text-align: center;
  max-width: 30ch;
  font-size: var(--step-sm);
  color: var(--ink-faint);
}
.panel--dark .thread__empty { color: var(--on-navy-muted); }

.msg {
  max-width: 85%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: var(--step-sm);
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg--out {
  align-self: flex-end;
  background: var(--navy);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.panel--dark .msg--out { background: var(--white); color: var(--navy); }
.msg--in {
  align-self: flex-start;
  background: var(--wash);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.panel--dark .msg--in {
  background: var(--glass-dark);
  border-color: var(--glass-dark-border);
  color: var(--on-navy);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
/* Notices from the page itself, not from a person */
.msg--system {
  align-self: center;
  max-width: 100%;
  background: transparent;
  border: 1px dashed var(--line-strong);
  color: var(--ink-muted);
  font-size: var(--step-xs);
  text-align: center;
}
.panel--dark .msg--system { border-color: var(--on-navy-line); color: var(--on-navy-muted); }
.msg--error { border-color: #c2726f; color: #8d3f3c; }
.panel--dark .msg--error { border-color: #e2a3a3; color: #ffd9d9; }

.msg__state {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.62;
}

/* Three dots while waiting */
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: typing 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30%           { opacity: 0.9;  transform: translateY(-3px); }
}

/* ---- Composer ------------------------------------------------------------ */

.composer {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  padding: 0.6rem 0.6rem 0.6rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.composer:focus-within { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.panel--dark .composer {
  background: var(--glass-dark);
  border-color: var(--glass-dark-border);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.panel--dark .composer:focus-within { border-color: var(--accent-light); }

.composer textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  resize: none;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: inherit;
  padding: 0.55rem 0;
  max-height: 8rem;
}
.composer textarea:focus { outline: none; }
.composer textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
/* The placeholder itself carries the "why" when the panel is locked, so it
   needs to read clearly rather than fade to nothing. */
.composer textarea:disabled::placeholder { color: var(--ink-muted); opacity: 1; }
.panel--dark .composer textarea:disabled::placeholder { color: rgba(255, 255, 255, 0.65); }
.composer textarea::placeholder { color: var(--ink-faint); }
.panel--dark .composer textarea::placeholder { color: rgba(255, 255, 255, 0.4); }

.composer__send {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s var(--ease), opacity 0.3s var(--ease);
}
.composer__send:hover { background: var(--navy-soft); }
.composer__send:disabled { opacity: 0.4; cursor: default; }
.panel--dark .composer__send { background: var(--white); color: var(--navy); }
.composer__send svg { width: 18px; height: 18px; fill: currentColor; }

/* The left panel's note is one line, the right panel's disclaimer is two —
   left unreserved, that difference pushes the two composers to different
   heights above them (the thread's flex:1 soaks up the gap, so whatever
   sits below the composer sets its position). Both share a floor height so
   the composers land on the same line regardless of which note is longer. */
.composer__hint,
.disclaimer {
  flex: none;
  box-sizing: border-box;
  min-height: 3.4rem;
  margin: 0.75rem 0 0;
}

.composer__hint {
  font-size: var(--step-xs);
  color: var(--ink-faint);
}
.panel--dark .composer__hint { color: var(--on-navy-muted); }

/* Always visible, never behind a click */
.disclaimer {
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--on-navy-muted);
  border-top: 1px solid var(--on-navy-line);
  padding-top: 0.75rem;
}

/* Inline follow-up capture when nobody has replied */
.followup { display: grid; gap: 0.6rem; margin-top: 0.75rem; }
.followup input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.followup input:focus { outline: none; border-color: var(--accent); }

/* ---- Mobile tabs --------------------------------------------------------- */

.duo__tabs {
  display: none;
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.duo__tabs button {
  flex: 1;
  padding: 1rem 0.75rem;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.duo__tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

@media (max-width: 900px) {
  .duo__tabs { display: flex; margin-top: var(--nav-h); }
  .duo { margin-top: 0; }
  .panel { min-height: calc(100svh - var(--nav-h) - 56px); }
  .panel[hidden] { display: none; }
}

/* ==========================================================================
   PROPERTY SEARCH
   Filter bar + results grid. Built so a live MLS feed can replace the
   fallback data later without touching this CSS or the card markup at
   all — see assets/js/property-search.js and IDX-CONTRACTS.md.
   ========================================================================== */

.search-hero { padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vh, 4rem)); }

/* ---- Status banner --------------------------------------------------------
   Honest, not alarming: explains the search is running on Leigh's own
   listings until a live feed is connected. Swapped for nothing (removed)
   once IDX_SEARCH_WEBHOOK is configured — see property-search.js. */
.idx-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  padding: 0.9rem 1.25rem;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--step-sm);
  color: var(--ink-muted);
}
.idx-banner strong { color: var(--ink); font-weight: 600; }

/* ---- Filter bar ------------------------------------------------------- */

.filters {
  background: var(--glass-light);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .filters { background: var(--white); }
}

.filters__main {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.filters__search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0 0.9rem;
  transition: border-color 0.3s var(--ease);
}
.filters__search:focus-within { border-color: var(--accent); }
.filters__search svg { flex: none; width: 18px; height: 18px; color: var(--ink-faint); }
.filters__search input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 0;
  color: var(--ink);
  min-width: 0;
}
.filters__search input:focus { outline: none; }
.filters__search input::placeholder { color: var(--ink-faint); }

.filters__refine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-right: auto;
}
.chip {
  font-family: var(--font-body);
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--accent-surface);
  border-color: var(--accent-surface);
  color: var(--white);
}

.filters__select {
  font-family: var(--font-body);
  font-size: var(--step-xs);
  font-weight: 600;
  color: var(--ink);
  background: var(--white) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%234e6880"><path d="M5.5 7.5l4.5 4.5 4.5-4.5"/></svg>') no-repeat right 0.7rem center / 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.6rem 2rem 0.6rem 0.85rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.filters__select:focus { outline: none; border-color: var(--accent); }

.filters__submit { flex: none; }

/* ---- Results header ----------------------------------------------------- */

.results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.results-head__count {
  font-family: var(--font-display);
  font-size: var(--step-md);
  color: var(--ink);
  margin: 0;
}
.results-head__count strong { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }
.results-head__tools { display: flex; align-items: center; gap: 0.75rem; }

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.view-toggle button {
  font-family: var(--font-body);
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  background: var(--white);
  border: 0;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}
.view-toggle button + button { border-left: 1px solid var(--line-strong); }
.view-toggle button.is-active { background: var(--navy); color: var(--white); }
.view-toggle button:disabled {
  color: var(--ink-faint);
  cursor: not-allowed;
  background: var(--wash);
}

/* ---- Results grid --------------------------------------------------------
   Same .listing card as the homepage, in a grid that scales with however
   many results there are rather than a fixed column count. */
.card-grid--search {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.results-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1rem;
  color: var(--ink-muted);
}
.results-empty p:first-child {
  font-family: var(--font-display);
  font-size: var(--step-lg);
  color: var(--ink);
  margin: 0 0 0.6rem;
}

/* ---- MLS attribution -----------------------------------------------------
   Placeholder until CREN provides the exact required wording — see
   IDX-CONTRACTS.md. Left visible rather than hidden so it is never
   forgotten when the real feed goes live. */
.idx-disclaimer {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--step-xs);
  line-height: 1.7;
  color: var(--ink-faint);
}

/* ==========================================================================
   Lead-gen additions: intent tiles, area cards, richer form, mobile call bar
   ========================================================================== */

picture { display: contents; }

/* The line under the wordmark is now the page's h1 — keep the look of the
   paragraph it replaced. */
h1.hero__sub { font-family: var(--font-body); line-height: 1.35; }

/* ---- Where do you want to start? ---------------------------------------- */
.path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (max-width: 1000px) { .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .path-grid { grid-template-columns: 1fr; } }

.path,
.area {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), var(--shadow);
  color: var(--ink);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.path:hover,
.area:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), var(--shadow-lg);
}
.path:focus-visible,
.area:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.path svg {
  width: 2.1rem; height: 2.1rem;
  fill: none; stroke: var(--accent); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 0.4rem;
}
.path h3,
.area h3 { font-size: var(--step-md); margin: 0; }
.path p,
.area p { margin: 0; color: var(--ink-muted); font-size: var(--step-sm); line-height: 1.6; flex: 1; }
.path .link-arrow,
.area .link-arrow { align-self: flex-start; margin-top: 0.6rem; }

/* ---- Areas ----------------------------------------------------------------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 1000px) { .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .area-grid { grid-template-columns: 1fr; } }
.area { background: var(--wash); border-top: 2px solid var(--accent); }
.area-note { margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; color: var(--ink-muted); text-align: center; }

/* ---- Form: select menus, optional tags, fine print ------------------------ */
.field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid var(--on-navy-line);
  border-radius: 0;
  padding: 0.7rem 1.6rem 0.7rem 0;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238fa3b8' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  transition: border-color 0.35s var(--ease);
}
.field select:focus { outline: none; border-color: var(--accent-light); }
.field select:invalid { color: rgba(255,255,255,0.45); }
.field select option { color: var(--navy); background: var(--white); }
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible { border-color: var(--white); }
.field__opt {
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  opacity: 0.7;
  margin-left: 0.35rem;
}
.form__fine {
  font-size: var(--step-xs);
  line-height: 1.55;
  color: var(--on-navy-muted);
  max-width: 62ch;
  margin: 0;
}
.form__fine a { text-decoration: underline; text-underline-offset: 3px; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---- Blog post: closing call to action and related reading ------------------ */
.post__cta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--wash);
  border: 1px solid var(--surface-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.post__cta h2 { font-size: var(--step-md); margin: 0 0 0.6rem; }
.post__cta p { margin: 0 0 1.25rem; color: var(--ink-muted); }
.post__cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.post__related { margin-top: clamp(2rem, 4vw, 3rem); }
.post__related h2 { font-size: var(--step-md); margin: 0 0 0.9rem; }
.post__related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }

/* ---- Phone-only call / message bar ------------------------------------------ */
.cta-bar { display: none; }
@media (max-width: 820px) {
  .cta-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(12, 19, 25, 0.88);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-top: 1px solid rgba(255,255,255,0.12);
    transform: translateY(110%);
    transition: transform 0.4s var(--ease);
  }
  .cta-bar.is-on { transform: none; }
  .cta-bar .btn { width: 100%; padding-block: 0.85rem; }
  body.has-cta-bar .footer { padding-bottom: calc(2.5rem + 4.5rem); }
}

/* The dedicated contact page starts straight under the bar */
.contact--page { padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)); }

/* On shorter screens the "scroll" cue lands on top of the View Listings link */
@media (max-height: 960px) { .hero__cue { display: none; } }

#start .section-head__text,
#areas .section-head__text { max-width: 42rem; }
.contact .lede { color: var(--on-navy-muted); }

/* ---- Contact page: form first, the two conversation panels below ---------- */
.duo-intro {
  background: var(--wash);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
}
.duo-intro .wrap { max-width: 46rem; }
.duo-intro__title { font-size: var(--step-xl, clamp(1.9rem, 3.4vw, 2.8rem)); margin: 0 0 0.75rem; }
.duo-intro .lede { color: var(--ink-muted); margin-inline: auto; }
.duo--below { margin-top: 0; min-height: 0; }
/* One panel only (assistant parked): centre it instead of leaving half the row empty */
.duo--solo { grid-template-columns: minmax(0, 44rem); justify-content: center; }

@media (max-width: 900px) {
  .duo-intro { text-align: left; padding-bottom: 1.25rem; }
  .duo__tabs { margin-top: 0; top: var(--nav-h); }
  .duo--below .panel { min-height: 32rem; }
}
.duo--below .panel__intro { max-width: 36rem; }
.duo--below .panel { min-height: 28rem; }
