/* ==========================================================================
   NPM Residential — Design System
   ========================================================================== */

:root {
  /* Color palette */
  --color-navy-950: #0b1729;
  --color-navy-900: #10233f;
  --color-navy-800: #17304f;
  --color-navy-700: #223f65;
  --color-ink: #1c2430;
  --color-ink-soft: #4b5563;
  --color-cream: #f7f4ee;
  --color-cream-dark: #efe9df;
  --color-white: #ffffff;
  --color-brass: #b8925a;
  --color-brass-light: #d9b98a;
  --color-brass-dark: #93713e;
  --color-line: #e3ddd0;

  /* Semantic */
  --bg-body: var(--color-cream);
  --bg-surface: var(--color-white);
  --text-primary: var(--color-ink);
  --text-muted: var(--color-ink-soft);
  --text-inverse: var(--color-white);
  --brand-primary: var(--color-navy-900);
  --brand-accent: var(--color-brass);

  /* Type */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 63, 0.06), 0 1px 3px rgba(16, 35, 63, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 35, 63, 0.10);
  --shadow-lg: 0 20px 48px rgba(16, 35, 63, 0.16);
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Native smooth scrolling is left off on purpose: Lenis drives the page now,
   and the two fight each other — the browser's own easing fires at the same
   time as Lenis', and the page stutters. It stays on for anyone with reduced
   motion enabled, where Lenis bows out entirely. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: smooth; }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, svg { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-navy-900);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.75rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 500; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { color: var(--text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--brand-accent);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section { padding-block: var(--space-7); }
.section--tight { padding-block: var(--space-6); }
.section--navy { background: var(--color-navy-900); color: var(--text-inverse); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--text-inverse); }
.section--navy p { color: rgba(255,255,255,0.72); }
.section--cream-dark { background: var(--color-cream-dark); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-5);
}
.section-head.center { margin-inline: auto; text-align: center; }
.heading-underline {
  display: block;
  width: 56px;
  height: 3px;
  margin: 0.85rem auto 0;
  background: var(--brand-accent);
  border-radius: 2px;
}

.grid {
  display: grid;
  gap: var(--space-4);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--brand-accent);
  color: var(--color-navy-950);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-brass-light); box-shadow: var(--shadow-md); }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--text-inverse);
}
.btn--outline:hover { border-color: var(--text-inverse); background: rgba(255,255,255,0.08); }

.btn--dark {
  background: var(--color-navy-900);
  color: var(--text-inverse);
}
.btn--dark:hover { background: var(--color-navy-800); }

.btn--ghost {
  background: transparent;
  border-color: var(--color-line);
  color: var(--color-navy-900);
}
.btn--ghost:hover { border-color: var(--brand-accent); color: var(--color-brass-dark); }

.btn--block { width: 100%; }

/* ---------- Header ---------- */
/* A floating "island": the <header> is only a transparent positioning wrapper,
   and the pill you actually see is the inner bar. Keeping the visual on the
   inner element means it inherits the container's max-width and centring, so
   the pill sits off the edges of the window at every size. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: clamp(8px, 1vw, 14px);
  padding-inline: clamp(10px, 2.2vw, 28px);
}
/* Fixed, not sticky, on pages that open with a full-bleed image, so the photo
   runs to the very top of the window underneath the island. */
.site-header.is-overlay {
  position: fixed;
  left: 0;
  right: 0;
}

