/* Century 21 Realty: home page
   Tokens first; every value below comes from here. */
/* Two themes. Light is the default; [data-theme="dark"] on <html> switches.
   Services and the outro are dark bands in both themes. */
:root {
  color-scheme: light;
  --ink: #151717;
  --ink-2: #3b3f3f;
  --muted: #6b6f6f;        /* 5.1:1 on white: safe for body text */
  --em: #9a9d9d;           /* headline second half, large text only (3:1+) */
  --line: rgba(21, 23, 23, 0.12);
  --paper: #ffffff;
  --paper-2: #f6f4ef;
  --night: #121414;
  --night-line: rgba(255, 255, 255, 0.14);
  --night-muted: #a9adad;
  --gold: #c9a13b;
  --gold-strong: #8a6818;  /* gold text on light: 5:1 */
  --gold-soft: #f3e9cf;
  --light: #ffffff;
  --on-light: #151717;     /* text on gold or white */
  --on-dark: #f1ede4;      /* text on the dark bands */

  --header-bg: rgba(255, 255, 255, 0.92);
  --hover-bg: rgba(21, 23, 23, 0.07);
  --btn-dark-hover: #2c3030;
  --logo-filter: none;
  --tile: #f6f4ef;
  --word-dim: #c9cccc;

  --hero-sky: linear-gradient(180deg, #8fb6e3 0%, #c4dbf1 45%, #f4ece0 100%);
  --cloud-filter: none;
  --hero-img-filter: none;
  --hero-veil: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  --hero-glow: radial-gradient(closest-side, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0));
  --hero-em: #7a5c14;      /* deep gold: 4.6:1 on the pale sky */

  --footer-bg: #f3efe6;
  --footer-ink: #151717;
  --footer-muted: #5f625f; /* 5.6:1 on the footer */
  --footer-line: rgba(21, 23, 23, 0.14);
  --mark-base: #151717;
  --mark-hot: #b8901f;

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Lora", Georgia, serif;

  --fs-hero: clamp(3.2rem, 9vw, 8.75rem);
  --fs-h2: clamp(2.4rem, 5.4vw, 4.5rem);
  --fs-lead: clamp(1.6rem, 3.4vw, 2.75rem);
  --fs-big: clamp(2.2rem, 5.5vw, 5.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4.5rem, 10vw, 9rem);

  --radius: 999px;
  --radius-media: 6px;
  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 200ms;
}

/* Dark theme: warm off-white text on near-black, gold as the accent. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f1ede4;
  --ink-2: #c9c5bc;
  --muted: #9c9a93;        /* 6.6:1 on --paper */
  --em: #6f726f;           /* large text only (3.6:1) */
  --line: rgba(255, 255, 255, 0.12);
  --paper: #0f1112;
  --paper-2: #171a1b;
  --night: #08090a;
  --night-line: rgba(255, 255, 255, 0.1);
  --night-muted: #a3a7a7;
  --gold-strong: #d4ab45;  /* gold text on dark */

  --header-bg: rgba(15, 17, 18, 0.86);
  --hover-bg: rgba(255, 255, 255, 0.1);
  --btn-dark-hover: #ffffff;
  --logo-filter: brightness(0) invert(1);  /* the logo file is dark grey */
  --tile: #f4f1ea;
  --word-dim: #3f4343;

  --hero-sky: linear-gradient(180deg, #0c1a2a 0%, #1a3048 45%, #2a2a2c 100%);
  --cloud-filter: brightness(0.42) saturate(0.7);   /* the same clouds at dusk */
  --hero-img-filter: brightness(0.62) saturate(0.85) contrast(1.05);
  --hero-veil: linear-gradient(180deg, rgba(15, 17, 18, 0.75), rgba(15, 17, 18, 0));
  --hero-glow: radial-gradient(closest-side, rgba(15, 17, 18, 0.62), rgba(15, 17, 18, 0));
  --hero-em: #e6c062;

  --footer-bg: #08090a;
  --footer-ink: #f1ede4;
  --footer-muted: #a3a7a7;
  --footer-line: rgba(255, 255, 255, 0.1);
  --mark-base: #f1ede4;
  --mark-hot: #e0b84f;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  background: var(--ink);
  color: var(--paper);
}
.skip:focus { top: var(--space-2); }

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

