/* FiddleTree Group — site styles
   Editorial Literata headings over a clean Public Sans body, photographs of Middle Tennessee,
   and colours from the FiddleTree logo: forest green and oxblood on a warm off-white ground.
   Every colour, font and size is a variable in :root, so the palette can be swapped in one place. */

:root {
  /* Grounds drawn from the logo: warm linen for the page, a pale moss (sage) and a
     soft wheat for alternating sections, and forest for the dark bands. */
  --bg: #eee7da;
  --sage: #dce0cd;
  --wheat: #e8dcc4;
  --surface: #e2d9c8;
  --ink: #2a2c28;
  --heading: #22301e;
  --muted: #4f534b;
  --accent: #6b2214;
  --accent-hover: #842d1b;
  --field: #24321f;
  --on-field: #efebe1;
  --on-field-muted: #c8c4b4;
  --ochre: #d2ae68;

  --font-heading: "Literata", Georgia, "Times New Roman", serif;
  --font: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1440px;

  /* Five sizes do the work: small, body, lead, head, display. */
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --step-head: clamp(2rem, 1.35rem + 2.6vw, 3.6rem);
  --step-display: clamp(2.5rem, 1.6rem + 3.2vw, 4.25rem);

  --margin: clamp(1.25rem, 5vw, 5.5rem);
  --gap: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 12vw, 12rem);
  --header-h: 88px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  font-optical-sizing: auto;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: text-underline-offset 0.2s var(--ease), color 0.2s; }
a:hover { text-underline-offset: 0.32em; color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* On dark grounds and photographs the focus ring turns light so keyboard users can always see it. */
.field :focus-visible, .site-footer :focus-visible, .firm-bar :focus-visible, .hero-stage :focus-visible,
.js .has-photo-hero .site-header:not(.is-solid):not(.is-open) :focus-visible { outline-color: #f6f1e4; }
::selection { background: var(--ink); color: var(--bg); }

h1, h2, h3, .statement, .lead {
  font-family: var(--font-heading);
}
h1, h2, h3 {
  color: var(--heading);
  font-weight: 340;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}
h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; font-weight: 420; }

p { margin: 0 0 1.05em; max-width: 62ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--step-lead); line-height: 1.42; letter-spacing: -0.005em; max-width: 34ch; }
.small { font-size: var(--step-small); color: var(--muted); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; }
.skip-link:focus { top: 0.75rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: var(--margin); padding-right: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- Buttons: square, flat, one fill ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0.75rem 1.6rem;
  font: 600 0.97rem/1.2 var(--font); letter-spacing: 0.01em;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  background: var(--ink); color: var(--bg);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s;
}
.btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-lg { min-height: 64px; padding: 1rem 2.4rem; font-size: 1.15rem; }
@media (max-width: 520px) { .btn-lg { width: 100%; } }
.btn-accent:hover { background: var(--accent-hover); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--accent); }

.text-link { font-weight: 600; font-size: 1rem; text-decoration: underline; text-decoration-color: currentColor; }

