/* Revitalize Homes — institutional PM brand (navy/gold, Homes mark) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --rh-void: #05080f;
  --rh-midnight: #0b1320;
  --rh-panel: #101a2a;
  --rh-panel-lift: #152236;
  --rh-paper: #f4f2ea;
  --rh-band: #efebe0;
  --rh-ink: #1a2330;
  --rh-ink-soft: #5c6b7a;
  --rh-gold: #c69a3b;
  --rh-gold-muted: #a88432;
  --rh-gold-bright: #d4ab4f;
  --rh-chalk: #f4f2ea;
  --rh-cream: #e8e4d9;
  --rh-mist: #9aa6b8;
  --rh-border: rgba(154, 166, 184, 0.18);
  --rh-border-paper: rgba(26, 35, 48, 0.1);
  --rh-border-gold: rgba(198, 154, 59, 0.4);
  --rh-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --rh-font-body: "Source Sans 3", system-ui, sans-serif;
  --rh-max: 1100px;
  --rh-touch: 44px;
  --rh-radius: 2px;
  --rh-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rh-paper-grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  font-family: var(--rh-font-body);
  font-size: 1rem;
  background: var(--rh-void);
  color: var(--rh-chalk);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

a { color: var(--rh-gold); text-decoration: none; }
a:hover { color: var(--rh-gold-bright); }

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

/* ── Header ── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(5, 8, 15, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(11, 19, 32, 0.96);
  border-bottom-color: var(--rh-border);
}

.header-inner {
  max-width: var(--rh-max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--rh-chalk);
  text-decoration: none;
  min-height: var(--rh-touch);
}

.brand-lockup:hover { color: var(--rh-chalk); }

.brand-wordmark {
  height: 44px;
  width: auto;
  max-width: min(260px, 58vw);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-cta {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--rh-gold);
  border: 1px solid var(--rh-border-gold);
  border-radius: var(--rh-radius);
  text-decoration: none;
  transition: color 0.2s var(--rh-ease), border-color 0.2s var(--rh-ease), background 0.2s var(--rh-ease);
}

.header-cta:hover {
  color: var(--rh-chalk);
  border-color: var(--rh-gold);
  background: rgba(198, 154, 59, 0.08);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: var(--rh-touch);
  height: var(--rh-touch);
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--rh-chalk);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh; height: 100dvh;   /* explicit: the fixed header (backdrop-filter) is this panel's containing block, so inset:0 only covered the header */
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  padding: 5rem 1.75rem 2.5rem;
  background: var(--rh-midnight);
  transform: translateY(-100%);
  transition: transform 0.3s var(--rh-ease), visibility 0s linear 0.3s;
  pointer-events: none;
  visibility: hidden;      /* closed menu must never show, even where the header traps position:fixed (backdrop-filter) */
  overflow-y: auto;        /* tall menus scroll inside the panel instead of spilling out */
}

.nav.open {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition: transform 0.3s var(--rh-ease), visibility 0s;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-links a {
  display: inline-block;
  padding: 0.55rem 0;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--rh-mist);
  text-decoration: none;
  transition: color 0.2s var(--rh-ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--rh-chalk);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--rh-gold);
  border: 1px solid var(--rh-border-gold);
  border-radius: var(--rh-radius);
  text-decoration: none;
  transition: color 0.2s var(--rh-ease), border-color 0.2s var(--rh-ease), background 0.2s var(--rh-ease);
}

.nav-cta:hover {
  color: var(--rh-chalk);
  border-color: var(--rh-gold);
  background: rgba(198, 154, 59, 0.08);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--rh-touch);
  padding: 0 1.5rem;
  border-radius: var(--rh-radius);
  font-family: var(--rh-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.22s var(--rh-ease), border-color 0.22s var(--rh-ease), color 0.22s var(--rh-ease), transform 0.22s var(--rh-ease), box-shadow 0.22s var(--rh-ease);
}

.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--rh-gold);
  color: var(--rh-void);
  border-color: var(--rh-gold);
}