.em { color: var(--em); }

.eyebrow {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: var(--night-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 1rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0.55rem 1.15rem; font-size: 0.9375rem; }

.btn-dark { background: var(--ink); color: var(--paper); }   /* inverted on dark: a light button */
.btn-dark:hover { background: var(--btn-dark-hover); }
.btn-gold { background: var(--gold); color: var(--on-light); }
.btn-gold:hover { background: #d8b24f; }
.btn-light { background: var(--light); color: var(--on-light); }
.btn-light:hover { background: var(--gold-soft); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: var(--on-dark); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 250ms var(--ease), box-shadow 250ms var(--ease);
}
.site-header.is-solid {
  background: var(--header-bg);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: var(--header-h);
}
.brand img { height: 44px; width: auto; filter: var(--logo-filter); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 0.25rem; }
.nav a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}
.nav a:hover { background: var(--hover-bg); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: 600 0.9375rem var(--font);
  cursor: pointer;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.menu-icon { position: relative; }
.menu-icon::before,
.menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  padding: var(--space-2) var(--gutter) var(--space-4);
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.mobile-menu ul { margin-bottom: var(--space-3); }
.mobile-menu a:not(.btn) {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.375rem;
  font-weight: 600;
  text-decoration: none;
}
.mobile-menu .btn { width: 100%; }

/* light / dark switch: a bare icon (44px hit area), showing the theme you would switch to.
   The two icons cross-fade and turn as they swap. */
.theme-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.theme-btn:hover { color: var(--gold); }
.theme-btn svg {
  grid-area: 1 / 1;
  transition: opacity 400ms var(--ease), transform 500ms var(--ease);
}
.theme-btn .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
:root[data-theme="dark"] .theme-btn .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
:root[data-theme="dark"] .theme-btn .icon-sun { opacity: 1; transform: none; }
.theme-btn:hover .icon-moon { transform: rotate(-15deg); }
:root[data-theme="dark"] .theme-btn:hover .icon-sun { transform: rotate(45deg); }

/* the whole page fades from one theme to the other (View Transitions) */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 550ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .theme-btn { margin-left: auto; }
  .menu-btn { display: inline-flex; margin-left: 0; }
  .brand img { height: 38px; }
}

/* ---------- Hero scene ---------- */
.hero {
  position: relative;
  height: 400vh;
  margin-bottom: -100vh;  /* the intro scrolls up over the cloud bank: no empty stretch */
}
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--paper);
}
.hero-sky {
  position: absolute;
  inset: 0;
  background: var(--hero-sky);
}
.hero-tower,
.hero-mark,
.hero-cloud,
.hero-bank,
.hero-content { position: absolute; will-change: transform, opacity; }

.hero-tower {
  inset: 0;
  transform-origin: 50% 100%;
}
.hero-tower img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% 30%;          /* keep the tower in view on narrow screens (main.js TOWER_X) */
  filter: var(--hero-img-filter);   /* dark theme pulls the daylight photo to dusk */
}
/* veil so the header text stays readable over the sky */
.hero-tower::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 45%;
  background: var(--hero-veil);
}

.hero-mark {
  inset: 0;
  display: grid;
  place-items: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.hero-mark svg { width: min(980px, 100%); height: auto; overflow: visible; }
.mark-word { font: 700 150px/1 var(--font); letter-spacing: -0.02em; }
.mark-sub { font: 600 64px/1 var(--font); letter-spacing: 0.02em; }
.mark-fill { opacity: 0; }
.mark-line text {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.5;
  stroke-dasharray: 1400;   /* longer than any letter's outline, so each one draws in */
  stroke-dashoffset: 1400;
}

/* Clouds are photographs with the sky keyed out (assets/img/cloud*.webp) */
.hero-cloud img,
.hero-bank img { display: block; width: 100%; height: auto; filter: var(--cloud-filter); }
.hero-cloud--left { top: 30%; left: -20vw; width: 62vw; }
.hero-cloud--right { top: 14%; right: -24vw; width: 54vw; }
.hero-cloud--right img { transform: scaleX(-1); }   /* mirrored, so the pair don't read as twins */
.hero-bank {
  left: -10vw;
  right: -10vw;
  bottom: 0;
  height: 170vh;          /* tall enough that, risen, it covers the whole stage */
  display: flex;
  flex-direction: column;
  transform: translateY(80%);
}
/* skip the empty sky above the cloud tops (margins resolve against the width) */
.hero-bank img { flex: none; margin-top: -22%; }
/* the photo's lower edge melts into the page colour, which fills the rest */
.bank-fade {
  position: relative;   /* paints above the photo even when the dark-theme filter lifts it */
  flex: none;
  aspect-ratio: 100 / 24;
  margin-top: -24%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--paper) 55%, transparent) 45%, var(--paper) 85%);
}
.hero-bank::after { content: ""; position: relative; flex: 1; background: var(--paper); }

