/* ==========================================================================
   ENGENDA HOUSE — Design Tokens
   ========================================================================== */
:root {
  /* Palette — charcoal / soft greys / paper white, moss-green signature
     accent drawn from the building's own reception branding */
  --c-white: #ffffff;
  --c-paper: #f7f6f3;
  --c-mist: #eeece7;
  --c-grey-200: #e2e0da;
  --c-grey-400: #b9b6ad;
  --c-grey-600: #7c7a72;
  --c-grey-800: #46453f;
  --c-charcoal: #17181a;
  --c-charcoal-soft: #212327;
  --c-moss: #33422f;
  --c-moss-light: #6f8f52;
  --c-moss-bright: #8ab35b;
  --c-line: rgba(23, 24, 26, 0.1);
  --c-line-inverse: rgba(255, 255, 255, 0.16);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-strong: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-blur: blur(18px);

  /* Type */
  --font-display: 'Space Grotesk', 'Manrope', sans-serif;
  --font-body: 'Inter', 'Manrope', sans-serif;

  /* Spacing scale — generous, editorial */
  --space-3xs: 0.5rem;
  --space-2xs: 0.75rem;
  --space-xs: 1rem;
  --space-sm: 1.5rem;
  --space-md: 2.5rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 9rem;
  --space-3xl: 12rem;

  --container-max: 1560px;
  --container-pad: clamp(1.5rem, 5vw, 5rem);

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur-med: 500ms;
  --dur-slow: 900ms;

  --shadow-sm: 0 2px 12px rgba(23, 24, 26, 0.06);
  --shadow-md: 0 12px 40px rgba(23, 24, 26, 0.1);
  --shadow-lg: 0 30px 80px rgba(23, 24, 26, 0.16);

  color-scheme: light;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

@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;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--c-paper);
  color: var(--c-charcoal);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

::selection { background: var(--c-moss); color: var(--c-white); }

/* Focus visibility — never remove */
:focus-visible {
  outline: 2px solid var(--c-moss-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--c-charcoal);
  color: var(--c-white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-moss);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--c-moss-light);
  display: inline-block;
}

.section-heading {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  max-width: 18ch;
  margin-top: var(--space-sm);
}

.section-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--c-grey-800);
  max-width: 46ch;
  margin-top: var(--space-md);
  line-height: 1.7;
}

.num-mono {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

section { position: relative; }

.section-pad {
  padding-block: var(--space-2xl);
}
@media (max-width: 720px) {
  .section-pad { padding-block: var(--space-xl); }
}
@media (max-width: 480px) {
  .section-pad { padding-block: var(--space-lg); }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.section-head .side-note {
  max-width: 34ch;
  color: var(--c-grey-600);
  padding-bottom: 0.4rem;
  font-size: 0.95rem;
}
@media (max-width: 860px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: 48px;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }

.btn-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--c-white);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.18); box-shadow: var(--shadow-sm); }

.btn-dark {
  background: var(--c-charcoal);
  color: var(--c-white);
  border: 1px solid var(--c-charcoal);
}
.btn-dark:hover { background: var(--c-moss); border-color: var(--c-moss); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--c-line);
  color: var(--c-charcoal);
}
.btn-outline:hover { border-color: var(--c-charcoal); background: var(--c-white); }

.btn-block { width: 100%; }

/* ==========================================================================
   Progress bar + Back to top + Custom cursor
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-moss-light), var(--c-moss-bright));
  z-index: 900;
  transition: width 80ms linear;
}

.back-to-top {
  position: fixed;
  right: var(--space-sm);
  bottom: var(--space-sm);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-charcoal);
  color: var(--c-white);
  display: grid;
  place-items: center;
  z-index: 500;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), background var(--dur-fast);
  box-shadow: var(--shadow-md);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--c-moss); }
.back-to-top svg { width: 18px; height: 18px; }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c-moss-bright);
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: opacity 200ms ease;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  pointer-events: none;
  z-index: 998;
  transform: translate(-50%, -50%);
  transition: width 200ms var(--ease-out), height 200ms var(--ease-out), opacity 200ms ease, border-color 200ms ease;
  mix-blend-mode: difference;
}
.cursor-ring.is-active { width: 64px; height: 64px; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 700;
  padding: var(--space-sm) 0;
  transition: padding var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--c-white);
  transition: color var(--dur-med) var(--ease-out);
}
.brand-mark .mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-white);
  position: relative;
  padding-block: 0.3rem;
  transition: color var(--dur-med) var(--ease-out);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: width var(--dur-fast) var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: var(--space-sm); position: relative; z-index: 2; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-line-inverse);
  color: var(--c-white);
  align-items: center;
  justify-content: center;
}

/* Scrolled state — glass nav */
.site-nav.is-scrolled {
  padding: var(--space-3xs) 0;
  background: rgba(23, 24, 26, 0.55);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom-color: var(--c-line-inverse);
  box-shadow: var(--shadow-sm);
}

/* Light-mode nav (once past hero) */
.site-nav.is-light {
  background: rgba(247, 246, 243, 0.82);
  border-bottom-color: var(--c-line);
}
.site-nav.is-light .brand-mark,
.site-nav.is-light .nav-links a,
.site-nav.is-light .nav-toggle { color: var(--c-charcoal); border-color: var(--c-line); }
.site-nav.is-light .btn-glass {
  background: rgba(23, 24, 26, 0.05);
  border-color: var(--c-line);
  color: var(--c-charcoal);
}
.site-nav.is-light .btn-glass:hover { background: rgba(23, 24, 26, 0.1); }

.nav-links-cta { display: none; }

@media (max-width: 1100px) {
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: flex-start;
    background: rgba(23, 24, 26, 0.97);
    backdrop-filter: var(--glass-blur);
    transform: translateY(-100%);
    transition: transform var(--dur-med) var(--ease-in-out);
    gap: var(--space-md);
    overflow-y: auto;
    padding-block: calc(var(--space-3xl) + var(--space-md)) var(--space-2xl);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { color: var(--c-white) !important; font-size: 1.4rem; }
  .nav-links-cta {
    display: inline-flex;
    margin-top: var(--space-sm);
    font-size: 1rem !important;
  }
  .nav-toggle { display: grid; }
  .nav-actions { gap: var(--space-3xs); }
  .nav-actions .btn-glass { display: none; }
  .nav-actions .mode-toggle { display: none; }
}
@media (max-width: 400px) {
  .brand-mark { font-size: 0.92rem; gap: 0.5rem; }
  .brand-mark .mark { width: 30px; height: 30px; }
  .nav-toggle { width: 38px; height: 38px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--c-charcoal);
}

