/*
  ilee - landing page, rebuilt 2026-09 under the taste-skill protocol.

  Design read: redesign-preserve for a trust-first Lagos rental service (
  Lekki and Ikeja). Grounded editorial language on the existing brand tokens.
  Dials: DESIGN_VARIANCE 6 / MOTION_INTENSITY 6 / VISUAL_DENSITY 3.

  2026-09 polish pass: the landing page keeps a shorter set of distinct
  story sections (ground rail, file bento, abroad split, ledger columns),
  a clear entry-point hero, and one final action zone. Redundant prototype
  gallery, build story, social-proof quotes, and duplicate CTA block removed.

  LOCKS
  - Theme: light only, locked (warm paper editorial identity; the brand insists).
  - Accent: brand green #176b46 and its deep shades. Single accent.
    Gold #c68f39 is the focus-ring color (a11y), #a33d2e is the form-error color (a11y).
  - Shape: interactive = full pill; media and form surfaces = 12px; inputs = 8px.
  - Type: Sora (display, brand) + Outfit (body, variable, self-hosted).
  - Z-index scale: 1 content / 2 hero copy / 30 header / 60 grain / 100 skip-link.
*/

:root {
  --canvas: #f6f4ef;
  --paper: #fbfaf7;
  --ink: #18231d;
  --ink-soft: #344238;
  --muted: #667168;
  --line: #d8ddd6;
  --line-strong: #bdc8be;
  --green: #176b46;
  --green-dark: #102c1d;
  --sage: #e7ede6;
  --cream: #f0ebe0;
  --error: #a33d2e;
  --display: 'Sora', 'Outfit', system-ui, sans-serif;
  --body: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4rem;
}

/* Hairline separator. Replaces the middle-dot run in the area strip: the
   skill rations the dot to one per line and prefers hairlines anyway. */
.sep {
  display: inline-block;
  width: 1px;
  height: 0.62em;
  background: currentColor;
  opacity: 0.45;
  vertical-align: middle;
}

/* ---------- foundation ---------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  /* No UA blue/grey flash on tap (mobile WebKit/Blink); inherits everywhere.
     Focus rings stay gold for keyboard users - this only kills the tap flash. */
  -webkit-tap-highlight-color: transparent;
}
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Grain: fixed, pointer-events-none overlay (never on scrolling containers). */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 620;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
::selection { background: rgba(23, 107, 70, 0.22); }

.shell { width: min(calc(100% - 2.5rem), 75rem); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 180ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #c68f39;
  outline-offset: 3px;
}

/* ---------- shared language ---------- */
.eyebrow {
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.78rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1), background-color 0.25s ease, color 160ms ease, border-color 160ms ease;
}
/* Press physics borrowed from Veeza: soft lift on hover, settle on press. */
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button svg, .button .ph { width: 0.98rem; height: 0.98rem; font-size: 0.98rem; flex: none; position: relative; z-index: 1; transition: transform 0.45s var(--ease-out); }
/* Flat pills: the brand reads cleaner with zero shadow on interactives. */
/* F-1: a button mid-request is inert, so it has to look inert. pointer-events
   off also stops the glass sheen from firing on a button that cannot act. */
.button:disabled { opacity: 0.55; pointer-events: none; }

.button--primary { background: var(--green); color: var(--paper); }
.button--primary:hover { background: #115b3a; }

/* Glass surface (Veeza's frosted pill, adapted): translucent fill + backdrop
   blur/saturate + a 1px inner ring and a top light line for the wet edge.
   --glass-fill/--glass-ink let a context retint the frost. */
.button--glass {
  --glass-fill: rgba(255, 255, 255, 0.14);
  --glass-fill-hover: rgba(255, 255, 255, 0.26);
  --glass-ink: #fff;
  background: var(--glass-fill);
  color: var(--glass-ink);
  -webkit-backdrop-filter: blur(4px) saturate(1.5);
  backdrop-filter: blur(4px) saturate(1.5);
  border-color: rgba(255, 255, 255, 0.28);
}
.button--glass:hover {
  background: var(--glass-fill-hover);
  border-color: rgba(255, 255, 255, 0.4);
}
/* Deep-green frost for glass over the bright hero plate (label stays legible). */
.button--glass-tint { --glass-fill: rgba(16, 44, 29, 0.32); --glass-fill-hover: rgba(16, 44, 29, 0.44); }
/* Sheen: one light band sweeps the surface on hover, then rests. */
.button--glass::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 38%;
  z-index: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-140%) skewX(-12deg);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}
.button--glass:hover::after { transform: translateX(430%) skewX(-12deg); }
/* No backdrop support or reduced transparency: solid frost stand-ins. */
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .button--glass { background: rgba(16, 44, 29, 0.55); }
  .button--glass-tint { background: rgba(16, 44, 29, 0.48); }
  .site-header.is-scrolled, .site-header.menu-open { background: rgba(251, 250, 247, 0.96); }
}
@media (prefers-reduced-transparency: reduce) {
  .button--glass { background: rgba(16, 44, 29, 0.55); }
  .button--glass-tint { background: rgba(16, 44, 29, 0.48); }
  .site-header.is-scrolled, .site-header.menu-open { background: rgba(251, 250, 247, 0.96); }
}
.button--compact { min-height: 2.5rem; padding-inline: 1rem; font-size: 0.78rem; }
.button--compact svg, .button--compact .ph { width: 0.85rem; height: 0.85rem; font-size: 0.85rem; }
.button__wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0f4a2e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.button:hover .button__wash { transform: scaleX(1); }
.button__label { position: relative; z-index: 1; }
.hero-actions .button:hover .ph-arrow-right, .cta-final .button:hover .ph-arrow-right { transform: translateX(4px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color 160ms ease;
}
.text-link:hover { color: var(--green); }
.text-link svg, .text-link .ph { width: 0.95rem; height: 0.95rem; flex: none; font-size: 0.95rem; }
.text-link .ph-arrow-up-right { transition: transform 200ms var(--ease-out); }
.text-link:hover .ph-arrow-up-right { transform: translate(2px, -2px); }

/* Scroll-reveal system (IntersectionObserver adds .is-revealed). */
.js [data-reveal] {
  opacity: 0;
  /* Veeza's whileInView feel: rise plus a whisper of scale. */
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--rd, 0s);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- header: Linear-style bar ----------
   Transparent at rest; on scroll (or with the menu open) a blurred paper
   bar with a hairline border. Nav links are hover-glass pills; a 1px
   divider sits before the CTA, as on linear.app. */
#bar-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; }
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: border-color 180ms ease, background-color 180ms ease;
}
.site-header.is-scrolled,
.site-header.menu-open {
  border-color: var(--line);
  background: rgba(251, 250, 247, 0.82);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--header-h);
}
.brand { display: block; width: 4.75rem; margin-right: auto; }
.brand img { width: 100%; height: auto; }
.desktop-nav { display: none; align-items: center; gap: 0.25rem; }
.desktop-nav a {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  transition: color 120ms ease, background-color 120ms ease;
}
.desktop-nav a:hover { color: var(--ink); background: rgba(24, 35, 29, 0.06); }
.nav-divider { display: none; width: 1px; height: 1rem; background: var(--line-strong); margin-inline: 0.55rem; }

/* Burger: two bars morph to an X, 160ms, origin centre (Linear's trigger). */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: var(--header-h);
  margin-right: -0.75rem;
  border: 0;
  background: none;
  color: var(--ink);
}
/* One family, two glyphs: list when closed, cross when open. The previous
   hand-drawn <rect> pair morphed by transform; the affordance is identical. */