.hero-content {
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--space-3);
  padding-top: var(--header-h);
  padding-bottom: 18vh;
  text-align: center;
}
/* soft halo behind the copy so it reads over glass and cloud alike */
.hero-content::before {
  content: "";
  position: absolute;
  inset: 15% 5% 20%;
  z-index: -1;
  background: var(--hero-glow);
}
.hero-title {
  max-width: 13ch;
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-title .em { color: var(--hero-em); }
.hero-text {
  max-width: 34ch;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}

@media (max-width: 767px) {
  .hero { height: 320vh; }
  /* kept to the edges so the wordmark stays clear in the middle */
  .hero-cloud--left { top: 60%; left: -58vw; width: 120vw; }
  .hero-cloud--right { top: 10%; right: -66vw; width: 110vw; }
  .hero-bank { left: -60vw; right: -60vw; }
  .mark-line text { stroke-width: 3; }
}

/* ---------- Intro ---------- */
.intro { position: relative; z-index: 1; padding-block: var(--space-5) var(--space-6); }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 3fr;
  gap: var(--space-4);
}
.intro-lead {
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.intro-lead .w { transition: color 250ms linear; color: var(--word-dim); }
.intro-lead .w.on { color: var(--ink); }
.intro-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
  color: var(--ink-2);
}
@media (max-width: 860px) {
  .intro-grid, .intro-body { grid-template-columns: 1fr; }
  .intro-body { gap: var(--space-3); margin-top: var(--space-4); }
}

/* ---------- Media ---------- */
.parallax-frame,
.founder-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--paper-2);
}
.parallax-frame { aspect-ratio: 16 / 7; }
.parallax-frame img,
.founder-media img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}
@media (max-width: 767px) { .parallax-frame { aspect-ratio: 4 / 3; } }

/* ---------- Stats ---------- */
.stats { padding-block: var(--space-5) var(--space-6); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}
.stats-grid > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-3) 0 0;
}
.stats-grid > div + div { padding-left: var(--space-3); border-left: 1px solid var(--line); }
.stats-grid dd {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stats-grid dt { color: var(--muted); font-weight: 500; }
.stats-grid dd { white-space: nowrap; }

/* first time in view: a gold rule runs along the top, the figures rise in
   one after another and count up from zero (main.js) */
.stats-grid { position: relative; }
.stats-grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.stats-grid.is-in::before { transform: scaleX(1); }
.stats-grid.will-rise > div { opacity: 0; translate: 0 28px; }
.stats-grid.will-rise.is-in > div {
  opacity: 1;
  translate: 0 0;
  transition: opacity 700ms var(--ease), translate 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.stats-grid.is-in > div:nth-child(2) { transition-delay: 120ms; }
.stats-grid.is-in > div:nth-child(3) { transition-delay: 240ms; }
.stats-grid.is-in > div:nth-child(4) { transition-delay: 360ms; }
@media (max-width: 767px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid > div { padding: var(--space-3) var(--space-2) var(--space-3) 0; border-bottom: 1px solid var(--line); }
  .stats-grid > div + div { padding-left: 0; border-left: 0; }
  .stats-grid > div:nth-child(even) { padding-left: var(--space-2); border-left: 1px solid var(--line); }
}

/* ---------- Values: expanding photo panels ---------- */
/* Four photos, one word from the headline on each. The active panel opens
   wide and shows its photo in full colour; the rest stay narrow and muted.
   Hover, focus or tap makes a panel active (main.js). */
.values { padding-block: var(--space-5) var(--space-6); }
.values-title {
  max-width: 28ch;
  margin: 0 auto var(--space-5);
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
}
.panels {
  display: flex;
  gap: 12px;
  height: clamp(380px, 56vh, 540px);
}
.panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper-2);
  cursor: pointer;
  transition: flex-grow 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.panel.is-active { flex-grow: 3.2; cursor: default; }
.panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) brightness(0.78);
  scale: 1.06;
  transition: filter 600ms var(--ease), scale 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.panel.is-active img { filter: none; scale: 1; }