.hero-media-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: filter 600ms var(--ease-out);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 13, 12, 0.42) 0%, rgba(12, 13, 12, 0.08) 30%, rgba(12, 13, 12, 0.22) 62%, rgba(8, 9, 8, 0.6) 100%);
  transition: background 600ms var(--ease-out);
}

/* Title bleeds near-edge-to-edge, sits high in the frame */
.hero-title-block {
  position: absolute;
  top: clamp(5.5rem, 14vh, 9rem);
  left: 0;
  right: 0;
  padding-inline: var(--container-pad);
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  color: var(--c-white);
  font-weight: 600;
  line-height: 0.84;
  letter-spacing: -0.03em;
  font-size: clamp(3.6rem, 12.4vw, 13rem);
  text-transform: uppercase;
  text-shadow: 0 4px 40px rgba(0,0,0,0.18);
}
.hero-title span { display: block; }
.hero-title .word-2 {
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--c-grey-200);
  margin-top: 0.1em;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: clamp(0.75rem, 2vh, 1.25rem);
  padding: 0.5rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-white);
}
.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-moss-bright);
}

.hero-location {
  margin-top: clamp(0.75rem, 2vh, 1.5rem);
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-grey-200);
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

/* Sub-line anchored bottom-left of the image, above the info bar */
.hero-sub-block {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(2rem, 6vh, 3.5rem);
  padding-inline: var(--container-pad);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-md);
}

.hero-sub {
  color: var(--c-grey-200);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  max-width: 38ch;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

.hero-scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.hero-scroll-cue .line {
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,0.4);
  overflow: hidden;
  position: relative;
}
.hero-scroll-cue .line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--c-white);
  animation: scrollCue 1.8s var(--ease-in-out) infinite;
}
@keyframes scrollCue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* Day / night toggle — sits with the nav, affects hero mood only */
.mode-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--c-white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: background var(--dur-fast) var(--ease-out);
}
.mode-toggle:hover { background: rgba(255,255,255,0.18); }
.mode-toggle svg { width: 18px; height: 18px; }
.mode-toggle .icon-moon { display: none; }
.hero.is-night .mode-toggle .icon-sun { display: none; }
.hero.is-night .mode-toggle .icon-moon { display: block; }

.hero.is-night .hero-media { filter: brightness(0.5) saturate(0.75) contrast(1.05); }
.hero.is-night .hero-overlay {
  background: linear-gradient(180deg, rgba(6,8,10,0.66) 0%, rgba(6,8,10,0.3) 30%, rgba(6,8,10,0.42) 62%, rgba(4,5,7,0.86) 100%);
}

/* Flush split info bar — no radius, no float, sits directly under the image */
.hero-infobar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 30%) 1fr;
  min-height: clamp(190px, 26vh, 250px);
}

.infobar-plan {
  position: relative;
  background: #000000;
  color: var(--c-grey-400);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.infobar-plan .plan-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.infobar-plan::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 10, 9, 0.12) 0%, rgba(9, 10, 9, 0.05) 45%, rgba(9, 10, 9, 0.72) 100%);
  pointer-events: none;
}

.plan-label {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--c-grey-400);
  max-width: 22ch;
}

.infobar-stats {
  background: var(--c-paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-inline: var(--space-md);
  flex-wrap: wrap;
}

.infobar-stat {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.infobar-stat .icon {
  width: 22px; height: 22px;
  color: var(--c-moss);
  flex-shrink: 0;
}
.infobar-stat .icon svg { width: 100%; height: 100%; }
.infobar-stat .label {
  display: block;
  font-size: 0.72rem;
  color: var(--c-grey-600);
  letter-spacing: 0.02em;
}
.infobar-stat .value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  color: var(--c-charcoal);
  margin-top: 0.15rem;
}

.infobar-suite {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-left: var(--space-sm);
  border-left: 1px solid var(--c-line);
}
.infobar-suite img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-white);
  box-shadow: var(--shadow-sm);
}
.infobar-suite .tag { display: block; font-weight: 600; font-size: 0.88rem; }
.infobar-suite .sub { display: block; font-size: 0.76rem; color: var(--c-grey-600); }

@media (max-width: 900px) {
  .hero { height: auto; min-height: 100dvh; }
  .hero-media-wrap { flex: none; height: 68vh; min-height: 420px; }
  .hero-infobar { grid-template-columns: 1fr; min-height: auto; }
  .infobar-plan { min-height: 120px; padding: var(--space-sm) var(--space-md); }
  .infobar-stats {
    padding: var(--space-sm) var(--space-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm) var(--space-md);
  }
  .infobar-suite { border-left: none; padding-left: 0; border-top: 1px solid var(--c-line); padding-top: var(--space-sm); grid-column: 1 / -1; }
  .hero-sub-block { flex-direction: column; align-items: flex-start; gap: var(--space-sm); bottom: var(--space-md); }
}
@media (max-width: 560px) {
  .hero-title-block { top: clamp(4.5rem, 11vh, 6rem); }
  .infobar-stats { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Reveal / scroll animation primitives
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  will-change: transform, opacity;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-fade { opacity: 0; transition: opacity 900ms var(--ease-out); }
.reveal-fade.is-visible { opacity: 1; }

.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

/* staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 350ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 420ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 490ms; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 560ms; }
.reveal-stagger.is-visible > *:nth-child(10) { transition-delay: 630ms; }
.reveal-stagger.is-visible > *:nth-child(11) { transition-delay: 700ms; }
.reveal-stagger.is-visible > *:nth-child(12) { transition-delay: 770ms; }
.reveal-stagger.is-visible > *:nth-child(13) { transition-delay: 840ms; }

/* ==========================================================================
   Overview section
   ========================================================================== */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: stretch;
}
/* image stretches to finish in line with the text column */
.overview-grid .overview-media { aspect-ratio: auto; min-height: 320px; }
.overview-grid .overview-media img { position: absolute; inset: 0; }

.overview-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}
.overview-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 1.6s var(--ease-out);
}
.overview-media.is-visible img { transform: scale(1); }

.overview-copy p + p { margin-top: var(--space-sm); }
.overview-copy p { color: var(--c-grey-800); font-size: 1.05rem; }

.feature-blocks {
  margin-top: var(--space-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.feature-card {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  background: var(--c-white);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-card .icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--c-moss);
  color: var(--c-white);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-sm);
}
.feature-card .icon svg { width: 20px; height: 20px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.92rem; color: var(--c-grey-600); line-height: 1.6; }

