/* ============================================================================
   Summerfield Homes — shared stylesheet
   Design principle: REAL over polish. A quiet, grounded canvas that frames real
   photography. Nothing flash. Yellow SH mark (#ecd925) is the single accent.
   ========================================================================== */

@font-face {
  font-family: 'Marcellus';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/Marcellus.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('/fonts/Jost.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/SourceSans3.woff2') format('woff2');
}

:root {
  --ink: #23201c;          /* near-black timber */
  --muted: #6b645b;        /* warm grey */
  --paper: #ffffff;
  --paper-warm: #f6f3ee;   /* section wash */
  --line: #e5ded4;         /* hairlines */
  --timber: #a9713f;       /* warm timber tone, used sparingly */
  --yellow: #ecd925;       /* SH accent — the ONLY brand colour */
  --yellow-deep: #b9a800;  /* accessible text-on-white variant */
  --charcoal: #2b2b2b;     /* near-black charcoal (home nav over light sky) */
  --error: #c0392b;        /* form validation red */
  --error-bg: #fdecea;
  --maxw: 74rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--yellow-deep); outline-offset: 3px;
}

/* ---- Typography scale ---------------------------------------------------- */
h1, h2, h3 { font-family: 'Marcellus', Georgia, serif; font-weight: 400; letter-spacing: 0.01em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

/* builder's-tape label — bright yellow on a dark chip (WCAG-safe on any bg) */
.eyebrow {
  display: inline-block;
  background: var(--ink);
  color: var(--yellow);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.42em 0.8em 0.36em;
  border-radius: 2px; margin-bottom: 0.9rem;
}

/* the builder's line — a structural yellow rule used as a divider */
.rule { border: 0; height: 3px; background: var(--yellow); width: 100%; margin: 0; }
.rule--short { width: 3.5rem; }
/* short yellow em-dash — a small separator, same 3px weight as the borders */
.dash { display: block; width: 3rem; height: 3px; background: var(--yellow); border: 0; margin: 0 0 1.4rem; }
.dash--center { margin-inline: auto; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40ch; }
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1.1rem; }

/* full-width banner image (e.g. below the team) */
.team-banner { display: block; width: 100%; height: auto; }

/* Director bio — prose left, Casey photo right (smaller) */
.bio { display: grid; grid-template-columns: 1fr 22rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.bio__photo { width: 100%; height: auto; }
@media (max-width: 800px) { .bio { grid-template-columns: 1fr; } .bio__photo { max-width: 20rem; } }

/* ---- Layout helpers ------------------------------------------------------ */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--warm { background: var(--paper-warm); }
/* framed band — the yellow builder's line IS the box edge; inset from the page
   edges by the same gutter as the image grid below it */
.section--framed { border: 3px solid var(--yellow); margin-inline: 1.25rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1.1rem; }

/* placeholder marker — makes lorem / to-be-supplied content obvious in dev/review */
.placeholder {
  outline: 1px dashed var(--timber);
  outline-offset: 4px;
}
.placeholder-note {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--timber); display: inline-block; margin-bottom: 0.5rem;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.95em 1.9em; border: 1px solid var(--yellow); background: var(--yellow); color: var(--ink);
  text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---- Topbar (thin credibility strip) ------------------------------------ */
.topbar {
  display: flex; justify-content: center; gap: 0.75em; flex-wrap: wrap;
  padding: 0.6rem 1.5rem; background: var(--ink); color: #d9d1c5;
  font-size: 0.8rem; letter-spacing: 0.05em;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--yellow); }