.site-header__bar {
  /* Three columns with equal outer cells, so the links sit on the bar's true
     centre. With flexbox they were centred in the leftover space between the
     logo and the phone/CTA group, which are different widths — that pushed
     them off-centre. */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  position: relative;
  z-index: 1;
  padding-block: 0.6rem;
  padding-inline: clamp(1rem, 1.8vw, 1.9rem);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  /* Frosted rather than solid: the page shows through the blue, and the blur
     keeps whatever scrolls underneath from reading as clutter behind the
     links. The blue is a touch deeper than the footer's #0b509b — at this
     little coverage the brand blue left white text under the 4.5:1 contrast
     minimum over a pale page, and going deeper buys the transparency back. */
  background: rgba(9, 68, 127, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 16px 38px rgba(9, 68, 127, 0.24);
  /* Slow, so the island settles as you scroll instead of snapping. Spelled out
     rather than using --transition, which is the site's 220ms button timing
     and far too quick to read as a fade here. */
  transition: background 600ms ease, box-shadow 600ms ease, backdrop-filter 600ms ease, border-color 600ms ease;
}
.site-header.is-scrolled .site-header__bar {
  background: rgba(9, 68, 127, 0.8);
  box-shadow: 0 20px 44px rgba(9, 68, 127, 0.32);
}
/* Over a hero the island starts sheer so the photo reads through it, then
   gains body once you scroll away from the top. */
.site-header.is-overlay .site-header__bar {
  background: rgba(9, 68, 127, 0.34);
  backdrop-filter: blur(10px) saturate(1.2);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 34px rgba(11, 23, 41, 0.26);
}
.site-header.is-overlay.is-scrolled .site-header__bar {
  background: rgba(9, 68, 127, 0.8);
  backdrop-filter: blur(16px) saturate(1.4);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 44px rgba(9, 68, 127, 0.32);
}
/* With the menu open the panel below is solid, so the pill squares off its
   bottom corners to join it into one shape. */
.site-header.is-open .site-header__bar {
  background: rgba(9, 68, 127, 0.96);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}
.site-header__bar .brand { justify-self: start; }
.site-header__bar .nav__cta,
.site-header__bar .nav-toggle { justify-self: end; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-navy-900);
}
.brand__logo {
  display: block;
  height: 60px;
  width: auto;
}
.site-header .brand { color: var(--color-cream); }
.site-header .brand__logo {
  /* Smaller than it was as a full-width bar: the logo sets the island's
     height, and at 76px the pill came out chunky rather than trim. */
  height: 54px;
  align-self: center;
  filter: brightness(0) invert(1);
}
.site-header .btn--dark {
  background: var(--color-cream);
  color: #0b509b;
}
.site-header .btn--dark:hover { background: var(--color-white); }
.site-footer .brand__logo { height: 76px; margin-left: -11px; filter: brightness(0) invert(1); }

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-weight: 500;
  font-size: 1.3rem;
}
.nav__links a {
  position: relative;
  padding-block: 0.3rem;
  color: var(--color-cream);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--brand-accent);
  transition: right var(--transition);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { right: 0; }
.nav__links a[aria-current="page"] { color: var(--color-brass-light); }

.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  white-space: nowrap;
}
.nav__phone {
  position: relative;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-cream);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-block: 0.3rem;
  white-space: nowrap;
}
.nav__phone::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--brand-accent);
  transition: right var(--transition);
}
.nav__phone:hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-cream);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Between the phone breakpoint and a comfortable desktop the bar gets tight,
   and the links run out of room well before the bar actually does: the middle
   column is centred on the bar's true centre, so the links are pushed toward
   whichever side group is wider. The right-hand group (phone + button, ~298px)
   is far wider than the logo (~116px), which is why "Contact" lands on the
   phone number. Trim the type and the gaps through this band, and drop the
   phone number at the narrow end, where trimming alone isn't enough — it stays
   in the footer and on the Contact page. */
@media (min-width: 881px) and (max-width: 1180px) {
  /* The equal 1fr outer cells are what pin the links to the bar's centre, and
     that's the actual failure here: with the right-hand group so much wider
     than the logo, the links collide on the right while ~150px sits unused on
     the left. Letting the middle cell take whatever is left between the two
     groups centres the links in the space that exists instead. */
  .site-header__bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .nav { gap: var(--space-3); }
  .nav__links { font-size: 1.05rem; gap: var(--space-3); }
  .nav__cta { gap: var(--space-2); }
  .nav__phone { font-size: 0.85rem; }
  .site-header .nav__cta .btn { padding: 0.75rem 1.2rem; font-size: 0.88rem; }
}

@media (max-width: 880px) {
  .nav__links, .nav__phone-wrap { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0b509b;
    padding: var(--space-3);
    /* Rounded to finish the island's shape: the pill squares off its own
       bottom corners when open, so the two read as one panel rather than a
       rectangle hanging off a pill. */
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 18px 38px rgba(9, 68, 127, 0.3);
    gap: var(--space-2);
  }
  .site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--text-inverse);
  overflow: hidden;
  min-height: 86vh;
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,23,41,0.55) 0%, rgba(11,23,41,0.78) 60%, rgba(11,23,41,0.94) 100%);
}
.hero__content { position: relative; z-index: 1; max-width: 720px; }
.hero__content h1,
.hero__content h2 { color: var(--text-inverse); }
.hero__content p.lede {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 560px;
  margin-block: var(--space-3) var(--space-4);
}
.hero__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ---------- Word-by-word reveal (data-animate-words) ---------- */
[data-animate-words] .reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
  transition-delay: calc(var(--i, 0) * 70ms + var(--delay-base, 0ms));
}
[data-animate-words].in-view .reveal-word {
  opacity: 1;
  transform: translateY(0);
}