@media (max-width: 980px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-grid .overview-media { aspect-ratio: 4 / 3; }
  .feature-blocks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-blocks { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Specification section (dark)
   ========================================================================== */
.spec-section {
  background: var(--c-charcoal);
  color: var(--c-white);
}
.spec-section .eyebrow { color: var(--c-moss-bright); }
.spec-section .eyebrow::before { background: var(--c-moss-bright); }
.spec-section .section-heading { color: var(--c-white); }
.spec-section .section-head .side-note { color: var(--c-grey-400); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line-inverse);
  border: 1px solid var(--c-line-inverse);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-item {
  background: var(--c-charcoal-soft);
  padding: var(--space-md) var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: background var(--dur-med) var(--ease-out);
  min-height: 176px;
  justify-content: space-between;
}
.spec-item:hover { background: #2a2d26; }
.spec-item .icon {
  width: 38px; height: 38px;
  color: var(--c-moss-bright);
}
.spec-item .icon svg { width: 100%; height: 100%; }
.spec-item span.label { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em; }

@media (max-width: 980px) { .spec-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec-item { min-height: auto; flex-direction: row; align-items: center; }
  .spec-item .icon { flex-shrink: 0; }
}

/* ==========================================================================
   Availability
   ========================================================================== */
.avail-table-wrap {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
}
.avail-table {
  width: 100%;
  border-collapse: collapse;
}
.avail-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-grey-600);
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-mist);
}
.avail-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--c-line);
  vertical-align: middle;
  font-size: 0.98rem;
}
.avail-table tr:last-child td { border-bottom: none; }
.avail-table tbody tr { transition: background var(--dur-fast) var(--ease-out); }
.avail-table tbody tr:hover { background: var(--c-paper); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(111, 143, 82, 0.14);
  color: var(--c-moss);
}
.status-pill::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-moss-light);
}

.avail-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--c-charcoal);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--c-charcoal);
  transition: color var(--dur-fast), border-color var(--dur-fast), gap var(--dur-fast);
}
.avail-download:hover { color: var(--c-moss); border-color: var(--c-moss); gap: 0.75rem; }
.avail-download svg { width: 15px; height: 15px; }

.avail-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  color: var(--c-grey-600);
  font-size: 0.9rem;
}
.avail-foot strong { color: var(--c-charcoal); display: block; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.2rem; }

@media (max-width: 780px) {
  .avail-table-wrap { overflow-x: auto; }
  .avail-table { min-width: 720px; }
}

/* ==========================================================================
   Gallery — small uniform cards that expand in place within the section
   ========================================================================== */
.gallery-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-2xs);
}
.gallery-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-line);
  background: var(--c-white);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-med) var(--ease-out);
}
.gallery-card:hover img,
.gallery-card:focus-visible img { transform: scale(1.1); }
.gallery-card .caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.5rem 0.6rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.68), transparent);
  color: var(--c-white);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.gallery-card:hover .caption,
.gallery-card:focus-visible .caption { opacity: 1; transform: translateY(0); }
.gallery-card.is-active {
  outline: 2px solid var(--c-moss);
  outline-offset: 2px;
}
.gallery-card.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(51, 66, 47, 0.28);
}

/* Expanding panel — fills the gallery section itself, not the viewport */
.gallery-expand {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  border-radius: var(--radius-lg);
  background: var(--c-charcoal);
  transition: max-height 550ms var(--ease-out), opacity 400ms var(--ease-out), margin-top 550ms var(--ease-out);
}
.gallery-expand.is-open {
  max-height: 85vh;
  opacity: 1;
  margin-top: var(--space-lg);
}
.gallery-expand-inner { position: relative; }
.gallery-expand-inner img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #000;
}
.gallery-expand-caption {
  color: var(--c-grey-200);
  text-align: center;
  padding: var(--space-sm);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin: 0;
}
.gallery-expand-close, .gallery-expand-prev, .gallery-expand-next {
  position: absolute;
  color: var(--c-white);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-line-inverse);
  background: rgba(23, 24, 26, 0.5);
  display: grid;
  place-items: center;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.gallery-expand-close:hover, .gallery-expand-prev:hover, .gallery-expand-next:hover { background: rgba(255,255,255,0.16); }
.gallery-expand-close { top: var(--space-sm); right: var(--space-sm); }
.gallery-expand-prev { left: var(--space-sm); top: 50%; transform: translateY(-50%); }
.gallery-expand-next { right: var(--space-sm); top: 50%; transform: translateY(-50%); }
.gallery-expand-close svg, .gallery-expand-prev svg, .gallery-expand-next svg { width: 18px; height: 18px; }

@media (max-width: 900px) { .gallery-cards { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); } }
@media (max-width: 540px) {
  .gallery-cards { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
  .gallery-expand-prev, .gallery-expand-next { width: 38px; height: 38px; }
}

/* ==========================================================================
   Location
   ========================================================================== */
.location-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: start;
}
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  filter: grayscale(0.15) contrast(1.02);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.commute-list { display: grid; gap: 0.75rem; }
.commute-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.commute-card:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.commute-card .time {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--c-moss);
  min-width: 4.2ch;
}
.commute-card .place { font-weight: 500; }
.commute-card .place small { display: block; color: var(--c-grey-600); font-weight: 400; font-size: 0.82rem; margin-top: 0.15rem; }

.amenities-row {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}
.amenity-card {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-white);
}
.amenity-card .icon { width: 30px; height: 30px; margin: 0 auto var(--space-sm); color: var(--c-moss); }
.amenity-card .icon svg { width: 100%; height: 100%; }
.amenity-card span { font-size: 0.88rem; font-weight: 500; }

@media (max-width: 980px) {
  .location-grid { grid-template-columns: 1fr; }
  .amenities-row { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Video tour
   ========================================================================== */
.video-tour-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
  background: var(--c-charcoal);
}
.video-tour-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--c-charcoal);
  display: grid;
  place-items: center;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.video-play-btn:hover { transform: scale(1.08); background: var(--c-white); }
.video-play-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.video-tour-frame.is-playing .video-play-btn { opacity: 0; pointer-events: none; }

/* ==========================================================================
   Downloads
   ========================================================================== */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}
.download-card {
  padding: var(--space-md);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-white);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med);
}
.download-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.download-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  display: grid;
  place-items: center;
  color: var(--c-moss);
}
.download-card .icon svg { width: 22px; height: 22px; }
.download-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.download-card p { font-size: 0.85rem; color: var(--c-grey-600); }
.download-card .dl-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-charcoal);
}
.download-card .dl-link svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-out); }
.download-card:hover .dl-link svg { transform: translateY(3px); }