.menu-toggle .ph { font-size: 1.15rem; line-height: 1; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline-block; }
.menu-toggle[aria-expanded="true"] rect:first-of-type { transform: translateY(2.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] rect:last-of-type { transform: translateY(-2.5px) rotate(-45deg); }

/* Mobile menu: full-height blurred paper panel under the bar,
   180ms fade in and out (Linear's mobileMenuIn/Out). */
.mobile-menu {
  position: fixed;
  top: calc(var(--header-h) + 1px);
  inset-inline: 0;
  /* Explicit stable height: svh, not dvh (dvh recomputes when mobile
     Chrome's URL bar collapses, resizing the panel mid-interaction).
     Cannot rely on bottom:0 because the frosted header's backdrop-filter is
     this element's containing block, so only an explicit height works. */
  height: calc(100vh - var(--header-h) - 1px);
  height: calc(100svh - var(--header-h) - 1px);
  z-index: 29;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 2.5rem;
  overflow-y: auto;
  background: rgba(251, 250, 247, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { animation: menu-in 180ms var(--ease-out) both; }
.mobile-menu.is-closing { animation: menu-out 180ms var(--ease-out) both; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes menu-out { from { opacity: 1; } to { opacity: 0; } }
.mobile-menu__label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.75rem 0 1.75rem;
  padding: 0;
  list-style: none;
}
.mobile-menu__list a {
  display: block;
  padding: 0.6rem 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 120ms ease;
}
.mobile-menu__list a:hover { color: var(--green); }

/* ---------- hero: centred copy on a parchment field ----------
   The engraved plate anchors the bottom edge; on scroll it lags the
   copy and gains a breath of scale (Monarch-style parallax, driven by
   a CSS scroll timeline, no listeners, static where unsupported). */
.hero {
  position: relative;
  /* svh, not dvh: dynamic viewport units recompute when mobile Chrome's
     URL bar collapses on scroll, resizing the hero mid-scroll and pushing
     the sections below. svh is the stable bar-shown height (identical at
     rest); vh is the fallback for engines without svh. */
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  background: #f7efdb;
}
.hero-plate {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: calc(-1 * clamp(2.5rem, 9vh, 6.5rem));
  width: min(100vw, 104rem);
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-plate img {
  display: block;
  width: 100%;
  height: auto;
  /* Fade the plate's sky into the field so the copy zone stays clean. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%);
  animation: plate-enter 1.1s var(--ease-out) 0.25s both;
}
@keyframes plate-enter {
  from { opacity: 0; transform: translateY(4%); }
  to { opacity: 1; transform: translateY(0); }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-plate {
      animation: plate-parallax linear both;
      animation-timeline: scroll(root);
      animation-range: 0 75vh;
    }
    .hero-copy {
      animation: copy-parallax linear both;
      animation-timeline: scroll(root);
      animation-range: 0 60vh;
    }
  }
}
/* Plate lags hard (reads ~0.8x scroll speed) and breathes up in scale;
   copy holds solid for the first third, then outruns the scroll and
   clears out completely before the hero leaves. */
@keyframes plate-parallax {
  from { transform: translateX(-50%) translateY(0) scale(1); }
  to { transform: translateX(-50%) translateY(16vh) scale(1.12); }
}
@keyframes copy-parallax {
  0% { transform: translateY(0); opacity: 1; }
  35% { transform: translateY(-3vh); opacity: 1; }
  100% { transform: translateY(-10vh); opacity: 0; }
}
/* Small screens: bleed the plate wider so the estate reaches up toward
   the actions instead of leaving a tall empty parchment band. */
@media (max-width: 640px) {
  .hero-plate {
    width: 136vw;
    bottom: calc(-1 * clamp(2rem, 7vh, 4rem));
  }
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(3.25rem, 8vh, 5.25rem) 0 0;
}
.hero-copy .eyebrow { margin-bottom: 1.25rem; animation: hero-fade-in 0.8s var(--ease-out) 0.08s both; }
.hero-copy h1 {
  font-size: clamp(2.7rem, 6.4vw, 4.9rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
}
.hero-line { display: block; overflow: hidden; }
.hero-line > span { display: block; animation: hero-line-in 1s var(--ease-out) both; }
.hero-line:nth-child(1) > span { animation-delay: 0.2s; }
.hero-line:nth-child(2) > span { animation-delay: 0.32s; color: var(--green); }
@keyframes hero-line-in {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
.hero-lede {
  max-width: 34rem;
  margin-top: 1.4rem;
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: 1.08rem;
  font-weight: 450;
  line-height: 1.55;
  animation: hero-fade-in 0.9s var(--ease-out) 0.55s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem 1.75rem;
  margin-top: 2rem;
  animation: hero-fade-in 0.9s var(--ease-out) 0.7s both;
}
.hero-actions .text-link { font-variant-numeric: tabular-nums; }
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- statement: the brand line as a typographic beat ---------- */
.statement-section { padding-block: 4.75rem 5.5rem; background: linear-gradient(180deg, var(--canvas) 0, var(--sage) 7rem); }
.statement-section h2 {
  max-width: 15ch;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  font-weight: 640;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--green-dark);
}
.statement-section p {
  max-width: 46rem;
  margin-top: 1.3rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 450;
  line-height: 1.6;
}

/* ---------- workflow: one image, four concrete steps ---------- */
.workflow-section { padding-block: 5.5rem 6.5rem; background: linear-gradient(180deg, var(--sage) 0, var(--paper) 7rem); }
.workflow-head { max-width: 46rem; margin-bottom: 3.25rem; }
.workflow-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.workflow-head p {
  max-width: 52ch;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}
.workflow-layout { display: grid; gap: 2.5rem; }
.workflow-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sage);
  aspect-ratio: 16 / 10;
}
.workflow-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.workflow-list { margin: 0; padding: 0; list-style: none; }
.workflow-list li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 1.1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-strong);
}
.step-number {
  padding-top: 0.18rem;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.workflow-list h3 { font-size: 1.08rem; font-weight: 620; letter-spacing: -0.02em; line-height: 1.3; }
.workflow-list p { max-width: 48ch; margin-top: 0.45rem; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* ---------- pathways ---------- */
.paths-section { padding-block: 5.5rem 6.5rem; background: linear-gradient(180deg, var(--paper) 0, var(--canvas) 7rem); }
.paths-head { max-width: 46rem; margin-bottom: 3rem; }
.paths-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.paths-head p {
  max-width: 52ch;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}
.path {
  padding-block: 1.9rem;
  border-top: 1px solid var(--line-strong);
}
.path h3 { font-size: 1.15rem; font-weight: 620; letter-spacing: -0.025em; }
.path p { max-width: 56ch; margin-top: 0.6rem; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }
.contextual-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 700;
  transition: color 160ms ease;
}
.contextual-link:hover { color: var(--green-dark); }
.contextual-link svg, .contextual-link .ph { width: 0.95rem; height: 0.95rem; flex: none; font-size: 0.95rem; }
.contextual-link .ph-arrow-up-right, .contextual-link .ph-arrow-down-right { transition: transform 200ms var(--ease-out); }
.contextual-link:hover .ph-arrow-up-right { transform: translate(2px, -2px); }
.contextual-link:hover .ph-arrow-down-right { transform: translate(2px, 2px); }

/* ---------- ground: four corridors on a swipeable rail ---------- */
.ground-section { padding-block: 5.5rem 4rem; background: var(--canvas); overflow: hidden; }
.ground-head { max-width: 46rem; margin-bottom: 2.75rem; }
.ground-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.ground-head p {
  max-width: 52ch;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}
.ground-rail {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(1.25rem, calc((100% - 75rem) / 2));
  padding-inline: max(1.25rem, calc((100% - 75rem) / 2));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ground-rail::-webkit-scrollbar { display: none; }
.ground-rail:focus-visible { outline-offset: -3px; }
.ground-list {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0.25rem 0.25rem 0.5rem;
  list-style: none;
}
.ground-card { flex: 0 0 clamp(15rem, 72vw, 21rem); scroll-snap-align: start; }
.ground-card figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sage);
  aspect-ratio: 4 / 3;
}
.ground-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.ground-card:hover img { transform: scale(1.045); }
.ground-card figure { transition: transform 0.45s var(--ease-out); }
.ground-card:hover figure { transform: translateY(-4px); }
.ground-card h3 { margin-top: 0.95rem; font-size: 1.06rem; font-weight: 620; letter-spacing: -0.02em; }
.ground-card p { max-width: 30ch; margin-top: 0.4rem; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

/* ---------- file: the four paperwork bundles, as a bento ---------- */
.file-section { padding-block: 5.5rem 6.5rem; background: linear-gradient(180deg, var(--canvas) 0, var(--paper) 7rem); }
.file-head { max-width: 46rem; margin-bottom: 3rem; }
.file-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.file-head p {
  max-width: 52ch;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}
.file-grid { display: grid; gap: 1.25rem; }
.file-cell { padding: 1.6rem 1.5rem; border-radius: 12px; }
.file-cell h3 { font-size: 1.06rem; font-weight: 620; letter-spacing: -0.02em; }
.file-cell p { max-width: 40ch; margin-top: 0.55rem; font-size: 0.92rem; line-height: 1.6; }
.file-cell--title { background: var(--sage); }
.file-cell--title p { color: var(--ink-soft); }
.file-cell--media {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sage);
  min-height: 16rem;
}
.file-cell--media img { width: 100%; height: 100%; object-fit: cover; }
.file-cell--survey { background: var(--canvas); border: 1px solid var(--line); }
.file-cell--survey p { color: var(--muted); }
.file-cell--history { background: var(--cream); }
.file-cell--history p { color: var(--ink-soft); }
.file-cell--payments { background: var(--green-dark); }
.file-cell--payments h3 { color: var(--paper); }
.file-cell--payments p { color: rgba(255, 255, 255, 0.78); }

/* ---------- abroad: sticky scene beside three beats ---------- */
.abroad-section { padding-block: 5.5rem 6.5rem; background: linear-gradient(180deg, var(--sage) 0, var(--paper) 7rem); }
.abroad-layout { display: grid; gap: 2.75rem; }
.abroad-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sage);
  aspect-ratio: 1;
}
.abroad-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.abroad-copy .eyebrow { margin-bottom: 1rem; }
.abroad-copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.abroad-copy > div > p:not(.eyebrow) {
  max-width: 48ch;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}