/* Preset variants — pair data-preset="fade|blur|scale|shake" with
   data-animate-words to swap the entrance motion (default is the
   slide-up above). data-animate-words="char" splits by character. */
[data-animate-words][data-preset="fade"] .reveal-word { transform: none; }

[data-animate-words][data-preset="blur"] .reveal-word { transform: none; filter: blur(10px); }
[data-animate-words][data-preset="blur"].in-view .reveal-word { filter: blur(0); }

[data-animate-words][data-preset="scale"] .reveal-word { transform: scale(0.4); }
[data-animate-words][data-preset="scale"].in-view .reveal-word { transform: scale(1); }

[data-animate-words][data-preset="shake"] .reveal-word { transform: none; }
[data-animate-words][data-preset="shake"].in-view .reveal-word {
  animation: reveal-shake 0.5s ease;
  animation-delay: calc(var(--i, 0) * 70ms + var(--delay-base, 0ms));
}

@keyframes reveal-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  [data-animate-words] .reveal-word { transition: none; animation: none; opacity: 1; transform: none; filter: none; }
}

#home-hero .hero__actions {
  transition-delay: 550ms;
}

.hero--page {
  min-height: 46vh;
  align-items: flex-end;
  padding-bottom: var(--space-6);
}
/* Full-width brand artwork used in place of a photo hero. Nothing sits on top
   of it, so it needs no scrim and no z-index juggling. The navy behind it only
   shows for the instant before the image paints. */
.brand-banner {
  width: 100%;
  overflow: hidden;
  /* Sampled from the artwork's own top row — deep blue at the left, pale at
     the right — so the strip the fixed header sits on reads as a continuation
     of the piece rather than a band of flat colour behind it. */
  background: linear-gradient(90deg,
    rgb(11, 67, 118) 0%,
    rgb(36, 96, 148) 52%,
    rgb(158, 193, 225) 100%);
  /* Clears the fixed header rather than letting it float over the artwork.
     The logo sits 21% down the piece, so below about 1220px wide it would
     land behind the nav links — there just isn't enough headroom above it for
     a 109px bar at every width. */
  padding-top: 90px;
  line-height: 0;
}
.brand-banner img {
  display: block;
  width: 100%;
  /* Capped rather than left to the artwork's own 2.33:1, which would run to
     600px on a wide screen and push the form well below the fold. */
  height: clamp(220px, 24vw, 400px);
  object-fit: cover;
  /* Above centre: the lettering sits in the upper-middle of the piece, and a
     centred crop clipped the top of it once the height was capped. */
  object-position: center 40%;
}
/* Same top-to-bottom fade, just a lighter one, so more of the photo comes
   through. The bottom stop stays the darkest because that's where the heading
   and lede sit and they still need to read as white. */
.hero--bright .hero__bg::after {
  background: linear-gradient(180deg, rgba(11,23,41,0.22) 0%, rgba(11,23,41,0.44) 60%, rgba(11,23,41,0.72) 100%);
}
/* With less overlay the photo underneath is bright in places, so the copy
   carries its own soft shadow rather than the whole image being darkened. */
.hero--bright .hero__content {
  text-shadow: 0 2px 12px rgba(11, 23, 41, 0.75), 0 1px 3px rgba(11, 23, 41, 0.6);
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service-card {
  padding: var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--brand-accent);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.service-card h3 { margin-block: var(--space-2) var(--space-1); }

/* ---------- Flip cards (What We Do) ---------- */
.flip-card {
  min-height: 260px;
  perspective: 1200px;
  border-radius: var(--radius-md);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.flip-card:focus-visible { outline: 2px solid var(--color-brass-light); outline-offset: 4px; }
.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.flip-card.is-flipped .flip-card__inner {
  transform: rotateY(180deg);
}
.flip-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  backface-visibility: hidden;
}
.flip-card__face--front {
  background: var(--bg-surface);
}
.flip-card__face--front h3 { margin-block: var(--space-2) var(--space-1); }
.flip-card__face--back {
  background: var(--color-navy-900);
  color: var(--text-inverse);
  border-color: transparent;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-3);
  transform: rotateY(180deg);
}
.flip-card__face--back p { color: rgba(255,255,255,0.8); }
@media (prefers-reduced-motion: reduce) {
  .flip-card__inner { transition: none; }
}

.property-card__media {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.property-card__tag {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  background: var(--color-navy-900);
  color: var(--brand-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.property-card__body { padding: var(--space-3); }
.property-card__loc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-brass-dark);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.property-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
}

/* ---------- Stats ---------- */
.stat {
  text-align: center;
  padding: var(--space-3);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--brand-accent);
  font-weight: 600;
}
.stat__label {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 0.35rem;
}

