/* GLC Real Estate: site styles.
   One typeface (Sentient), one ground, one ink, GLC blue for actions.
   Phone first; wider screens are added at the bottom of each block. */

@font-face { font-family: "Sentient"; src: url("../fonts/sentient-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Sentient"; src: url("../fonts/sentient-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Sentient"; src: url("../fonts/sentient-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sentient"; src: url("../fonts/sentient-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #f3f3ef;
  --tone: #e6e7e1;
  --ink: #15171c;
  --soft: #4b4f59;
  --blue: #3b4fa0;
  --blue-dark: #2c3c7c;
  --white: #ffffff;
  --todo: #fff0a6;

  --m: clamp(20px, 3vw, 40px);              /* the page's one pair of margins */
  --gap: clamp(96px, 13vw, 200px);           /* space between sections */

  --step-small: 1rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.1875rem, 1.1rem + 0.4vw, 1.4rem);
  --step-head: clamp(1.875rem, 1.25rem + 2.2vw, 3.25rem);
  --step-name: clamp(2.5rem, 1.4rem + 4.8vw, 6.5rem);

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Sentient", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: var(--step-body);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
img, video, svg { display: block; max-width: 100%; }
figure { margin: 0; }
img { height: auto; }
h1, h2, h3 { font-weight: 300; line-height: 1.02; letter-spacing: -0.015em; margin: 0; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 400; line-height: 1.2; letter-spacing: 0; }
p { margin: 0; }
main p { max-width: 68ch; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-dark :focus-visible, .footer :focus-visible { outline-color: var(--white); }
::selection { background: var(--blue); color: var(--white); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--white); color: var(--ink); padding: 12px 18px; }
.skip:focus { left: var(--m); top: var(--m); }

.wrap { padding-left: var(--m); padding-right: var(--m); }
.section { margin-top: var(--gap); }
.lead { font-size: var(--step-lead); line-height: 1.4; font-weight: 300; }
.soft { color: var(--soft); }
.small { font-size: var(--step-small); }
.caption { font-size: var(--step-small); color: var(--soft); margin-top: 10px; }
main:has(> .visit:last-child) + .footer, main:has(> .full-photo:last-child) + .footer { margin-top: 0; }
.todo { background: var(--todo); color: var(--ink); padding: 0 0.2em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons: flat, square, one fill ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--blue); color: var(--white);
  font: 500 var(--step-body)/1 "Sentient", Georgia, serif;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.button:hover { background: var(--ink); text-decoration: none; transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button.light { background: var(--white); color: var(--blue); }
.button.light:hover { background: var(--ink); color: var(--white); }

/* ---------- Top bar ---------- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--m);
  position: sticky; top: 0; z-index: 40; background: var(--paper);
  transition: padding 0.3s var(--ease), background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
/* Once the page scrolls, the bar slims down and lifts off the page. */
.bar.scrolled { padding-top: 8px; padding-bottom: 8px; box-shadow: 0 1px 0 rgba(21, 23, 28, 0.12), 0 8px 24px rgba(21, 23, 28, 0.08); /* sticky bar. taste-skill-ignore */ }
.bar .logo img { transition: width 0.3s var(--ease); }
.bar.scrolled .logo img { width: 92px; }
html { scroll-padding-top: 170px; }
.bar .logo { display: block; flex: none; background: var(--white); padding: 8px 10px; line-height: 0; }
.bar .logo img { width: clamp(110px, 7vw + 50px, 156px); height: auto; }
.bar nav ul { display: flex; gap: clamp(16px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; font-size: var(--step-body); }
.bar nav a { display: inline-block; text-decoration: none; padding: 6px 0; white-space: nowrap; }
.has-sub > button { white-space: nowrap; }
.bar nav a::after { content: ""; display: block; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.bar nav a:hover::after, .bar nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-button { display: none; }

/* Dropdowns: Buy, Sell, About */
.has-sub { position: relative; }
.has-sub > button {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer;
  background: none; border: 0; color: inherit; font: inherit;
}
.caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.25s var(--ease); }
.has-sub.open .caret { transform: translateY(1px) rotate(-135deg); }
.has-sub.here > button { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.bar nav .sub { list-style: none; margin: 0; padding: 0; display: none; }
.has-sub.open > .sub { display: block; }
@media (min-width: 1241px) {
  .bar nav .sub {
    position: absolute; top: calc(100% + 8px); left: -20px; z-index: 30; min-width: 270px;
    background: var(--paper); color: var(--ink); padding: 10px 0;
    box-shadow: 0 14px 30px rgba(21, 23, 28, 0.16); /* dropdown overlay. taste-skill-ignore */
  }
  .bar nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
  .bar nav .sub a { display: block; padding: 10px 20px; white-space: nowrap; }
  .bar nav .sub a::after { display: none; }
  .bar nav .sub a:hover, .bar nav .sub a[aria-current="page"] { background: var(--tone); }
}

@media (max-width: 1240px) {
  .menu-button {
    display: inline-flex; min-height: 44px; align-items: center; padding: 0 4px;
    background: none; border: 0; color: inherit; font: 400 var(--step-body) "Sentient", Georgia, serif; cursor: pointer;
  }
  .js .bar nav { display: none; }
  .js .bar.open nav {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); color: var(--ink); padding: 24px var(--m) 32px; z-index: 20;
  }
  .js .bar.open nav > ul { flex-direction: column; gap: 6px; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); font-weight: 300; }
  .bar.open { z-index: 20; }
  .bar.open nav { max-height: calc(100svh - 90px); overflow-y: auto; }
  .bar nav .sub { padding: 4px 0 12px 18px; font-size: var(--step-lead); }
  .bar nav .sub a { padding: 4px 0; }
}

/* With scripts on, inner-page bars are fixed and the page keeps the room
   the full-size bar needs (--bar-h, set in site.js). The bar can then slim
   down without moving the page, which used to make it bounce near the top. */
.js .bar { position: fixed; left: 0; right: 0; top: 0; }
.js body { padding-top: var(--bar-h, 0px); }

/* ---------- Home hero: a GLC home at dusk, the promise across it ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: 1fr; background: #141a2b; color: var(--white);
}
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; filter: brightness(0.6) saturate(1.08); }
.hero .bar { position: fixed; left: 0; right: 0; top: 0; background: transparent; color: var(--white); }
.hero .bar.scrolled, .hero .bar.open { background: var(--paper); color: var(--ink); }
.hero { padding-top: 101px; }
.hero-copy { position: relative; z-index: 2; align-self: end; padding: 0 var(--m) clamp(28px, 6vh, 72px); }
.hero-title { font-size: clamp(2.5rem, 1.2rem + 5.4vw, 7rem); line-height: 0.95; letter-spacing: -0.04em; font-weight: 300; }
.hero-row { display: grid; gap: 24px; margin-top: clamp(24px, 4vh, 44px); }
.hero-row .lead { max-width: 36ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button.outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.button.outline:hover { background: var(--white); color: var(--ink); }
.w { display: inline-block; }
@media (min-width: 900px) {
  .hero-row { grid-template-columns: 1fr auto; align-items: end; column-gap: 48px; }
}

/* ---------- G, L, C: the name is the family ---------- */
.letters { background: var(--blue); color: var(--white); padding: clamp(72px, 10vw, 150px) var(--m); }
.letters-head { display: grid; gap: 24px; }
.letters-head h2 { max-width: 12ch; }
.letters-head .lead { max-width: 34ch; }
.glc { list-style: none; margin: clamp(48px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.glc li { display: grid; justify-items: start; }
.glc .letter { font-size: clamp(5rem, 22vw, 18rem); line-height: 0.8; font-weight: 300; letter-spacing: -0.05em; }
.glc .who { font-size: var(--step-lead); font-weight: 300; margin-top: 14px; }
.counts { margin: clamp(56px, 8vw, 110px) 0 0; display: grid; gap: 28px; }
.counts dt { font-size: var(--step-small); order: 2; }
.counts div { display: flex; flex-direction: column; }
.counts dd { margin: 0; font-size: var(--step-head); line-height: 1; font-weight: 300; }
@media (min-width: 900px) {
  .letters-head { grid-template-columns: 7fr 5fr; align-items: end; column-gap: 48px; }
  .counts { grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
}

/* ---------- Town names on the move ---------- */
.marquee { margin-top: var(--gap); overflow: hidden; white-space: nowrap; }
.marquee .track { display: inline-flex; width: max-content; }
.marquee span { font-size: var(--step-head); font-weight: 300; font-style: italic; line-height: 1.2; padding-right: 0.9em; }
.marquee span:nth-child(odd) { color: var(--blue); }

/* ---------- Homes from GLC listings, sideways ---------- */
.homes-head { display: grid; gap: 24px; }
.homes-head p { max-width: 34ch; margin-bottom: 20px; }
.strip { margin-top: 48px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--m) 12px; scrollbar-width: thin; }
.strip-track { display: flex; gap: 14px; width: max-content; align-items: end; }
.strip figure { scroll-snap-align: start; width: clamp(240px, 70vw, 460px); overflow: hidden; }
.strip figure img { width: 100%; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; }
.strip { scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip-nav { display: flex; gap: 10px; margin-top: 20px; }
.strip-nav button {
  width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer;
  background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 0;
  font: 400 1.5rem/1 "Sentient", Georgia, serif; transition: background-color 0.2s, color 0.2s;
}
.strip-nav button:hover { background: var(--ink); color: var(--white); }
.strip-nav button:disabled { opacity: 0.35; cursor: default; background: var(--white); color: var(--ink); }
.strip-count { align-self: center; margin-left: 8px; color: var(--soft); font-size: var(--step-small); }
@media (min-width: 900px) {
  .homes-head { grid-template-columns: 7fr 5fr; align-items: end; column-gap: 48px; }
  .strip figure { width: clamp(300px, 30vw, 520px); }
}

/* ---------- The team, with Susan's promise ---------- */
.team { position: relative; }
.team-photo { overflow: hidden; }
.team-photo img { width: 100%; height: min(92svh, 900px); object-fit: cover; object-position: 50% 30%; }
.team-card { background: var(--paper); padding: 32px var(--m) 0; }
.team-card h2 { font-size: var(--step-lead); font-weight: 400; }
.team-card blockquote { margin: 18px 0 0; font-size: var(--step-lead); font-weight: 300; line-height: 1.35; }
.team-card .by { margin-top: 16px; color: var(--soft); }
.team-card .button { margin-top: 24px; }
@media (min-width: 900px) {
  .team-card { position: absolute; left: var(--m); bottom: 0; width: min(560px, 44vw); padding: 40px 40px 40px; }
}

.people b { font-weight: 500; }
.sign { margin-top: 1.6em; }

/* ---------- Page header for inner pages ---------- */
.page-head { padding-top: clamp(48px, 9vw, 120px); display: grid; gap: 28px; }
.page-head h1 { font-size: var(--step-name); line-height: 0.92; letter-spacing: -0.04em; }
.page-head .lead { max-width: 38ch; }
@media (min-width: 900px) {
  .page-head { grid-template-columns: 7fr 5fr; }
  .page-head h1 { grid-column: 1 / -1; }
  .page-head .lead { grid-column: 2; }
}

/* ---------- Intro: headline beside a tall photograph ---------- */
.intro { padding: 0 var(--m); overflow-x: clip; }
.intro h2 { position: relative; z-index: 2; }
.intro .tall { width: 78%; margin: -0.5em calc(-1 * var(--m)) 0 auto; }
.intro .tall img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 35% 50%; }
.intro .tall .caption { padding-right: var(--m); }
.intro .text { margin-top: 32px; max-width: 40rem; }
.intro .short { width: 58%; margin-top: 40px; }
.intro .short img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

@media (min-width: 900px) {
  .intro {
    display: grid; grid-template-columns: 5fr 1fr 6fr;
    grid-template-areas: "h . tall" "t . tall" "s . tall"; grid-template-rows: auto auto 1fr; align-items: start;
  }
  .intro h2 { grid-area: h; margin-top: 12svh; }
  .intro .tall { grid-area: tall; width: auto; margin: 0 calc(-1 * var(--m)) 0 0; }
  .intro .text { grid-area: t; }
  .intro .text p { font-size: var(--step-lead); line-height: 1.4; font-weight: 300; }
  .intro .short { grid-area: s; width: 70%; margin-top: 64px; }
}

/* ---------- Towns: a printed sheet on the old county map ---------- */
.towns { position: relative; padding: 72px 10px; background: var(--tone) url("../img/harvey-county-map.jpg") center / cover no-repeat; }
.sheet {
  position: relative; max-width: 640px; margin: 0 auto; background: var(--white);
  padding: 44px 28px 40px; text-align: center;
  /* Scalloped paper edge: a cut-out shape, not a colour fill. taste-skill-ignore */
  -webkit-mask: radial-gradient(10px at 50% 0, #0000 98%, #000) 50% -10px / 30px 51% repeat-x, /* taste-skill-ignore */
                radial-gradient(10px at 50% 100%, #0000 98%, #000) 50% calc(100% + 10px) / 30px 51% repeat-x; /* taste-skill-ignore */
          mask: radial-gradient(10px at 50% 0, #0000 98%, #000) 50% -10px / 30px 51% repeat-x, /* taste-skill-ignore */
                radial-gradient(10px at 50% 100%, #0000 98%, #000) 50% calc(100% + 10px) / 30px 51% repeat-x; /* taste-skill-ignore */
}
.sheet h2 { font-size: var(--step-head); }
.sheet .note { margin-top: 12px; color: var(--soft); font-size: var(--step-small); }
.sheet h3 { margin-top: 48px; font-size: var(--step-lead); }
.sheet ul { list-style: none; margin: 18px auto 0; padding: 0; max-width: 420px; text-align: left; }
.sheet li { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; margin-top: 14px; }
.sheet li b { font-weight: 500; }
.sheet li span { color: var(--soft); font-size: var(--step-small); grid-column: 1 / -1; line-height: 1.45; }
.sheet .hours { margin-top: 44px; font-size: var(--step-small); }
@media (min-width: 900px) {
  .towns { padding: 120px var(--m); }
  .sheet { margin: 0 0 0 auto; width: 50%; min-width: 560px; padding: 64px; }
}

/* ---------- Payment estimator ---------- */
.estimate { background: var(--tone); padding: clamp(72px, 10vw, 140px) var(--m); display: grid; gap: 40px; }
.estimate h2 { max-width: 14ch; }
.estimate form { margin-top: 32px; }
.estimate form { font-size: var(--step-lead); font-weight: 300; line-height: 1.7; max-width: 30ch; }
.estimate label { white-space: nowrap; }
.estimate input, .estimate select {
  font: inherit; color: var(--blue); background: var(--white); border: 0; border-radius: 0;
  padding: 0 0.25em; margin: 0 0.1em; width: 5.4em; min-height: 1.4em;
}
.estimate input.short-field { width: 2.8em; }
.estimate select { width: auto; }
.estimate input:focus-visible, .estimate select:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.result .figure { font-size: var(--step-name); font-weight: 300; line-height: 0.9; letter-spacing: -0.04em; color: var(--blue); }
.result p { margin-top: 18px; max-width: 34ch; }
.result .fine { margin-top: 14px; max-width: 46ch; font-size: var(--step-small); }
@media (min-width: 700px) {
  .estimate { grid-template-columns: 7fr 5fr; column-gap: clamp(40px, 6vw, 96px); align-items: end; }
}

/* ---------- About: wide photo, colour tile, facts ---------- */
.about h2 { max-width: 14ch; }
.about .lead { margin-top: 24px; max-width: 36ch; }
.mosaic { display: grid; gap: 16px; margin-top: 56px; }
.mosaic .wide { position: relative; }
.mosaic .wide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mosaic .over { margin-top: 16px; }
.tile { background: var(--blue); color: var(--white); aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 24px; }
.tile svg { width: 86%; height: auto; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin: 20px 0 0; }
.facts dt { font-size: var(--step-small); color: var(--soft); }
.facts dd { margin: 2px 0 0; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: 8fr 4fr; align-items: start; }
  .mosaic .wide img { aspect-ratio: 16 / 10; }
  .mosaic .over { position: absolute; top: 0; right: 0; width: 340px; margin: 0; padding: 22px; background: var(--paper); }
  .tile { aspect-ratio: auto; height: calc((100vw - 2 * var(--m)) * 8 / 12 * 10 / 16 * 0.6); }
}

/* ---------- Visit card on a moving photograph ---------- */
.visit { position: relative; min-height: 100svh; display: grid; align-items: start; }
.visit .media { position: absolute; inset: 0; overflow: hidden; }
.visit .media video, .visit .media img { width: 100%; height: 100%; object-fit: cover; }
.card {
  position: relative; z-index: 1; background: var(--paper); align-self: end;
  margin: 70svh var(--m) 0; padding: 28px 24px 0;
}
.card h2 { font-size: var(--step-lead); }
.card address { font-style: normal; margin-top: 14px; }
.card table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: var(--step-small); }
.card th { text-align: left; font-weight: 400; padding: 4px 12px 4px 0; }
.card td { text-align: right; padding: 4px 0; }
.card .phone { margin-top: 16px; }
.card .button { width: calc(100% + 48px); margin: 24px -24px 0; min-height: 56px; }
@media (min-width: 900px) {
  .visit { align-items: start; justify-items: end; }
  .card { width: 380px; margin: 60px var(--m) 60px 0; align-self: start; padding: 32px 32px 0; position: sticky; top: 60px; }
  .card .button { width: calc(100% + 64px); margin: 28px -32px 0; }
}

/* ---------- Two-column text blocks on inner pages ---------- */
.columns { display: grid; gap: 28px; }
.columns > h2 { max-width: 14ch; }
.columns .body > * + * { margin-top: 1em; }
.columns .body { max-width: 38rem; }
@media (min-width: 900px) {
  .columns { grid-template-columns: 5fr 7fr; column-gap: clamp(40px, 6vw, 96px); }
}

.full-photo img { width: 100%; height: min(78svh, 760px); object-fit: cover; }
.full-photo.wheat img { object-position: 50% 92%; }
.full-photo .caption { padding: 0 var(--m); }
.full-photo.team img { height: auto; aspect-ratio: 1276 / 851; max-height: none; object-position: 50% 20%; animation: none; }

.pair { display: grid; gap: 16px; }
.pair img { width: 100%; object-fit: cover; }
.pair .a img { aspect-ratio: 4 / 3; }
.pair .b img { aspect-ratio: 4 / 5; }
@media (min-width: 900px) {
  .pair { grid-template-columns: 7fr 4fr; align-items: end; }
}

/* Groups of people we help: heading left, words right, one per row. */
.rows > div { display: grid; gap: 12px; padding: 36px 0; }
.rows h3 { font-size: var(--step-lead); font-weight: 400; }
@media (min-width: 900px) {
  .rows > div { grid-template-columns: 5fr 7fr; column-gap: clamp(40px, 6vw, 96px); padding: 48px 0; }
  .rows p { max-width: 38rem; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
@media (min-width: 900px) { .form { max-width: 40rem; } }
.form .two { display: grid; gap: 20px; }
@media (min-width: 640px) { .form .two { grid-template-columns: 1fr 1fr; } }
.form label { display: block; margin-bottom: 6px; }
.form .optional { color: var(--soft); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 var(--step-body)/1.4 "Sentient", Georgia, serif; color: var(--ink);
  background: var(--white); border: 2px solid var(--white); border-radius: 0;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: none; }
.form .fine { max-width: 60ch; }
.office { display: grid; gap: 32px; }
@media (min-width: 700px) { .office { grid-template-columns: 4fr 5fr; align-items: start; } }
.form .fine { font-size: var(--step-small); color: var(--soft); }

/* Spot for the MLS / IDX listings code. */
.idx { background: var(--tone); padding: clamp(32px, 5vw, 64px); min-height: 24rem; }
.idx iframe { width: 100%; min-height: 900px; border: 0; }

/* Legal text */
.legal { max-width: 44rem; }
.legal h2 { font-size: var(--step-lead); margin-top: 2em; font-weight: 400; }
.legal p, .legal ul { margin-top: 0.9em; }

/* ---------- Footer: a field of GLC blue, the contact as the headline ---------- */
.footer {
  margin-top: var(--gap); background: var(--blue); color: var(--white);
  min-height: 80svh; display: grid; grid-template-rows: auto 1fr auto;
  padding: 40px var(--m) 28px;
}
.footer .top { display: grid; gap: 14px; font-size: var(--step-small); }
.footer .top .logo { justify-self: start; background: var(--white); padding: 6px 8px; line-height: 0; }
.footer .top .logo img { width: clamp(130px, 9vw + 50px, 180px); height: auto; }
.footer .big {
  align-self: end; margin: 64px 0 40px;
  font-size: var(--step-name); font-weight: 300; line-height: 0.9; letter-spacing: -0.04em;
  text-decoration: none; display: inline-block;
}
.footer .big:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.footer .meta { display: grid; gap: 6px; font-size: var(--step-small); }
.footer .meta ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
@media (min-width: 900px) {
  .footer .top { grid-template-columns: auto 1fr 1fr 1fr auto; column-gap: 40px; align-items: start; }
  .footer .meta { grid-template-columns: 1fr auto 1fr; align-items: end; }
  .footer .meta .right { text-align: right; }
  .footer .meta .center { text-align: center; }
}

/* ---------- Motion (only when the visitor hasn't asked for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js [data-rise] { opacity: 0; transform: translateY(26px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
  .js [data-rise].in { opacity: 1; transform: none; }

  /* Pictures open like a blind as they arrive. */
  .js [data-rise] img, .js figure[data-rise] img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease) 0.1s, transform 0.8s var(--ease); }
  .js [data-rise].in img { clip-path: inset(0 0 0 0); }

  /* Headlines arrive a word at a time. */
  .hero-title .w, .page-head .w { animation: word 1s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
  @keyframes word { from { opacity: 0; transform: translateY(0.45em); } to { opacity: 1; transform: none; } }
  .hero-row { animation: word 1s var(--ease) 0.75s both; }
  .page-head .lead { animation: word 1s var(--ease) 0.45s both; }
  .js .page-head .lead[data-rise] { opacity: 1; transform: none; }

  /* The dusk photograph drifts closer for the first few seconds. */
  .hero-photo img { animation: settle 9s cubic-bezier(0.2, 0.6, 0.3, 1) both; }
  @keyframes settle { from { transform: scale(1.14); } to { transform: scale(1.02); } }

  /* G, L and C rise one after another, then the names. */
  .js .glc li .letter { display: inline-block; transform: translateY(40%); opacity: 0; transition: transform 1.1s var(--ease), opacity 1.1s var(--ease); transition-delay: inherit; }
  .js .glc li .who { opacity: 0; transform: translateY(12px); transition: opacity 0.8s var(--ease) 0.5s, transform 0.8s var(--ease) 0.5s; }
  .js .glc li.in .letter, .js .glc li.in .who { opacity: 1; transform: none; }
  .js .glc li[data-rise] { opacity: 1; transform: none; }

  .marquee .track { animation: roll 38s linear infinite; }
  .marquee:hover .track { animation-play-state: paused; }
  @keyframes roll { to { transform: translateX(-50%); } }

  .pair img, .intro .short img, .strip img { transition: clip-path 1.2s var(--ease) 0.1s, transform 0.8s var(--ease); }
  .pair figure:hover img, .intro .short:hover img, .strip figure:hover img { transform: scale(1.04); }
  .pair figure, .intro .short { overflow: hidden; }

  @supports (animation-timeline: scroll()) {
    .hero-copy { animation: lift linear both; animation-timeline: scroll(root); animation-range: 0 90svh; }
    @keyframes lift { to { transform: translateY(-18svh); opacity: 0.2; } }
    .intro .tall img, .full-photo img, .team-photo img { animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { transform: scale(1.1) translateY(-4%); } to { transform: scale(1.1) translateY(4%); } }
    .full-photo, .intro .tall { overflow: hidden; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Small pieces shared by several sections ---------- */
.sheet .hours table { margin: 0 auto; border-collapse: collapse; }
.sheet .hours th { text-align: left; font-weight: 400; padding: 3px 24px 3px 0; }
.sheet .hours td { text-align: right; padding: 3px 0; }
.towns .map-note {
  position: absolute; left: var(--m); bottom: 16px; margin: 0;
  background: var(--paper); padding: 4px 10px; font-size: var(--step-small);
}
.columns .body table { border-collapse: collapse; }
.columns .body th { text-align: left; font-weight: 400; padding: 3px 24px 3px 0; }
.columns .body td { padding: 3px 0; }

/* ---------- Meet the team ---------- */
.people-grid { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 56px 28px; }
.person .face { aspect-ratio: 1; background: var(--blue); color: var(--white); display: grid; place-items: center; overflow: hidden; }
.person .face { position: relative; }
.person .face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person .initials { font-size: clamp(4rem, 9vw, 7rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.person:nth-child(even) .face { background: var(--ink); }
.person h3 { margin-top: 20px; font-size: var(--step-lead); }
.person .role { color: var(--soft); margin-top: 4px; }
.person .bio { margin-top: 14px; }
.person .reach { margin-top: 12px; }
@media (min-width: 640px) { .people-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .people-grid { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .person { display: grid; grid-template-columns: minmax(0, 260px) 1fr; column-gap: 32px; grid-template-rows: auto auto 1fr; align-content: start; }
  .person .face { grid-row: 1 / span 3; }
  .person h3 { margin-top: 0; }
  .person .initials { font-size: 5rem; }
}

/* ---------- Numbered steps (Buying, Selling) ---------- */
.steps-field { background: var(--tone); padding: clamp(72px, 10vw, 140px) var(--m); }
.steps { margin: 48px 0 0; padding: 0; display: grid; gap: 40px 48px; }
.steps li { padding-top: 18px; border-top: 2px solid var(--ink); }
ol.steps { list-style: none; counter-reset: step; }
ol.steps li { counter-increment: step; }
ol.steps h3::before { content: counter(step) ". "; color: var(--blue); }
.steps.plain { list-style: none; }
.steps h3 { font-size: var(--step-lead); }
.steps p { margin-top: 12px; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Selling: the price opinion, on GLC blue ---------- */
.worth { background: var(--blue); color: var(--white); padding: clamp(72px, 10vw, 140px) var(--m); display: grid; gap: 28px; }
.worth h2 { max-width: 12ch; }
.worth .lead { max-width: 34ch; margin-bottom: 28px; }
@media (min-width: 900px) { .worth { grid-template-columns: 7fr 5fr; align-items: end; column-gap: 48px; } }

.button.light-on-paper { background: var(--white); color: var(--ink); }
.button.light-on-paper:hover { background: var(--ink); color: var(--white); }
.columns .body .actions { margin-top: 1.4em; }
.note-side { margin-top: 24px; max-width: 32ch; }
.person .initials::before { content: attr(data-i); }
@media (max-width: 639px) {
  .person { display: grid; grid-template-columns: 96px 1fr; column-gap: 18px; align-items: start; }
  .person .face { grid-row: span 3; }
  .person .initials { font-size: 2.4rem; }
  .person h3 { margin-top: 0; }
  .person .bio { grid-column: 1 / -1; }
}

/* ---------- Listings search (Buying Buddy) ---------- */
.page-head.tight { padding-top: clamp(28px, 4vw, 56px); }
.page-head.tight h1 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; }
.listings-full { padding-left: var(--m); padding-right: var(--m); margin-top: 28px; }
.find { background: var(--tone); padding: clamp(40px, 5vw, 72px) var(--m); display: grid; gap: 20px; }
.find h2 { font-size: var(--step-head); }
.find-copy p { margin-top: 10px; max-width: 34ch; }
@media (min-width: 900px) { .find { grid-template-columns: 4fr 8fr; align-items: center; column-gap: 48px; } }

/* ---------- Register / Login bar (Buying Buddy), a row above the header ---------- */
.bar:has(> .util-bar) { flex-wrap: wrap; row-gap: 6px; }
.util-bar { flex: 0 0 100%; display: flex; justify-content: flex-end; font-size: var(--step-small); line-height: 1.2; }
.util-bar > bb-widget { display: block; flex: 0 0 auto; width: auto; margin-left: auto; }

.glc-listings h2, .listings-full > h2:not(.visually-hidden) { font-size: var(--step-head); margin-bottom: 20px; }
.listings-full + .listings-full { margin-top: clamp(40px, 6vw, 80px); }
[data-hide-empty][hidden] { display: none; }