.btn-primary:hover {
  background: var(--rh-gold-bright);
  border-color: var(--rh-gold-bright);
  color: var(--rh-void);
  box-shadow: 0 8px 24px rgba(198, 154, 59, 0.22);
}

.btn-outline {
  background: transparent;
  color: var(--rh-chalk);
  border-color: var(--rh-border);
}

.btn-outline:hover {
  border-color: var(--rh-gold);
  color: var(--rh-gold);
  background: rgba(198, 154, 59, 0.06);
}

.section-paper .btn-outline {
  color: var(--rh-ink);
  border-color: rgba(26, 35, 48, 0.2);
}

.section-paper .btn-outline:hover {
  color: var(--rh-gold-muted);
  border-color: var(--rh-gold-muted);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 6.5rem 1.25rem 0;
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(198, 154, 59, 0.14), transparent 58%),
    radial-gradient(ellipse 50% 40% at 12% 70%, rgba(21, 48, 79, 0.45), transparent 60%),
    linear-gradient(165deg, var(--rh-midnight) 0%, var(--rh-void) 55%, #070b14 100%);
  overflow: hidden;
  min-height: min(92vh, 780px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(154, 166, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 166, 184, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero-motif {
  position: absolute;
  right: -3%;
  top: 14%;
  width: min(44vw, 340px);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.hero-motif img { width: 100%; height: auto; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--rh-max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 2.75rem;
  padding-bottom: 2rem;
}

.hero-copy { max-width: 38rem; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rh-gold);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--rh-font-display);
  font-size: clamp(2.1rem, 6.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin-bottom: 1.25rem;
  color: var(--rh-chalk);
}

.lead {
  max-width: 36rem;
  color: var(--rh-mist);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.15rem;
}

.hero-cred {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--rh-cream);
  max-width: 34rem;
  margin-bottom: 1.85rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--rh-gold-muted);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-aside {
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--rh-border);
}

.aside-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rh-gold);
  margin-bottom: 1rem;
}

.criteria-list {
  list-style: none;
  display: grid;
  gap: 0;
}

.criteria-list li {
  display: grid;
  grid-template-columns: 7.25rem 1fr;
  gap: 0.75rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--rh-border);
  font-size: 0.9375rem;
  transition: padding-left 0.22s var(--rh-ease), background 0.22s var(--rh-ease);
}

.criteria-list li:last-child { border-bottom: none; }
.criteria-list li:hover { padding-left: 0.3rem; }

.criteria-key { color: var(--rh-mist); font-weight: 500; }
.criteria-val { color: var(--rh-chalk); }

.band-soft {
  height: 3.25rem;
  width: 100%;
  pointer-events: none;
  margin: 0;
  position: relative;
  z-index: 1;
}

.band-soft--to-paper {
  background: linear-gradient(180deg, transparent 0%, var(--rh-paper) 100%);
}

.hero .band-soft--to-paper {
  margin-top: 1.25rem;
  background: linear-gradient(180deg, transparent 0%, var(--rh-paper) 100%);
}

.band-soft--to-navy {
  background: linear-gradient(180deg, var(--rh-paper) 0%, var(--rh-midnight) 100%);
}

.band-soft--paper-to-void {
  background: linear-gradient(180deg, var(--rh-paper) 0%, var(--rh-void) 100%);
}

/* ── Sections ── */
.section {
  position: relative;
  padding: 0;
}

.section-inner {
  position: relative;
  z-index: 1;
  max-width: var(--rh-max);
  margin: 0 auto;
  padding: 3.75rem 1.25rem 4.25rem;
}

.section-paper {
  background: var(--rh-paper);
  color: var(--rh-ink);
  overflow: hidden;
}

.section-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--rh-paper-grain);
  background-size: 180px 180px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}

.paper-motif {
  position: absolute;
  right: -2rem;
  bottom: 10%;
  width: 14rem;
  height: 14rem;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
  background: url("../assets/logo-mark.svg") center / contain no-repeat;
}