/* ---------- About split (Who We Are) ---------- */
.about-split__grid {
  display: grid;
  grid-template-columns: minmax(360px, 480px) 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-split__panel {
  background: var(--color-navy-900);
  color: var(--text-inverse);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-6) var(--space-5);
}
.about-split__panel h2 { color: var(--text-inverse); }
.about-split__panel p { color: rgba(255,255,255,0.78); margin-top: var(--space-3); font-size: 1.05rem; }
.about-split__panel .btn { margin-top: var(--space-4); align-self: flex-start; }

.about-split__media {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.about-split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,23,41,0.05) 40%, rgba(11,23,41,0.65) 100%);
}
.about-split__stats {
  position: absolute;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 1;
  display: flex;
  gap: var(--space-5);
}
.about-split__stat { text-align: right; }
.about-split__stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 600;
  color: var(--text-inverse);
  line-height: 1;
}
.about-split__stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-top: 0.35rem;
}

@media (max-width: 880px) {
  .about-split__grid { grid-template-columns: 1fr; }
  .about-split__media { height: 320px; min-height: 0; }
}
@media (max-width: 560px) {
  .about-split__stats { gap: var(--space-3); right: var(--space-3); bottom: var(--space-3); }
  .about-split__stat-num { font-size: 1.9rem; }
}

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-navy-900), var(--color-navy-700));
  color: var(--text-inverse);
  padding: var(--space-6) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,146,90,0.35), transparent 70%);
  top: -120px; right: -80px;
}
.cta-band h2 { color: var(--text-inverse); max-width: 480px; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy-900);
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(184,146,90,0.18);
}
.field textarea { min-height: 140px; resize: vertical; }
.radio-group { display: flex; gap: var(--space-3); }
.radio-group label { display: flex; align-items: center; gap: 0.4rem; font-weight: 500; font-size: 0.92rem; color: var(--text-primary); }
.radio-group input { width: auto; }

.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: var(--space-2); }
.form-success {
  display: none;
  background: #ecf5ee;
  border: 1px solid #bfe0c8;
  color: #2c6b3f;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  font-weight: 500;
}
.form-success.is-visible { display: block; }
.form-error {
  display: none;
  background: #fbeeee;
  border: 1px solid #ecc5c5;
  color: #8a2f2f;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  font-weight: 500;
}
.form-error.is-visible { display: block; }
.form-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Info blocks (contact page) ---------- */
.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.info-row { display: flex; gap: var(--space-2); align-items: flex-start; margin-bottom: var(--space-3); }
.info-row:last-child { margin-bottom: 0; }
.info-row__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-cream-dark);
  color: var(--color-brass-dark);
  display: grid;
  place-items: center;
}
.info-row h4 { margin-bottom: 0.15rem; }
.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Breadcrumb / page hero text ---------- */
.hero__content .eyebrow { color: var(--brand-accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0b509b;
  color: rgba(247,244,238,0.8);
  padding-top: var(--space-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: var(--color-cream);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: var(--space-2);
}
.site-footer .brand { color: var(--color-cream); margin-bottom: var(--space-2); }
.site-footer p { color: rgba(247,244,238,0.72); font-size: 0.92rem; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(247,244,238,0.78); font-size: 0.92rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--brand-accent); }
.social-row { display: flex; gap: 0.6rem; margin-top: var(--space-3); }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: grid; place-items: center;
  transition: background var(--transition), border-color var(--transition);
}
.social-row a:hover { background: var(--brand-accent); border-color: var(--brand-accent); color: #0b509b; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-block: var(--space-3);
  font-size: 0.82rem;
  color: rgba(247,244,238,0.62);
}
.footer-bottom .legal-links { display: flex; gap: var(--space-3); }
.compliance-badges { display: flex; gap: var(--space-2); align-items: center; }
.compliance-badges span {
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-navy-900);
  color: var(--brand-accent);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Misc pages (legal) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: var(--space-5); margin-bottom: var(--space-2); }
.prose p, .prose li { color: var(--text-muted); margin-bottom: var(--space-2); }
.prose ul { padding-left: 1.25rem; list-style: disc; }