.topbar .sep { color: #574f45; }

/* ---- Brand nav — two independent elements: a page header that scrolls with
   the page, and a separate frosted-glass bar that fades in/out on scroll ---- */
.brandnav__inner {
  position: relative; max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 1.5rem;
}
.brandnav__logo { display: inline-flex; align-items: center; text-decoration: none; }
.brandnav__logo img { height: 64px; width: auto; }
.brandnav__menu {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 2.1rem;
}
.brandnav__menu a {
  font-family: 'Source Sans 3', sans-serif; font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; text-decoration: none;
  padding: 0.3rem 0; transition: color 0.2s ease;
}
.brandnav__cta {
  font-family: 'Source Sans 3', sans-serif; font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; text-decoration: none;
  background: var(--yellow); color: var(--ink); border: 1px solid var(--yellow);
  padding: 0.65em 1.3em; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.brandnav__cta:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* active page indicator */
body.page-about .nav-about, body.page-how .nav-how,
body.page-projects .nav-projects, body.page-faq .nav-faq {
  text-decoration: underline; text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px; text-underline-offset: 8px;
}

/* hamburger toggle */
.nav-toggle { display: none; width: 30px; height: 22px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; color: inherit; z-index: 70; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.nav-toggle__bars { top: 50%; transform: translateY(-50%); }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* --- page header: scrolls with the page (never fixed) --- */
.brandnav--page { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
body.has-hero .brandnav--page .brandnav__logo img { filter: brightness(0) invert(1); }
body.has-hero .brandnav--page .brandnav__menu a,
body.has-hero .brandnav--page .nav-toggle { color: #fff; }
body:not(.has-hero) .brandnav--page .brandnav__menu a,
body:not(.has-hero) .brandnav--page .nav-toggle { color: var(--ink); }
.brandnav--page .brandnav__menu a:hover { color: var(--yellow) !important; }
body:not(.has-hero) .brandnav--page .brandnav__menu a:hover { color: var(--ink) !important; }

/* --- floating frosted-glass bar: separate element, fades both ways --- */
.brandnav--float {
  position: fixed; top: 0.9rem; left: 0; right: 0; z-index: 60;
  width: calc(100% - 3rem); max-width: calc(var(--maxw) + 6rem); margin-inline: auto;
  background: rgba(255,255,255,0.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 8px 26px rgba(20,17,14,0.12);
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.brandnav--float.show { opacity: 1; pointer-events: auto; }
.brandnav--float .brandnav__inner { max-width: none; padding: 0.65rem 3rem; }
.brandnav--float .brandnav__logo img { filter: none; }
.brandnav--float .brandnav__menu a, .brandnav--float .nav-toggle { color: var(--ink); }
.brandnav--float .brandnav__menu a:hover { color: var(--yellow) !important; }
@media (prefers-reduced-motion: reduce) { .brandnav--float { transition: opacity 0.2s ease; } }

/* non-hero pages: reserve space for the header at the top */
body:not(.has-hero) main { padding-top: 6rem; }

/* --- mobile menu: a single shared full slide-in-from-right takeover --- */
.mobile-nav {
  position: fixed; inset: 0; left: auto; width: 100%; z-index: 90;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  background: #fff; box-shadow: -24px 0 70px rgba(20,17,14,0.28);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: clamp(1.6rem, 5vw, 2.6rem); padding: 2rem clamp(1.75rem, 9vw, 4.5rem);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-family: 'Marcellus', serif; font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 400;
  color: var(--ink); text-decoration: none; position: relative;
}
.mobile-nav a::before { content: ''; display: block; width: 3rem; height: 3px; background: var(--yellow); margin-bottom: 0.7rem; }
.mobile-nav__close {
  position: absolute; top: 1.4rem; right: 1.5rem; width: 2.6rem; height: 2.6rem;
  background: none; border: 0; cursor: pointer; color: var(--ink); font-size: 2.4rem; line-height: 1;
}
@media (prefers-reduced-motion: reduce) { .mobile-nav { transition: none; } }
body.menu-open { overflow: hidden; }

/* --- responsive: hamburger on mobile, centred menu on desktop --- */
@media (max-width: 860px) {
  .brandnav__menu { display: none; }
  .brandnav__cta { display: none; }
  .nav-toggle { display: block; }
  .brandnav__logo img { height: 52px; }
  .brandnav--float .brandnav__inner { padding-inline: 1.25rem; }
}

/* ---- Page hero (sub-page banner so the floating header sits on an image) - */
.pagehero { position: relative; min-height: 54vh; display: grid; }
.pagehero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pagehero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,17,14,0.42), rgba(20,17,14,0.62)); }
.pagehero__content { position: relative; z-index: 1; align-self: end; color: #fff; max-width: var(--maxw); margin-inline: auto; width: 100%; padding: 0 1.5rem 3rem; }
.pagehero__content h1 { color: #fff; max-width: 20ch; }
.pagehero__content .eyebrow { color: var(--yellow); }
.pagehero__content .lede { color: #f0ece4; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* very gentle shadow at the top so the white menu reads over a bright sky */
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 30%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(20,17,14,0.26), transparent); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,17,14,0.04), rgba(20,17,14,0.55)); }
.hero__content { position: relative; z-index: 2; align-self: end; color: #fff; max-width: var(--maxw); margin-inline: auto; width: 100%; padding: 0 1.5rem 4rem; }
.hero__content h1 { color: #fff; max-width: 18ch; }
.hero__content .eyebrow { color: var(--yellow); }
.hero__content .lede { color: #f0ece4; }
.hero__content .btn { margin-top: 1.6rem; }
.hero__content .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---- Proof strip (left-aligned credential band) -------------------------- */
.proof { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; text-align: left; gap: clamp(1.75rem, 5vw, 4rem); }
.proof__mbav { height: 82px; width: auto; }
.proof__statement { font-family: 'Marcellus', serif; font-size: clamp(1.3rem, 2.4vw, 1.95rem); line-height: 1.42; color: var(--ink); max-width: 26ch; margin: 0; }

/* ---- Photo grid / projects ---------------------------------------------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.card { position: relative; display: block; text-decoration: none; color: var(--ink); overflow: hidden; }
.card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-warm); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card__img img { transform: scale(1.04); }
.card__meta { padding: 0.9rem 0.1rem; }
.card__meta .name { font-family: 'Marcellus', serif; font-size: 1.25rem; }
.card__meta .town { font-size: 0.85rem; color: var(--muted); }
.card--soon { pointer-events: none; }
.card--soon .card__img { filter: grayscale(0.5) opacity(0.8); }
.card--soon .town::after { content: ' · coming soon'; color: var(--timber); }
@media (prefers-reduced-motion: reduce) { .card:hover .card__img img { transform: none; } }

/* ---- Testimonial --------------------------------------------------------- */
.quote { max-width: 46rem; margin-inline: auto; text-align: center; border: 3px solid var(--yellow); padding: clamp(2rem, 5vw, 3.5rem); }
.quote blockquote { font-family: 'Marcellus', serif; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.4; }
.quote .cite { margin-top: 1.4rem; font-family: 'Source Sans 3', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---- The real deal — full-width strip of build stages ------------------- */
.realdeal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; padding-inline: 1.25rem; }
.realdeal figure { margin: 0; }
.realdeal img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--paper-warm); }
.realdeal figcaption { margin-top: 0.7rem; font-family: 'Source Sans 3', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .realdeal { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .realdeal { grid-template-columns: 1fr; } }

/* ---- Process steps ------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 620px) { .steps { grid-template-columns: repeat(2, 1fr); } }

/* Pillars — value / why-it-works cards inside a framed band; headings sized to
   match the proof statement (one shared visual language) */
.pillars { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } }
.pillar h3 { font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.95rem); line-height: 1.2; margin-bottom: 0.6rem; }
.pillar p { color: var(--muted); }
.step { border-top: 3px solid var(--yellow); padding-top: 1rem; }
/* numbers only on the process steps, styled as builder's-tape label chips */
.steps .step::before {
  counter-increment: step; content: '0' counter(step);
  display: inline-block; background: var(--ink); color: var(--yellow);
  font-family: 'Source Sans 3', sans-serif; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; padding: 0.35em 0.72em 0.3em; border-radius: 2px; margin-bottom: 0.7rem;
}
.step h3 { margin: 0.3rem 0 0.5rem; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* ---- FAQ ----------------------------------------------------------------- */
.faq-group { margin-top: 3rem; }
.faq-group:first-child { margin-top: 0; }
/* section heading with the yellow em-dash ABOVE it (shared by FAQ + doc pages) */
.faq-group > h2, .doc h2 { margin-bottom: 1.6rem; }
.doc h2 { margin-top: 2.75rem; }
.faq-group > h2::before, .doc h2::before { content: ''; display: block; width: 3rem; height: 3px; background: var(--yellow); margin-bottom: 1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0.2rem; top: 1rem; font-size: 1.4rem; color: var(--ink); transition: transform 0.2s; }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 0 1.2rem; color: var(--muted); max-width: 68ch; }

/* ---- Story (project) ----------------------------------------------------- */
.story-hero { position: relative; }
.story-hero img { width: 100%; max-height: 82vh; object-fit: cover; display: block; }
.story-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 40%; background: linear-gradient(180deg, rgba(20,17,14,0.5), transparent); pointer-events: none; }
.story-meta { display: flex; flex-wrap: wrap; gap: 2rem; padding-block: 2rem; border-bottom: 1px solid var(--line); }
.story-meta .k { font-family: 'Source Sans 3', sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.story-meta .v { font-family: 'Marcellus', serif; font-size: 1.15rem; }
.gallery { display: grid; gap: 4px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; cursor: zoom-in; background: var(--paper-warm); }
.breadcrumb { font-size: 0.82rem; color: var(--muted); padding-block: 1rem; }
.breadcrumb a { color: var(--muted); }
.story-back { display: inline-block; font-family: 'Source Sans 3', sans-serif; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.story-back:hover { color: var(--ink); }
/* project narrative — testimonial typography, left-aligned, no box */
.story-lead { max-width: 40rem; }
.story-lead p { font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.45; color: var(--ink); }
.story-lead p + p { margin-top: 1.2rem; }

/* ---- Contact form -------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.form { display: grid; gap: 1.2rem; max-width: 40rem; }
.form label { font-family: 'Source Sans 3', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.4rem; }
.form input, .form select, .form textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.72em 0.9em; border: 2px solid var(--yellow); background: #fff; border-radius: 0;
  transition: border-color 0.15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form input.error, .form select.error, .form textarea.error { border-color: var(--error); }
.form textarea { min-height: 8rem; resize: vertical; }
.form-error { display: block; font-family: 'Source Sans 3', sans-serif; font-size: 0.82rem; color: var(--error); margin-top: 0.35rem; min-height: 1.1em; }
.form-banner { background: var(--error-bg); border: 1px solid var(--error); color: var(--error); padding: 1rem 1.2rem; font-size: 0.92rem; line-height: 1.5; margin-bottom: 1.5rem; }
.form-banner[hidden] { display: none; }
.form .row2 { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.form .consent { display: flex; gap: 0.7rem; align-items: flex-start; }
.form .consent input { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.15rem; accent-color: var(--ink); }
.form .consent input.error { outline: 2px solid var(--error); outline-offset: 1px; }
.form .consent label { text-transform: none; letter-spacing: 0; font-weight: 400; font-family: 'Jost', sans-serif; color: var(--ink); margin: 0; font-size: 1.05rem; line-height: 1.55; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem; border: 1px solid var(--line); background: var(--paper-warm); }

/* ---- Footer (gorgeous) --------------------------------------------------- */
.foot { background: var(--ink); color: #cfc7ba; padding-block: clamp(3rem, 7vw, 5rem) 2.5rem; }
.foot__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.3fr 1fr 1fr; }
@media (max-width: 800px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }
.foot__brand img { height: 46px; width: auto; margin-bottom: 1rem; }
.foot__name { font-family: 'Marcellus', serif; font-size: 1.5rem; color: #fff; letter-spacing: 0.06em; }
.foot h4 { font-family: 'Source Sans 3', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1rem; }
.foot a { color: #cfc7ba; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot address { font-style: normal; line-height: 2; }
.foot__links { display: grid; gap: 0.5rem; }
.foot__insta { display: inline-block; margin-top: 1.1rem; color: #cfc7ba; line-height: 0; }
.foot__insta:hover { color: #fff; }
.foot .mbav { height: 48px; width: auto; margin-top: 1rem; background: #fff; padding: 6px 8px; }
.foot__bottom { max-width: var(--maxw); margin: 2.5rem auto 0; padding: 1.5rem 1.5rem 0; border-top: 1px solid #3a342c; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.92rem; color: #a99f90; }
.foot__bottom a { color: #948b7e; }

/* ---- Projects page — white footer treatment ----------------------------- */
body.footer-light .foot { background: #fff; color: var(--ink); border-top: 1px solid var(--line); }
body.footer-light .foot__name { color: var(--ink); }
body.footer-light .foot p, body.footer-light .foot address { color: var(--muted); }
body.footer-light .foot a { color: var(--muted); }
body.footer-light .foot a:hover { color: var(--ink); }
/* Get in touch / Explore labels become builder's-tape pills */
body.footer-light .foot h4 { display: inline-block; background: var(--ink); color: var(--yellow); padding: 0.42em 0.8em 0.36em; border-radius: 2px; }
/* SH mark becomes an app-icon: bordered, rounded corners */
body.footer-light .foot__brand img { width: 64px; height: 64px; padding: 12px; border: 2px solid var(--ink); border-radius: 15px; object-fit: contain; box-sizing: border-box; }
body.footer-light .foot__bottom { border-top-color: var(--line); color: var(--muted); }
body.footer-light .foot__bottom a { color: var(--muted); }
/* badge flips to dark text on the white footer */
body.footer-light .rs-badge { color: var(--ink); }
body.footer-light .rs-badge:hover .rs-name { color: var(--muted); }

/* ---- Ranges Studio badge — white, floats on the background; slides in at
   page end, fades off in place (identical to coppersmithhotel) ------------- */
.rs-badge {
  position: fixed; right: 1.25rem; bottom: 1.25rem;
  transform: translateX(calc(-50vw + 50% + 1.25rem));
  opacity: 0; pointer-events: none; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: 'Source Sans 3', sans-serif; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.rs-badge .rs-heart { width: 1.7em; height: 1.7em; fill: #b44040; flex: none; }
.rs-badge .rs-name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color 0.2s ease; }
.rs-badge.rs-docked { transform: translateX(0); opacity: 1; pointer-events: auto; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease; }
.rs-badge.rs-undock { transform: translateX(0); opacity: 0; transition: opacity 0.4s ease; }
.rs-badge:hover .rs-name { color: var(--yellow); }
@media (max-width: 720px) {
  .rs-badge, .rs-badge.rs-docked, .rs-badge.rs-undock { right: 50%; transform: translateX(50%); transition: opacity 0.45s ease; }
}
@media (prefers-reduced-motion: reduce) { .rs-badge, .rs-badge.rs-docked, .rs-badge.rs-undock { transform: none; transition: opacity 0.3s ease; } }

/* ---- Page-transition pulse ---------------------------------------------- */
html.pulse main > * { animation: pulsein 0.45s ease-out both; }
html.pulse main > :nth-child(2) { animation-delay: 0.08s; }
html.pulse main > :nth-child(3) { animation-delay: 0.16s; }
html.pulse main > :nth-child(4) { animation-delay: 0.24s; }
html.pulse main > :nth-child(5) { animation-delay: 0.32s; }
@keyframes pulsein { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html.pulse main > * { animation: none; } }
