/* ==========================================================================
   Z-Three Real Estate — website
   --------------------------------------------------------------------------
   One stylesheet for the whole site. Six pages do not need a build step, and
   plain CSS means the pages render before any JavaScript runs — which is what
   Google indexes and what a phone on a parking lot actually loads.

   Palette and type are Z3's own, read out of the live site's stylesheet rather
   than guessed at: gold #AD7912, navy #05193A, the grey ground #E6E6E4, and
   the deep green the listings page runs on. Eurostile Extended Bold sets the
   headlines, Nimbus Sans Extended the rest.
   ========================================================================== */

/* Self-hosted, the same files the live site serves. Nothing is fetched from a
   font CDN — one less third party, and no flash of a fallback face. swap so
   the words are readable while the face loads rather than invisible. */
@font-face {
  font-family: "Eurostile Ex";
  src: url("fonts/4072Eurostile-Ex-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nimbus Sans Ex";
  src: url("fonts/7860Nimbus-Sans-Ex-Reg.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nimbus Sans Ex";
  src: url("fonts/6027Nimbus-Sans-Ex-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* Brand — from the live site's own stylesheet */
  --navy: #05193a;
  --navy-deep: #05193a;
  --gold: #ad7912;
  --gold-bright: #c68e1d;
  --green: #013635;
  --sand: #d1b785;
  --cream: #e6e6e4;          /* the ground the whole site sits on */
  --cream-deep: #dcdcd9;
  --white: #fefefe;

  /* Ink */
  --ink: #05193a;
  --ink-soft: #3f4a5f;
  --ink-mute: #7b8394;
  --line: #d2d2cf;

  /* Measure */
  --wrap: 1560px;
  --gutter: clamp(20px, 5.5vw, 96px);

  --display: "Eurostile Ex", "Eurostile", "Bank Gothic", Impact, sans-serif;
  --sans: "Nimbus Sans Ex", "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset — the small, sharp kind
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }
img { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }

html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  /* An element sliding in from the side is, for the length of the animation,
     wider than the page. clip rather than hidden: hidden on the body turns it
     into a scroll container and breaks the sticky header. */
  overflow-x: clip;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

/* Keyboard users get a visible ring; mouse users do not get a stray outline. */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Present for a screen reader, absent to the eye. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Skip link — the first thing a screen reader meets. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   Type scale
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--display);
  font-size: clamp(14px, 1.25vw, 22px); font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--gold);
}
h1, h2, h3, .h1, .h2, .h3 { overflow-wrap: break-word; }
h1, .h1 {
  font-family: var(--display);
  /* Eurostile Extended is very wide, so it needs less size and no negative
     tracking — squeezing an extended face fights what it is for. */
  font-size: clamp(31px, 5.2vw, 92px); line-height: 1.02; font-weight: 700;
  letter-spacing: 0; color: var(--navy);
}
h2, .h2 {
  font-family: var(--display);
  font-size: clamp(23px, 3.1vw, 50px); line-height: 1.1; font-weight: 700;
  letter-spacing: 0; color: var(--navy);
}
h3, .h3 { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.3; font-weight: 700; color: var(--navy); }
.lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-soft); max-width: 62ch; }
p + p { margin-top: 1em; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 0; border: 2px solid transparent;
  font-family: var(--sans);
  font-size: 14px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: #fff; }
.btn-ghost { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-ghost:hover { background: var(--gold); color: #fff; }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.nav a.nav-link {
  font-size: 17px; font-weight: 400; color: var(--navy); text-decoration: none;
}
.nav a.nav-link:hover, .nav a.nav-link[aria-current="page"] { color: var(--gold); }
.nav-portals { display: flex; gap: 10px; flex-wrap: wrap; }
.nav-portals .btn { padding: 10px 15px; font-size: 12px; letter-spacing: .03em; }

/* The burger only exists below the breakpoint; above it the nav is the nav. */
.burger {
  display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
  padding: 8px; color: var(--navy);
}
.burger svg { display: block; }

@media (max-width: 1240px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 3px solid var(--gold); padding: 8px var(--gutter) 24px;
  }
  .site-head.open .nav { display: flex; }
  .nav-portals { flex-direction: column; align-items: stretch; }
  .nav-portals .btn { justify-content: center; }
  .nav a.nav-link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav-portals { padding-top: 18px; }
}

/* --------------------------------------------------------------------------
   Hero — text left on the grey, photograph bleeding off the right edge
   --------------------------------------------------------------------------
   The headline deliberately runs past the photograph's left edge. That overlap
   is the composition: an extended face at this size needs the room, and the
   last line landing on the sky is what stops the two halves reading as two
   separate boxes. It only holds while the picture is beside the words, so
   below the breakpoint the picture goes underneath and the overlap goes away.
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--cream); overflow: hidden; }
.hero-art {
  position: absolute; top: 0; right: 0; width: 47.5%; height: 86%;
  background: var(--cream-deep);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-in {
  position: relative; z-index: 1;
  padding-block: clamp(40px, 5vw, 78px) clamp(64px, 9vw, 150px);
}
.hero h1 { margin-block: 16px 30px; max-width: 15ch; }
.hero .lede { max-width: 34ch; color: var(--ink); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

@media (max-width: 900px) {
  .hero-art { position: static; width: auto; height: auto; aspect-ratio: 3 / 2;
              margin-inline: calc(var(--gutter) * -1); }
  .hero h1, .hero .lede { max-width: none; }
  .hero-in { padding-bottom: clamp(32px, 6vw, 56px); }
}

/* --------------------------------------------------------------------------
   Split — a photograph one side, the argument the other
   -------------------------------------------------------------------------- */
.split { display: grid; gap: clamp(28px, 5vw, 96px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 47% 1fr; } }
.split-art { aspect-ratio: 1 / 1; background: var(--cream-deep); overflow: hidden; }
.split-art img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { margin-block: 14px 26px; max-width: 12ch; }
.split .lede { color: var(--ink); }
.split .btn { margin-top: 30px; }

/* --------------------------------------------------------------------------
   Testimonials — one quote at a time, arrows either side
   --------------------------------------------------------------------------
   A scroller rather than a slideshow: it holds its place, works with a
   trackpad or a thumb, and needs no timer deciding when you have finished
   reading. Scroll snapping does the paging; the arrows are for a mouse.
   -------------------------------------------------------------------------- */
.quotes { display: flex; align-items: center; gap: clamp(8px, 2vw, 28px); }
.quotes-track {
  flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.quotes-track::-webkit-scrollbar { display: none; }
.quote-slide {
  flex: 0 0 100%; scroll-snap-align: center; text-align: center;
  padding-inline: clamp(4px, 2vw, 32px);
}
.quote-slide p {
  font-family: var(--sans); font-weight: 700; text-transform: uppercase;
  color: var(--gold); font-size: clamp(15px, 1.45vw, 23px); line-height: 1.45;
  letter-spacing: .01em;
}
.q-arrow {
  flex: none; background: none; border: 0; cursor: pointer; color: var(--gold);
  padding: 10px; line-height: 0; border-radius: 2px;
}
.q-arrow:hover { color: var(--navy); }
.q-arrow svg { display: block; }

/* --------------------------------------------------------------------------
   Team — the name oversized, the people cut out beneath it
   --------------------------------------------------------------------------
   The block is one centred column whose width comes from the heading, so the
   copy and the button hang off the heading's own left edge rather than the
   page gutter — the button lands under the "T" of THE. The photograph is the
   last thing in the section and the section has no bottom padding, so the
   people stand ON the green band that follows rather than floating above it.
   -------------------------------------------------------------------------- */
/* .band is declared later in this file, so a bare .team-section loses the
   padding fight to it and the people float 64px above the green. Two classes
   settle it regardless of order. */
.band.team-section { padding-bottom: 0; }
.team-block { width: max-content; max-width: 100%; margin-inline: auto; }
.team-block h2 {
  font-size: clamp(26px, 5vw, 96px); line-height: 1; color: var(--gold);
  text-transform: uppercase; white-space: nowrap;
}
.team-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 48px);
  /* start, not end. The photograph is the tall one and sets the row's height,
     so it reaches the bottom either way — aligning the row to the bottom only
     dragged the copy and its button down there with it. */
  align-items: start;
}
.team-body { max-width: 34ch; padding-top: clamp(18px, 2.4vw, 34px); }
.team-body .lede { color: var(--ink); font-size: clamp(15px, 1.15vw, 18px); }
.team-body .btn { margin-top: 26px; }
.team-art { width: min(52vw, 860px); }
.team-art img { width: 100%; height: auto; display: block; }