/* ---------- Editorial values selector (About Us) ---------- */
.values-editorial {
  max-width: 700px;
  margin-inline: auto;
}
.values-editorial__display {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.values-editorial__index {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 9vw, 108px);
  line-height: 1;
  color: rgba(16, 35, 63, 0.08);
  user-select: none;
  flex-shrink: 0;
  font-feature-settings: "tnum";
}
.values-editorial__body {
  flex: 1;
  padding-top: var(--space-2);
  min-height: 168px;
}
.values-editorial__desc {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--color-navy-900);
  transition: opacity 300ms ease, transform 300ms ease;
}
.values-editorial__author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  transition: opacity 300ms ease 60ms;
}
.values-editorial.is-transitioning .values-editorial__desc {
  opacity: 0;
  transform: translateX(10px);
}
.values-editorial.is-transitioning .values-editorial__author {
  opacity: 0;
}
.values-editorial__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 2px solid rgba(16, 35, 63, 0.12);
  color: var(--brand-accent);
  display: grid;
  place-items: center;
  transition: border-color 300ms ease;
}
.values-editorial__title {
  font-weight: 600;
  color: var(--color-navy-900);
  margin: 0;
}
.values-editorial__sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}
.values-editorial__nav {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.values-editorial__nav-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.values-editorial__dashes {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.values-dash {
  background: none;
  border: none;
  padding: 0.8rem 0;
  cursor: pointer;
}
.values-dash span {
  display: block;
  height: 1px;
  width: 22px;
  background: rgba(16, 35, 63, 0.22);
  transition: width 400ms ease, background 400ms ease;
}
.values-dash:hover span {
  width: 30px;
  background: rgba(16, 35, 63, 0.42);
}
.values-dash.is-active span {
  width: 44px;
  background: var(--color-navy-900);
}
.values-editorial__count {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.values-editorial__arrows {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.values-arrow {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 50%;
  color: rgba(16, 35, 63, 0.4);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 300ms ease, background 300ms ease;
}
.values-arrow:hover {
  color: var(--color-navy-900);
  background: rgba(16, 35, 63, 0.06);
}
@media (max-width: 560px) {
  .values-editorial__display { gap: var(--space-3); }
  .values-editorial__index { font-size: 56px; }
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Property cards ---------- */
/* Was a sideways accordion: one card open, the other six squeezed into strips
   with their names rotated 90°. It looked clever and read badly — you couldn't
   tell which community was which without hovering each one. Now every card is
   open at every width, laid out in a grid, so all seven read at a glance. */
/* Flex rather than grid so a short last row centres itself. Seven cards in
   four columns left three pinned to the left with an empty slot beside them,
   which read as lop-sided. Grid can't centre a partial row without hard-coding
   the card count — this adapts if properties are added or removed. */
.expand-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
}
/* Basis = an equal share of the row once the gaps between are subtracted. */
.expand-card { flex: 0 1 calc((100% - var(--space-3) * 3) / 4); }
@media (max-width: 1180px) { .expand-card { flex-basis: calc((100% - var(--space-3) * 2) / 3); } }
@media (max-width: 880px)  { .expand-card { flex-basis: calc((100% - var(--space-3)) / 2); } }
@media (max-width: 560px)  { .expand-card { flex-basis: 100%; } }

.expand-card {
  position: relative;
  display: block;
  height: 380px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  isolation: isolate;
  transition: transform var(--transition), box-shadow var(--transition);
}
@media (max-width: 560px) { .expand-card { height: 300px; } }

/* The whole card is the link. One anchor rather than a click handler on the
   tile, so it keeps a single tab stop and the URL shows in the status bar. */
.expand-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}
.expand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.expand-card:focus-within {
  outline: 2px solid var(--color-brass-light);
  outline-offset: 3px;
}

.expand-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0, 0.2, 1);
}
.expand-card:hover .expand-card__img { transform: scale(1.06); }

/* The copy only occupies the bottom of the card, so the shading does too.
   Carrying it to the top tinted the whole photo grey for no reason — it is
   strong where the text sits, then clears completely by two-thirds up, which
   leaves the top of every photo its real colour. */
.expand-card__scrim {
  position: absolute;
  inset: 0;
  /* Stops are in pixels from the bottom, not percentages: the text block is a
     constant 174px tall on every card, while the cards themselves are 380px
     on desktop and 300px on a phone. In percentages the shorter card would
     put its location line in the weakest part of the fade. */
  background: linear-gradient(to top,
    rgba(0,0,0,0.92) 0px,
    rgba(0,0,0,0.82) 60px,
    rgba(0,0,0,0.64) 120px,
    rgba(0,0,0,0.36) 178px,
    rgba(0,0,0,0) 230px);
  transition: background var(--transition);
}
.expand-card:hover .expand-card__scrim {
  background: linear-gradient(to top,
    rgba(0,0,0,0.94) 0px,
    rgba(0,0,0,0.86) 60px,
    rgba(0,0,0,0.69) 120px,
    rgba(0,0,0,0.42) 178px,
    rgba(0,0,0,0) 230px);
}

.expand-card__body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: var(--space-3);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.5);
}
/* Pin sits on the same line as the city so the two read as one marker and
   don't cost the card a whole row of height to themselves. */