.abroad-beats { margin: 2.5rem 0 0; padding: 0; list-style: none; }
.abroad-beats li { padding-block: 1.4rem; border-top: 1px solid var(--line-strong); }
.abroad-beats h3 { font-size: 1.05rem; font-weight: 620; letter-spacing: -0.02em; }
.abroad-beats p { max-width: 46ch; margin-top: 0.4rem; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

/* ---------- ledger: the limits, in two columns ---------- */
.ledger-section { padding-block: 5.5rem 6.5rem; background: linear-gradient(180deg, var(--paper) 0, var(--canvas) 7rem); }
.ledger-head { max-width: 46rem; margin-bottom: 3rem; }
.ledger-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.ledger-head p {
  max-width: 52ch;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}
.ledger-columns { display: grid; gap: 1.25rem; }
.ledger-col { padding: 1.9rem 1.75rem; border: 1px solid var(--line); border-radius: 12px; }
.ledger-col--will { background: var(--paper); }
.ledger-col--wont { background: var(--cream); }
.ledger-col h3 { font-size: 1.02rem; font-weight: 640; letter-spacing: -0.02em; }
.ledger-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.ledger-col li {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}
.ledger-col li svg, .ledger-col li .ph { width: 1.05rem; height: 1.05rem; margin-top: 0.14rem; font-size: 1.05rem; }
.ledger-col--will li svg { color: var(--green); }
.ledger-col--wont li svg { color: var(--muted); }

/* ---------- new sections: 640 and up ---------- */
@media (min-width: 640px) {
  .ground-rail {
    scroll-padding-inline: max(2.5rem, calc((100% - 75rem) / 2));
    padding-inline: max(2.5rem, calc((100% - 75rem) / 2));
  }
  .ground-card { flex-basis: clamp(16rem, 34vw, 22rem); }
}

/* ---------- new sections: 900 and up ---------- */
@media (min-width: 900px) {
  .ground-card { flex-basis: clamp(17rem, 24vw, 23rem); }

  .file-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      't t t m m m'
      's s s m m m'
      'h h p p p p';
    gap: 1.5rem;
  }
  .file-cell--title { grid-area: t; }
  .file-cell--media { grid-area: m; }
  .file-cell--survey { grid-area: s; }
  .file-cell--history { grid-area: h; }
  .file-cell--payments { grid-area: p; }
  .file-cell { padding: 2rem 1.9rem; }
  .file-cell--media { padding: 0; }


  .abroad-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: clamp(3rem, 5vw, 4.5rem);
  }
  .abroad-figure { position: sticky; top: 6.5rem; aspect-ratio: 4 / 5; }
  .abroad-beats { margin-top: 2.75rem; }
  .abroad-beats li {
    display: grid;
    grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
    gap: 2rem;
    padding-block: 1.6rem;
  }
  .abroad-beats p { max-width: 44ch; margin-top: 0; }

  .ledger-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .ledger-col { padding: 2.25rem 2.1rem; }
}

/* ---------- agent network: form over the field image ---------- */
.network-section {
  position: relative;
  padding-block: 5.5rem 6.5rem;
  overflow: hidden;
}
.network-media { position: absolute; inset: 0; z-index: 1; }
.network-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.network-media__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14, 33, 23, 0.9) 0%, rgba(14, 33, 23, 0.68) 45%, rgba(14, 33, 23, 0.85) 100%);
}
.network-section::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 8rem;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--canvas) 0%, rgba(246, 244, 239, 0) 100%);
}
.network-section::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 9rem;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(240, 235, 224, 0) 0%, var(--cream) 92%);
}
.network-content { position: relative; z-index: 3; max-width: 42rem; }
.network-copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--paper);
}
.network-copy p { max-width: 40ch; margin-top: 1rem; color: rgba(255, 255, 255, 0.78); font-size: 0.98rem; line-height: 1.6; }
.agent-form {
  margin-top: 2.25rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.form-row { display: grid; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field > span { color: var(--ink-soft); font-size: 0.76rem; font-weight: 700; line-height: 1.25; }
.form-field em { font-style: normal; font-weight: 400; }
.form-field input, .form-field textarea {
  width: 100%;
  border: 0;
  border-radius: 13px;
  outline: none;
  background: var(--sage);
  color: var(--ink);
  font-size: 0.9rem;
  transition: background-color 160ms ease, color 160ms ease;
}
.form-field input { height: 2.9rem; padding: 0 0.85rem; }
.form-field textarea { min-height: 5.4rem; padding: 0.8rem 0.85rem; resize: vertical; line-height: 1.45; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); }
.form-field:focus-within > span { color: var(--green); }
.form-field input:focus, .form-field textarea:focus { border: 0; outline: none; background: #e7efe9; box-shadow: none; }
.form-field input[aria-invalid='true'] { background: #f8e9e5; }
.form-error {
  display: block;
  min-height: 1.05em;
  color: var(--error);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}
.form-submit { width: 100%; margin-top: 0.25rem; }
.form-note {
  max-width: 34rem;
  margin: 0.2rem auto 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
}
.form-note--error { color: var(--error); }

/* Consent row: NDPA/GAID requires an explicit, unticked opt-in before any
   personal detail leaves the form. Same type scale as .form-note. */
.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
}
.form-consent input[type='checkbox'] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.05rem 0 0;
  flex: none;
  accent-color: var(--green);
  border: 1px solid var(--line-strong);
  cursor: pointer;
}
.form-consent input[type='checkbox']:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.form-consent input[type='checkbox'][aria-invalid='true'] { outline: 2px solid var(--error); outline-offset: 2px; }
.form-consent label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}
.form-consent p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}
.form-consent a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- FAQ ---------- */
.faq-section { padding-block: 5.5rem 6.5rem; background: var(--cream); }
.faq-intro { max-width: 24rem; }
.faq-intro h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.faq-intro > p { margin-top: 1rem; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.6; }
.faq-intro .text-link { margin-top: 1.5rem; }
.faq-item { padding-block: 1.5rem; border-bottom: 1px solid var(--line-strong); }
.faq-item:first-child { padding-top: 0.25rem; }
.faq-item h3 { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 1.02rem; font-weight: 620; letter-spacing: -0.02em; line-height: 1.35; }
.faq-trigger {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  transition: color 180ms ease;
}
.faq-trigger:hover { color: var(--green); }
.faq-trigger__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--green);
  font-size: 0.9rem;
  transition: background-color 320ms var(--ease-out), border-color 320ms var(--ease-out), color 320ms var(--ease-out), transform 420ms var(--ease-out);
}
.faq-trigger[aria-expanded='true'] .faq-trigger__icon {
  border-color: var(--green);
  background: var(--green);
  color: var(--paper);
}
.faq-answer {
  display: grid;
  grid-template-rows: 1fr;
  margin-top: 0.55rem;
  opacity: 1;
  transition: grid-template-rows 420ms var(--ease-out), margin-top 420ms var(--ease-out), opacity 260ms ease;
}
.faq-answer__inner { min-height: 0; overflow: hidden; }
.faq-answer p { max-width: 60ch; margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.65; }
.js .faq-answer { grid-template-rows: 0fr; margin-top: 0; opacity: 0; }
.js .faq-item.is-open .faq-answer { grid-template-rows: 1fr; margin-top: 0.55rem; opacity: 1; }

/* ---------- final CTA ---------- */
.cta-final {
  width: min(calc(100% - 2rem), 75rem);
  margin: 0 auto 2.5rem;
  padding-block: 5.5rem 6.5rem;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(23, 107, 70, 0.12);
  border-radius: 1.5rem;
  background:
    radial-gradient(36rem 18rem at 100% 0%, rgba(62, 132, 89, 0.32), transparent 72%),
    var(--green-dark);
}
.cta-final > .shell { position: relative; z-index: 1; }
.cta-final + .site-footer .footer-grid { padding-top: 3.2rem; }
.cta-final h2 {
  max-width: 17ch;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 640;
  letter-spacing: -0.05em;
  line-height: 1.06;
  color: var(--paper);
}
.cta-final > .shell > p {
  max-width: 44rem;
  margin-top: 1.3rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.98rem;
  font-weight: 450;
  line-height: 1.65;
}
.cta-final > .shell > p a { color: #cfe2d3; font-variant-numeric: tabular-nums; transition: color 160ms ease; }
.cta-final > .shell > p a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.cta-final .button { margin-top: 2.1rem; }

.landing-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.8rem 1.5rem;
  margin-top: 2rem;
}
.landing-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #cfe2d3;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.landing-links a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.landing-links .ph { font-size: 0.95rem; }

/* ---------- footer ----------
   Structured five-column desk directory: brand + address, explore,
   company, field guides, contact; legal strip; faint pixel engraving. */
.site-footer { border-top: 1px solid var(--line); background: var(--cream); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem 2rem;
  padding-block: 3.2rem 2.6rem;
}
.footer-brand { display: block; width: 5rem; }
.footer-brand img { width: 100%; height: auto; }
.footer-blurb { margin-top: 1.05rem; max-width: 34ch; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.footer-address { margin-top: 1.05rem; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.55; }
.footer-heading {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.footer-col a { display: inline-block; padding-block: 0.32rem; color: var(--muted); font-size: 0.85rem; transition: color 160ms ease; }
.footer-col a:hover { color: var(--green); }
.footer-desk a { font-variant-numeric: tabular-nums; }
.footer-hours { margin-top: 0.7rem; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-block: 1.15rem 1.3rem;
  border-top: 1px solid var(--line);
}
.footer-legal p { color: var(--muted); font-size: 0.76rem; }
.footer-legal-links { display: flex; gap: 1.2rem; }
.footer-legal-links a { color: var(--muted); transition: color 160ms ease; }
.footer-legal-links a:hover { color: var(--green); }
/* Faint engraving: the wordmark as a chunky pixel grid, kept at a whisper. */
.footer-engraving {
  display: flex;
  justify-content: center;
  padding: 1.6rem 1.25rem 1.4rem;
  color: var(--ink);
  opacity: 0.06;
}
.footer-engraving svg { display: block; width: min(92%, 42rem); height: auto; }
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 2.5rem; }
}