/* shade at the foot so the white word always reads */
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
}
.panel-num,
.panel-word { position: absolute; z-index: 1; color: #ffffff; }
.panel-num {
  top: 1rem;
  left: 1.1rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: color 400ms var(--ease);
}
.panel.is-active .panel-num { color: var(--gold); }
.panel-word {
  left: 1.1rem;
  bottom: 1rem;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  transform-origin: 0 100%;
  transform: scale(0.5);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.panel.is-active .panel-word { transform: none; }
.panel:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* the panels rise in one after another when they first come into view */
.panels.will-rise .panel { opacity: 0; translate: 0 40px; }
.panels.will-rise.is-in .panel {
  opacity: 1;
  translate: 0 0;
  transition: flex-grow 700ms cubic-bezier(0.16, 1, 0.3, 1), opacity 700ms var(--ease), translate 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.panels.is-in .panel:nth-child(2) { transition-delay: 0s, 90ms, 90ms; }
.panels.is-in .panel:nth-child(3) { transition-delay: 0s, 180ms, 180ms; }
.panels.is-in .panel:nth-child(4) { transition-delay: 0s, 270ms, 270ms; }

/* phones: stacked, the active one tall */
@media (max-width: 767px) {
  .panels { flex-direction: column; height: auto; gap: 8px; }
  .panel {
    flex: none;
    height: 88px;
    transition: height 600ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .panel.is-active { height: 300px; }
  .panels.will-rise.is-in .panel { transition: height 600ms cubic-bezier(0.16, 1, 0.3, 1), opacity 700ms var(--ease), translate 900ms cubic-bezier(0.16, 1, 0.3, 1); }
}

/* ---------- Reasons ---------- */
.reasons { padding-block: var(--space-6); background: var(--paper-2); }
.reasons-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--space-5);
  align-items: start;
}
.reasons-head {
  position: sticky;
  top: calc(var(--header-h) + var(--space-4));
  display: grid;
  justify-items: start;
  gap: var(--space-4);
}
.reasons-head h2 {
  font-size: var(--fs-big);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.reasons-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-2);
  padding-block: var(--space-3);
  border-top: 1px solid var(--line);
}
.reasons-list li:last-child { border-bottom: 1px solid var(--line); }
.reasons-list .num {
  padding-top: 0.45rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--gold-strong);
  font-variant-numeric: tabular-nums;
}
.reasons-list p {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
}
.reasons-list strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .reasons-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .reasons-head { position: static; }
}

/* ---------- Services ---------- */
.services { padding-block: var(--space-6); background: var(--night); color: var(--on-dark); }
.services-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.services-head h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.services-head .em { color: #7d8282; }
.services-list li {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-areas: "num title" "text title";
  column-gap: var(--space-4);
  row-gap: var(--space-2);
  align-items: center;
  padding-block: var(--space-4);
  border-top: 1px solid var(--night-line);
}
.services-list .num {
  grid-area: num;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--night-line);
  border-radius: 50%;
  font-size: var(--fs-small);
  color: var(--night-muted);
}
.services-list p { grid-area: text; max-width: 34ch; color: var(--night-muted); }
.services-list h3 {
  grid-area: title;
  font-size: var(--fs-big);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
@media (max-width: 767px) {
  .services-head { grid-template-columns: 1fr; gap: var(--space-2); }
  .services-list li {
    grid-template-columns: 1fr;
    grid-template-areas: "num" "title" "text";
  }
}

/* ---------- Partners ---------- */
.partners { padding-block: var(--space-6); }
.partners-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-4);
  align-items: end;
  margin-bottom: var(--space-5);
}
.partners-head h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.partners-head p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.4;
  color: var(--ink-2);
}
/* logos are drawn for light backgrounds, so each sits on its own light tile */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.logo-grid li {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1;
  padding: var(--space-2);
  border-radius: var(--radius-media);
  background: var(--tile);
}
.logo-grid img {
  max-width: 78%;
  max-height: 84px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
@media (max-width: 767px) {
  .partners-head { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .logo-grid img { max-height: 56px; }
}

/* ---------- Founder ---------- */
.founder { padding-block: 0 var(--space-6); }
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.founder-media { aspect-ratio: 4 / 5; }
.founder-body { display: grid; justify-items: start; gap: var(--space-4); }
.founder blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.38;
}
.founder blockquote footer {
  margin-top: var(--space-3);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.founder blockquote footer span { color: var(--muted); }
@media (max-width: 860px) {
  .founder-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .founder-media { aspect-ratio: 16 / 10; }
}

/* ---------- Outro ---------- */
.outro {
  position: relative;
  display: grid;
  min-height: 80vh;
  overflow: hidden;
  background: var(--night);
  color: var(--on-dark);
  isolation: isolate;
}
.outro-bg {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}
.outro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 12, 14, 0.35), rgba(10, 12, 14, 0.7));
}
.outro-inner {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--space-4);
  padding-block: var(--space-6);
  text-align: center;
}
.outro h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.outro .em { color: rgba(255, 255, 255, 0.72); }
.outro-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }

/* ---------- Footer ---------- */
/* follows the theme: warm paper in light, near-black in dark */
.site-footer {
  padding-top: var(--space-6);
  overflow: hidden;            /* the wordmark is cut by the page edge */
  background: var(--footer-bg);
  color: var(--footer-muted);
}
.footer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--footer-line);
}
.footer-lead {
  max-width: 18ch;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--footer-ink);
}
.footer-lead span { color: var(--gold-strong); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.7fr;
  gap: var(--space-4);
  padding-block: var(--space-5);
}
.footer-h {
  margin-bottom: var(--space-2);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-muted);
}
.site-footer address {
  max-width: 32ch;
  margin-bottom: var(--space-2);
  font-style: normal;
  line-height: 1.55;
  color: var(--footer-ink);
}
.footer-list li + li { margin-top: 0.4rem; }
.site-footer a { color: var(--footer-ink); text-decoration: none; }
/* underline that draws in from the left */
.footer-link {
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat;
  transition: background-size 350ms var(--ease), color var(--dur) var(--ease);
}
.footer-link:hover { background-size: 100% 1px; color: var(--gold-strong); }
.footer-directions { display: inline-block; font-weight: 600; }

/* big page links that roll to a gold copy on hover (as on findrealestate.com) */
.footer-nav li + li { margin-top: 0.15rem; }
.roll {
  display: inline-block;
  overflow: hidden;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  vertical-align: top;
}
.roll span {
  position: relative;
  display: block;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.roll span::after {
  content: attr(data-text);
  position: absolute;
  top: 105%;
  left: 0;
  color: var(--gold-strong);
}
.roll:hover span,
.roll:focus-visible span { transform: translateY(-105%); }

/* bare icons, no ring (like the theme switch); each keeps a 44px hit area,
   pulled left so the first icon lines up with the heading */
.footer-social { display: flex; gap: 0.25rem; margin-left: -12px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: color var(--dur) var(--ease);
}
.footer-social svg { transition: transform 300ms var(--ease); }
.footer-social a:hover { color: var(--gold-strong); }
.footer-social a:hover svg { transform: translateY(-2px); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-3);
  border-top: 1px solid var(--footer-line);
  font-size: var(--fs-small);
}

/* Wordmark: fills the container width, and the page edge cuts off its
   lower fifth. A gold light follows the pointer: full gold on the letter
   underneath, fading over its neighbours. */