.expand-card__icon {
  width: 14px;
  height: 14px;
  flex: none;
}
.expand-card__loc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--color-brass-light);
}
.expand-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.5vw, 1.55rem);
  line-height: 1.2;
  font-weight: 600;
  color: var(--color-white);
}
.expand-card__desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  /* Descriptions vary in length; clamping keeps every tile's link on the same
     line so the row reads as one set rather than seven ragged boxes. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.expand-card__link {
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-brass-light);
  transition: color var(--transition);
}
.expand-card:hover .expand-card__link { color: var(--color-white); }

@media (prefers-reduced-motion: reduce) {
  .expand-card, .expand-card__img, .expand-card__scrim { transition: none; }
  .expand-card:hover { transform: none; }
  .expand-card:hover .expand-card__img { transform: none; }
}
/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flow > * + * { margin-top: var(--space-2); }


/* ---------- Photo hero (assets/js/photo-hero.js) ---------- */
.video-hero {
  position: relative;
  /* Fills the window so the photo is the whole frame with nothing showing
     below it. svh is the viewport height with the mobile browser's toolbars
     showing, which stops the hero growing and shrinking as those bars hide on
     scroll; vh is the fallback for browsers without it. */
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  background: var(--color-navy-950);
  color: var(--text-inverse);
}
/* Interior pages run the same slideshow as a banner rather than a full window
   — they have a page to get on with below it. */
.video-hero--page {
  height: clamp(380px, 54vh, 620px);
  min-height: 0;
}
/* Holds the page copy over the slideshow, sitting low in the frame exactly as
   .hero--page did before the backdrop became a slideshow. The copy inside is
   a plain .container.hero__content, so it inherits the same type and width it
   had then. Not the homepage's animated title, which starts life invisible
   and is driven by the intro choreography. */
.video-hero__heading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-6);
}
.video-hero__heading .hero__content {
  text-shadow: 0 2px 12px rgba(11, 23, 41, 0.6), 0 1px 3px rgba(11, 23, 41, 0.5);
}
/* The lighter brass, as on the property cards: the deeper --brand-accent is a
   dark gold, and at eyebrow size it disappears over a sunlit photo. */
.video-hero__heading .eyebrow { color: var(--color-brass-light); }
.video-hero__heading .eyebrow::before { background: var(--color-brass-light); }
/* Bottom-weighted rather than the homepage's centre pool, because the heading
   sits in the lower-left here. Clear through the middle so the photo keeps its
   own colour where nothing is written over it. */
.video-hero--page .video-hero__scrim {
  background: linear-gradient(180deg,
    rgba(11,23,41,0.40) 0%,
    rgba(11,23,41,0.08) 24%,
    rgba(11,23,41,0.20) 42%,
    rgba(11,23,41,0.56) 62%,
    rgba(11,23,41,0.80) 100%);
}
/* The hero is a cross-fading stack of property photos. Every slide sits in the
   same place at opacity 0; only the current one fades up, so the outgoing and
   incoming photos overlap through the fade and the navy backdrop never shows
   between them. The slow scale is what keeps a still photo from reading as a
   frozen page — it runs longer than the slide is on screen so it never
   visibly finishes and settles. (Block is still named video-hero: the markup
   changed, the name stayed so the shared stylesheet doesn't churn.) */
.video-hero__stack {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.video-hero.is-ready .video-hero__stack { opacity: 1; }
.video-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transform-origin: center center;
  will-change: opacity, transform;
  transition: opacity 900ms ease-in-out, transform 9000ms linear;
}
.video-hero__slide.is-current {
  opacity: 1;
  transform: scale(1.1);
}
@media (prefers-reduced-motion: reduce) {
  .video-hero__slide {
    transform: none;
    transition: opacity 900ms ease-in-out;
  }
  .video-hero__slide.is-current { transform: none; }
}
/* Two layers. The linear pass darkens top and bottom so the header and the
   progress bar keep their edges. The radial pass sits only behind the centred
   copy — these are bright daylight photos, and a flat overlay heavy enough to
   carry white text would have dulled every one of them. This way the frame
   stays open and only the middle gets the separation the text needs. */