/* ---------- ≥640 ---------- */
@media (min-width: 640px) {
  .shell { width: min(calc(100% - 5rem), 75rem); }
  :root { --header-h: 4.5rem; }
  .brand { width: 5.3rem; }
  .hero-copy { padding: 4.5rem 0 5rem; }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- ≥900: desktop composition ---------- */
@media (min-width: 900px) {
  html { scroll-padding-top: calc(var(--header-h) + 1.25rem); }
  .desktop-nav { display: flex; }
  .menu-toggle { display: none; }
  .nav-divider { display: block; }

  .hero-copy { padding: 5.5rem 0 6rem; }

  .workflow-layout {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    align-items: start;
    gap: clamp(3rem, 5vw, 4.5rem);
  }
  .workflow-figure { aspect-ratio: 4 / 5; }

  .path {
    display: grid;
    grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr) auto;
    gap: 2.5rem;
    align-items: start;
    padding-block: 2.1rem;
  }
  .path p { max-width: none; margin-top: 0; }
  .path h3 { padding-top: 0.1rem; }
  .contextual-link { margin-top: 0.15rem; }

  .network-media img { object-position: 62% 34%; }
  .network-media__veil {
    background: linear-gradient(100deg, rgba(14, 33, 23, 0.94) 0%, rgba(14, 33, 23, 0.88) 34%, rgba(14, 33, 23, 0.55) 68%, rgba(14, 33, 23, 0.42) 100%);
  }
  .network-content { max-width: 44rem; }
  .agent-form { padding: 2.25rem; gap: 1.1rem; }

  .faq-layout {
    display: grid;
    grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
    align-items: start;
    gap: 4.5rem;
  }
  .faq-intro { position: sticky; top: 6.5rem; max-width: none; }
  .faq-item { padding-block: 1.6rem; }
}

/* ---------- document pages (privacy, terms) ---------- */
.document-section { padding-block: 4.5rem 6rem; background: var(--paper); }
.document-shell { max-width: 44rem; }
.document-shell h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.document-lede {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 450;
  line-height: 1.55;
}
.document-block { margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--line-strong); }
.document-block h2 { font-size: 1.2rem; font-weight: 620; letter-spacing: -0.025em; }
.document-block p { max-width: 60ch; margin-top: 0.7rem; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; }