@property --mx { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --glow { syntax: "<number>"; inherits: true; initial-value: 0; }
/* breaks out of the container to run the full width of the window */
.footer-mark-wrap {
  container-type: inline-size;
  margin-top: var(--space-2);
  margin-inline: calc(50% - 50vw);
  padding-inline: clamp(12px, 1.6vw, 28px);   /* also covers the scrollbar's width */
}
/* The crop is measured from the font itself: the text box is trimmed to the
   capital letters, and the box shows 80% of their height (1cap = cap height),
   plus a sliver above for the round tops of C and U. Same share at every width. */
.site-footer .footer-mark {   /* beats the generic footer link colour */
  --hot: color-mix(in oklab, var(--mark-hot) calc(var(--glow) * 100%), var(--mark-base));
  --warm: color-mix(in oklab, var(--mark-hot) calc(var(--glow) * 40%), var(--mark-base));
  display: block;
  height: calc(0.8cap + 0.05em);
  padding-top: 0.05em;
  overflow: hidden;
  font-size: calc(100cqi / 6.3);   /* about 88% of the window width, centred */
  font-weight: 700;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.04em;
  white-space: nowrap;
  background: linear-gradient(90deg,
    var(--mark-base) 0,
    var(--mark-base) calc(var(--mx) - 1.15em),
    var(--warm) calc(var(--mx) - 0.6em),
    var(--hot) calc(var(--mx) - 0.22em),
    var(--hot) calc(var(--mx) + 0.22em),
    var(--warm) calc(var(--mx) + 0.6em),
    var(--mark-base) calc(var(--mx) + 1.15em),
    var(--mark-base) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  transition: --glow 350ms var(--ease);
}
.footer-mark.is-lit { --glow: 1; }
.footer-mark:focus-visible { background: none; color: var(--mark-hot); outline-offset: -6px; }
.footer-mark > span { display: block; text-box: trim-both cap alphabetic; }
/* browsers without text-box trimming: pull the capitals up by hand */
@supports not (text-box: trim-both cap alphabetic) {
  .footer-mark > span { margin-top: -0.17em; }
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ---------- Hover details (pointer devices only) ---------- */
@media (hover: hover) and (pointer: fine) {
  /* nav: gold underline grows from the left */
  .nav a { position: relative; }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.35rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms var(--ease);
  }
  .nav a:hover { background: transparent; }
  .nav a:hover::after { transform: scaleX(1); }
  .nav a[aria-current="page"]::after { display: none; }

  .btn { transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }

  /* reasons: the row steps forward, its number lights up */
  .reasons-list li p,
  .reasons-list .num { transition: transform 300ms var(--ease), color 300ms var(--ease); }
  .reasons-list li:hover p { transform: translateX(6px); color: var(--ink-2); }
  .reasons-list li:hover .num { color: var(--gold); transform: translateX(6px); }

  /* services: title slides and turns gold, number fills */
  .services-list li { transition: border-color 300ms var(--ease); }
  .services-list h3,
  .services-list .num { transition: transform 400ms var(--ease), color 300ms var(--ease), background-color 300ms var(--ease), border-color 300ms var(--ease); }
  .services-list li:hover h3 { transform: translateX(14px); color: var(--gold); }
  .services-list li:hover .num { background: var(--gold); border-color: var(--gold); color: var(--on-light); }

  /* partner logos: quiet grey until hovered */
  .logo-grid li { transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
  .logo-grid img { filter: grayscale(1); opacity: 0.75; transition: filter 300ms var(--ease), opacity 300ms var(--ease); }
  .logo-grid li:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }
  .logo-grid li:hover img { filter: none; opacity: 1; }

  /* photos: a slow push-in */
  .founder-media img,
  .parallax-frame img { transition: scale 900ms var(--ease); }
  .founder-media:hover img,
  .parallax-frame:hover img { scale: 1.04; }
}

/* ---------- WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1f9d55;   /* darker WhatsApp green: white icon passes 3:1 */
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform var(--dur) var(--ease);
}
.wa-float:hover { transform: translateY(-2px); }

/* ---------- Reduced motion: no pinned scene, everything at rest ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; margin-bottom: 0; }
  .intro { padding-top: var(--space-6); }
  .hero-stage { position: relative; height: 100svh; min-height: 560px; }
  .hero-mark { display: none; }
  .intro-lead .w { color: var(--ink); transition: none; }
  .theme-btn svg { transition: opacity 150ms linear !important; }
  .btn, .btn .arrow, .nav a, .site-header, .wa-float,
  .roll span, .footer-mark, .panel, .panel img, .panel-word, .logo-grid li, .logo-grid img,
  .services-list h3, .reasons-list p, .founder-media img, .parallax-frame img { transition: none !important; }
  .btn:hover, .logo-grid li:hover, .services-list li:hover h3, .reasons-list li:hover p { transform: none; }
}