@media (max-width: 980px) { .downloads-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .downloads-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-section { background: var(--c-mist); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-2xl);
}
.contact-info { align-self: start; position: sticky; top: 140px; }
.contact-info .agent {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--c-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-line);
}
.contact-info .agent .agent-name { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.2rem; }
.contact-info .agent .agent-role { color: var(--c-grey-600); font-size: 0.88rem; margin-bottom: var(--space-sm); }
.contact-info .agent a { display: block; font-size: 0.94rem; padding: 0.35rem 0; }
.contact-info .agent a:hover { color: var(--c-moss); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  background: var(--c-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--c-grey-800); }
.field label .req { color: var(--c-moss); margin-left: 0.15rem; }
.field input, .field textarea {
  padding: 0.9rem 1rem;
  border: 1px solid var(--c-grey-200);
  border-radius: var(--radius-sm);
  background: var(--c-paper);
  transition: border-color var(--dur-fast), background var(--dur-fast);
  min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: var(--c-moss);
  background: var(--c-white);
  outline: none;
}
.field .hint { font-size: 0.78rem; color: var(--c-grey-600); }
.field .error-msg {
  font-size: 0.78rem;
  color: #a13d2c;
  display: none;
}
.field.has-error input, .field.has-error textarea { border-color: #a13d2c; }
.field.has-error .error-msg { display: block; }

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.form-status {
  font-size: 0.88rem;
  color: var(--c-moss);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-error { color: #a13d2c; }

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .contact-info { position: static; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; padding: var(--space-md); }
  .field.full { grid-column: auto; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--c-charcoal);
  color: var(--c-grey-400);
  padding-block: var(--space-xl) var(--space-md);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--c-line-inverse);
}
.footer-brand .brand-mark { color: var(--c-white); margin-bottom: var(--space-sm); }
.footer-brand p { max-width: 34ch; font-size: 0.92rem; line-height: 1.7; }
.footer-cols { display: flex; gap: var(--space-2xl); }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-grey-200); margin-bottom: var(--space-sm); }
.footer-col a, .footer-col address { display: block; font-size: 0.92rem; font-style: normal; margin-bottom: 0.55rem; color: var(--c-grey-400); }
.footer-col a:hover { color: var(--c-white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  flex-wrap: wrap;
}
.footer-legal { font-size: 0.8rem; color: var(--c-grey-600); max-width: 60ch; }
.social-row { display: flex; gap: 0.6rem; }
.social-row a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-line-inverse);
  display: grid;
  place-items: center;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.social-row a:hover { background: var(--c-moss); border-color: var(--c-moss); }
.social-row svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .footer-top { flex-direction: column; }
  .footer-cols { gap: var(--space-xl); flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-cols { flex-direction: column; gap: var(--space-lg); }
}

/* ==========================================================================
   Misc
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.divider-note {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--c-line);
  color: var(--c-grey-600);
  font-size: 0.85rem;
}

@media (max-width: 980px) {
  .overview-grid, .location-grid { gap: var(--space-lg); }
}

/* ==========================================================================
   Ground floor additions
   ========================================================================== */
/* Hero: still photo by default; the portrait walkthrough takes over on portrait screens */
.hero-video { display: none; }
@media (orientation: portrait) and (max-width: 820px) {
  .hero-video { display: block; }
  .hero-still { display: none; }
}

/* Portrait video tour */
.video-tour-frame.is-portrait {
  aspect-ratio: 3 / 4;
  max-width: 440px;
  margin-inline: auto;
}

.avail-also {
  margin-top: var(--space-md);
  color: var(--c-grey-600);
  font-size: 0.95rem;
}
.avail-also a { color: var(--c-moss); border-bottom: 1px solid currentColor; }
.avail-also a:hover { color: var(--c-charcoal); }

/* ==========================================================================
   Flexible partitioning
   ========================================================================== */
.flex-section { background: var(--c-mist); }

.flex-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.flex-plan-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.flex-plan { display: block; width: 100%; height: auto; }

.fp-outline { fill: none; stroke: var(--c-charcoal); stroke-width: 3; }
.fp-corridor { fill: var(--c-paper); stroke: var(--c-line); stroke-width: 1; }
.fp-note { font-family: var(--font-body); font-size: 12px; fill: var(--c-grey-600); letter-spacing: 0.14em; text-transform: uppercase; }
.fp-room { stroke: var(--c-charcoal); stroke-width: 0; opacity: 0; transition: opacity var(--dur-med) var(--ease-out); }
.fp-open { fill: rgba(138, 179, 91, 0.22); }
.fp-two-a, .fp-three-a { fill: rgba(138, 179, 91, 0.3); }
.fp-two-b, .fp-three-c { fill: rgba(51, 66, 47, 0.2); }
.fp-three-b { fill: rgba(138, 179, 91, 0.16); }
.fp-track { stroke: var(--c-grey-600); stroke-width: 2; stroke-dasharray: 2 5; }
.fp-window { stroke: var(--c-moss-bright); stroke-width: 7; stroke-linecap: round; }

.fp-wall {
  stroke: var(--c-charcoal);
  stroke-width: 7;
  stroke-linecap: butt;
  transform-box: fill-box;
  transform-origin: 50% 0;
  transform: scaleY(0);
  transition: transform 700ms var(--ease-out);
}
.fp-roller { fill: var(--c-charcoal); opacity: 0; transition: opacity var(--dur-med) var(--ease-out); }

.fp-label {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  fill: var(--c-charcoal);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
  pointer-events: none;
}
.fp-label.fp-sub { font-family: var(--font-body); font-size: 16px; font-weight: 500; fill: var(--c-grey-800); }

/* visible parts for each configuration */
.flex-plan[data-config="open"]  .fp-open,
.flex-plan[data-config="open"]  .fp-l-open,
.flex-plan[data-config="two"]   .fp-two,
.flex-plan[data-config="two"]   .fp-l-two,
.flex-plan[data-config="three"] .fp-three,
.flex-plan[data-config="three"] .fp-l-three { opacity: 1; }

.flex-plan[data-config="two"]   .fp-wall-a,
.flex-plan[data-config="three"] .fp-wall-a,
.flex-plan[data-config="three"] .fp-wall-b { transform: scaleY(1); }
.flex-plan[data-config="two"]   .fp-roller-a,
.flex-plan[data-config="three"] .fp-roller-a,
.flex-plan[data-config="three"] .fp-roller-b { opacity: 1; }

.flex-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
  margin-top: var(--space-xs);
  font-size: 0.85rem;
  color: var(--c-grey-800);
}
.flex-legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.flex-legend .key { display: inline-block; width: 22px; border-radius: 3px; }
.flex-legend .key-window { height: 6px; background: var(--c-moss-bright); }
.flex-legend .key-wall { height: 6px; background: var(--c-charcoal); }
.flex-disclaimer { margin-top: var(--space-2xs); font-size: 0.8rem; color: var(--c-grey-600); }

.flex-options { display: grid; gap: var(--space-2xs); }
.flex-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xs);
  align-items: start;
  width: 100%;
  text-align: left;
  padding: var(--space-sm);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  color: var(--c-charcoal);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}