/* ---------- 404 ---------- */
.notfound-section {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  background: var(--canvas);
}
.notfound-inner { padding-block: 4rem; max-width: 34rem; }
.notfound-code {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.notfound-inner h1 {
  margin-top: 0.75rem;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.notfound-inner > p { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.75rem;
  margin-top: 2rem;
}

/* ---------- small phones ---------- */
@media (max-width: 389px) {
  .shell { width: min(calc(100% - 2rem), 75rem); }
  .header-inner { gap: 0.65rem; }
  .brand { width: 4.35rem; }
  .button--compact { padding-inline: 0.78rem; font-size: 0.72rem; }
  .hero-copy { padding-block: 2.75rem 3.5rem; }
  .hero-actions { gap: 0.9rem 1.4rem; }
  .agent-form { padding: 1.4rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- inner pages: about, listings, guides, contact ----------
   Same rhythm as the landing: paper head, alternating tone sections,
   12px surfaces, pill interactives, IO reveals. No new motion language. */
.page-head { padding-block: 4.25rem 3.75rem; background: var(--paper); }
.page-head .eyebrow { margin-bottom: 1rem; }
.page-head h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.page-lede {
  margin-top: 1rem;
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 450;
  line-height: 1.55;
}
.page-section { padding-block: 5.5rem 6.5rem; }
.tone-paper { background: var(--paper); }
.tone-canvas { background: var(--canvas); }
.tone-sage { background: var(--sage); }
.tone-cream { background: var(--cream); }
/* Inner pages: bands fade in from the previous tone, same wash as the index. */
.page-head + .tone-canvas,
.tone-paper + .tone-canvas { background: linear-gradient(180deg, var(--paper) 0, var(--canvas) 7rem); }
.tone-canvas + .tone-sage { background: linear-gradient(180deg, var(--canvas) 0, var(--sage) 7rem); }
.tone-sage + .tone-paper { background: linear-gradient(180deg, var(--sage) 0, var(--paper) 7rem); }
.tone-sage + .tone-canvas { background: linear-gradient(180deg, var(--sage) 0, var(--canvas) 7rem); }
.tone-canvas + .tone-paper { background: linear-gradient(180deg, var(--canvas) 0, var(--paper) 7rem); }
/* Last band on a page melts into the cream footer. */
main > .tone-canvas:last-child {
  background:
    linear-gradient(180deg, transparent calc(100% - 6rem), var(--cream) 100%),
    linear-gradient(180deg, var(--paper) 0, var(--canvas) 7rem);
}
main > .tone-sage:last-child {
  background:
    linear-gradient(180deg, transparent calc(100% - 6rem), var(--cream) 100%),
    linear-gradient(180deg, var(--canvas) 0, var(--sage) 7rem);
}
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.section-head p { max-width: 52ch; margin-top: 1rem; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }

/* Two-column editorial split */
.split-2 { display: grid; gap: 2.75rem; }
.prose p { max-width: 60ch; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.7; }
.prose p + p { margin-top: 1rem; }
@media (min-width: 900px) { .split-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }

/* Fact stats */
.stat-row { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding: 1.6rem 1.5rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--green-dark);
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* People: monogram cards, no stock portraits */
.people-grid { display: grid; gap: 1.25rem; }
.person { padding: 1.7rem 1.6rem 1.8rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.person .monogram {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green-dark);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
}
.person h3 { margin-top: 1.1rem; font-size: 1.06rem; font-weight: 620; letter-spacing: -0.02em; }
.person .role { display: block; margin-top: 0.25rem; color: var(--green); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.person p { margin-top: 0.7rem; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
@media (min-width: 640px) { .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Listings - Modern Flat Card Layout System */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 600px) and (max-width: 839px) {
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (min-width: 840px) {
  .listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}
@media (min-width: 1200px) {
  .listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}
@media (min-width: 1680px) {
  .listing-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
  }
}

/* ── Card Architecture (NO SHADOWS, crisp border-radius) ── */
.home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 24px;
  padding: 8px 8px 14px 8px;
  border: 1px solid var(--line);
  box-shadow: none !important;
  transition: border-color 160ms ease, background-color 160ms ease;
  overflow: hidden;
}
.home-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}
.home-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.8;
  border-radius: 18px;
  overflow: hidden;
  background: #f1f5f9;
}
.home-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 350ms ease;
}
.home-card:hover .home-card__media img {
  transform: scale(1.03);
}
.home-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: rgba(16, 44, 29, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  z-index: 2;
}
.home-card__badge--direct {
  background: rgba(30, 41, 59, 0.82);
}
.home-card__badge--schedule,
.home-card__badge--verified {
  background: rgba(23, 107, 70, 0.88);
}
.home-card__save-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(22, 24, 28, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  cursor: pointer;
  box-shadow: none !important;
  transition: transform 160ms ease, background-color 160ms ease;
  z-index: 2;
}
.home-card__save-btn:hover {
  background: #000000;
  transform: scale(1.08);
}
.home-card__save-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-card__body {
  padding: 8px 4px 2px 4px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 2px;
}
.home-card__header {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 2px;
}
.home-card__title {
  font-size: clamp(0.82rem, 0.95vw, 0.94rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-card__location {
  font-size: clamp(0.68rem, 0.8vw, 0.74rem);
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-card__price {
  font-size: clamp(0.85rem, 0.98vw, 0.96rem);
  font-weight: 750;
  color: var(--green);
  margin: 4px 0 8px;
}
.home-card__price small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}
.home-card__action-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  background: var(--ink);
  color: #ffffff;
  font-size: clamp(0.72rem, 0.82vw, 0.8rem);
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: -0.01em;
  box-shadow: none !important;
  text-decoration: none;
  transition: background-color 160ms ease, opacity 160ms ease;
}
.home-card__action-btn:hover {
  background: #000000;
  color: #ffffff;
  text-decoration: none;
}
.home-card__action-btn--primary {
  background: var(--green);
}
.home-card__action-btn--primary:hover {
  background: var(--green-dark);
}

.listing { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: #ffffff; border: 1px solid var(--line); }
.listing figure { aspect-ratio: 4 / 3.8; overflow: hidden; }
.listing img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.listing:hover img { transform: scale(1.045); }
.listing-body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.35rem 1.35rem 1.5rem; flex: 1; }
.listing h3 { font-size: 1.06rem; font-weight: 620; letter-spacing: -0.02em; }
.listing .spec { color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.listing .note { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.6; flex: 1; }
.listing .contextual-link { margin-top: 0.5rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill::before { content: ""; width: 0.42rem; height: 0.42rem; border-radius: 999px; background: currentColor; }
.pill--clear { background: var(--sage); color: var(--green); }
.pill--progress { background: var(--cream); color: var(--ink-soft); }
.pill--reserved { background: rgba(24, 35, 29, 0.08); color: var(--muted); }
.listing-cta { display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; padding: 1.6rem 1.5rem; border-radius: 24px; background: var(--green-dark); }
.listing-cta h3 { color: var(--paper); font-size: 1.06rem; font-weight: 620; letter-spacing: -0.02em; }
.listing-cta p { color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; line-height: 1.6; }
.listing-cta .contextual-link { color: #cfe2d3; }
.listing-cta .contextual-link:hover { color: var(--paper); }
/* A state panel is one cell of the grid, so it has to span every track or it
   would sit beside empty columns on a wide screen. */
.listing-grid > .homes-state { grid-column: 1 / -1; }
.listings-note { margin-top: 2rem; color: var(--muted); font-size: 0.82rem; line-height: 1.6; }

/* Guides: article prose on the document rhythm */
.guide-shell { max-width: 46rem; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin-top: 1.1rem; color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.guide-body { margin-top: 3.25rem; }
.guide-body > section { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line-strong); }
.guide-body > section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.guide-body h2 { font-size: 1.2rem; font-weight: 620; letter-spacing: -0.025em; }
.guide-body p { margin-top: 0.7rem; max-width: 62ch; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.7; }
.guide-body ul, .guide-body ol { margin: 0.8rem 0 0; padding-left: 1.15rem; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; }
.guide-body li { margin-top: 0.45rem; max-width: 62ch; }
.guide-body li::marker { color: var(--green); font-weight: 700; }
.callout { margin-top: 1.5rem; padding: 1.25rem 1.4rem; border-radius: 12px; background: var(--sage); border-left: 3px solid var(--green); }
.callout--caution { background: var(--cream); border-left-color: var(--line-strong); }
.callout h3 { font-size: 0.95rem; font-weight: 700; }
.callout p { margin-top: 0.5rem; font-size: 0.9rem; }
.callout ul { margin-top: 0.5rem; font-size: 0.9rem; }
.keypoints { margin-top: 2.6rem; padding: 1.7rem 1.7rem 1.8rem; border-radius: 12px; background: var(--green-dark); }
.keypoints h2 { color: var(--paper); font-size: 1.05rem; font-weight: 700; }
.keypoints ul { margin: 0.9rem 0 0; padding: 0; list-style: none; }
.keypoints li { display: flex; gap: 0.6rem; margin-top: 0.6rem; max-width: none; color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; line-height: 1.55; }
.keypoints li::marker { content: none; }
.keypoints li svg, .keypoints li .ph { width: 1.05rem; height: 1.05rem; flex: none; margin-top: 0.12rem; font-size: 1.05rem; color: #9fd0b2; }
.guide-related { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line-strong); }
.guide-related h2 { color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cost-table { width: 100%; margin-top: 1.3rem; border-collapse: collapse; font-size: 0.9rem; }
.cost-table caption { caption-side: bottom; margin-top: 0.7rem; color: var(--muted); font-size: 0.78rem; text-align: left; }
.cost-table th, .cost-table td { padding: 0.72rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cost-table thead th { color: var(--muted); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cost-table th:last-child, .cost-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  .cost-table th:last-child, .cost-table td:last-child { text-align: left; white-space: normal; overflow-wrap: anywhere; }
}
.cost-table tbody th { font-weight: 600; color: var(--ink); }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.form-field select {
  width: 100%;
  height: 2.9rem;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 13px;
  outline: none;
  background: var(--sage);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  transition: background-color 160ms ease;
}
.form-field:focus-within select { background: #e7efe9; }
.contact-aside { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-card { padding: 1.4rem 1.4rem 1.5rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.contact-card h3 { font-size: 0.95rem; font-weight: 700; }
.contact-card p { margin-top: 0.45rem; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.contact-card a { color: var(--green); font-variant-numeric: tabular-nums; }
.contact-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem); align-items: start; }
  .contact-aside { position: sticky; top: 6.5rem; }
}
@media (max-width: 389px) {
  .contact-form { padding: 1.4rem; }
  .page-head { padding-block: 3.5rem 3rem; }
}

/* ---------- campaign pass: inner pages pick up the brand kit ----------
   about was image-free (a protocol gap); listings gets the inspected-home
   band. Same locks: 12px media surfaces, paper/sage fields, IO reveals. */
.about-figures { display: grid; gap: 1.5rem; margin-top: 2.75rem; }
.about-figures figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  aspect-ratio: 4 / 3;
}
.about-figures img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-band-section { padding-block: 0 3.5rem; background: var(--paper); }
.page-band {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sage);
  aspect-ratio: 16 / 10;
}
.page-band img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.how-split { display: grid; gap: 2.5rem; }
.prose-note { margin: 0 0 1.5rem; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.65; }
.side-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sage);
  aspect-ratio: 4 / 5;
}
.side-figure img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- campaign pass inner: 900 and up ---------- */
@media (min-width: 900px) {
  .about-figures { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .how-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .page-band { aspect-ratio: 21 / 9; }
}

/* ---------- motion pass: text masks, stack cards, parallax frames ----------
   GSAP drives the choreography from js/motion.js (index only); these are
   the static hooks. has-motion disables the default IO reveal so the two
   systems never fight over the same element. */
html.has-motion [data-reveal] { opacity: 1; transform: none; transition: none; }
.w-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-block: 0.14em; margin-block: -0.14em; }
.w-word { display: inline-block; will-change: transform; }
.workflow-figure, .abroad-section figure { overflow: hidden; }

/* ---------- corridor marquee: the page's single kinetic strip ----------
   The four corridors drift sideways under the ground rail; edge masks
   dissolve the loop. Static under prefers-reduced-motion. */
.corridor-marquee {
  overflow: hidden;
  margin-top: 3.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent);
}
.corridor-marquee__track {
  display: flex;
  width: max-content;
  animation: corridor-drift 30s linear infinite;
}
.corridor-marquee__track p {
  margin: 0;
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  font-weight: 640;
  letter-spacing: -0.03em;
  color: var(--line-strong);
}
@keyframes corridor-drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .corridor-marquee__track { animation: none; }
}

/* ---------- mobile rhythm: tight, editorial, no dead air ---------- */
@media (max-width: 639px) {
  .page-section { padding-block: 3.25rem 3.75rem; }
  .document-section { padding-block: 3rem 3.5rem; }
  .statement-section,
  .workflow-section,
  .ground-section,
  .file-section,
  .paths-section,
  .abroad-section,
  .ledger-section,
  .faq-section { padding-block: 3.25rem 3.75rem; }
  .network-section { padding-block: 3.5rem 4.5rem; }
  .cta-final { padding-block: 3.5rem 4.5rem; }
  .landing-links { grid-template-columns: 1fr; gap: 0.7rem; }
  .workflow-head, .paths-head, .ground-head,
  .file-head, .ledger-head { margin-bottom: 2rem; }
  .workflow-layout, .abroad-layout { gap: 2rem; }
  .corridor-marquee { margin-top: 2.25rem; }
  .footer-grid { padding-block: 2.5rem 2rem; gap: 2rem 1.5rem; }
  .hero-copy { padding: 3.5rem 0 4rem; }
}

/* ==========================================================================
   Tenant-facing reads: the live home list (listings.html) and the application
   status lookup (status.html).

   Both render from the API, so both need the states a server-rendered page
   never needed: loading, empty, error. Tokens, radii, easing and the single
   accent are unchanged; nothing here introduces a new colour.
   ========================================================================== */


/* Helper text under an input. The label rule above gives every span in
   .form-field the 700-weight label treatment, so the hint needs its own. */
.form-field .form-hint { color: var(--muted); font-size: 0.82rem; font-weight: 400; line-height: 1.5; }

/* ---------- home list ---------- */
.homes-state {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 2.5rem 1.75rem;
  text-align: center;
}
.homes-state__icon { font-size: 1.6rem; color: var(--green); }
.homes-state h3 { margin: 0.85rem 0 0.4rem; font-family: var(--display); font-size: 1.15rem; font-weight: 640; letter-spacing: -0.02em; }
.homes-state p { max-width: 46ch; margin: 0 auto; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }
.homes-state__actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.homes-state--error { border-color: var(--line-strong); }
.homes-state--error .homes-state__icon { color: var(--error); }

/* Skeletons match the real card shape, so the layout does not jump on load. */
.skeleton-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}
.skeleton-card__media { aspect-ratio: 16 / 9; background: var(--sage); }
.skeleton-card__body { padding: 1.25rem 1.35rem 1.5rem; display: grid; gap: 0.7rem; }
.skeleton-line { height: 0.75rem; border-radius: 999px; background: var(--sage); }
.skeleton-line--short { width: 38%; }
.skeleton-line--mid { width: 68%; }
.skeleton-card__body .skeleton-line:last-child { height: 2.6rem; border-radius: 8px; }
.js .skeleton-line { animation: skeleton-pulse 1.6s ease-in-out infinite; }
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* A live home has no photograph yet, and attaching a stock image to a real
   address would misrepresent it. The card opens with a header strip carrying
   the verification tier, which is the signal the tenant actually needs. Swap
   the strip for a real <img> the moment listings carry media. */
.home-band {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border-bottom: 1px solid var(--line);
  background: var(--sage);
}

/* ---------- application status ---------- */
.status-form-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 1.75rem;
}
.status-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 1.6rem 1.75rem 1.75rem;
}
.status-panel__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.status-panel__ref { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.status-panel__next { margin: 1rem 0 0; font-size: 1.06rem; line-height: 1.6; color: var(--ink); }
.status-panel__meta { margin: 1.25rem 0 0; display: grid; gap: 0.55rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.status-meta-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.status-meta-row dt { color: var(--muted); }
.status-meta-row dd { margin: 0; color: var(--ink); text-align: right; }

/* The progress rail. Marks are the real application states, in order, with the
   reached ones solid. Not decoration: the dot carries actual state. */
.status-steps { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.15rem; }
.status-step { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.85rem; align-items: start; }
.status-step__rail { position: relative; display: flex; justify-content: center; height: 100%; }
.status-step__rail::before {
  content: '';
  position: absolute;
  top: 1.15rem;
  bottom: -0.15rem;
  width: 1px;
  background: var(--line);
}
.status-step:last-child .status-step__rail::before { display: none; }
.status-step__dot {
  position: relative;
  z-index: 1;
  width: 0.62rem;
  height: 0.62rem;
  margin-top: 0.34rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}
.status-step__label { padding-bottom: 0.9rem; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.status-step--done .status-step__dot { border-color: var(--green); background: var(--green); }
.status-step--done .status-step__label { color: var(--ink-soft); }
.status-step--current .status-step__dot { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--paper); background: var(--green); }
.status-step--current .status-step__label { color: var(--ink); font-weight: 550; }

.status-aside { display: grid; gap: 1.1rem; }
.status-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (min-width: 900px) {
  .status-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2.5rem; align-items: start; }
}

/* ============================================================================
   Discovery views

   These surfaces share the public site's paper, sage, green and hairline
   language. They are deliberately structured as editorial tools, not a generic
   dashboard: filters are a single reading rail, the map is approximate, and
   account/document states are visibly marked as frontend preview work.
   ============================================================================ */
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.15rem; margin-top: 1.5rem; }
.page-actions .button { min-height: 2.7rem; }

