/* =============================================================
   Warm Coastal Editorial, design system
   Real estate site · Boca Raton family + schools specialist
   Aesthetic: earth tones, arched/curved forms, refined serif
   ============================================================= */

/* ---------- Fonts ---------- */
/* Body/headings: clean neutral grotesque (stand-in for Compass's proprietary Compass Sans).
   Serif kept only for the logotype, mirroring racheldelray.com's serif "RK" monogram. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Figtree:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Earth palette */
  --paper:      #F8F4EC;   /* warm ivory base            */
  --paper-2:    #F3EDE2;   /* barely-there sand band     */
  --card:       #FFFDF8;   /* card surface               */
  --sand:       #E7DBC6;   /* warm sand                  */
  --taupe:      #D6C4A8;   /* taupe accent               */
  --clay:       #B4694A;   /* muted terracotta (primary) */
  --clay-deep:  #96543A;   /* pressed / hover clay       */
  --sage:       #8C9A7E;   /* soft sage secondary        */
  --sage-deep:  #6F7E62;
  --brass:      #B08D57;   /* refined hairline / detail  */
  --espresso:   #2A2320;   /* dark sections & footer     */
  --espresso-2: #221C19;

  /* Ink */
  --ink:        #2E2823;   /* body text (warm near-black)*/
  --ink-soft:   #6B6053;   /* muted text                 */
  --ink-faint:  #97897A;   /* captions / eyebrows        */
  --on-dark:    #F3EADB;   /* text on espresso           */
  --on-dark-soft:#C7B9A5;

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif; /* logotype only */
  --sans:  "Manrope", system-ui, -apple-system, sans-serif;

  /* Structure */
  --r-sm: 10px;
  --r:    18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --arch: 50% 50% 12px 12px / 60% 60% 12px 12px; /* arched top frame */
  --shadow-sm: 0 2px 10px rgba(53,40,28,.06);
  --shadow:    0 14px 40px -18px rgba(53,40,28,.28);
  --shadow-lg: 0 30px 70px -30px rgba(53,40,28,.40);
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: clamp(1rem, .55vw + .9rem, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; font-family: var(--sans); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 2*var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2*var(--gutter), 760px); margin-inline: auto; }
.section { padding: clamp(4.25rem, 8.5vw, 7.5rem) 0; position: relative; }
.section--sand   { background: var(--paper-2); }
.section--dark   { background: var(--espresso); color: var(--on-dark); }
.section--dark h1,.section--dark h2,.section--dark h3 { color: #F6EEE1; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s, 1rem); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.1rem;
}
.eyebrow::before { content:""; width: 26px; height: 1px; background: var(--brass); display:inline-block; }
.eyebrow--center { justify-content: center; }
/* balance centered eyebrows so the text sits on true center, not pushed right by the leading rule */
.eyebrow--center::after { content:""; width: 26px; height: 1px; background: var(--brass); display:inline-block; }
.section--dark .eyebrow { color: var(--taupe); }
/* .eyebrow--script intentionally removed, all eyebrows use the clean uppercase label. */

/* ---------- Type scale ---------- */
.display {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 600; }
.h3 { font-size: clamp(1.25rem, 1.7vw, 1.6rem); font-weight: 600; }
.lead { font-size: clamp(1.12rem, 1.3vw, 1.3rem); color: var(--ink-soft); line-height: 1.6; }
.muted { color: var(--ink-soft); }
em, .it { font-style: italic; }
.display em { color: var(--clay); font-style: normal; }