.flex-option:hover { border-color: var(--c-charcoal); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.flex-option:focus-visible { outline: 2px solid var(--c-moss-light); outline-offset: 3px; }
.flex-option .num { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--c-moss-light); }
.flex-option .body { display: grid; gap: 0.35rem; }
.flex-option strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.flex-option .body span { font-size: 0.95rem; line-height: 1.55; color: var(--c-grey-800); }
.flex-option.is-active { background: var(--c-charcoal); border-color: var(--c-charcoal); color: var(--c-white); }
.flex-option.is-active .num { color: var(--c-moss-bright); }
.flex-option.is-active .body span { color: var(--c-grey-400); }

.flex-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.flex-photo figcaption { margin-top: var(--space-2xs); font-size: 0.85rem; color: var(--c-grey-600); }

@media (max-width: 960px) {
  .flex-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}
@media (prefers-reduced-motion: reduce) {
  .fp-wall, .fp-room, .fp-label, .fp-roller { transition: none; }
}

.flex-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
@media (max-width: 720px) {
  .flex-photos { grid-template-columns: 1fr; margin-top: var(--space-md); }
}

/* keep the brand on one line */
.brand-mark { white-space: nowrap; }

/* ==========================================================================
   Drive time strip (location)
   ========================================================================== */
.route-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-xs) var(--space-md);
  align-items: center;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
}
.route-intro h3 { font-size: 1.25rem; font-weight: 600; }
.route-intro p { margin-top: 0.35rem; font-size: 0.92rem; color: var(--c-grey-600); }

.route-form { display: flex; gap: var(--space-2xs); }
.route-form input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: var(--c-paper);
  font: inherit;
  color: var(--c-charcoal);
}
.route-form input:focus { outline: 2px solid var(--c-moss-light); outline-offset: 2px; background: var(--c-white); }
.route-form .btn { padding: 0.95rem 1.5rem; white-space: nowrap; }
.route-form .btn:disabled { opacity: 0.7; cursor: progress; }

.route-result { grid-column: 1 / -1; font-size: 0.95rem; color: var(--c-grey-800); }
.route-result:empty { display: none; }
.route-result.has-result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.1rem;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--c-line);
}
.route-result strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--c-charcoal); }
.route-result .sep { width: 1px; height: 1.2rem; background: var(--c-line); align-self: center; }
.route-result .route-note { flex-basis: 100%; font-size: 0.85rem; color: var(--c-grey-600); }
.route-result a { color: var(--c-moss); border-bottom: 1px solid currentColor; }
.route-result.is-error { color: #a33a2a; }
.route-result.is-error a { color: inherit; }

@media (max-width: 860px) {
  .route-strip { grid-template-columns: 1fr; padding: var(--space-sm); }
}
@media (max-width: 480px) {
  .route-form { flex-direction: column; }
  .route-form .btn { width: 100%; }
}

/* Map column: map with the two longer drive times underneath */
.map-col { display: grid; gap: var(--space-2xs); }
.map-extras { display: grid; gap: var(--space-2xs); }
.location-grid { align-items: stretch; }
.commute-list { grid-auto-rows: 1fr; }
@media (max-width: 980px) {
  .commute-list { grid-auto-rows: auto; }
}

/* postcode line under the hero location */
.hero-location.hero-postcode { margin-top: 0.35rem; }



/* ==========================================================================
   Plan your space (indicative layout builder)
   ========================================================================== */
.planner-section { background: transparent; }
.compare-section { background: var(--c-mist); }
.planner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: var(--space-lg);
  align-items: start;
}
.planner-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: clamp(0.9rem, 2.2vw, 1.6rem);
  box-shadow: var(--shadow-sm);
}
.planner-svg { display: block; width: 100%; height: auto; transition: opacity 160ms ease; }
.planner-svg.is-updating { opacity: 0.15; }
.planner-disclaimer { margin-top: var(--space-xs); font-size: 0.8rem; color: var(--c-grey-600); }

/* drawing styles */
.fp2-outer { fill: var(--c-paper); stroke: var(--c-charcoal); stroke-width: 3.2; }
.fp2-core { fill: var(--c-mist); stroke: var(--c-line); stroke-width: 1; }
.fp2-room { fill: rgba(111, 143, 82, 0.1); stroke: var(--c-charcoal); stroke-width: 2.2; }
.fp2-room.fp2-grow { fill: rgba(24, 25, 25, 0.03); stroke: var(--c-grey-400); stroke-width: 1.4; stroke-dasharray: 5 4; }
.fp2-label { font-family: var(--font-body); font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; fill: var(--c-grey-800); }
.fp2-note { font-family: var(--font-body); font-size: 9px; letter-spacing: 0.22em; fill: var(--c-grey-600); }
.fp2-desk, .fp2-table { fill: var(--c-white); stroke: var(--c-charcoal); stroke-width: 1.2; }
.fp2-mon { fill: var(--c-grey-400); }
.fp2-chair { fill: rgba(111, 143, 82, 0.55); stroke: var(--c-moss); stroke-width: 1; }
.fp2-counter { fill: var(--c-grey-200); stroke: var(--c-charcoal); stroke-width: 1; }
.fp2-sink { fill: var(--c-white); stroke: var(--c-grey-600); stroke-width: 0.8; }
.fp2-hob { fill: var(--c-grey-600); }
.fp2-fridge { fill: var(--c-grey-400); stroke: var(--c-charcoal); stroke-width: 1; }
.fp2-sofa { fill: rgba(51, 66, 47, 0.2); stroke: var(--c-moss); stroke-width: 1.2; }
.fp2-screen { fill: var(--c-charcoal); }
.fp2-plant { fill: rgba(138, 179, 91, 0.7); }
.fp2-plant2 { fill: var(--c-moss); }
.fp2-gap { stroke: var(--c-paper); stroke-width: 4.5; }
.fp2-swing { fill: none; stroke: var(--c-grey-600); stroke-width: 0.8; stroke-dasharray: 2 2; }
.fp2-leaf { stroke: var(--c-charcoal); stroke-width: 1.1; }
.fp2-window { stroke: var(--c-moss-bright); stroke-width: 6; stroke-linecap: round; }