.discovery-tools { padding: 1.5rem 0 1.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.discovery-tools__top { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.discovery-tools__top h2 { margin-top: 0.55rem; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.1; }
.discovery-summary { max-width: 15rem; color: var(--green); font-size: 0.84rem; font-weight: 650; line-height: 1.35; text-align: right; }
.discovery-filters { display: grid; gap: 1rem; margin-top: 1.45rem; }
.discovery-filter input, .discovery-filter select { background: var(--paper); }
.discovery-check { display: flex; align-items: center; gap: 0.6rem; min-height: 2.9rem; color: var(--ink-soft); font-size: 0.8rem; line-height: 1.35; }
.discovery-check input { width: 1rem; height: 1rem; accent-color: var(--green); }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; width: fit-content; padding: 0; border: 0; background: transparent; color: var(--green); font-size: 0.82rem; font-weight: 700; line-height: 1.35; text-align: left; }
.text-button:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.discovery-reset { min-height: 2.9rem; }
.discovery-tools__foot { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-top: 1.5rem; }
.discovery-hint { max-width: 46ch; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.discovery-tabs { display: flex; flex: none; gap: 0.9rem; border-bottom: 1px solid var(--line); }
.discovery-tab { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.45rem; padding: 0 0.15rem; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.discovery-tab:hover { color: var(--green); }
.discovery-tab.is-active { border-bottom-color: var(--green); color: var(--green-dark); }
.discovery-tab .ph { font-size: 1rem; }
.discovery-view { margin-top: 1.75rem; }
.discovery-view[hidden] { display: none; }

.map-layout, .tour-layout { display: grid; gap: 1.35rem; }
.map-canvas { position: relative; overflow: hidden; min-height: 25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.map-canvas svg { display: block; width: 100%; height: 100%; min-height: 25rem; }
.map-water { fill: var(--sage); }
.map-road { fill: none; stroke: var(--green); stroke-width: 4; opacity: 0.5; }
.map-road--soft { stroke: var(--line-strong); stroke-width: 2; opacity: 0.8; }
.map-line { fill: none; stroke: var(--cream); stroke-width: 16; opacity: 0.9; }
.map-canvas text { fill: var(--muted); font-family: var(--body); font-size: 16px; letter-spacing: 0.02em; }
.map-marker circle:first-child { fill: var(--green); opacity: 0.16; }
.map-marker__core { fill: var(--green); }
.map-key { position: absolute; right: 1rem; bottom: 1rem; display: flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.7rem; border: 1px solid var(--line); background: rgba(251, 250, 247, 0.92); color: var(--muted); font-size: 0.72rem; }
.map-key__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--green); }
.map-aside { padding: 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.map-aside h3 { margin-top: 0.65rem; font-size: 1.2rem; line-height: 1.15; }
.map-aside p:not(.eyebrow) { max-width: 36ch; margin-top: 0.75rem; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.map-aside .text-link { display: inline-flex; margin-top: 1.5rem; }

.tour-layout { align-items: stretch; }
.tour-stage { position: relative; overflow: hidden; min-height: 22rem; border-radius: 12px; background: var(--green-dark); }
.tour-stage::after { content: ''; position: absolute; inset: 0; background: rgba(16, 44, 29, 0.24); pointer-events: none; }
.tour-stage img { width: 100%; height: 100%; min-height: 22rem; object-fit: cover; opacity: 0.86; }
.tour-stage__label, .tour-stage__controls { position: absolute; z-index: 1; display: flex; align-items: center; gap: 0.5rem; color: var(--paper); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }
.tour-stage__label { top: 1rem; left: 1rem; }
.tour-stage__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #d9c28e; }
.tour-stage__controls { right: 1rem; bottom: 1rem; gap: 0.8rem; }
.tour-stage__controls span { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0.65rem; border: 1px solid rgba(255, 255, 255, 0.38); background: rgba(16, 44, 29, 0.55); }
.tour-copy { padding: 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.tour-copy h3 { margin-top: 0.65rem; font-size: 1.3rem; line-height: 1.12; }
.tour-copy > p:not(.eyebrow) { margin-top: 0.75rem; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.tour-scenes { list-style: none; margin: 1.35rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.tour-scenes li { border-bottom: 1px solid var(--line); }
.tour-scenes button { display: grid; grid-template-columns: 2rem 1fr; gap: 0.1rem 0.6rem; width: 100%; padding: 0.85rem 0; border: 0; background: transparent; color: var(--ink); text-align: left; }
.tour-scenes button:hover, .tour-scenes li.is-current button { color: var(--green); }
.tour-scenes button span { grid-row: 1 / span 2; color: var(--muted); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.tour-scenes button strong { font-size: 0.84rem; }
.tour-scenes button small { color: var(--muted); font-size: 0.76rem; line-height: 1.4; }

/* Shared form and account copy. */
.form-note { margin-top: 0.9rem; }
.account-copy { max-width: 58ch; margin-top: 0.75rem; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

@media (min-width: 640px) {
  .discovery-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery-filter--search { grid-column: span 2; }
}
@media (min-width: 760px) {
  .map-layout, .tour-layout { grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr); }
  .tour-layout { grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr); }
}
@media (min-width: 900px) {
  .discovery-filters { grid-template-columns: minmax(12rem, 1.5fr) repeat(3, minmax(8rem, 1fr)); align-items: end; }
  .discovery-filter--search { grid-column: auto; }
  .discovery-check { grid-column: span 2; }
  .discovery-reset { justify-self: end; }
}
@media (max-width: 639px) {
  .page-actions { align-items: flex-start; flex-direction: column; }
  .discovery-tools__top, .discovery-tools__foot { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .discovery-summary { max-width: none; text-align: left; }
  .discovery-tabs { width: 100%; justify-content: space-between; }
  .discovery-tab { flex: 1; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Discovery additions (SRS Phase 1 alignment, 23 September 2026).
   Category chips, published listing photographs, and the live tour stage.
   Tokens only: no new colour, curve or font is introduced here, per
   docs/design-system.md.
   -------------------------------------------------------------------------- */

/* Category choice. A fieldset, so the radios are grouped for assistive tech;
   the reset removes the border the element brings by default. */
.discovery-filter--category { border: 0; margin: 0; padding: 0; min-width: 0; }
.discovery-filter--category legend {
  padding: 0; margin-bottom: 0.4rem;
  font-size: 0.78rem; font-weight: 600; color: var(--ink-soft);
}
.discovery-filter--category .choice-chip { display: inline-flex; }
.choice-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.42rem 0.8rem; margin: 0 0.35rem 0.35rem 0;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--paper); cursor: pointer;
  font-size: 0.82rem; font-weight: 560; color: var(--ink-soft);
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.choice-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-chip:has(input:checked) { background: var(--sage); border-color: var(--green); color: var(--green); }
/* The focus ring belongs on the chip, because the input is visually hidden. */
.choice-chip:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.choice-chip.is-unavailable { opacity: 0.42; cursor: not-allowed; text-decoration: line-through; }

/* Published photographs. The lead image takes the ratio .listing figure already
   defines; the thumbnails sit in a strip below it. */
.home-media { display: flex; flex-direction: column; background: var(--sage); }
.home-media figure { margin: 0; }
.home-media__thumbs {
  display: flex; gap: 2px; align-items: stretch;
  border-top: 2px solid var(--paper);
}
.home-media__thumbs img {
  width: 100%; height: 4.2rem; object-fit: cover; flex: 1 1 0;
  transition: transform 0.9s var(--ease-out);
}
.home-media__thumbs img:hover { transform: scale(1.06); }
.home-media__more {
  flex: 0 0 auto; display: inline-flex; align-items: center; padding: 0 0.85rem;
  background: var(--green-dark); color: var(--paper);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em;
}

/* A listing with no published photograph says so. Replaces the media block so
   the card anatomy does not change height between the two cases. */
.home-band--no-media {
  display: flex; align-items: center; gap: 0.55rem;
  aspect-ratio: 16 / 7; padding: 0 1.35rem;
  background: var(--sage); color: var(--muted);
  font-size: 0.8rem; line-height: 1.5;
}
.home-band--no-media i { font-size: 1.1rem; }

/* The second pill on a card: the category. Quieter than the verification badge,
   because which check a home passed is the thing that carries weight here. */
.pill--quiet { background: rgba(24, 35, 29, 0.05); color: var(--muted); }
.pill--quiet::before { display: none; }
.home-band { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* The live tour stage: real inspection photographs replacing the illustrative
   frame. 3D tours are deferred (blueprint.md:71); this is the honest interim,
   showing the same evidence that qualified the home to be published. */
.tour-stage__live { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; padding: 0.75rem; }
.tour-frame { margin: 0; border-radius: 10px; overflow: hidden; background: var(--paper); opacity: 0.55; transition: opacity 0.35s var(--ease-out); }
.tour-frame.is-current { opacity: 1; }
.tour-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.tour-frame figcaption {
  padding: 0.6rem 0.75rem; font-size: 0.78rem; font-weight: 600; color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Listing submission (list-your-home.html). Small additions only; the page
   reuses .page-head, .workflow-list, .contact-grid, .form-field, .form-row and
   .form-consent from the contact form so a submission looks like the rest of
   the site rather than a second design system.
   -------------------------------------------------------------------------- */

/* The honeypot. Off-screen rather than display:none, which some screen readers
   and autofill ignore differently; aria-hidden plus tabindex="-1" keeps it out
   of the reading order and the tab order, so a person never reaches it. Same
   rule as .access-trap in staff-onboarding.css, repeated here because this page
   loads site.css and not that stylesheet. */
.access-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.page-note { max-width: 52ch; margin-top: 1.1rem; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.listing-ladder { padding-block: 4.5rem 5rem; }

/* A heading inside the form, separating "about you" from "the home" from "who
   owns it". Not a fieldset legend, because the groups are not mutually
   exclusive controls. */
.form-section-label {
  grid-column: 1 / -1;
  margin-top: 0.75rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green);
}
.form-section-label:first-of-type { margin-top: 0; }

.form-hint { margin-top: 0.35rem; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.form-note--ok { color: var(--green); font-weight: 560; }
.form-note a { color: inherit; text-decoration: underline; }

/* The rent-or-sell choice. Same chip treatment as the discovery filter so the
   two places a visitor picks a category look like the same control. */
.listing-category { border: 0; margin: 0; padding: 0; min-width: 0; }
.listing-category legend {
  padding: 0; margin-bottom: 0.5rem;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
}
.listing-category .form-error { display: block; margin-top: 0.35rem; }

/* A filter that cannot be honoured has to explain itself. Sits inside the
   fieldset so it reads as part of the choice, not as a page-level alert. */
.discovery-filter__note {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft, #5b6459);
  max-width: 34ch;
}

/* ================================================================
   Calm editorial restyle — scoped to the three surfaces named in
   the design brief: the live record (listings.html), the listing
   form (list-your-home.html) and the supply section (index#agents).
   Styling only: no markup, copy, field or behaviour changes. Every
   rule carries its page scope so the shared form classes keep
   their existing look on contact.html and the guides.
   ================================================================ */

/* Surfaces: warm paper page, white cards, one hairline, no shadow. */
body:has(#listing-form) .contact-form,
#agents form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

/* Empty photo placeholder collapses to a quiet one-line note
   instead of eating half the card. */
body:not(.public-design):has(#homes-list-view) .home-band--no-media {
  aspect-ratio: auto;
  min-height: 0;
  padding: 8px 16px;
  background: none;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
body:not(.public-design):has(#homes-list-view) .home-band--no-media i { font-size: 1rem; }

/* Disabled options: mute them, never strike them through. */
body:not(.public-design):has(#homes-list-view) .choice-chip.is-unavailable,
body:has(#listing-form) .choice-chip.is-unavailable,
#agents .choice-chip.is-unavailable {
  text-decoration: none;
  color: var(--muted);
}

/* Section labels: sentence case, one grey, no rule underneath. */
body:has(#listing-form) .form-section-label,
#agents .form-section-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 0;
}

/* Inputs: white fill, one hairline, no tint; focus is a single ring. */
body:has(#listing-form) .form-field :is(input, select, textarea),
#agents .form-field :is(input, select, textarea),
body:not(.public-design):has(#homes-list-view) .discovery-filters :is(input, select) {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
  transition: border-color 120ms var(--ease-out);
}
body:has(#listing-form) .form-field :is(input, select, textarea):focus,
#agents .form-field :is(input, select, textarea):focus,
body:not(.public-design):has(#homes-list-view) .discovery-filters :is(input, select):focus {
  background: #fff;
  outline: none;
  box-shadow: none;
}
body:has(#listing-form) .form-field :is(input, select, textarea):focus-visible,
#agents .form-field :is(input, select, textarea):focus-visible,
body:not(.public-design):has(#homes-list-view) .discovery-filters :is(input, select):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
body:has(#listing-form) .form-field :is(input, select, textarea):user-invalid,
#agents .form-field :is(input, select, textarea):user-invalid {
  background: #fff;
  border-color: var(--error);
}

/* Forms: at most 560px wide, one column on phones, two from 640px. */
body:has(#listing-form) .contact-form,
#agents form { max-width: 560px; }
body:has(#listing-form) .form-row,
#agents .form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) {
  body:has(#listing-form) .form-row,
  #agents .form-row { grid-template-columns: 1fr 1fr; }
}

/* Two-to-three option choices read as one segmented row. */
body:not(.public-design):has(#homes-list-view) [data-homes-category],
body:has(#listing-form) fieldset:has(> .choice-chip),
#agents fieldset:has(> .choice-chip) {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
body:not(.public-design):has(#homes-list-view) [data-homes-category] .choice-chip,
body:has(#listing-form) fieldset:has(> .choice-chip) .choice-chip,
#agents fieldset:has(> .choice-chip) .choice-chip {
  flex: 1 1 0;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  transition: background-color 120ms var(--ease-out), color 120ms var(--ease-out);
}
body:not(.public-design):has(#homes-list-view) [data-homes-category] .choice-chip + .choice-chip,
body:has(#listing-form) fieldset:has(> .choice-chip) .choice-chip + .choice-chip,
#agents fieldset:has(> .choice-chip) .choice-chip + .choice-chip {
  border-left: 1px solid var(--line);
}
body:not(.public-design):has(#homes-list-view) [data-homes-category] .choice-chip:has(input:checked),
body:has(#listing-form) fieldset:has(> .choice-chip) .choice-chip:has(input:checked),
#agents fieldset:has(> .choice-chip) .choice-chip:has(input:checked) {
  background: var(--green);
  color: #fff;
}
/* Legend and helper note stay outside the segmented row. */
body:not(.public-design):has(#homes-list-view) [data-homes-category] legend {
  flex: 0 0 100%;
  padding: 0 0 4px;
}
body:not(.public-design):has(#homes-list-view) [data-homes-category] .discovery-filter__note {
  flex: 0 0 100%;
  padding: 8px 16px 8px;
  border-top: 1px solid var(--line);
}
/* The record summary and the clear action read as quiet metadata. */
body:not(.public-design):has(#homes-list-view) .discovery-summary { color: var(--muted); text-align: left; max-width: none; }
body:not(.public-design):has(#homes-list-view) .discovery-tools { padding: 16px 0; }
body:not(.public-design):has(#homes-list-view) .discovery-tools__foot { justify-content: flex-start; }
body:not(.public-design):has(#homes-list-view) .section-head { margin-bottom: 8px; }

/* The live record: one primary heading, filters on a tidy grid. */
body:not(.public-design):has(#homes-list-view) .page-head .eyebrow,
body:not(.public-design):has(#homes-list-view) .discovery-tools__top .eyebrow {
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}
body:not(.public-design):has(#homes-list-view) .discovery-tools__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}
body:not(.public-design):has(#homes-list-view) .discovery-tools__top h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink-soft);
}
body:not(.public-design):has(#homes-list-view) .discovery-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  align-items: end;
}

/* The "have a home to list" card sits quiet beside the record. */
body:not(.public-design):has(#homes-list-view) .listing-cta { padding: 16px; }
body:not(.public-design):has(#homes-list-view) .listing-cta :is(h2, h3, h4) {
  color: var(--paper);
}
body:not(.public-design):has(#homes-list-view) .listing-cta :is(p, span) {
  color: rgba(255, 255, 255, 0.78);
}

/* Supply section: plain surface, no photo behind the form. */
#agents .network-media { display: none; }
#agents::before, #agents::after { display: none; }
#agents { background: var(--canvas); }
/* One centred measure on narrow screens so the gutters stay equal... */
#agents .network-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
#agents .network-copy,
#agents form {
  width: 100%;
  max-width: 35rem;
  margin-inline: auto;
}
/* ...and a two-column spread once there is room: copy left, form right. */
@media (min-width: 960px) {
  #agents .network-content {
    max-width: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 35rem);
    column-gap: 4rem;
    align-items: start;
  }
  #agents .network-copy,
  #agents form { max-width: none; margin-inline: 0; }
  #agents form { margin-top: 0; }
}
#agents .network-copy :is(h2, h3) { color: var(--ink); }
#agents .network-copy :is(p, li) { color: var(--ink-soft); }

/* Motion: colour and border only, ~120ms; no lift, no entrance. */
body:not(.public-design):has(#homes-list-view) .button:hover,
body:has(#listing-form) .button:hover,
#agents .button:hover { transform: none; box-shadow: none; }
body:not(.public-design):has(#homes-list-view) [data-reveal],
body:has(#listing-form) [data-reveal],
#agents [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  body:not(.public-design):has(#homes-list-view) *,
  body:not(.public-design):has(#homes-list-view) *::before,
  body:not(.public-design):has(#homes-list-view) *::after,
  body:has(#listing-form) *,
  body:has(#listing-form) *::before,
  body:has(#listing-form) *::after,
  #agents *,
  #agents *::before,
  #agents *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Custom select widget (JS-enhanced): same white hairline treatment. */
body:not(.public-design):has(#homes-list-view) .custom-select__trigger,
body:has(#listing-form) .custom-select__trigger,
#agents .custom-select__trigger {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 120ms var(--ease-out);
}
body:not(.public-design):has(#homes-list-view) .custom-select__trigger:focus-visible,
body:has(#listing-form) .custom-select__trigger:focus-visible,
#agents .custom-select__trigger:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
/* Reset action sits with the filters, quiet, not centred. */
body:not(.public-design):has(#homes-list-view) .discovery-reset {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 8px;
  color: var(--muted);
}

/* Segmented row refined: the box is formed by the chips so a helper
   note can sit quietly beneath it without stretching the control. */
body:not(.public-design):has(#homes-list-view) [data-homes-category],
body:has(#listing-form) fieldset:has(> .choice-chip),
#agents fieldset:has(> .choice-chip) {
  border: 0;
  background: none;
  overflow: visible;
}
body:not(.public-design):has(#homes-list-view) [data-homes-category] .choice-chip,
body:has(#listing-form) fieldset:has(> .choice-chip) .choice-chip,
#agents fieldset:has(> .choice-chip) .choice-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-left-width: 0;
}
body:not(.public-design):has(#homes-list-view) [data-homes-category] .choice-chip:first-of-type,
body:has(#listing-form) fieldset:has(> .choice-chip) .choice-chip:first-of-type,
#agents fieldset:has(> .choice-chip) .choice-chip:first-of-type {
  border-left-width: 1px;
  border-radius: 8px 0 0 8px;
}
body:not(.public-design):has(#homes-list-view) [data-homes-category] .choice-chip:last-of-type,
body:has(#listing-form) fieldset:has(> .choice-chip) .choice-chip:last-of-type,
#agents fieldset:has(> .choice-chip) .choice-chip:last-of-type {
  border-radius: 0 8px 8px 0;
}
body:not(.public-design):has(#homes-list-view) [data-homes-category] .choice-chip:has(input:checked),
body:has(#listing-form) fieldset:has(> .choice-chip) .choice-chip:has(input:checked),
#agents fieldset:has(> .choice-chip) .choice-chip:has(input:checked) {
  background: var(--green);
  border-color: var(--green);
}
body:not(.public-design):has(#homes-list-view) [data-homes-category] .choice-chip span,
body:has(#listing-form) fieldset:has(> .choice-chip) .choice-chip span,
#agents fieldset:has(> .choice-chip) .choice-chip span { white-space: nowrap; }
body:not(.public-design):has(#homes-list-view) [data-homes-category] legend,
body:has(#listing-form) fieldset:has(> .choice-chip) legend,
#agents fieldset:has(> .choice-chip) legend {
  flex: 0 0 100%;
  padding: 0 0 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
}
body:not(.public-design):has(#homes-list-view) [data-homes-category] .discovery-filter__note {
  flex: 0 0 100%;
  border-top: 0;
  padding: 6px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
/* Filters: one aligned row on desktop, tops aligned so the note
   can extend below its own column without pushing anything. */
body:not(.public-design):has(#homes-list-view) .discovery-filters { align-items: start; }
@media (min-width: 1024px) {
  body:not(.public-design):has(#homes-list-view) .discovery-filters {
    grid-template-columns: minmax(11rem, 1.2fr) minmax(15rem, 1.5fr) repeat(3, minmax(8rem, 1fr));
  }
}

/* Filter bar: the filters read as one tab, not loose fields on canvas.
   One white card, one control height (2.9rem, the .form-field input
   height), one small radius (8px, the segmented/select radius), one label
   voice (the .form-field > span spec). No new components and no new
   colour, curve or font: .form-field, .choice-chip, .custom-select and
   .text-button keep their markup and behaviour; only alignment is tuned.
   Flat white plus hairline, the site convention, so no shadow. The card
   never clips, so the select menus escape it. */
body:not(.public-design):has(#homes-list-view) .discovery-filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  gap: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* One radius on every control in the bar. */
body:not(.public-design):has(#homes-list-view) .discovery-filters :is(input, select) {
  border-radius: 8px;
}
/* Select triggers match the 2.9rem input height. */
body:not(.public-design):has(#homes-list-view) .discovery-filters .custom-select__trigger {
  min-height: 2.9rem;
}
/* Segmented chips match the 2.9rem height, content centred. */
body:not(.public-design):has(#homes-list-view) [data-homes-category] .choice-chip {
  min-height: 2.9rem;
  justify-content: center;
}
/* One label voice: the legend matches .form-field > span exactly, with
   the same gap to its control, so every control top aligns. */
body:not(.public-design):has(#homes-list-view) [data-homes-category] legend {
  margin: 0;
  padding: 0 0 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-soft);
}
/* Foot strip: the programme check sits under its own hairline, and the
   reset drops its loose margins. */
body:not(.public-design):has(#homes-list-view) .discovery-check {
  min-height: 0;
  margin-top: 2px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
body:not(.public-design):has(#homes-list-view) .discovery-reset {
  min-height: 0;
  margin-top: 0;
}
@media (min-width: 640px) {
  body:not(.public-design):has(#homes-list-view) .discovery-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body:not(.public-design):has(#homes-list-view) .discovery-filter--search,
  body:not(.public-design):has(#homes-list-view) .discovery-filter--category {
    grid-column: span 3;
  }
  /* Foot strip shares one row: the check left, the reset right, one
     unbroken hairline (the reset's negative margin bridges the gap). */
  body:not(.public-design):has(#homes-list-view) .discovery-check {
    grid-column: 1 / 3;
  }
  body:not(.public-design):has(#homes-list-view) .discovery-reset {
    grid-column: 3 / 4;
    justify-self: stretch;
    justify-content: flex-end;
    width: auto;
    margin-left: -16px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
}
@media (min-width: 1024px) {
  body:not(.public-design):has(#homes-list-view) .discovery-filters {
    grid-template-columns: minmax(11rem, 1.2fr) minmax(15rem, 1.5fr) repeat(3, minmax(8rem, 1fr));
    padding: 20px;
  }
  body:not(.public-design):has(#homes-list-view) .discovery-filter--search,
  body:not(.public-design):has(#homes-list-view) .discovery-filter--category {
    grid-column: auto;
  }
  body:not(.public-design):has(#homes-list-view) .discovery-check {
    grid-column: 1 / -2;
  }
  body:not(.public-design):has(#homes-list-view) .discovery-reset {
    grid-column: -2 / -1;
  }
}

/* No-photo card: the badge row sits on the white surface, not a tint. */
body:not(.public-design):has(#homes-list-view) .home-band--no-media + .home-band {
  background: none;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}
body:not(.public-design):has(#homes-list-view) article.listing .pill {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
/* The quiet CTA keeps a readable light link on its dark ground. */
body:not(.public-design):has(#homes-list-view) .listing-cta a { color: #cfe2d3; }
body:not(.public-design):has(#homes-list-view) .listing-cta a:hover { color: var(--paper); }

/* FAQ toggle glyph: Phosphor x and minus stacked in the circle.
   Opening turns the x into the minus; closing turns it back. */
.faq-trigger__icon .ph {
  grid-area: 1 / 1;
  transition: transform 420ms var(--ease-out), opacity 240ms var(--ease-out);
}
.faq-trigger__icon .ph-x { opacity: 1; transform: rotate(0deg); }
.faq-trigger__icon .ph-minus { opacity: 0; transform: rotate(-90deg); }
.faq-trigger[aria-expanded='true'] .faq-trigger__icon .ph-x { opacity: 0; transform: rotate(90deg); }
.faq-trigger[aria-expanded='true'] .faq-trigger__icon .ph-minus { opacity: 1; transform: rotate(0deg); }
@media (prefers-reduced-motion: reduce) {
  .faq-trigger__icon,
  .faq-trigger__icon .ph { transition-duration: 0.01ms !important; }
}