/* ---------- CTA links (no filled buttons, clean text + arrow) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: none; color: var(--clay);
  font-weight: 600; font-size: 1rem; letter-spacing: 0;
  padding: .35rem 0; border: 0; border-radius: 0; box-shadow: none;
  transition: color .25s var(--ease);
}
.btn:hover { background: none; color: var(--clay-deep); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { color: var(--ink-soft); }
.btn--ghost:hover { color: var(--clay); }
.btn--light { color: var(--on-dark); }
.btn--light:hover { color: #fff; }
.btn--sage { color: var(--sage-deep); }
.btn--sage:hover { color: var(--sage-deep); }
.textlink { font-weight: 600; color: var(--clay); display: inline-flex; align-items:center; gap:.4rem; }
.textlink .arrow { transition: transform .3s var(--ease); }
.textlink:hover .arrow { transform: translateX(4px); }
.section--dark .textlink { color: var(--taupe); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: rgba(120,100,80,.16); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .85rem 0; }
.brand { display: flex; align-items: baseline; gap: .55rem; font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.01em; }
.brand b { font-weight: 600; }
.brand .mark {
  font-family: var(--serif); font-size: 1rem; font-weight: 600; letter-spacing: .04em;
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: var(--clay); color: #fff; align-self: center;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.18);
}
.brand small { display:block; font-family: var(--sans); font-size: .58rem; letter-spacing:.2em; text-transform:uppercase; color: var(--ink-faint); }
.brand-lockup { display:flex; flex-direction:row; align-items:center; line-height:1; }
.brand-lockup b { font-family: var(--serif); font-size: 1.4rem; font-weight:600; letter-spacing:-.01em; }
.team-logo { height: 30px; width: auto; display: block; margin: 0 0 0 .85rem; padding-left: .85rem; border-left: 1px solid rgba(120,100,80,.3); }
.team-logo--footer { height: 32px; border-left-color: rgba(255,255,255,.25); opacity: .95; }
.compass-wordmark {
  font-family: var(--sans); font-weight: 500; letter-spacing: .42em;
  font-size: .8rem; color: var(--ink-soft); padding-right:.42em;
  align-self:center; user-select:none;
}
.compass-wordmark--footer { display:inline-block; margin-top:1.4rem; color: var(--on-dark); letter-spacing:.5em; font-size:1rem; }
@media (max-width: 860px){ .nav-cta .compass-wordmark { display:none; } }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--ink); position: relative; padding: .3rem 0; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-2px; height:1.5px; width:0; background: var(--clay); transition: width .3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display:flex; align-items:center; gap: 1rem; }
.nav .btn { padding: .3rem 0; font-size: .95rem; }
.nav-toggle { display:none; background:none; border:0; width:44px; height:44px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content:""; display:block; width:24px; height:2px; background: var(--ink); border-radius:2px; transition: .3s; position:relative; }
.nav-toggle span::before { position:absolute; top:-7px; } .nav-toggle span::after{ position:absolute; top:7px; }

/* ---------- Arched image / placeholder frame ---------- */
.frame {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--taupe), var(--sand) 55%, #efe6d3);
  box-shadow: var(--shadow);
}
.frame--arch { border-radius: var(--r); }
.frame--soft { border-radius: var(--r-lg); }
.frame img { width:100%; height:100%; object-fit: cover; }
/* designed placeholder */
.ph {
  position: relative; overflow: hidden; color: var(--espresso);
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(255,253,247,.5), transparent 55%),
    linear-gradient(158deg, var(--taupe), var(--sand) 48%, #ede2ce 100%);
  display: grid; place-items: center;
}
.ph::after {
  content: ""; position:absolute; inset:0; opacity:.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.ph__label {
  position: relative; z-index:2; font-size: .72rem; letter-spacing:.14em; text-transform:uppercase;
  color: rgba(42,35,32,.62); font-weight:600; text-align:center; max-width: 78%;
  border: 1px dashed rgba(42,35,32,.32); padding:.5rem .8rem; border-radius: 999px; background: rgba(255,253,247,.35);
}
.ph__motif { position:absolute; z-index:1; inset:0; display:grid; place-items:center; opacity:.28; }
.ph__motif svg { width: 46%; max-width: 180px; height:auto; stroke: var(--espresso); fill:none; stroke-width:1.4; }
/* real-photo variant of a placeholder block */
.ph--photo { background-size: cover; background-position: center; }
.ph--photo::after { opacity: 0; }
.ph--photo .ph__motif, .ph--photo .ph__label { display: none; }

/* ---------- Cards ---------- */
.card {
  background: transparent; border-radius: var(--r-lg); padding: 0;
  box-shadow: none; border: 0;
  transition: none;
}
.card:hover { transform: none; box-shadow: none; }
.card .num { font-family: var(--sans); font-weight:700; font-size: 1rem; color: var(--clay); }
.icon-badge {
  width: auto; height:auto; display:block;
  background: none; box-shadow: none; margin-bottom: 1.1rem;
}
.icon-badge svg { width: 26px; height:26px; stroke: var(--clay); fill:none; stroke-width:1.5; }

/* grids */
.grid { display:grid; gap: clamp(1.2rem, 2.4vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.about-expectations { margin-top: .6rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(2.25rem, 4.5vw, 3.75rem); padding-bottom: clamp(2.5rem,5vw,4.75rem); }
.hero-grid { display:grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero .display { margin-bottom: 1.4rem; }
.hero-media { position: relative; max-width: 400px; margin-left: auto; }
.hero-media .frame--arch { aspect-ratio: 4/5; }
.hero-badge {
  position:absolute; left: -1rem; bottom: 1.8rem; background: var(--card);
  border-radius: var(--r); padding: .95rem 1.2rem; box-shadow: var(--shadow-sm); max-width: 225px;
  border:1px solid rgba(120,100,80,.14);
}
.hero-badge b { font-family: var(--sans); font-weight:700; font-size: 1.5rem; color: var(--clay); display:block; line-height:1; }
.hero-badge span { font-size: .8rem; color: var(--ink-soft); }
.trust-row { display:flex; flex-wrap:wrap; gap: 1.5rem 2.2rem; align-items:center; margin-top: 2.2rem; }
.trust-row .t { display:flex; flex-direction:column; }
.trust-row b { font-family: var(--sans); font-weight:700; letter-spacing:-.02em; font-size: 1.75rem; color: var(--ink); line-height:1; }
.trust-row span { font-size: .82rem; color: var(--ink-soft); }
.trust-div { width:1px; height: 36px; background: rgba(120,100,80,.25); }

/* ---------- Inline lead form ---------- */
.leadcard {
  background: var(--card); border-radius: var(--r-lg); padding: clamp(1.6rem,3vw,2.4rem);
  box-shadow: none; border:1px solid rgba(120,100,80,.18);
}
.field { margin-bottom: 1rem; }
.field label { display:block; font-size:.8rem; font-weight:600; letter-spacing:.04em; color: var(--ink-soft); margin-bottom:.4rem; }
.field input, .field select, .field textarea {
  width:100%; padding:.85rem 1rem; border-radius: 12px; border:1px solid rgba(120,100,80,.28);
  background:#fff; font: inherit; color: var(--ink); transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(180,105,74,.15);
}
.form-note { font-size:.78rem; color: var(--ink-faint); margin-top:.4rem; }

/* ---------- Wavy / arch dividers ---------- */
.divider { display:block; width:100%; height: clamp(40px, 6vw, 90px); }
.divider path { fill: currentColor; }

/* ---------- Steps ---------- */
.step { text-align:left; }
.grid-2 > .step--final {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - clamp(.75rem, 1.5vw, 1.4rem));
}
.step .num-badge {
  width:auto;height:auto;display:inline-block;
  font-family:var(--sans); font-weight:600; font-size:.95rem; letter-spacing:.14em; color: var(--clay); background: none;
  margin-bottom:1rem; padding-bottom:.55rem; border-bottom:2px solid var(--clay);
}
.step .num-badge::before { content:"0"; }

/* ---------- Guide cards ---------- */
.guide {
  display:flex; flex-direction:column; background: transparent; border-radius: var(--r);
  overflow:hidden; box-shadow: none; border:0;
  transition: none;
}
.guide:hover { transform: none; box-shadow: none; }
.guide:hover .cover { transform: scale(1.015); }
.guide .cover { transition: transform .5s var(--ease); }
.guide .cover { aspect-ratio: 4/5; }
.guide .body { padding: 1.1rem .1rem 0; display:flex; flex-direction:column; gap:.5rem; flex:1; }
.guide .tag { font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color: var(--sage-deep); font-weight:600; }
.guide h3 { font-size: 1.3rem; min-height: 2.48em; }
.guide .muted { min-height: 3.2em; }
.guide .textlink { margin-top:auto; }

/* ---------- Testimonials ---------- */
.quote { background: transparent; border-radius: 0; padding: 1.6rem 0 0; box-shadow: none; border:0; border-top:1px solid rgba(120,100,80,.22); position:relative; }
.quote::before { display:none; }
.quote p { font-family: var(--sans); font-weight:500; font-size: 1.12rem; line-height:1.55; color: var(--ink); position:relative; z-index:1; }
.stars { color: var(--brass); letter-spacing:.15em; margin-bottom:.7rem; }
.who { display:flex; align-items:center; gap:.8rem; margin-top:1.4rem; }
.who .av { display:none; }
.who b { font-size:.95rem; } .who span { font-size:.8rem; color: var(--ink-soft); display:block; }

/* ---------- Split feature ---------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items:center; }
.split--rev .split-media { order: 2; }
.split-media .frame { aspect-ratio: 5/4; }
.checklist li { display:flex; gap:.8rem; align-items:flex-start; margin-bottom:.9rem; }
.checklist svg { flex:none; width:22px;height:22px; margin-top:.15rem; color: var(--clay); }
.checklist b { display:block; }

/* ---------- Neighborhood tiles ---------- */
.hood { position:relative; border-radius: var(--r-lg); overflow:hidden; aspect-ratio: 3/4; box-shadow: var(--shadow-sm); }
.hood .ph { position:absolute; inset:0; }
.hood .cap { position:absolute; inset:auto 0 0 0; padding:1.4rem; background: linear-gradient(to top, rgba(30,24,20,.78), transparent); color:#fff; z-index:3; }
.hood .cap h3 { color:#fff; font-size:1.4rem; }
.hood .cap span { font-size:.85rem; color: rgba(255,255,255,.82); }
.hood::after { content:""; position:absolute; inset:0; z-index:2; background: linear-gradient(to top, rgba(30,24,20,.15), transparent 50%); }
.hood:hover .ph img, .hood:hover .ph { transform: scale(1.04); }
.hood .ph { transition: transform .6s var(--ease); }

/* ---------- CTA band ---------- */
.cta-band { position:relative; overflow:hidden; }
.cta-band .ornament { position:absolute; inset:0; opacity:.5; pointer-events:none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso-2); color: var(--on-dark-soft); padding: clamp(3.5rem,6vw,5rem) 0 2rem; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer .foot-h { color: var(--on-dark); font-family: var(--sans); font-weight:600; font-size:.8rem; letter-spacing:.16em; text-transform:uppercase; margin-bottom:1.1rem; }
.site-footer a { color: var(--on-dark-soft); font-size:.95rem; display:inline-block; padding:.28rem 0; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: var(--on-dark); }
.footer-bottom { margin-top: 3rem; padding-top:1.5rem; border-top:1px solid rgba(255,255,255,.1); display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; font-size:.82rem; color: var(--on-dark-soft); }
.badges { display:flex; gap:1rem; align-items:center; opacity:.8; }
.badges .eh { border:1px solid rgba(255,255,255,.25); border-radius:6px; padding:.2rem .5rem; font-size:.7rem; letter-spacing:.1em; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: clamp(3rem,6vw,5.5rem) 0 clamp(2rem,4vw,3.5rem); position:relative; }
.crumbs { font-size:.82rem; color: var(--ink-faint); margin-bottom:1rem; }
.crumbs a:hover { color: var(--clay); }

/* ---------- Reveal on scroll ---------- */
/* ---------- Motion: restrained, editorial ----------
   Content eases up a few pixels; photos settle in from a hair of scale.
   Slow, soft easing, calm, not flashy. Honors reduced-motion below. */
[data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .09s; }
[data-reveal][data-delay="2"] { transition-delay: .18s; }
[data-reveal][data-delay="3"] { transition-delay: .27s; }
[data-reveal][data-delay="4"] { transition-delay: .36s; }

/* Photos settle in, a slow, soft scale + fade within their frame */
[data-reveal] .frame img,
[data-reveal] .ph--photo { transform: scale(1.06); transition: transform 1.5s var(--ease), opacity 1.2s var(--ease); }
[data-reveal].in .frame img,
[data-reveal].in .ph--photo { transform: scale(1); }
.frame, .hood, .guide .cover { overflow: hidden; }

/* Standalone media blocks (hero image, split media) get the settle too */
.frame img { transition: transform 1.5s var(--ease); }

/* ---------- Prose (guide article) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.7rem,2.6vw,2.3rem); margin: 2.6rem 0 1rem; }
.prose h3 { font-size: 1.3rem; margin: 2rem 0 .7rem; color: var(--clay-deep); }
.prose p { color: var(--ink); }
.prose ul.bullets { margin: 0 0 1.4rem; }
.prose ul.bullets li { position:relative; padding-left:1.6rem; margin-bottom:.6rem; }
.prose ul.bullets li::before { content:""; position:absolute; left:.2rem; top:.65rem; width:7px;height:7px;border-radius:999px; background: var(--clay); }
.callout { background: var(--paper-2); border-left: 3px solid var(--clay); border-radius: 0 var(--r) var(--r) 0; padding: 1.3rem 1.5rem; margin: 1.8rem 0; }
.callout b { color: var(--clay-deep); }

/* ---------- FAQ ---------- */
.faq details { border-bottom:1px solid rgba(120,100,80,.2); padding: 1.2rem 0; }
.faq summary { font-family: var(--serif); font-size: 1.2rem; cursor:pointer; list-style:none; display:flex; justify-content:space-between; gap:1rem; align-items:center; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; color: var(--clay); font-family: var(--sans); font-size:1.5rem; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top:.9rem; color: var(--ink-soft); }

/* ---------- Misc ---------- */
.pill { display:inline-block; padding:.35rem .9rem; border-radius:999px; background: rgba(140,154,126,.18); color: var(--sage-deep); font-size:.78rem; font-weight:600; letter-spacing:.04em; }
.pill--clay { background: rgba(180,105,74,.14); color: var(--clay-deep); }
.skip { position:absolute; left:-999px; top:0; background:var(--clay); color:#fff; padding:.6rem 1rem; border-radius:0 0 8px 0; z-index:200; }
.skip:focus { left:0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .split--rev .split-media { grid-template-columns: 1fr; }
  .split--rev .split-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-media { max-width: 460px; margin-inline:auto; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn { display:none; }
  .nav-toggle { display:block; }
  .nav-links.open { display:flex; position:absolute; top:100%; left:0; right:0; flex-direction:column; background:var(--paper); padding:1.2rem var(--gutter) 1.6rem; gap:.4rem; box-shadow: var(--shadow); border-bottom:1px solid rgba(120,100,80,.16); }
  .nav-links.open a { padding:.7rem 0; border-bottom:1px solid rgba(120,100,80,.12); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 > .step--final { grid-column: auto; width: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { left:0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
  [data-reveal]{ opacity:1; transform:none; }
}

/* =============================================================
   Warm Modern preview — adapted from the Keystead "Warm Modern"
   direction. This layer deliberately sits at the end of the file so
   the original client site remains easy to compare and restore.
   ============================================================= */
:root {
  --paper: #efe9df;
  --paper-2: #e6ddcf;
  --card: #fffaf3;
  --sand: #e6ddcf;
  --taupe: #d7c9b7;
  --clay: #a89680;
  --clay-deep: #716150;
  --sage: #a89680;
  --sage-deep: #716150;
  --brass: #a89680;
  --espresso: #3d332a;
  --espresso-2: #2b231b;
  --ink: #3d332a;
  --ink-soft: #75695d;
  --ink-faint: #9a8d7f;
  --on-dark: #fffaf3;
  --on-dark-soft: #dfd5c8;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", Arial, sans-serif;
  --r: 0px;
  --r-lg: 0px;
  --r-xl: 0px;
  --shadow: none;
  --shadow-sm: none;
}

body { font-family: var(--sans); background: var(--paper); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.display { font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.14; }
.display em { color: inherit; font-style: normal; }
.lead { color: var(--ink-soft); }
.eyebrow { color: var(--ink-soft); font-size: .68rem; letter-spacing: .2em; }
.eyebrow::before, .eyebrow--center::after { background: currentColor; width: 18px; }
.btn { color: var(--ink); border-bottom: 1px solid currentColor; padding: .25rem 0 .4rem; text-transform: uppercase; font-size: .72rem; letter-spacing: .16em; }
.btn:hover { color: var(--clay-deep); }
/* Keep the light CTA readable after the shared button treatment above. */
.section--dark .btn--light { color: var(--on-dark); border-color: rgba(255,250,243,.7); }
.section--dark .btn--light:hover { color: #fff; }

.site-header { position: absolute; inset: 0 0 auto; background: transparent; backdrop-filter: none; color: #fff; border: 0; }
.site-header.scrolled { position: fixed; background: rgba(61,51,42,.94); box-shadow: none; border-color: rgba(255,255,255,.16); }
.brand-lockup b, .nav-links a, .compass-wordmark { color: inherit; }
.brand-lockup b {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: .035em;
  text-transform: none;
}
.team-logo { filter: brightness(0) invert(1); border-left-color: rgba(255,255,255,.35); }
.nav-links a { color: inherit; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.nav-links a::after { background: #fff; }
.nav .btn { color: #fff; border-color: rgba(255,255,255,.55); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { background: #fff; }

/* Light interior pages use a readable ink header rather than the white
   transparent treatment reserved for the photographic homepage hero. */
.site-header--light { position: relative; color: var(--ink); background: var(--paper); }
.site-header--light .brand-lockup b,
.site-header--light .nav-links a,
.site-header--light .compass-wordmark { color: var(--ink); }
.site-header--light .team-logo { filter: none; border-left-color: rgba(61,51,42,.25); }
.site-header--light .nav .btn { color: var(--ink); border-color: rgba(61,51,42,.5); }
.site-header--light .nav-toggle span,
.site-header--light .nav-toggle span::before,
.site-header--light .nav-toggle span::after { background: var(--ink); }

/* Every inner page starts on a light surface. Keep its navigation readable
   from the first pixel instead of inheriting the homepage's white-on-photo
   treatment. The homepage remains the only photographic, white header. */
body:not(:has(main > .hero)) .site-header,
body:not(:has(main > .hero)) .site-header.scrolled {
  position: sticky;
  top: 0;
  color: var(--ink);
  background: var(--paper);
  border-color: rgba(61,51,42,.14);
  box-shadow: none;
}
body:not(:has(main > .hero)) .site-header .brand-lockup b,
body:not(:has(main > .hero)) .site-header .nav-links a,
body:not(:has(main > .hero)) .site-header .compass-wordmark { color: var(--ink); }
body:not(:has(main > .hero)) .site-header .team-logo { filter: none; border-left-color: rgba(61,51,42,.25); }
body:not(:has(main > .hero)) .site-header .nav .btn { color: var(--ink); border-color: rgba(61,51,42,.5); }
body:not(:has(main > .hero)) .site-header .nav-toggle span,
body:not(:has(main > .hero)) .site-header .nav-toggle span::before,
body:not(:has(main > .hero)) .site-header .nav-toggle span::after { background: var(--ink); }

/* The Compass affiliation remains in the footer and Koolik logo; remove the
   redundant top-right wordmark so "Let's Talk" has room to breathe. */
.nav-cta > .compass-wordmark { display: none; }

.hero,
.hero.wrap {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  min-height: 100svh;
  padding: 0;
  background: #3d332a;
  display: flex;
  align-items: end;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Keep the editorial bottom-left copy readable while allowing the warm
     lifestyle interior to carry the first impression of the page. */
  background:
    linear-gradient(90deg, rgba(43,35,27,.78) 0%, rgba(43,35,27,.5) 42%, rgba(43,35,27,.12) 78%),
    linear-gradient(to top, rgba(43,35,27,.7) 0%, rgba(43,35,27,.08) 58%, rgba(43,35,27,.04) 100%);
  z-index: 1;
}
.hero-grid {
  width: min(100% - 2*var(--gutter), var(--wrap));
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  /* The image is nested here in the HTML, but must be positioned against
     the full hero—not the editorial text column—so it can bleed to both
     viewport edges. */
  position: static;
  padding: 9rem 0 clamp(4rem,9vw,7rem);
}
.hero-grid > div:first-child { position: relative; z-index: 2; max-width: 760px; color: #fff; }
.hero .eyebrow, .hero .lead, .hero .display { color: #fff; }
.hero .display { max-width: 900px; font-size: clamp(2.28rem,5.25vw,4.55rem); margin-bottom: 1.6rem; }
.hero .lead { max-width: 620px; font-size: 1rem; color: rgba(255,255,255,.82); }
.hero .btn { color: #fff; border-color: rgba(255,255,255,.65); }
.hero .btn--ghost { color: rgba(255,255,255,.78); }
.hero-media { position: absolute; inset: 0; z-index: 0; max-width: none; margin: 0; }
.hero-media .frame, .hero-media .frame--arch { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; filter: saturate(.78) sepia(.11); }
.trust-row { margin-top: 3.25rem; gap: 1.3rem 2.25rem; }
.trust-row b, .trust-row span { color: #fff; }
.trust-row b { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: .05em; }
.trust-row span { opacity: .72; text-transform: uppercase; letter-spacing: .11em; font-size: .64rem; }
.trust-div { background: rgba(255,255,255,.38); }

.section { padding: clamp(4.75rem,9vw,8rem) 0; }
.section--sand { background: var(--panel, var(--paper-2)); }
.frame, .frame--arch, .frame--soft, .hood, .leadcard, .guide { border-radius: 0; box-shadow: none; }
.frame img { filter: saturate(.82) sepia(.08); }
.grid { gap: clamp(1.5rem,3vw,2.8rem); }
.card, .quote { border-top: 1px solid rgba(61,51,42,.2); padding-top: 1.35rem; }
.step .num-badge { color: var(--ink); border-bottom-color: var(--ink); }
.guide .cover { aspect-ratio: 4/4.8; }
.guide .body { padding-top: 1.25rem; }
.guide h3 { font-size: 1.2rem; line-height: 1.24; }
.hood { aspect-ratio: 4/5; }
.hood .cap { padding: 1.35rem; }
.hood .cap h3 { font-size: 1.18rem; letter-spacing: .08em; }
.hood .cap span { font-size: .73rem; letter-spacing: .05em; }
.quote p { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .02em; }
.leadcard { background: var(--card); border: 1px solid rgba(61,51,42,.16); }
.field input, .field select, .field textarea { border-radius: 0; background: transparent; border-color: rgba(61,51,42,.28); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(61,51,42,.1); }
.site-footer { background: var(--espresso); }
.foot-h { font-family: var(--sans) !important; }

/* Content remains visible by default. Motion only activates after the page
   confirms it can animate, so a slow browser never hides the site. */
@media (prefers-reduced-motion: no-preference) {
  html.motion-ready [data-reveal] {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: opacity, transform;
  }
  html.motion-ready [data-reveal].in { opacity: 1; transform: none; }
  html.motion-ready [data-reveal] .frame img,
  html.motion-ready [data-reveal] .ph--photo {
    transform: scale(1.025);
    transition: transform 1.1s var(--ease);
  }
  html.motion-ready [data-reveal].in .frame img,
  html.motion-ready [data-reveal].in .ph--photo { transform: scale(1); }
}

@media (max-width: 720px) {
  .site-header { position: absolute; }
  .nav-links.open { background: var(--espresso); color: #fff; box-shadow: none; }
  .hero-grid { padding: 8rem 0 3.5rem; }
  .hero .display { font-size: clamp(2rem,10vw,3rem); }
  .team-logo { height: 24px; margin-left: .55rem; padding-left: .55rem; }
  .brand-lockup b { font-size: 1rem; }
}