/* controls */
.planner-controls { display: grid; gap: var(--space-sm); }
.planner-brief { display: grid; gap: var(--space-2xs); background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--space-sm); box-shadow: var(--shadow-sm); }
.planner-brief label { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.planner-brief textarea {
  width: 100%;
  min-height: 84px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-paper);
  font: inherit;
  color: var(--c-charcoal);
  resize: vertical;
}
.planner-brief textarea:focus { outline: 2px solid var(--c-moss-light); outline-offset: 2px; background: var(--c-white); }
.planner-brief .btn { justify-self: start; }
.planner-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: var(--c-paper);
  font-size: 0.82rem;
  color: var(--c-grey-800);
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.chip:hover { background: var(--c-white); border-color: var(--c-charcoal); }
.planner-note { min-height: 1.2em; font-size: 0.88rem; color: var(--c-moss); }
.planner-note.is-warn { color: #a33a2a; }

.planner-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xs) var(--space-md);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
}
.pf { display: grid; gap: 0.5rem; align-content: start; }
.pf:first-child { grid-column: 1 / -1; }
.pf label, .pf-label { font-size: 0.85rem; font-weight: 600; color: var(--c-grey-800); display: flex; justify-content: space-between; gap: 1rem; }
.pf output { font-family: var(--font-display); font-weight: 600; color: var(--c-charcoal); }
.pf input[type="range"] { width: 100%; accent-color: var(--c-moss); }
.stepper { display: inline-flex; align-items: center; gap: 0.9rem; }
.stepper button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  font-size: 1.2rem;
  line-height: 1;
  display: grid; place-items: center;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.stepper button:hover { background: var(--c-white); border-color: var(--c-charcoal); }
.stepper output { min-width: 1.4ch; text-align: center; font-size: 1.1rem; }
.pf-checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.check { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--c-moss); }

.planner-summary { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.planner-summary li {
  list-style: none;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--c-charcoal);
  color: var(--c-white);
  font-size: 0.82rem;
}
.planner-summary li.is-soft { background: transparent; color: var(--c-grey-800); border: 1px dashed var(--c-grey-400); }
.planner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.planner-video { font-size: 0.9rem; color: var(--c-moss); border-bottom: 1px solid currentColor; }
.planner-video:hover { color: var(--c-charcoal); }

@media (max-width: 980px) {
  .planner-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .planner-visual { max-width: 620px; width: 100%; margin-inline: auto; }
}
@media (max-width: 480px) {
  .planner-fields { grid-template-columns: 1fr; }
  .planner-brief .btn { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { .planner-svg { transition: none; } }

/* toilets in the plan */
.fp2-cubicle { fill: var(--c-white); stroke: var(--c-grey-600); stroke-width: 1; }
.fp2-bowl { fill: var(--c-white); stroke: var(--c-charcoal); stroke-width: 1; }
.fp2-bowl2 { fill: var(--c-white); stroke: var(--c-charcoal); stroke-width: 1; }

/* paired desk divider */
.fp2-divider { stroke: var(--c-grey-400); stroke-width: 1; }

/* partition walls (on rollers) splitting the main open plan */
.fp2-pwall { stroke: var(--c-charcoal); stroke-width: 4.5; }
.fp2-roller { fill: var(--c-charcoal); }

/* left side layout selector */
.pf-layout { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pf-layout legend { font-size: 0.85rem; font-weight: 600; color: var(--c-grey-800); padding: 0; margin-bottom: 0.5rem; float: left; width: 100%; }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: var(--c-paper);
  font-size: 0.85rem;
  color: var(--c-grey-800);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.seg:hover span { border-color: var(--c-charcoal); }
.seg input:checked + span { background: var(--c-charcoal); border-color: var(--c-charcoal); color: var(--c-white); }
.seg input:focus-visible + span { outline: 2px solid var(--c-moss-light); outline-offset: 2px; }

/* ==========================================================================
   Compare and decide (business case builder)
   ========================================================================== */
.cmp-form {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: var(--space-sm);
}
.cmp-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); }
.cmp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.cmp-col, .cmp-feats { border: 1px solid var(--c-line); border-radius: var(--radius-md); padding: var(--space-sm); margin: 0; display: grid; gap: var(--space-xs); align-content: start; min-width: 0; }
.cmp-col legend, .cmp-feats legend { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; padding: 0 0.5rem; }
.cmp-eng { background: var(--c-paper); }
.cmp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.cmp-field { display: grid; gap: 0.35rem; align-content: start; min-width: 0; }
.cmp-field label { font-size: 0.82rem; font-weight: 600; color: var(--c-grey-800); line-height: 1.3; }
.cmp-field .opt { font-weight: 400; color: var(--c-grey-600); }
.cmp-field input, .cmp-field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-white);
  font: inherit;
  color: var(--c-charcoal);
}
.cmp-eng .cmp-field input, .cmp-eng .cmp-field select { background: var(--c-white); }
.cmp-field input:focus, .cmp-field select:focus { outline: 2px solid var(--c-moss-light); outline-offset: 2px; }
.cmp-hint { font-size: 0.8rem; color: var(--c-grey-600); }
.cmp-facts { display: grid; gap: 0.5rem; font-size: 0.92rem; }
.cmp-facts li { list-style: none; display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--c-line); }
.cmp-facts li span { color: var(--c-grey-600); }
.cmp-feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.4rem; }
.cmp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.cmp-error { color: #a33a2a; font-size: 0.9rem; }

.cmp-output { margin-top: var(--space-md); }
.cmp-output.is-in { animation: bcIn 600ms var(--ease-out) both; }
@keyframes bcIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.bc {
  background: var(--c-charcoal);
  color: var(--c-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3.5vw, 3rem);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: var(--space-md);
}
.bc .eyebrow { color: var(--c-moss-bright); }
.bc .eyebrow::before { background: var(--c-moss-bright); }
.bc-head h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-top: 0.6rem; }
.bc-sub { margin-top: 0.5rem; color: var(--c-grey-400); font-size: 0.92rem; }
.bc-lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 70ch; }
.bc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.bc-block { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--c-line-inverse); border-radius: var(--radius-md); padding: var(--space-sm) var(--space-md); }
.bc-block h4 { font-size: 1.1rem; margin-bottom: 0.8rem; color: var(--c-moss-bright); }
.bc-weigh h4 { color: var(--c-grey-200); }
.bc-block ul, .bc-block ol { display: grid; gap: 0.75rem; }
.bc-block ul { list-style: none; }
.bc-block ol { padding-left: 1.2rem; }
.bc-block li { font-size: 0.95rem; line-height: 1.55; color: var(--c-grey-200); }
.bc-block li strong { color: var(--c-white); }
.bc-wins li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-moss-bright); margin-right: 0.6rem; vertical-align: 0.1em; }
.bc-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--c-line-inverse); }
.bc-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.bc-table th, .bc-table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--c-line-inverse); }
.bc-table thead th { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-grey-400); background: rgba(255, 255, 255, 0.05); }
.bc-table tbody th { font-weight: 500; color: var(--c-grey-400); }
.bc-table td:nth-child(2) { color: var(--c-white); font-weight: 600; }
.bc-table td:nth-child(3) { color: var(--c-grey-200); }
.bc-table tbody tr:last-child th, .bc-table tbody tr:last-child td { border-bottom: 0; }
.bc-foot { font-size: 0.78rem; color: var(--c-grey-400); line-height: 1.5; }
.bc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-top: var(--space-sm); }
.bc-status { font-size: 0.88rem; color: var(--c-moss); }