.section-head {
  position: relative;
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rh-gold);
  margin-bottom: 0.55rem;
}

.section-paper .section-label { color: var(--rh-gold-muted); }

.section h2,
.section-head h2 {
  font-family: var(--rh-font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 0.65rem;
}

.sub {
  color: var(--rh-mist);
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.section-paper .sub { color: var(--rh-ink-soft); }

.gold-rule {
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: 1.15rem;
  background: var(--rh-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--rh-ease);
}

.reveal.is-visible .section-head .gold-rule,
.reveal.is-visible > .gold-rule,
.section-head .gold-rule.is-on {
  transform: scaleX(1);
}

.reveal.is-visible .gold-rule { transform: scaleX(1); }

/* Service rows — not card grid as primary */
.service-rows {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rh-border-paper);
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--rh-border-paper);
  transition: background 0.25s var(--rh-ease), padding-left 0.25s var(--rh-ease);
}

.service-row:hover {
  padding-left: 0.35rem;
  background: rgba(255, 255, 255, 0.35);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(198, 154, 59, 0.35);
  background: linear-gradient(145deg, #fff 0%, var(--rh-band) 100%);
  color: var(--rh-gold-muted);
}

.service-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.service-row h3 {
  font-family: var(--rh-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--rh-ink);
}

.service-row p {
  font-size: 0.975rem;
  color: var(--rh-ink-soft);
  line-height: 1.7;
  max-width: 36rem;
}

/* Why / principles band */
.why-band {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(198, 154, 59, 0.1), transparent 55%),
    var(--rh-midnight);
  overflow: hidden;
}

.why-motif {
  position: absolute;
  left: -4%;
  bottom: 8%;
  width: min(36vw, 260px);
  opacity: 0.05;
  pointer-events: none;
}

.why-motif img { width: 100%; }

.why-inner {
  position: relative;
  z-index: 1;
  max-width: var(--rh-max);
  margin: 0 auto;
  padding: 3.75rem 1.25rem 1rem;
}

.why-columns {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rh-border);
}

.why-block {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rh-border);
  transition: padding-left 0.22s var(--rh-ease);
}

.why-block:hover { padding-left: 0.35rem; }

.why-block h3 {
  font-family: var(--rh-font-display);
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
  color: var(--rh-chalk);
}

.why-block p {
  color: var(--rh-mist);
  font-size: 0.975rem;
  line-height: 1.7;
  max-width: 34rem;
}

/* Team / Lee */
.section-team {
  background: var(--rh-paper);
  color: var(--rh-ink);
  overflow: hidden;
}

.team-layout {
  display: grid;
  gap: 2rem;
}

.team-profile {
  display: grid;
  gap: 1.5rem;
}

.team-photo {
  width: 100%;
  max-width: 20rem;
  aspect-ratio: 960 / 1720;
  overflow: visible;
  border-bottom: 2px solid var(--rh-gold-muted);
  background:
    radial-gradient(ellipse 80% 55% at 50% 72%, rgba(198, 154, 59, 0.14), transparent 70%),
    linear-gradient(165deg, #152236 0%, var(--rh-midnight) 48%, #0a1421 100%);
  position: relative;
  transition: border-color 0.3s var(--rh-ease), box-shadow 0.35s var(--rh-ease);
}

.team-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(244, 242, 234, 0.04), transparent 42%);
  pointer-events: none;
  z-index: 1;
}

.team-photo::after {
  content: "";
  position: absolute;
  inset: auto 8% 0 8%;
  height: 18%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.28), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.team-photo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
  transition: transform 0.55s var(--rh-ease), filter 0.35s var(--rh-ease);
}

.team-profile:hover .team-photo {
  border-bottom-color: var(--rh-gold);
  box-shadow: 0 16px 40px rgba(11, 19, 32, 0.18);
}

.team-profile:hover .team-photo img {
  transform: scale(1.02);
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.42));
}

.team-bio {
  display: flex;
  flex-direction: column;
  max-width: 32rem;
}