.video-hero__scrim {
  position: absolute;
  inset: 0;
  /* The old version laid a wash over the whole frame, which greyed out every
     photo. The brand and buttons sit dead centre, so the shade is a pool
     behind them that clears well before the edges. What's left of the linear
     pass is only what the chrome needs: a light band at the top so the
     transparent header's logo and links hold, and a light one at the bottom
     so the photo doesn't butt hard against the cream section below. The
     corners and most of the frame are the photo's own colour. */
  background:
    radial-gradient(ellipse 70% 56% at 50% 50%,
      rgba(11,23,41,0.62) 0%,
      rgba(11,23,41,0.42) 42%,
      rgba(11,23,41,0.14) 70%,
      rgba(11,23,41,0) 88%),
    linear-gradient(180deg,
      rgba(11,23,41,0.34) 0%,
      rgba(11,23,41,0.06) 18%,
      rgba(11,23,41,0) 34%,
      rgba(11,23,41,0) 76%,
      rgba(11,23,41,0.30) 100%);
  pointer-events: none;
}
.video-hero__title,
.video-hero__tagline {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 0 8%;
  text-align: center;
  pointer-events: none;
}
.video-hero__title span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-inverse);
  text-shadow: 0 2px 8px rgba(11,23,41,0.55), 0 4px 30px rgba(0,0,0,0.5);
  will-change: transform, filter, opacity;
}
.video-hero__tagline {
  opacity: 0;
  /* Tighter than the shared gap: eyebrow, name and disciplines read as one
     stacked block, and the buttons get their own breathing room below. */
  gap: 0;
}
/* Rules either side, unlike the site's .eyebrow, which hangs one off the
   left — this one is centred, so a single rule would sit off balance. The
   words are white and the rules are brass: this line sits above the scrim's
   darkest point, where brass lettering measured 2.8:1 against the brightest
   photo. The rules carry the warm note instead, where contrast doesn't
   matter because there's nothing to read. */
.video-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 clamp(0.6rem, 1.2vw, 1.1rem);
  font-family: var(--font-body);
  font-size: clamp(0.68rem, 0.85vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(11,23,41,0.6);
}
.video-hero__eyebrow::before,
.video-hero__eyebrow::after {
  content: "";
  width: clamp(28px, 6vw, 92px);
  height: 1px;
  background: var(--color-brass-light);
  opacity: 0.8;
}
.video-hero__brand {
  font-family: var(--font-display);
  font-weight: 700;
  /* Much larger than before: the name is the hero's whole headline now, with
     the eyebrow and disciplines framing it rather than competing. */
  font-size: clamp(35px, 8.4vw, 116px);
  line-height: 1.04;
  letter-spacing: 0.005em;
  color: var(--text-inverse);
  text-shadow: 0 2px 8px rgba(11,23,41,0.55), 0 4px 30px rgba(0,0,0,0.5);
}
/* The three lines of business, bullet-separated. The bullets are pseudo
   -elements between items rather than typed into the markup, so they're not
   read out and the list still wraps cleanly on a phone. */
.video-hero__disciplines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 clamp(0.8rem, 1.6vw, 1.5rem);
  margin: clamp(0.7rem, 1.4vw, 1.3rem) 0 0;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(11,23,41,0.6);
}
.video-hero__disciplines span + span::before {
  content: "•";
  display: inline-block;
  margin-right: clamp(0.8rem, 1.6vw, 1.5rem);
  color: var(--color-brass-light);
}
/* On a phone the three words wrapped, which left a bullet stranded at the
   start of the second line. Narrower side padding and a smaller size keep
   them on one line down to a 320px screen. */
@media (max-width: 600px) {
  .video-hero__title,
  .video-hero__tagline { padding-inline: 5%; }
  .video-hero__disciplines {
    font-size: clamp(0.72rem, 3.5vw, 0.95rem);
    gap: 0 clamp(0.45rem, 2vw, 0.8rem);
  }
  .video-hero__disciplines span + span::before {
    margin-right: clamp(0.45rem, 2vw, 0.8rem);
  }
}
.video-hero__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: clamp(1.6rem, 3vw, 2.8rem);
  pointer-events: none;
}
.video-hero.is-done .video-hero__actions { pointer-events: auto; }
/* Larger than the site's standard button, and fully rounded: these two are
   the hero's only controls, sitting alone on a full-screen photo, so they
   need the presence that an in-page button doesn't. Both keep the same 2px
   border so the outline doesn't make them different heights. */
.video-hero__actions .btn {
  border-width: 2px;
  border-color: var(--color-white);
  border-radius: 999px;
  padding: clamp(1rem, 1.2vw, 1.25rem) clamp(2.1rem, 3vw, 3.1rem);
  font-size: clamp(1rem, 1.1vw, 1.12rem);
}
/* The pair reads light-then-dark. White carries the first action, since
   nothing on a daylight photo is brighter than solid white, and the brand
   blue takes the second so the hero still states the house colour. The blue
   button's border is transparent rather than removed, so it keeps the same
   2px and the two buttons stay the same height. */