@media (max-width: 980px) {
  .cmp-top { grid-template-columns: 1fr; }
  .cmp-cols { grid-template-columns: 1fr; }
  .bc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cmp-pair, .cmp-feat-grid { grid-template-columns: 1fr; }
  .cmp-facts li { grid-template-columns: 1fr; gap: 0.15rem; }
  .bc-actions .btn { width: 100%; }
}

/* print only the business case */
@media print {
  .print-case .site-nav, .print-case .scroll-progress, .print-case .cursor-dot, .print-case .cursor-ring, .print-case .back-to-top,
  .print-case .site-footer, .print-case .skip-link { display: none !important; }
  .print-case main > section:not(#compare-case) { display: none !important; }
  .print-case #compare-case .section-head, .print-case #compare-case .cmp-form, .print-case .bc-actions { display: none !important; }
  .print-case #compare-case { padding: 0 !important; }
  .print-case .bc { background: #fff !important; color: #181919 !important; box-shadow: none; border: 1px solid #ccc; }
  .print-case .bc * { color: #181919 !important; background: transparent !important; border-color: #ccc !important; }
  .print-case .bc-block h4 { color: #e53725 !important; }
  .print-case .reveal, .print-case [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Compare and decide: Rightmove steps, sliders, live panel, PDF actions
   ========================================================================== */
.cmp-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); margin-bottom: var(--space-sm); }
.cmp-step { display: grid; grid-template-columns: auto 1fr; gap: var(--space-sm); background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--space-sm) var(--space-md); box-shadow: var(--shadow-sm); align-items: start; }
.cmp-step .num { width: 38px; height: 38px; border-radius: 50%; background: var(--c-charcoal); color: var(--c-white); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; }
.cmp-step h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; }
.cmp-step p { font-size: 0.92rem; color: var(--c-grey-800); line-height: 1.55; }
.cmp-step textarea { width: 100%; margin-top: 0.4rem; min-height: 110px; padding: 0.85rem 1rem; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-paper); font: inherit; color: var(--c-charcoal); resize: vertical; }
.cmp-step textarea:focus { outline: 2px solid var(--c-moss-light); outline-offset: 2px; background: var(--c-white); }
.cmp-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); margin-top: var(--space-xs); }
.cmp-link { font-size: 0.9rem; color: var(--c-moss); border-bottom: 1px solid currentColor; }
.cmp-link:hover { color: var(--c-charcoal); }

.cmp-slider { display: grid; gap: 0.4rem; }
.cmp-slider label { font-size: 0.82rem; font-weight: 600; color: var(--c-grey-800); display: flex; justify-content: space-between; gap: 1rem; }
.cmp-slider output { font-family: var(--font-display); font-size: 1rem; color: var(--c-charcoal); }
.cmp-slider input[type="range"] { width: 100%; accent-color: var(--c-moss); }

.cmp-live { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius-md); padding: var(--space-sm); display: grid; gap: var(--space-sm); }
.cmp-live:empty { display: none; }
.live-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); }
.live-grid > div { display: grid; gap: 0.25rem; align-content: start; }
.live-k { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-grey-600); font-weight: 600; }
.live-grid strong { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; color: var(--c-charcoal); }
.live-s { font-size: 0.82rem; color: var(--c-grey-600); }
.live-wait { grid-column: 1 / -1; font-size: 0.92rem; color: var(--c-grey-800); }

.chip-v { font-style: normal; display: inline-block; padding: 0.25rem 0.7rem; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 600; }
.v-strong { background: var(--c-moss); color: var(--c-white); }
.v-good { background: rgba(138, 179, 91, 0.3); color: var(--c-charcoal); }
.v-level { background: var(--c-grey-200); color: var(--c-charcoal); }
.v-high { background: rgba(211, 32, 35, 0.14); color: #a33a2a; }
.bc-verdict { font-size: 0.95rem; color: var(--c-grey-200); }
.bc .v-good, .bc .v-level { color: var(--c-charcoal); }
.bc-inner { margin-top: 0.3rem; }

@media (max-width: 980px) {
  .cmp-steps { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: 1fr; }
}

/* Rightmove window inside the section */
.cmp-steps { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; }
.cmp-window { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.cmp-window-bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.65rem 1rem; background: var(--c-mist); border-bottom: 1px solid var(--c-line); }
.cmp-window-bar .dots { display: inline-flex; gap: 6px; }
.cmp-window-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-grey-400); display: block; }
.cmp-window-url { flex: 1; min-width: 0; font-size: 0.8rem; color: var(--c-grey-600); background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-pill); padding: 0.3rem 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-window-bar .cmp-link { font-size: 0.8rem; white-space: nowrap; }
.cmp-window-body { position: relative; flex: 1; min-height: 560px; background: var(--c-paper); }
.cmp-window-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--c-white); }
.cmp-window-body iframe[hidden], .cmp-window-start[hidden] { display: none; }
.cmp-window-start { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--space-xs); text-align: center; padding: var(--space-md); }
.cmp-window-start h3 { font-size: 1.4rem; }
.cmp-window-start p { max-width: 42ch; font-size: 0.95rem; color: var(--c-grey-800); line-height: 1.55; }
.cmp-window .cmp-hint { padding: 0.6rem 1rem; border-top: 1px solid var(--c-line); }
@media (max-width: 980px) {
  .cmp-steps { grid-template-columns: 1fr; }
  .cmp-window-body { min-height: 480px; }
}