.team-bio h3 {
  font-family: var(--rh-font-display);
  font-size: clamp(1.55rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--rh-ink);
  line-height: 1.2;
}

.team-bio .role {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rh-gold-muted);
  margin: 0.45rem 0 1rem;
}

.team-bio p {
  font-size: 1rem;
  color: var(--rh-ink-soft);
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.team-bio p:last-child { margin-bottom: 0; }

/* Contact band */
.contact-section {
  background: var(--rh-void);
  border-top: 1px solid var(--rh-border);
}

.contact-inner {
  max-width: var(--rh-max);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.contact-block {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  line-height: 1.8;
}

.contact-block strong {
  color: var(--rh-chalk);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.contact-block a {
  color: var(--rh-gold);
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-block a:hover {
  border-bottom-color: rgba(198, 154, 59, 0.45);
  color: var(--rh-gold-bright);
}

.note {
  margin-top: 1.35rem;
  font-size: 0.9rem;
  color: var(--rh-mist);
  max-width: 36rem;
  line-height: 1.65;
}

.section-paper .note { color: var(--rh-ink-soft); }
.section-paper .contact-block strong { color: var(--rh-ink); }

.contact-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 840px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 3rem;
  }
}

.contact-form {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.75rem 1.25rem 1.5rem;
  border: 1px solid var(--rh-border-paper);
  border-radius: var(--rh-radius);
  background: #fff;
  box-shadow: 0 12px 40px rgba(11, 19, 32, 0.06);
}

.contact-form:focus-within {
  border-color: var(--rh-border-gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rh-ink-soft);
  margin-bottom: 0.35rem;
}

.contact-form .optional {
  font-weight: 500;
  opacity: 0.75;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-height: var(--rh-touch);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--rh-border-paper);
  border-radius: var(--rh-radius);
  font: inherit;
  font-size: 1rem;
  background: var(--rh-paper);
  color: var(--rh-ink);
}

.contact-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--rh-gold);
  outline-offset: 1px;
  border-color: var(--rh-gold);
}

.form-note {
  font-size: 0.8125rem;
  color: var(--rh-ink-soft);
}

.form-status-ok { color: #1a7a45; }
.form-status-err { color: #a33a3a; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.25rem;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 6.25rem 1.25rem 2.5rem;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(198, 154, 59, 0.1), transparent 55%),
    linear-gradient(180deg, var(--rh-midnight), var(--rh-void));
  overflow: hidden;
}

.page-hero .section-inner {
  padding: 0;
  max-width: var(--rh-max);
}

.page-hero h1 {
  font-family: var(--rh-font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.page-hero .lead {
  margin-bottom: 0;
}

/* Simple card grid for secondary pages only */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--rh-border-paper);
  border: 1px solid var(--rh-border-paper);
}

.card {
  padding: 1.5rem 1.35rem;
  background: #fff;
}

.card h3 {
  font-family: var(--rh-font-display);
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
  color: var(--rh-ink);
}

.card p {
  font-size: 0.95rem;
  color: var(--rh-ink-soft);
  line-height: 1.65;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rh-border);
  padding: 2rem 1.25rem;
  font-size: 0.875rem;
  color: var(--rh-mist);
  background: var(--rh-void);
}

.footer-inner {
  max-width: var(--rh-max);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--rh-chalk);
  text-decoration: none;
}

.footer-brand:hover { color: var(--rh-chalk); }

.footer-brand img {
  width: 28px;
  height: 28px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--rh-mist);
  margin-top: 0.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a { color: var(--rh-mist); }
.footer-links a:hover { color: var(--rh-gold); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(154, 166, 184, 0.7);
  padding-top: 0.5rem;
  border-top: 1px solid var(--rh-border);
}

/* ── Motion ── */
.motion-ready .hero-copy .eyebrow,
.motion-ready .hero-copy h1,
.motion-ready .hero-copy .lead,
.motion-ready .hero-copy .hero-cred,
.motion-ready .hero-copy .hero-actions {
  opacity: 0;
  transform: translateY(18px);
}