.video-hero__actions .btn--primary {
  background: var(--color-white);
  color: #0b1729;
  box-shadow: 0 10px 30px rgba(11, 23, 41, 0.28);
}
.video-hero__actions .btn--primary:hover {
  background: var(--color-white);
  color: #0b509b;
  border-color: var(--color-white);
  box-shadow: 0 14px 38px rgba(11, 23, 41, 0.34);
}
.video-hero__actions .btn--primary svg { margin-left: 0.1rem; }
.video-hero__actions .btn--outline {
  background: #0b509b;
  color: var(--text-inverse);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(11, 23, 41, 0.28);
}
.video-hero__actions .btn--outline:hover {
  background: #0a4585;
  border-color: transparent;
  box-shadow: 0 14px 38px rgba(11, 23, 41, 0.34);
}

/* Scroll cue. Sits on the hero rather than inside the fading block, so it
   has its own entrance once the photos have settled, and nudges downward on
   a loop — enough to read as "keep going" without pulling the eye off the
   buttons. */
.video-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3.5vh, 38px);
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease, color var(--transition);
}
.video-hero.is-done .video-hero__scroll {
  opacity: 1;
  pointer-events: auto;
}
.video-hero__scroll:hover { color: var(--color-white); }
.video-hero__scroll svg { animation: hero-scroll-nudge 2.2s ease-in-out infinite; }
@keyframes hero-scroll-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .video-hero__scroll svg { animation: none; }
}

/* ---------- Leadership team (About Us) ---------- */
.team-grid {
  /* Flex rather than grid, for the same reason as .expand-cards: the team
     changes size, and a grid pins a short final row to the left instead of
     centring it. Four to a row, so any remainder sits centred underneath. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}
.team-card {
  flex: 0 1 calc((100% - var(--space-3) * 3) / 4);
}
@media (max-width: 900px) {
  .team-card { flex-basis: calc((100% - var(--space-3)) / 2); }
}
@media (max-width: 560px) {
  .team-card { flex-basis: 100%; }
}
.team-card {
  padding: var(--space-4) var(--space-3);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.team-card__avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-2);
  border-radius: 50%;
  /* The brand blue from the header and footer rather than the near-black navy
     the circles used before. */
  background: #0b509b;
  color: var(--color-brass-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.team-card__role {
  color: var(--brand-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.team-card p:last-child {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- Typewriter text reveal (assets/js/typewriter.js) ---------- */
[data-typewriter]::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: text-bottom;
  opacity: 0;
}
[data-typewriter].is-typing::after {
  opacity: 1;
  animation: typewriter-blink 0.85s steps(1) infinite;
}
[data-typewriter].is-done::after {
  opacity: 0;
  transition: opacity 0.6s ease 0.5s;
}
@keyframes typewriter-blink {
  50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  [data-typewriter]::after { display: none; }
}

/* ---------- Portfolio stats band (assets/js/count-up.js) ---------- */
.stats-grid { margin-top: var(--space-5); }
.stat-card {
  background: var(--color-navy-800);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-3);
  text-align: center;
}
.stat-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--brand-accent);
  font-variant-numeric: tabular-nums;
}
.stat-card__label {
  margin-top: var(--space-2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}
.stats-band__note {
  position: relative;
  max-width: 620px;
  margin: var(--space-6) auto 0;
  padding-top: var(--space-3);
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.65;
  color: var(--text-primary);
  transition-delay: 150ms;
}
.stats-band__note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-accent);
  transform: translateX(-50%);
  transition: width 800ms ease 350ms;
}
.stats-band__note.is-revealed::before { width: 64px; }

/* ---------- Blue accent theme (homepage) ---------- */
/* Keeps the cream page background but recolors the dark-navy elements to the
   same blue used in the header and footer. */
.theme-blue {
  --page-blue: #0b509b;
}
.theme-blue main .btn--dark { background: var(--page-blue); }
.theme-blue main .btn--dark:hover { background: #0a4585; }
.theme-blue .back-to-top { background: var(--page-blue); }

/* ---------- One-page anchors ---------- */
/* Home, Properties and About are sections of the home page now rather than
   separate pages. The header is fixed over the content, so each target stops
   short of the top by roughly the bar's height — otherwise a heading lands
   behind it. */
#home, #properties, #about, #what-we-do { scroll-margin-top: 108px; }