/* tick a similar office */
.cmp-picks { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--space-sm) var(--space-md); box-shadow: var(--shadow-sm); margin-bottom: var(--space-sm); display: grid; gap: var(--space-xs); }
.cmp-picks[hidden] { display: none; }
.cmp-picks-head h3 { font-size: 1.2rem; font-weight: 600; }
.cmp-picks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-xs); }
.pick { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; padding: 0.9rem 1rem; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-paper); cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast); }
.pick:hover { border-color: var(--c-charcoal); background: var(--c-white); }
.pick.is-picked { border-color: var(--c-moss); background: var(--c-white); box-shadow: 0 0 0 2px rgba(111, 143, 82, 0.35); }
.pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pick-box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--c-grey-400); background: var(--c-white); display: grid; place-items: center; transition: background var(--dur-fast), border-color var(--dur-fast); }
.pick.is-picked .pick-box { background: var(--c-moss); border-color: var(--c-moss); }
.pick.is-picked .pick-box::after { content: ''; width: 5px; height: 10px; border: solid var(--c-white); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.pick input:focus-visible ~ .pick-box { outline: 2px solid var(--c-moss-light); outline-offset: 2px; }
.pick-body { display: grid; gap: 0.2rem; font-size: 0.85rem; color: var(--c-grey-800); position: relative; z-index: 1; pointer-events: none; }
.pick-body strong { font-family: var(--font-display); font-size: 1rem; color: var(--c-charcoal); }
.pick-body a { pointer-events: auto; color: var(--c-moss); border-bottom: 1px solid currentColor; justify-self: start; margin-top: 0.2rem; }

/* copy and compare steps */
.cmp-how { display: grid; gap: 0.45rem; padding-left: 1.2rem; margin: 0.4rem 0 var(--space-xs); font-size: 0.92rem; color: var(--c-grey-800); line-height: 1.5; }
.cmp-how li::marker { font-weight: 700; color: var(--c-moss); }
kbd { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; padding: 0.1rem 0.4rem; border: 1px solid var(--c-grey-400); border-bottom-width: 2px; border-radius: 5px; background: var(--c-paper); color: var(--c-charcoal); white-space: nowrap; }

/* single paste card (no embedded Rightmove window) */
.cmp-steps { grid-template-columns: 1fr; }
.cmp-step-main { display: grid; gap: var(--space-xs); min-width: 0; }
.cmp-step-main textarea { margin-top: 0; }
.cmp-step-main .btn-dark { justify-self: start; }
.cmp-inline { background: none; border: 0; padding: 0; font: inherit; color: var(--c-moss); border-bottom: 1px solid currentColor; cursor: pointer; }
.cmp-inline:hover { color: var(--c-charcoal); }
.cmp-or { color: var(--c-grey-600); }

/* single paste card */
.cmp-step-solo { grid-template-columns: 1fr; }

.cmp-desc { font-size: 0.95rem; line-height: 1.6; color: var(--c-grey-800); max-width: 70ch; }

/* extras the listing has that Engenda House does not list */
.cmp-extras { margin-top: var(--space-xs); padding-top: var(--space-xs); border-top: 1px dashed var(--c-grey-400); display: grid; gap: 0.6rem; }
.cmp-extras-title { font-size: 0.85rem; font-weight: 600; color: var(--c-grey-800); }

.cmp-extras textarea { width: 100%; min-height: 64px; padding: 0.75rem 0.9rem; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-white); font: inherit; color: var(--c-charcoal); resize: vertical; }
.cmp-extras textarea:focus { outline: 2px solid var(--c-moss-light); outline-offset: 2px; }
.cmp-extras .opt { font-weight: 400; color: var(--c-grey-600); }

/* summary and actions now sit under the floor plan */
.planner-visual .planner-summary { margin-top: var(--space-sm); }
.planner-visual .planner-actions { margin-top: var(--space-sm); }


/* ==========================================================================
   Personalised property summary
   ========================================================================== */
.ps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-sm); align-items: start; }
.ps-feats { min-width: 0; }
.ps-feat-list { display: grid; gap: 0.35rem; }
.ps-feat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--c-line); }
.ps-feat:last-child { border-bottom: 0; }
.ps-feat-name { font-size: 0.9rem; font-weight: 500; color: var(--c-charcoal); line-height: 1.35; }
.ps-seg { display: inline-flex; gap: 0.3rem; flex-wrap: wrap; justify-content: flex-end; }
.ps-seg .seg span { padding: 0.3rem 0.7rem; font-size: 0.76rem; }
.ps-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-sm); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--c-line-inverse); border-radius: var(--radius-md); padding: var(--space-sm) var(--space-md); }
.ps-stats > div { display: grid; gap: 0.25rem; align-content: start; }
.ps-stats .live-k { color: var(--c-grey-400); }
.ps-stats strong { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 600; color: var(--c-white); }
.ps-stats .live-s { color: var(--c-grey-400); }
.ps-brief { font-size: 0.95rem; line-height: 1.6; color: var(--c-grey-200); white-space: pre-line; }
@media (max-width: 980px) {
  .ps-grid { grid-template-columns: 1fr; }
  .ps-feats { max-height: none; }
  .ps-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ps-feat { grid-template-columns: 1fr; }
  .ps-seg { justify-content: flex-start; }
  .ps-stats { grid-template-columns: 1fr; }
}

.live-k { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.live-s { font-size: 0.82rem; }

/* compact layout: brief beside the fields, features in columns */
.ps-grid { grid-template-columns: 1fr; }
.ps-grid > .cmp-col:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs) var(--space-sm); align-items: start; }
.ps-grid > .cmp-col:first-child > .cmp-field,
.ps-grid > .cmp-col:first-child > .cmp-pair { grid-column: 1; }
.ps-grid > .cmp-col:first-child > .ps-brief-field { grid-column: 2; grid-row: 1 / span 3; height: 100%; align-content: stretch; grid-template-rows: auto 1fr; }
.ps-brief-field textarea { height: 100%; min-height: 220px; }
.ps-feat-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.2rem var(--space-md); }
.ps-feat { grid-template-columns: 1fr; gap: 0.35rem; padding: 0.6rem 0; }
.ps-seg { justify-content: flex-start; }
@media (max-width: 1100px) { .ps-feat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .ps-grid > .cmp-col:first-child { grid-template-columns: 1fr; }
  .ps-grid > .cmp-col:first-child > .ps-brief-field { grid-column: 1; grid-row: auto; }
  .ps-brief-field textarea { min-height: 140px; }
}
@media (max-width: 620px) { .ps-feat-list { grid-template-columns: 1fr; } }

/* feature writing boxes */
.ps-feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.ps-feat-grid textarea { width: 100%; min-height: 110px; padding: 0.8rem 0.95rem; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-white); font: inherit; color: var(--c-charcoal); resize: vertical; }
.ps-feat-grid textarea:focus { outline: 2px solid var(--c-moss-light); outline-offset: 2px; }
.ps-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ps-chips .chip { font-size: 0.78rem; padding: 0.35rem 0.75rem; }
@media (max-width: 820px) { .ps-feat-grid { grid-template-columns: 1fr; } }

/* add button, tags */
.ps-add { display: flex; gap: var(--space-2xs); }
.ps-add input { flex: 1 1 auto; min-width: 0; }
.ps-add .btn { padding: 0.7rem 1.3rem; white-space: nowrap; }
.chip.is-added { opacity: 0.45; text-decoration: line-through; pointer-events: none; }
.ps-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; min-height: 0.5rem; }
.ps-tag { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.4rem 0.4rem 0.85rem; background: var(--c-charcoal); color: var(--c-white); border-radius: var(--radius-pill); font-size: 0.85rem; line-height: 1.2; }
.ps-tag-x { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); color: var(--c-white); font-size: 1rem; line-height: 1; display: grid; place-items: center; transition: background var(--dur-fast); }
.ps-tag-x:hover { background: var(--c-moss-bright); }

/* alternate section backgrounds after moving the gallery up */
.flex-section { background: transparent; }
.planner-section { background: var(--c-mist); }
.compare-section { background: transparent; }