.motion-ready.is-loaded .hero-copy .eyebrow {
  animation: rh-rise 0.7s var(--rh-ease) 0.08s both;
}
.motion-ready.is-loaded .hero-copy h1 {
  animation: rh-rise 0.75s var(--rh-ease) 0.16s both;
}
.motion-ready.is-loaded .hero-copy .lead {
  animation: rh-rise 0.75s var(--rh-ease) 0.26s both;
}
.motion-ready.is-loaded .hero-copy .hero-cred {
  animation: rh-rise 0.7s var(--rh-ease) 0.34s both;
}
.motion-ready.is-loaded .hero-copy .hero-actions {
  animation: rh-rise 0.7s var(--rh-ease) 0.42s both;
}

.motion-ready .hero-aside {
  opacity: 0;
  transform: translateX(22px);
}

.motion-ready.is-loaded .hero-aside {
  animation: rh-aside-in 0.85s var(--rh-ease) 0.38s both;
}

.motion-ready .hero-motif {
  opacity: 0;
}

.motion-ready.is-loaded .hero-motif {
  animation: rh-motif-in 1.1s var(--rh-ease) 0.5s both;
}

@keyframes rh-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rh-aside-in {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes rh-motif-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 0.06; transform: scale(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--rh-ease), transform 0.7s var(--rh-ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--rh-ease), transform 0.55s var(--rh-ease);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.22s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.34s; }

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .menu-toggle { display: none; }

  .nav {
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    padding: 0;
    background: transparent;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    overflow: visible;
    transition: none;
    width: auto; height: auto;
  }

  .nav-links {
    flex-direction: row;
    gap: 0.15rem 1.15rem;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 0.35rem 0;
  }

  .nav-cta { display: none; }
  .header-cta { display: inline-flex; }

  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    gap: 3rem;
    padding-bottom: 2.5rem;
  }

  .hero-aside {
    padding: 0 0 0 1.5rem;
    border-top: none;
    border-left: 1px solid var(--rh-border);
  }

  .hero-actions { flex-direction: row; }

  .service-row {
    grid-template-columns: 3.25rem 1fr;
    gap: 1.5rem;
  }

  .why-columns {
    grid-template-columns: 1fr 1fr;
    gap: 0 2.5rem;
  }

  .why-block:nth-child(odd) {
    border-right: 1px solid var(--rh-border);
    padding-right: 1.5rem;
  }

  .team-profile {
    grid-template-columns: minmax(14rem, 20rem) 1fr;
    gap: 2.75rem;
    align-items: center;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .brand-wordmark { height: 48px; }

  .hero {
    min-height: min(88vh, 820px);
    padding-top: 7rem;
  }

  .why-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .brand-wordmark { display: none; }
  .brand-mark { display: block; }

  .criteria-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .hero h1 { max-width: 12ch; }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .service-row,
  .why-block,
  .criteria-list li,
  .team-photo,
  .team-photo img,
  .reveal,
  .reveal-stagger > *,
  .gold-rule {
    transition: none !important;
    animation: none !important;
  }

  .reveal,
  .reveal-stagger > *,
  .motion-ready .hero-copy .eyebrow,
  .motion-ready .hero-copy h1,
  .motion-ready .hero-copy .lead,
  .motion-ready .hero-copy .hero-cred,
  .motion-ready .hero-copy .hero-actions,
  .motion-ready .hero-aside,
  .motion-ready .hero-motif {
    opacity: 1 !important;
    transform: none !important;
  }

  .gold-rule { transform: scaleX(1) !important; }

  .team-profile:hover .team-photo img { transform: none; }
}

/* Legal pages (privacy, text message terms): smaller headings, readable line length */
.legal-text { max-width: 72ch; }
.section .legal-text h2 { font-size: 1.2rem; margin: 1.8rem 0 0.45rem; }
.legal-text p, .legal-text ul { margin-bottom: 0.8rem; line-height: 1.6; }
.legal-text ul { padding-left: 1.2rem; }
.legal-text li { margin-bottom: 0.3rem; }