/* ---------- Brokerage bar: firm name and firm phone on every page ---------- */
.firm-bar { background: var(--field); color: var(--on-field); font-size: var(--step-small); line-height: 1.4; position: relative; z-index: 60; }
.firm-bar .wrap { display: flex; flex-wrap: wrap; gap: 0.2rem 1.5rem; justify-content: space-between; padding-top: 0.55rem; padding-bottom: 0.55rem; }
.firm-bar a { color: #fff; text-decoration: none; font-weight: 500; }
.firm-bar a:hover { color: #fff; text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); color: var(--ink);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: var(--header-h); }

/* Team and brokerage lockup. The eXp logo is the tallest mark in the lockup and keeps
   clear space of at least half its height on every side. */
.lockup { display: flex; align-items: center; flex-shrink: 0; }
.lockup-team { display: block; padding-right: 26px; }
.lockup-team .wordmark { width: 176px; height: auto; }
.lockup-divider { width: 1px; height: 40px; background: currentColor; opacity: 0.35; }
.lockup-exp { display: block; padding-left: 26px; padding-block: 13px; }
.lockup-exp img { height: 50px; width: auto; }
.on-dark { display: none; }

.nav-toggle {
  display: none; align-items: center; gap: 0.55rem; min-height: 44px; padding: 0.4rem 0;
  background: none; border: 0; color: inherit; font: 600 1rem var(--font); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem 1.6rem; }
.site-nav a:not(.btn) { display: block; padding: 0.5rem 0; font-size: 0.97rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-nav a:not(.btn):hover { color: inherit; text-decoration: underline; }
.site-nav a[aria-current]:not(.btn) { text-decoration: underline; text-decoration-thickness: 2px; }
.site-nav .nav-cta { margin-left: 0.6rem; }
.site-nav .btn { min-height: 46px; padding: 0.6rem 1.2rem; }

/* Over a photograph the header starts clear, with the reversed marks, and turns solid on scroll. */
.js .has-photo-hero .site-header:not(.is-solid):not(.is-open) { background: transparent; color: #fff; }
.js .has-photo-hero .site-header:not(.is-solid):not(.is-open) .on-light { display: none; }
.js .has-photo-hero .site-header:not(.is-solid):not(.is-open) .on-dark { display: block; }
.js .has-photo-hero .site-header:not(.is-solid):not(.is-open) .site-nav .btn { background: var(--bg); color: var(--ink); }
.js .has-photo-hero .site-header:not(.is-solid):not(.is-open) .site-nav .btn:hover { background: #fff; color: var(--accent); }

@media (max-width: 1360px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); color: var(--ink); display: none;
    padding: 0.5rem var(--margin) 2rem;
    box-shadow: 0 24px 40px -24px rgba(31, 42, 30, 0.4); /* taste-skill-ignore: open menu overlay */
  }
  .site-header.is-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) { padding: 0.85rem 0; font: 400 var(--step-lead)/1.3 var(--font-heading); }
  .site-nav .nav-cta { margin: 1.25rem 0 0; }
  .site-nav .btn { width: 100%; min-height: 54px; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .lockup-team { padding-right: 14px; }
  .lockup-team .wordmark { width: 124px; }
  .lockup-exp { padding-left: 14px; }
  .lockup-exp img { height: 34px; }
  .lockup-divider { height: 30px; }
  .nav-toggle span { display: none; }
}
@media (max-width: 360px) {
  .lockup-team .wordmark { width: 108px; }
  .lockup-exp img { height: 30px; }
}

/* Long email addresses may break rather than push the page sideways. */
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Narrow screens and enlarged text: keep the 12-column grids inside the screen. */
@media (max-width: 900px) {
  :root { --gap: 0.75rem; }
}
.legal-copy p, .credit-list p { overflow-wrap: anywhere; }

/* ---------- Photographs ---------- */
.photo { margin: 0; }
.photo .frame { overflow: hidden; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo figcaption { font-size: var(--step-small); color: var(--muted); padding-top: 0.6rem; text-wrap: balance; }
.r-16x10 .frame { aspect-ratio: 16 / 10; }
.r-4x5 .frame { aspect-ratio: 4 / 5; }
.r-3x4 .frame { aspect-ratio: 3 / 4; }
.r-1x1 .frame { aspect-ratio: 1 / 1; }
.r-21x9 .frame { aspect-ratio: 21 / 9; }
a:hover .photo img, .photo:hover img { transform: scale(1.025); }

/* ---------- Home hero: one photograph, edge to edge, slowly changing ---------- */
.hero { position: relative; margin-top: calc(-1 * var(--header-h)); }
.hero-stage { position: relative; height: calc(100svh - 34px); min-height: 640px; overflow: hidden; background: var(--field); color: #fff; }
.hero-slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hero-slides li { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slides li.is-active { opacity: 1; }
.hero-slides li:first-child { opacity: 1; }
.js .hero-slides li:first-child:not(.is-active) { opacity: 0; }
.hero-slides img { width: 100%; height: 100%; object-fit: cover; }
.hero-stage::before, .hero-stage::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
/* Neutral scrims, top for the header and bottom for the type: the one gradient the style allows. */
.hero-stage::before { top: 0; height: 30%; background: linear-gradient(rgba(10, 14, 10, 0.55), rgba(10, 14, 10, 0)); } /* taste-skill-ignore: neutral photo scrim */
.hero-stage::after { bottom: 0; height: 72%; background: linear-gradient(rgba(10, 14, 10, 0), rgba(10, 14, 10, 0.55) 45%, rgba(10, 14, 10, 0.82)); } /* taste-skill-ignore: neutral photo scrim, dark enough for 4.5:1 text */
@media (max-width: 900px) { .hero-stage::after { height: 88%; } }
.hero-copy { text-shadow: 0 1px 14px rgba(10, 14, 10, 0.45); } /* taste-skill-ignore: legibility over photographs */
.hero-copy {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end;
  padding: 0 var(--margin) clamp(2rem, 5vw, 4rem);
}
.hero-copy h1 { grid-column: 1 / -1; margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); color: #fff; }
.hero-copy h1 span { display: block; }
.hero-aside { grid-column: 1 / span 6; max-width: 46ch; }
.hero-aside p { color: #f3efe6; margin-bottom: 1rem; }
.hero-aside .hero-lede { font: 400 var(--step-lead)/1.4 var(--font-heading); color: #fff; }
.hero-aside .btn { margin-top: 0.75rem; }
.hero-caption { font-size: var(--step-small); color: #e3ded2; margin: 0; min-height: 1.4em; }
.hero-home .hero-caption { grid-column: 9 / span 4; justify-self: end; align-self: end; }

@media (max-width: 900px) {
  .hero-stage { height: calc(100svh - 52px); min-height: 560px; }
  .hero-copy { grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; }
  .hero-copy h1, .hero-aside, .hero-home .hero-caption { grid-column: 1; justify-self: start; }
}

/* ---------- Interior page hero ---------- */
.page-hero .hero-stage { height: min(78svh, 760px); min-height: 520px; }
.page-hero .hero-copy h1 { grid-column: 1 / span 9; }
.page-hero .subtitle { grid-column: 1 / span 9; font-size: var(--step-lead); line-height: 1.35; color: #f3efe6; margin: 1rem 0 0; max-width: 40ch; }
.page-hero .hero-copy { grid-template-rows: auto auto; }
.page-hero .hero-caption { grid-column: 10 / span 3; justify-self: end; align-self: end; margin: 0; }
@media (max-width: 900px) {
  .page-hero .hero-copy h1, .page-hero .subtitle, .page-hero .hero-caption { grid-column: 1; justify-self: start; }
}

/* Intro below an interior hero */
.intro { padding-top: clamp(4.5rem, 9vw, 8.5rem); }
.intro .grid { align-items: start; row-gap: 3rem; }
.intro .intro-copy { grid-column: 1 / span 6; }
.intro .idx { margin-top: 2rem; }
.intro .intro-copy p:first-child { font-size: var(--step-lead); line-height: 1.42; }
.intro .photo, .intro .portrait { grid-column: 8 / span 5; margin-top: clamp(0rem, 8vw, 7rem); }

/* ---------- Sections ---------- */
.section { padding-top: var(--section); }
.section:last-of-type,
.section:has(+ .field), .section:has(+ .tint), .section:has(+ .closing) { padding-bottom: var(--section); }
.field { background: var(--field); color: var(--on-field); padding-bottom: var(--section); }
.field h2, .field h3 { color: #fff; }
.field p { color: var(--on-field); }
.field .photo figcaption { color: var(--on-field-muted); }
.field a:not(.btn) { color: #fff; }
.field a:not(.btn):hover { color: var(--ochre); }
.tint { background: var(--sage); padding-bottom: var(--section); }
.tint .photo .frame { background: var(--bg); }

/* Text left, photograph right, dropped below the heading */
.chapter-r, .chapter-l { align-items: start; row-gap: 2.5rem; }
.chapter-r > h2, .chapter-l > h2 { grid-column: 1 / span 10; margin-bottom: 0.25em; }
.chapter-r > .copy { grid-column: 1 / span 6; }
.chapter-r > .photo { grid-column: 8 / span 5; margin-top: clamp(0rem, 6vw, 5rem); }
/* Photograph left, wide; text right */
.chapter-l > .photo { grid-column: 1 / span 7; }
.chapter-l > .copy { grid-column: 9 / span 4; padding-top: clamp(0rem, 3vw, 3rem); }
/* Heading left, reading column right */
.chapter-t { align-items: start; row-gap: 1.5rem; }
.chapter-t > h2 { grid-column: 1 / span 9; }
.chapter-t > .copy { grid-column: 6 / span 7; }
.chapter-t > .plates { grid-column: 1 / -1; margin-top: clamp(3rem, 7vw, 6rem); }

/* Two prints at different sizes and heights */
.plates { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2rem; align-items: start; }
.plates > .photo:first-child { grid-column: 2 / span 4; margin-top: clamp(0rem, 9vw, 8rem); }
.plates > .photo:last-child { grid-column: 7 / span 6; }

@media (max-width: 900px) {
  .intro .intro-copy, .intro .photo, .intro .portrait,
  .chapter-r > .copy, .chapter-l > .copy, .chapter-t > h2, .chapter-t > .copy, .chapter-r > h2, .chapter-l > h2 { grid-column: 1 / -1; margin-top: 0; padding-top: 0; }
  .chapter-r > .photo, .intro .photo, .intro .portrait { grid-column: 4 / -1; margin-top: 0; }
  .chapter-l > .photo { grid-column: 1 / span 11; }
  .plates > .photo:first-child { grid-column: 1 / span 8; margin-top: 0; }
  .plates > .photo:last-child { grid-column: 4 / -1; }
}

/* ---------- Home: Meet Benton — portrait beside a short introduction ---------- */
.meet { align-items: center; row-gap: 2.5rem; }
.meet > .portrait { grid-column: 1 / span 5; }
.meet > .copy { grid-column: 7 / span 6; }
.meet > .copy h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); } /* a licensee's name stays below the eXp logo's letter height (TN Rule 1260-02-.12) */
.meet .more { margin-top: 1.5rem; }

.portrait { margin: 0; }
.portrait .frame { aspect-ratio: 4 / 5; background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.portrait .frame img.mark { width: 52%; height: auto; }
.portrait .frame img.headshot { width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { font-size: var(--step-small); color: var(--muted); padding-top: 0.6rem; }
@media (max-width: 900px) {
  .meet > .portrait { grid-column: 1 / span 10; }
  .meet > .copy { grid-column: 1 / -1; }
}

/* ---------- Home: approach (forest field) ---------- */
.approach { row-gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.approach > h2 { grid-column: 1 / span 10; }
.approach > .photo { grid-column: 1 / span 6; }
.approach > .copy { grid-column: 8 / span 5; }
.approach .copy p:first-child { font-size: var(--step-lead); line-height: 1.42; }
@media (max-width: 900px) {
  .approach > h2, .approach > .photo, .approach > .copy { grid-column: 1 / -1; }
}

/* ---------- Cards: How We Can Help (2 x 2) and community cards (4 across) ---------- */
.section-title { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.cards { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem) var(--gap); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; }
.card .photo { margin-bottom: 1.4rem; }
.card-link { display: block; }
.card h3 { margin-bottom: 0.5rem; }
.card h3 a { text-decoration: none; }
.card h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(34, 48, 30, 0.35); text-underline-offset: 0.2em; }
.card h3 a:hover { text-decoration-color: currentColor; }

/* Community pages: practical considerations as a readable list */
.considerations { list-style: none; margin: 0; padding: 0; }
.considerations li { max-width: 62ch; margin: 0 0 1.25em; padding-left: 1.4rem; position: relative; }
.considerations li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.55rem; height: 2px; background: var(--accent); }
.considerations strong { font-weight: 600; color: var(--heading); }
.card p { max-width: 52ch; }
.card .text-link { margin-top: auto; padding-top: 0.75rem; align-self: flex-start; }
@media (max-width: 1100px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cards-2, .cards-4 { grid-template-columns: 1fr; } }

/* ---------- Home: reviews and examples ---------- */
.proof { row-gap: 2.5rem; align-items: start; }
.proof > h2 { grid-column: 1 / span 11; margin: 0 0 1rem; }
.proof > .proof-head { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 2rem); }
.proof > .proof-body { grid-column: 6 / span 7; }
.proof-head p:first-of-type { font-size: var(--step-lead); line-height: 1.42; }
.proof-body h3 { margin: 0 0 1.5rem; }
.proof-body h3:not(:first-child) { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.reviews { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(1.5rem, 3vw, 3rem); }
.reviews li { break-inside: avoid; margin: 0 0 2.25rem; }
.review { margin: 0; }
.review blockquote { margin: 0 0 0.75rem; font: 400 var(--step-lead)/1.42 var(--font-heading); }
.review blockquote p { max-width: none; }
.review figcaption { font-size: var(--step-small); color: var(--muted); }
.examples { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.example .frame { aspect-ratio: 4 / 5; background: var(--bg); display: grid; place-items: center; margin-bottom: 0.9rem; }
.example h4 { font: 600 var(--step-body)/1.35 var(--font); margin: 0 0 0.35rem; }
.example p { font-size: var(--step-small); color: var(--muted); }
@media (max-width: 900px) {
  .proof > h2, .proof > .proof-head, .proof > .proof-body { grid-column: 1 / -1; position: static; }
  .reviews { columns: 1; }
  .examples { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .examples { grid-template-columns: 1fr; } }

/* Content the owner still needs to supply: shown on a clay tint so it can't be missed.
   Remove the "is-placeholder" class once the real content is in. */
.is-placeholder { background: #efdcd2; padding: 1.1rem 1.25rem; }
.placeholder-tag { display: inline-block; font-size: var(--step-small); background: var(--accent); color: #fff; padding: 0.15rem 0.55rem; margin-bottom: 0.75rem; }
.ph { background: #efdcd2; color: var(--accent); padding: 0 0.3em; }

/* ---------- About: the name ---------- */
.story { align-items: start; row-gap: 2rem; }
.story > .mark { grid-column: 1 / span 5; background: var(--bg); padding: clamp(1.5rem, 4vw, 3.5rem); margin: 0; }
.story > .mark img { width: 100%; max-width: 340px; margin: 0 auto; }
.story > .photo { grid-column: 1 / span 5; }
.story > .copy { grid-column: 7 / span 6; align-self: center; }
@media (max-width: 900px) { .story > .mark, .story > .photo, .story > .copy { grid-column: 1 / -1; } .story > .copy { order: -1; } }

/* Separate-business note on Land & Acreage */
.separate { background: var(--bg); padding: 1.4rem 1.6rem; margin-top: 1.75rem; }
.separate p { font-size: var(--step-body); }

/* ---------- Closing band ---------- */
.closing { background: var(--wheat); padding: var(--section) 0; }
.closing-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2.5rem; align-items: start; }
.closing-copy { grid-column: 1 / span 6; }
.closing-copy h2 { margin-bottom: 0.6em; }
.closing-mark { grid-column: 8 / span 2; width: 100%; max-width: 170px; margin-top: 0.75rem; }
.closing-actions { grid-column: 10 / span 3; padding-top: 0.75rem; }
.closing-actions p { margin-top: 1.5rem; }
.closing .statement { font-size: var(--step-head); line-height: 1.08; letter-spacing: -0.02em; font-weight: 340; max-width: 18ch; margin: 0; }
@media (max-width: 900px) {
  .closing-copy, .closing-actions { grid-column: 1 / -1; padding-top: 0; }
  .closing-mark { grid-column: 1 / span 4; max-width: 110px; margin: 0; }
}
.closing-wide .closing-copy { grid-column: 1 / span 10; }
.closing-wide .statement { max-width: 36ch; }
.closing-wide .closing-mark { grid-column: 10 / span 2; grid-row: 1; }
.closing-wide .closing-actions { grid-column: 1 / span 6; grid-row: 2; padding-top: 0; }
@media (max-width: 900px) { .closing-wide .closing-copy, .closing-wide .closing-actions { grid-column: 1 / -1; } .closing-wide .closing-mark { display: none; } }

/* ---------- Contact page ---------- */
.contact-grid { align-items: start; row-gap: 3rem; }
.contact-grid > form { grid-column: 1 / span 7; }
.contact-grid > aside { grid-column: 9 / span 4; }
@media (max-width: 900px) { .contact-grid > form, .contact-grid > aside { grid-column: 1 / -1; } }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.25rem; }
.form .full { grid-column: 1 / -1; }
.field-row label, .field-row legend { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 0.45rem; }
.choices label { font-weight: 400; }
.field-row .hint { color: var(--muted); }
.field-row input, .field-row select, .field-row textarea {
  width: 100%; min-height: 52px; padding: 0.75rem 0.9rem;
  font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: #fbfaf6; border: 1px solid #8f8b7e; border-radius: 0;
}
.field-row textarea { min-height: 170px; resize: vertical; }
.field-row input:focus, .field-row select:focus, .field-row textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
fieldset.field-row { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.choices label { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0; min-height: 44px; cursor: pointer; }
.choices input { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.submit-row p { font-size: var(--step-small); color: var(--muted); margin: 0; max-width: 60ch; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }

.contact-side { display: grid; gap: var(--gap); }
.contact-card { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.25rem); }
.contact-card h2 { font-size: var(--step-lead); letter-spacing: -0.01em; }
.contact-card .brokerage { margin-top: 2rem; }
.contact-card .firm-name { font: 600 var(--step-body)/1.3 var(--font); color: var(--ink); margin: 0 0 0.4rem; }
.contact-card address, .contact-card .brokerage p { font-style: normal; font-size: var(--step-small); }
.consent label { max-width: 68ch; display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; font-size: var(--step-small); color: var(--muted); }
.consent input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: 0.15rem; accent-color: var(--accent); }
.form-alt .lead { margin-top: 1rem; }
.dev-note { background: #efdcd2; color: var(--accent); padding: 0.9rem 1.1rem; }
.contact-card dl { margin: 1.25rem 0 0; }
.contact-card dt { font-size: var(--step-small); color: var(--muted); margin-top: 1rem; }
.contact-card dd { margin: 0.1rem 0 0; }

/* ---------- Footer: forest field, the lockup across the width ---------- */
.site-footer { background: var(--field); color: var(--on-field-muted); font-size: 1rem; padding-top: clamp(4rem, 7vw, 6rem); }
.site-footer a { color: var(--on-field); }
.site-footer a:hover { color: var(--ochre); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem var(--gap); }
.footer-cols h2 { font: 600 1rem/1.3 var(--font); letter-spacing: 0; color: #fff; margin: 0 0 0.9rem; }
.footer-cols ul + h2 { margin-top: 1.75rem; }
.footer-cols .eho { margin-top: 1.25rem; }
.footer-cols .firm-name { font: 400 var(--step-lead)/1.2 var(--font-heading); color: #fff; margin: 0 0 0.9rem; }
.footer-cols address, .footer-cols .brokerage p { font-style: normal; }
.footer-cols p, .footer-cols address { font-style: normal; margin: 0 0 0.75rem; max-width: none; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 0 0 0.35rem; }
@media (max-width: 900px) {
  .footer-cols li { margin: 0; }
  .footer-cols li a, .footer-cols p a { display: inline-block; padding: 0.65rem 0; } /* 44px tap targets on phones */
}
.eho { display: flex; align-items: center; gap: 0.6rem; }
.eho svg { width: 34px; height: 34px; flex: none; color: var(--on-field); }
.footer-lockup { display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 4vw, 3.5rem); margin-top: clamp(5rem, 12vw, 10rem); }
.footer-lockup .wordmark { width: 64%; height: auto; }
.footer-lockup .divider { width: 1px; align-self: stretch; background: var(--on-field-muted); opacity: 0.5; }
.footer-lockup .exp { width: 22%; height: auto; }
.legal { padding: 2rem 0 2.25rem; margin: 0; max-width: none; }
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Utility pages ---------- */
.simple-page { padding: clamp(4rem, 9vw, 8rem) 0 var(--section); }
.simple-page .actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.credit-list { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 1.75rem; max-width: 60rem; }
.credit-list li { display: grid; grid-template-columns: 160px 1fr; gap: 1.25rem; align-items: start; }
.credit-list img { width: 160px; height: 100px; object-fit: cover; }
.credit-list p { font-size: var(--step-small); margin: 0 0 0.3rem; }
.credit-list .credit-title { font-size: var(--step-body); color: var(--ink); }
.legal-copy { max-width: 46rem; margin-top: 2.5rem; }
.legal-copy h2 { font-size: var(--step-lead); margin: 2.25rem 0 0.6rem; }

/* A Start the Conversation button that travels with the page: a slim bar on phones,
   a single button in the lower right on larger screens. It steps aside while another
   Start the Conversation button is on screen (hero, closing section, footer). */
.cta-bar {
  position: fixed; right: var(--margin); bottom: 1.5rem; z-index: 40;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.cta-bar .btn { box-shadow: 0 14px 30px -14px rgba(31, 42, 30, 0.55); } /* taste-skill-ignore: floating action button */
.cta-bar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
body:has(.site-header.is-open) .cta-bar { display: none; }
@media (max-width: 900px) {
  .cta-bar { left: 0; right: 0; bottom: 0; padding: 0.6rem var(--margin) calc(0.6rem + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -10px 24px -18px rgba(31, 42, 30, 0.5); } /* taste-skill-ignore: floating action bar */
  .cta-bar .btn { width: 100%; box-shadow: none; }
  body:has(.cta-bar) { padding-bottom: 76px; }
}

/* Preview build only: a reminder that placeholders are showing */
body[data-preview]::after { content: "Preview: placeholders shown"; position: fixed; left: 12px; bottom: 12px; z-index: 90; background: var(--accent); color: #fff; font: 600 0.8rem var(--font); padding: 0.35rem 0.6rem; }
@media (max-width: 520px) { .credit-list li { grid-template-columns: 1fr; } }

/* ---------- Signature: the land draws itself ----------
   Hills, a split-rail fence and layered soil from the logo, drawn above each closing section.
   main.js sets --draw from 0 to 1 as the section scrolls in; without it the drawing is complete. */
.closing:has(.landline) { padding-top: clamp(2.5rem, 5vw, 4rem); }
.landline { display: block; width: 100%; height: clamp(84px, 10vw, 150px); margin: 0 0 clamp(2.5rem, 5vw, 4rem); overflow: visible; }
.landline path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw, 1)); }
.landline .posts line { vector-effect: non-scaling-stroke; }
.landline .posts { opacity: clamp(0, calc(var(--draw, 1) * 2.5 - 1.2), 1); }

/* ---------- Photos: depth that follows the scroll ---------- */
.photo img { scale: var(--zoom, 1); translate: 0 var(--shift, 0px); transition: scale 1.4s var(--ease); transform: none; }
a:hover .photo img, .photo:hover img { transform: none; --zoom: 1.04; }

/* ---------- Header tightens once the page scrolls ---------- */
@media (min-width: 641px) {
  .site-header .wrap { transition: min-height 0.4s var(--ease); }
  .lockup-team .wordmark { transition: width 0.4s var(--ease); }
  .lockup-exp img { transition: height 0.4s var(--ease); }
  .site-header.is-solid .wrap { min-height: 72px; }
  .site-header.is-solid .lockup-team .wordmark { width: 160px; }
  .site-header.is-solid .lockup-exp img { height: 44px; }
}

/* ---------- Navigation: an underline that slides in ---------- */
@media (min-width: 1361px) {
  .site-nav a:not(.btn) { position: relative; }
  .site-nav a:not(.btn):hover, .site-nav a[aria-current]:not(.btn) { text-decoration: none; }
  .site-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0.3rem; height: 1.5px; background: currentColor;
    transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
  }
  .site-nav a:not(.btn):hover::after, .site-nav a[aria-current]:not(.btn)::after { transform: scaleX(1); transform-origin: left; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-slides li.is-active img { animation: drift 14s linear both; }
  @keyframes drift { from { transform: scale(1.07); } to { transform: scale(1); } }

  /* Text and blocks rise in turn as each section arrives */
  .js .rise { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .rise.is-in { opacity: 1; transform: none; }

  /* Photographs are uncovered from below, settling as they open */
  .js .photo.rise { opacity: 1; transform: none; }
  .js .photo.rise .frame { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .photo.rise img { --zoom: 1.14; }
  .js .photo.rise.is-in .frame { clip-path: inset(0 0 0 0); }
  .js .photo.rise.is-in img { --zoom: 1.06; }
  .js .photo.rise.is-in:hover img, .js a:hover .photo.rise.is-in img { --zoom: 1.09; }

  /* Hero headlines reveal line by line, then the supporting copy follows */
  .hero-home h1 span, .page-hero .hero-copy h1 { animation: line-in 1.2s var(--ease) both; }
  .hero-home h1 span + span { animation-delay: 0.16s; }
  .hero-copy > :not(h1) { animation: enter 1s var(--ease) 0.45s both; }
  .hero-copy > .hero-caption { animation-delay: 0.7s; }
  @keyframes line-in { from { clip-path: inset(0 0 100% 0); transform: translateY(0.4em); } to { clip-path: inset(0 0 -0.25em 0); transform: none; } }
  @keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

  /* Pages cross-fade into one another (supported browsers; others load normally) */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  .firm-bar { view-transition-name: firm-bar; }
  ::view-transition-old(root) { animation: page-out 0.3s var(--ease) both; }
  ::view-transition-new(root) { animation: page-in 0.55s var(--ease) 0.05s both; }
  @keyframes page-out { to { opacity: 0; } }
  @keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header { position: static; }
  .nav-toggle, .site-nav, .hero-stage::before, .hero-stage::after { display: none !important; }
  .hero-stage { height: auto; min-height: 0; color: var(--ink); background: none; }
  .hero-copy { position: static; }
}