@media (max-width: 760px) {
  .team-block { width: auto; }
  .team-block h2 { white-space: normal; text-align: left; }
  .team-row { grid-template-columns: 1fr; }
  .team-art { width: 100%; margin-top: 20px; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.band { padding-block: clamp(56px, 8vw, 112px); }
.band-cream { background: var(--cream-deep); }
.band-navy { background: var(--navy); color: #fff; }
.band-navy h2, .band-navy .h2, .band-navy h3 { color: #fff; }
.band-navy .lede { color: #c7d0de; }
.band-green { background: var(--green); color: #fff; }
.band-green h1, .band-green h2, .band-green h3 { color: #fff; }
.band-green .lede { color: #cfe0dc; }

.section-head { max-width: 70ch; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head h2 { margin-top: 10px; }
.section-head .lede { margin-top: 16px; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Cards */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  padding: clamp(22px, 2.6vw, 34px);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); }
.card-num {
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em; color: var(--gold);
  display: block; margin-bottom: 14px;
}

/* A plain list of capabilities — the "How We Do It" set. */
.ticks { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ticks li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0; border-top: 1px solid var(--line); font-weight: 600;
}
.band-navy .ticks li { border-color: rgba(255,255,255,0.16); }
.ticks li::before { content: "—"; color: var(--gold); font-weight: 800; flex: none; }

/* Testimonials */
.quote {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  padding: clamp(24px, 3vw, 38px); border-radius: 3px;
}
.quote p { font-size: clamp(16px, 1.4vw, 19px); font-weight: 600; color: var(--navy); }
.quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 13px; color: var(--ink-mute); }

/* --------------------------------------------------------------------------
   Page hero — deep green, with the map drawing bleeding off the right
   -------------------------------------------------------------------------- */
.phero { position: relative; overflow: hidden; background: var(--green); color: #fff; }
.phero-in { position: relative; z-index: 1; padding-block: clamp(48px, 6.5vw, 104px); }
.phero h1 { color: #fff; margin-block: 12px 0; }
.phero .lede { color: #cfe0dc; margin-top: 20px; }
.phero-art {
  position: absolute; inset: 0 0 0 auto; width: min(62%, 1000px);
  background: var(--phero-art) right bottom / contain no-repeat;
  opacity: .9; pointer-events: none;
}
.phero { --phero-art: url("img/service-background.png"); }
.phero-story { --phero-art: url("img/our-story-background.png"); }
.phero-story .phero-in { max-width: 1560px; }
.phero-story h1 { max-width: 14ch; }
.phero-story .lede { max-width: 44ch; color: #cfe0dc; }
@media (max-width: 820px) { .phero-art { opacity: .25; width: 100%; } }

/* --------------------------------------------------------------------------
   Our Story — mission and vision side by side, then how the work gets done
   -------------------------------------------------------------------------- */
.pillars { display: grid; gap: clamp(28px, 4vw, 72px); text-align: center; }
@media (min-width: 760px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillars h2 { margin-bottom: 18px; }
.pillars p { color: var(--ink); max-width: 46ch; margin-inline: auto; }

/* "How We Do It" — eight capabilities, drawn rather than listed. */
.how { background: var(--green); color: #fff; text-align: center; }
.how h2 { color: #fff; margin-bottom: clamp(28px, 4vw, 56px); }
/* Four and four, not seven and one. auto-fit packs in as many as will fit,
   which at most desktop widths left a single orphan on the second row. Eight
   items want two rows of four. */
.how-grid {
  display: grid; gap: clamp(26px, 3.4vw, 48px) clamp(18px, 2.4vw, 36px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 620px) { .how-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.how-item { display: grid; gap: 14px; justify-items: center; }
.how-item img { width: clamp(46px, 3.6vw, 62px); height: auto; }
.how-item span { font-size: clamp(14px, 1.15vw, 18px); line-height: 1.35; max-width: 16ch; }
/* Sand on the green — gold here would sink into the ground behind it. */
.how .btn { background: var(--sand); border-color: var(--sand); color: var(--navy); margin-top: clamp(30px, 4vw, 56px); }
.how .btn:hover { background: #e0caa0; border-color: #e0caa0; }

/* --------------------------------------------------------------------------
   Services — a gold line drawing, a green heading, the explanation
   -------------------------------------------------------------------------- */
.services { display: grid; gap: clamp(34px, 5vw, 76px) clamp(28px, 5vw, 90px); }
@media (min-width: 860px) { .services { grid-template-columns: 1fr 1fr; } }
.service-icon { width: clamp(48px, 4vw, 66px); height: auto; margin-bottom: clamp(14px, 1.6vw, 24px); }
.service h3 {
  font-family: var(--display); color: var(--green);
  font-size: clamp(24px, 2.9vw, 46px); line-height: 1.05; margin-bottom: 16px;
}
.service p { color: var(--ink); font-size: clamp(15px, 1.15vw, 18px); }

/* --------------------------------------------------------------------------
   Team page — circular headshots, name underneath
   -------------------------------------------------------------------------- */
.people {
  display: grid; gap: clamp(28px, 4vw, 64px) clamp(20px, 3vw, 48px);
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.person { text-align: center; }
.person-photo {
  aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
  background: #f4f4f2; display: grid; place-items: center;
}
/* The headshots are cut out on white, so they sit ON the circle rather than
   filling it — contain, not cover, or every chin gets trimmed. */
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.person-initials { font-family: var(--display); font-size: clamp(28px, 3vw, 46px); color: #b9bcb8; }
.person-body { padding-top: clamp(14px, 1.6vw, 22px); }
.person-body h3 {
  font-size: clamp(15px, 1.35vw, 21px); color: var(--gold);
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.25;
}
.person-title { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
/* A card with a bio is a button, and has to stop looking like one. */
.person-has-bio { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-align: center; }
.person-has-bio .person-photo { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.person-has-bio:hover .person-photo, .person-has-bio:focus-visible .person-photo { transform: scale(1.04); }
/* No "Read bio" label — the photograph lifting on hover is enough of a hint,
   and a caption under every second card made the grid noisy. */

/* --------------------------------------------------------------------------
   Prose — a page that is only words
   -------------------------------------------------------------------------- */
.prose { max-width: 74ch; }
.prose h2 { margin: clamp(34px, 4vw, 56px) 0 18px; }
.prose h3 { margin: clamp(24px, 2.6vw, 36px) 0 10px; color: var(--gold); font-family: var(--display); text-transform: uppercase; font-size: clamp(15px, 1.3vw, 19px); }
.prose p, .prose li { color: var(--ink); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.75; }
.prose ul { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.prose li { padding-left: 22px; position: relative; }
.prose li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.prose a { color: var(--gold); }

/* --------------------------------------------------------------------------
   Bio panel
   -------------------------------------------------------------------------- */
.bio {
  border: 0; padding: 0; width: min(860px, 92vw); max-width: none;
  background: var(--cream); color: var(--ink);
  /* Fixed and centred. A dialog is position:absolute by default, so opening
     one from a card near the foot of the team page scrolled the whole page up
     to where the dialog sits in the document (Phil, 2026-08-19). */
  position: fixed; inset: 0; margin: auto;
  max-height: min(88vh, 900px); overflow: auto;
}
.bio::backdrop { background: rgba(5, 25, 58, .62); }
.bio-in { display: grid; gap: clamp(20px, 3vw, 40px); padding: clamp(26px, 3.4vw, 48px); }
@media (min-width: 680px) { .bio-in { grid-template-columns: 220px 1fr; align-items: start; } }
.bio-photo {
  aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: #f4f4f2;
  display: grid; place-items: center; max-width: 220px;
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.bio-name { color: var(--gold); text-transform: uppercase; font-size: clamp(22px, 2.4vw, 34px); margin-bottom: 16px; }
.bio-text { color: var(--ink); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.7; }
.bio-x {
  position: absolute; top: 10px; right: 14px; background: none; border: 0;
  font-size: 30px; line-height: 1; color: var(--ink-mute); cursor: pointer; padding: 6px 10px;
}
.bio-x:hover { color: var(--gold); }
.person-contact { margin-top: 8px; font-size: 13px; display: grid; gap: 3px; }
.person-contact a { color: var(--ink-soft); text-decoration: none; word-break: break-word; }
.person-contact a:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   Listings — our own board, on the page itself
   --------------------------------------------------------------------------
   Everything ships at once and filters in the browser. Sixty properties is a
   few kilobytes; a request per keystroke would be slower, more fragile and
   more expensive than simply having the whole list already.
   -------------------------------------------------------------------------- */
.lpage { position: relative; background: var(--green); color: #fff; overflow: hidden; }
.lpage-art {
  position: absolute; top: 0; right: 0; width: min(46%, 760px); height: 100%;
  background: url("img/properties-background.png") right top / contain no-repeat;
  opacity: .9; pointer-events: none;
}
.lpage-in { position: relative; z-index: 1; padding-block: clamp(40px, 5vw, 76px) clamp(48px, 6vw, 96px); }
.lpage h1 { color: #fff; text-align: center; margin-bottom: clamp(24px, 3vw, 44px); }

.board { background: #fff; color: var(--ink); border-radius: 2px; box-shadow: 0 18px 50px rgba(1, 30, 29, .28); }
/* IntelliCRE listings, in the same white panel the board used. */
.ic-frame { background: #fff; border-radius: 2px; box-shadow: 0 18px 50px rgba(1, 30, 29, .28); overflow: hidden; }
.ic-frame iframe { display: block; width: 100%; min-height: 900px; border: 0; }

.board-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: clamp(14px, 1.6vw, 20px); border-bottom: 1px solid #eceae5;
}
.board-search { flex: 1 1 260px; min-width: 0; position: relative; }
.board-search input { width: 100%; padding: 11px 14px 11px 38px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }
.board-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); }
.board-bar select { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; }
.board-clear { background: none; border: 0; color: var(--ink-mute); font-size: 14px; cursor: pointer; padding: 8px; }
.board-clear:hover { color: var(--gold); }
.board-count { margin-left: auto; font-size: 14px; font-weight: 700; white-space: nowrap; }

.board-grid {
  display: grid; gap: clamp(16px, 1.8vw, 26px); padding: clamp(16px, 2vw, 26px);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.lcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.lcard-photo {
  position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden;
  background: var(--cream-deep);
}
.lcard-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.lcard:hover .lcard-photo img { transform: scale(1.04); }
.lcard-offer {
  position: absolute; top: 10px; left: 10px; background: #fff; color: var(--ink);
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 6px;
}
/* The headline sits on the photograph, so it needs its own ground to stay
   readable over a bright sky or a dark car park. */
.lcard-head {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px;
  color: #fff; font-weight: 700; font-size: 15px; line-height: 1.3;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
  border-left: 4px solid var(--gold);
}
.lcard-body { padding: 12px 2px 0; display: grid; gap: 5px; }
.lcard-name { font-size: 17px; font-weight: 700; }
.lcard-addr { font-size: 14px; color: var(--ink-soft); }
.lcard-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 3px; }
.chip {
  font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 6px;
  background: #f2f4f6; color: var(--ink-soft); display: inline-flex; gap: 5px; align-items: center;
}
.chip-offer::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2b8cf0; }
.chip-sale::before { background: #22a45d; }
.lcard-meta { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.lcard-spaces { font-size: 13px; color: var(--ink-mute); }

.board-state {
  grid-column: 1 / -1;
  padding: clamp(40px, 6vw, 80px) 24px; text-align: center; color: var(--ink-soft);
}
.board-state p { max-width: 46ch; margin-inline: auto; }
.board-state h3 { color: var(--ink); margin-bottom: 8px; }
.board-state a { color: var(--gold); }

/* --------------------------------------------------------------------------
   Contact — the form on the left, everything you might dial on the right
   -------------------------------------------------------------------------- */
/* The consent note and the map are a header for the form, not a section of
   their own — as two bands they stacked their padding and left a screenful of
   nothing between them (Phil, 2026-08-19). */
.contact-top {
  display: grid; gap: clamp(20px, 3vw, 48px); align-items: center;
  margin-bottom: clamp(30px, 4vw, 64px);
}
@media (min-width: 900px) { .contact-top { grid-template-columns: 1fr auto; } }
.contact-sms { color: var(--ink); font-size: clamp(15px, 1.15vw, 18px); max-width: 54ch; }
.contact-map { width: min(100%, 340px); justify-self: end; }
.contact-map img { width: 100%; height: auto; }

.contact-grid { display: grid; gap: clamp(32px, 5vw, 88px); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

/* The live form outlines every field in gold, which is the one place this
   palette earns a hairline: it marks what you are meant to fill in.
   Scoped to the contact grid rather than left as .field input — the generic
   form rule is declared further down and would otherwise win on order. */
.contact-grid .field input,
.contact-grid .field textarea { border-color: var(--gold); border-radius: 0; }
.form-sub { display: grid; gap: 6px; }
.form-sub > span { font-size: 13px; color: var(--ink-soft); }
.btn-submit { width: 100%; justify-content: center; background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-submit:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.contact-h { color: var(--gold); font-family: var(--display); text-transform: uppercase; }
.contact-h-1 { font-size: clamp(21px, 2vw, 30px); }
.contact-h-2 { font-size: clamp(16px, 1.4vw, 22px); margin-top: 6px; }
.contact-lines { display: grid; gap: clamp(18px, 2.4vw, 30px); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: clamp(20px, 2.6vw, 34px); }
.contact-lines h3 { font-family: var(--display); color: var(--gold); text-transform: uppercase; font-size: 16px; margin-bottom: 10px; }
.contact-lines a { color: var(--ink); text-decoration: none; }
.contact-lines a:hover { color: var(--gold); }
/* A gold rule beside each office, the way the live page marks them. */
.office { border-left: 3px solid var(--gold); padding-left: clamp(14px, 1.6vw, 22px); margin-top: clamp(24px, 3vw, 40px); }
.office h3 { font-family: var(--display); color: var(--gold); text-transform: uppercase; font-size: clamp(17px, 1.5vw, 23px); margin-bottom: 14px; }
.office p { margin-top: 12px; }
.office b { color: var(--ink); }

/* --------------------------------------------------------------------------
   Client portals — three doors, for people who already work with Z3
   -------------------------------------------------------------------------- */
.portals { display: grid; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (min-width: 900px) { .portals { grid-template-columns: auto 1fr; } }
.portals-title { font-size: clamp(26px, 3vw, 46px); border-bottom: 3px solid var(--gold); padding-bottom: 10px; }
.portal-cards { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border: 1px solid var(--gold); }
.portal-card { padding: clamp(20px, 2.4vw, 32px); border-right: 1px solid var(--gold); text-decoration: none; display: grid; gap: 14px; align-content: start; }
.portal-card:last-child { border-right: 0; }
.portal-card h3 { font-family: var(--display); color: var(--gold); font-size: clamp(22px, 2.2vw, 34px); }
.portal-card p { color: var(--gold); font-size: 15px; }
.portal-card img { width: 26px; height: 26px; }
.portal-card:hover { background: rgba(173, 121, 18, .06); }
@media (max-width: 620px) { .portal-card { border-right: 0; border-bottom: 1px solid var(--gold); } .portal-card:last-child { border-bottom: 0; } }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 2px; background: #fff; font-size: 16px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(171,122,43,0.15); }
.form-note { font-size: 13px; color: var(--ink-mute); }
.form-sent { font-size: 18px; font-weight: 600; color: var(--ink); padding: 24px 0; }
.form-sent.form-err { font-size: 15px; color: #9f1728; padding: 12px 0; }
/* Off-screen rather than display:none — a hidden field some bots skip, but an
   off-screen one they fill in like any other. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Closing band — the skyline behind deep green, and the ask
   -------------------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--green); color: #fff;
  /* Shallower than a hero. This band is a closing line, not an opening
     statement, and the skyline behind it reads better as a strip. */
  padding-block: clamp(44px, 4.6vw, 76px);
}
/* The photograph is a texture, not a picture — it sits under a wash of the
   brand green so the words stay the loudest thing in the band. */
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: url("img/cta-background.png") center bottom / cover no-repeat;
  opacity: 0.28; mix-blend-mode: luminosity;
}
.cta-in { position: relative; z-index: 1; }
.cta h2 {
  color: #fff; text-transform: uppercase;
  font-size: clamp(27px, 5.1vw, 98px); line-height: 0.94; margin-block: 10px 28px;
  max-width: 14ch;
}
.cta .eyebrow { color: var(--gold); }
/* Sand, not gold: on this green a gold button disappears into the background
   it is sitting on. */
.cta .btn { background: var(--sand); border-color: var(--sand); color: var(--navy); }
.cta .btn:hover { background: #e0caa0; border-color: #e0caa0; color: var(--navy); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-foot { background: var(--navy); color: #c3cbdb; padding-block: clamp(44px, 6vw, 78px); font-size: 15px; }
.foot-grid {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.foot-mark { max-width: 190px; }
.foot-mark img { width: 100%; height: auto; }
.foot-h {
  font-family: var(--display);
  font-size: clamp(15px, 1.3vw, 20px); font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; color: var(--sand); margin-bottom: 20px;
}
.site-foot a { color: #e7ebf3; text-decoration: none; }
.site-foot a:hover { color: var(--sand); }
/* Quick Links runs in two columns on the real thing, which is what keeps the
   footer from becoming one long ladder. */
.foot-links { display: grid; gap: 11px; align-content: start; }
.foot-links-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px clamp(14px, 2vw, 34px); }
.foot-res a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; display: block; }
.foot-res a:hover { color: var(--sand); }
.foot-contact a { text-decoration: underline; text-underline-offset: 3px; }
.foot-li { display: inline-flex; margin-top: 18px; }
.foot-li img { width: 26px; height: 26px; }
.foot-bottom {
  margin-top: clamp(30px, 4vw, 52px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; font-size: 13px; color: #8f9bb2;
}

/* --------------------------------------------------------------------------
   Scroll animation
   --------------------------------------------------------------------------
   Everything here is gated on .js, a class the script adds to <html> itself.
   Without it every rule below is inert, so a script that fails to load leaves
   a plain, complete, readable page rather than a blank one — which is what
   "hide it and reveal it later" does when the later never arrives.

   The live site does this with a jQuery plugin and a handler that runs on
   every scroll event. This runs when an element actually arrives, and then
   stops watching it.
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal="up"]    { transform: translateY(30px); }
.js [data-reveal="left"]  { transform: translateX(-56px); }
.js [data-reveal="right"] { transform: translateX(56px); }
.js [data-reveal="zoom"]  { transform: scale(1.07); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* A little overscan so the parallax has somewhere to move without showing an
   edge. The script writes the translate; this is the resting state. */
.js [data-parallax] { transform: scale(1.1); will-change: transform; }

/* Asked for less movement, given less movement. Everything lands where it
   belongs, immediately, with no transition to sit through. */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js [data-parallax] { transform: none; }
}

/* --------------------------------------------------------------------------
   Small screens
   --------------------------------------------------------------------------
   The layout is fluid, so most of this is manners rather than rescue: things
   that are fine at 1400px and awkward in a hand.
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  /* Full-width buttons stop being a row of half-tappable pills. */
  .hero-cta .btn, .split .btn, .how .btn, .cta .btn { width: 100%; justify-content: center; }
  .nav-portals .btn { justify-content: center; }

  /* The count was pushed to the far end of a row that no longer exists. */
  .board-count { margin-left: 0; width: 100%; }
  .board-bar select, .board-search { flex: 1 1 100%; }

  /* A dialog with desktop padding leaves no room for the words inside it. */
  .bio-in { padding: 22px 18px 26px; }
  .bio-photo { max-width: 150px; margin-inline: auto; }

  /* Two columns of headshots rather than one very tall one. */
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }

  .foot-links-2 { grid-template-columns: 1fr; }
}

/* Print: the flyer is the PDF, but a printed page should still be legible. */
@media print {
  .site-head, .cta, .burger { display: none; }
  body { background: #fff; }
}
