/* ==========================================================================
   RMB Building & Design, LLC - homepage concept
   Design language: Urban Sophisticate (type, spacing, composition, motion only)
   Palette: RMB's own brand colors (logo + site theme tokens)
   Display: Spectral. Body: Work Sans.
   ========================================================================== */

:root {
  /* Brand, extracted from RMB's logo and Avada global palette */
  --navy-deep:   #000e28;   /* deepest band, from their homepage markup */
  --navy:        #052b5f;   /* brand navy, Avada color5 + logo lettering #00275d */
  --navy-soft:   #0a2049;   /* card / mid band between the two */
  --gold:        #b99e63;   /* brand gold, Avada color6 + logo column #b5985a */
  --gold-light:  #d8c294;   /* lightened gold for small text on dark */
  --gold-deep:   #7d6329;   /* deepened gold for text on the light band */
  --paper:       #f2f4f7;   /* Avada color4 */
  --paper-2:     #e7eaf0;
  --ink:         #212934;   /* their heading color */
  --body:        #4a4e57;   /* their body color */
  --muted:       #5b616b;
  --line-dark:   rgba(255,255,255,0.14);
  --line-light:  rgba(33,41,52,0.14);
  --on-dark:     rgba(255,255,255,0.80);
  --on-dark-2:   rgba(255,255,255,0.62);

  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body:    "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap:      min(90%, 1220px);
  --wrap-wide: min(94%, 1500px);
  --gutter:    clamp(1.25rem, 4vw, 3rem);
  --pad-y:     clamp(4.5rem, 8vw, 8rem);
  --nav-h:     84px;

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--body);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 0.97rem + 0.18vw, 1.075rem);
  line-height: 1.72;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
}

.wrap { width: var(--wrap); margin-inline: auto; }
.wrap-wide { width: var(--wrap-wide); margin-inline: auto; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eyebrow-color, var(--gold-deep));
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}
.eyebrow::after {
  content: "";
  height: 1px;
  width: clamp(28px, 5vw, 64px);
  background: currentColor;
  opacity: 0.55;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::before {
  content: "";
  height: 1px;
  width: clamp(28px, 5vw, 64px);
  background: currentColor;
  opacity: 0.55;
}

.section-title {
  font-size: clamp(2rem, 1.35rem + 2.55vw, 3.35rem);
  line-height: 1.09;
  max-width: 20ch;
}
.section-lede {
  font-size: clamp(1.02rem, 0.98rem + 0.22vw, 1.15rem);
  max-width: 56ch;
  margin: 1.5rem 0 0;
}

.band-dark  { background: var(--navy-deep); color: var(--on-dark); --eyebrow-color: var(--gold-light); }
.band-navy  { background: var(--navy);      color: var(--on-dark); --eyebrow-color: var(--gold-light); }
.band-light { background: var(--paper);     color: var(--body);    --eyebrow-color: var(--gold-deep); }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4,
.band-navy h1, .band-navy h2, .band-navy h3, .band-navy h4 { color: #ffffff; }
.band-light h1, .band-light h2, .band-light h3, .band-light h4 { color: var(--ink); }

.section { padding-block: var(--pad-y); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.6rem 0.95rem 1.85rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  min-height: 48px;
}
.btn__dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: 0 0 auto;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease);
}
.btn__dot svg { width: 11px; height: 11px; display: block; }
.btn:hover .btn__dot { transform: translateX(3px); }

.btn--gold { background: var(--gold-deep); color: #ffffff; }
.btn--gold .btn__dot { background: rgba(255,255,255,0.2); }
.btn--gold:hover { background: #6a5322; }

.btn--onDark { background: var(--gold); color: #14100a; }
.btn--onDark .btn__dot { background: rgba(0,0,0,0.18); }
.btn--onDark:hover { background: var(--gold-light); }

.btn--ghostDark { border-color: rgba(255,255,255,0.34); color: #ffffff; }
.btn--ghostDark .btn__dot { background: rgba(255,255,255,0.14); }
.btn--ghostDark:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

.btn--ghostLight { border-color: rgba(33,41,52,0.3); color: var(--ink); }
.btn--ghostLight .btn__dot { background: rgba(33,41,52,0.08); }
.btn--ghostLight:hover { background: rgba(33,41,52,0.06); border-color: rgba(33,41,52,0.55); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.5rem;
  border-bottom: 1px solid currentColor;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 110; /* must sit above .menu (100) so the burger X stays clickable */
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease), height 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav.is-solid {
  background: rgba(0,14,40,0.96);
  height: 70px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.nav { pointer-events: none; }
.nav.is-solid { pointer-events: auto; }
.nav__inner { pointer-events: auto; }
.nav__inner {
  width: var(--wrap-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__logo img {
  width: auto;
  height: 56px;
  max-width: 210px;
  object-fit: contain;
  transition: height 0.5s var(--ease);
}
.nav.is-solid .nav__logo img { height: 46px; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); }
.nav__link {
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-block: 0.4rem;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__link:hover { color: #ffffff; }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  color: #14100a;
  background: var(--gold);
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav__cta:hover { background: var(--gold-light); }

.burger {
  display: none;
  width: 48px; height: 48px;
  background: none; border: 0;
  cursor: pointer;
  position: relative;
  z-index: 120;
  padding: 0;
}
.burger span {
  display: block;
  width: 26px; height: 1.5px;
  background: #ffffff;
  margin: 6px auto;
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0.5s;
  overflow-y: auto;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; }
.menu__link {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  color: #ffffff;
  text-decoration: none;
  padding-block: 0.5rem;
  display: block;
  line-height: 1.25;
}
.menu__link:hover { color: var(--gold-light); }
.menu__rule { height: 1px; background: var(--line-dark); margin: 1.75rem 0; }
.menu__meta { color: var(--on-dark); font-size: 0.95rem; }
.menu__meta a { color: var(--gold-light); text-decoration: none; display: inline-block; padding-block: 0.4rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--navy-deep);
  padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 4.5rem));
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 12% 0%, rgba(185,158,99,0.13), transparent 58%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: center;
}
.hero__eyebrow { color: var(--gold-light); }
.hero h1 {
  font-size: clamp(2.25rem, 1.15rem + 3.7vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 21ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero__sub {
  margin: clamp(1.5rem, 2.6vw, 2.1rem) 0 0;
  max-width: 50ch;
  color: var(--on-dark);
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.16rem);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: clamp(1.9rem, 3vw, 2.6rem); }
.hero__media { position: relative; }
.hero__media img { position: relative; z-index: 1; }
.hero__media img {
  width: 100%;
  height: clamp(340px, 56vh, 620px);
  object-fit: cover;
}
.hero__frame {
  position: absolute;
  inset: -16px auto auto -16px;
  width: 44%;
  height: 44%;
  border: 1px solid rgba(185,158,99,0.55);
  pointer-events: none;
  max-width: 100%;
  z-index: 0;
}
.hero__caption {
  margin: 1rem 0 0;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

/* ---------- intro / the firm ---------- */
.firm__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.firm__body p { margin: 0 0 1.3rem; }
.firm__body p:last-child { margin-bottom: 0; }
.firm__mission {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(2rem, 3.5vw, 2.75rem);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.firm__mission h3 {
  font-size: 0.72rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.firm__mission p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.72rem);
  line-height: 1.42;
  color: #ffffff;
  font-style: italic;
  font-weight: 300;
}
.owners { position: relative; }
.owners img { width: 100%; height: auto; }
.owners__tag {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  max-width: 100%;
}

/* ---------- statement ---------- */
.statement { position: relative; height: clamp(300px, 52vh, 560px); overflow: hidden; }
.statement img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }

/* ---------- services ---------- */
.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5.5rem);
}
.svc:first-of-type { margin-top: clamp(2.5rem, 5vw, 4rem); }
.svc--flip .svc__media { order: 2; }
.svc__media img { width: 100%; height: clamp(300px, 44vh, 520px); object-fit: cover; }
.svc__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 1rem;
}
.svc h3 { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.5rem); margin-bottom: 1.2rem; }
.svc p { margin: 0 0 1.35rem; max-width: 48ch; }
.svc__list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.svc__list li {
  font-size: 0.83rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.svc__list li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--gold-deep);
  border-radius: 50%;
  flex: 0 0 auto;
}

/* ---------- process ---------- */
.proc__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.proc__steps {
  margin-top: clamp(2.75rem, 5vw, 4.25rem);
  border-top: 1px solid var(--line-dark);
}
.proc__step {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.6rem, 2.6vw, 2.3rem);
  border-bottom: 1px solid var(--line-dark);
  align-items: start;
}
.proc__n {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 0.9vw, 2rem);
  color: var(--gold-light);
  line-height: 1;
  padding-top: 0.15rem;
}
.proc__step h3 { font-size: clamp(1.15rem, 1rem + 0.55vw, 1.42rem); line-height: 1.3; }
.proc__step p { margin: 0; color: var(--on-dark); }
.proc__psa {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--navy-soft);
  border-left: 2px solid var(--gold);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
}
.proc__psa h3 { font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem); }
.proc__psa p { margin: 0; color: var(--on-dark); }

/* ---------- portfolio index (signature) ---------- */
.index__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.index {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: start;
}
.index__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.index__item { border-bottom: 1px solid var(--line-dark); }
.index__btn {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.05rem, 0.95rem + 0.42vw, 1.3rem);
  color: rgba(255,255,255,0.68);
  padding: 0.78rem 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 46px;
  transition: color 0.35s var(--ease), padding-left 0.45s var(--ease);
}
.index__btn span.mark {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  flex: 0 0 auto;
  transition: opacity 0.35s var(--ease);
}
.index__btn:hover, .index__btn:focus-visible { color: #ffffff; padding-left: 0.85rem; outline: none; }
.index__item.is-active .index__btn { color: #ffffff; padding-left: 0.85rem; }
.index__item.is-active .index__btn span.mark { opacity: 1; }
.index__btn:focus-visible { box-shadow: inset 0 0 0 1px var(--gold); }

.index__stage {
  position: sticky;
  top: 96px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--navy-soft);
}
.index__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.75s var(--ease), transform 1.2s var(--ease);
}
.index__stage img.is-active { opacity: 1; transform: scale(1); }
.index__stageTag {
  position: absolute;
  left: 0; bottom: 0;
  background: rgba(0,14,40,0.88);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  padding: 0.7rem 1.3rem;
  max-width: 100%;
}
.index__rail { display: none; }

/* ---------- testimonials ---------- */
.quotes {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
.quote {
  background: #ffffff;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
}
.quote p {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink);
}
.quote footer {
  margin-top: auto;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.quote footer strong { color: var(--ink); font-weight: 500; display: block; letter-spacing: 0.09em; }

/* ---------- team ---------- */
.team__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(0.92); }
.member h3 { font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); margin-top: 1rem; }
.member p {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  line-height: 1.5;
}
.team__quote {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(2rem, 3.5vw, 2.75rem);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 1rem + 0.95vw, 1.68rem);
  line-height: 1.45;
  color: #ffffff;
  max-width: 34ch;
  margin-inline: auto;
  text-align: center;
}

/* ---------- credentials ---------- */
.creds__logos {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 5vw, 4.5rem);
}
.creds__logos img { height: clamp(74px, 8vw, 108px); width: auto; opacity: 0.92; }
.creds__note {
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  max-width: 68ch;
  text-align: center;
  color: var(--on-dark);
  font-size: 0.98rem;
}

/* ---------- green ---------- */
.green {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
}
.green img { width: 100%; height: clamp(260px, 38vh, 420px); object-fit: cover; }
.green p { margin: 0 0 1.25rem; }

/* ---------- cta ---------- */
.cta { text-align: center; }
.cta h2 { margin-inline: auto; }
.cta__row {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
.cta__meta {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  text-align: left;
}
.cta__meta h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}
.cta__meta p { margin: 0; color: var(--on-dark); }
.cta__meta a { color: #ffffff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); display: inline-block; padding-block: 0.3rem; }
.cta__meta a:hover { border-color: var(--gold); }

/* ---------- footer ---------- */
.footer { background: var(--navy-deep); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
.footer__logo img { width: auto; height: 68px; max-width: 220px; object-fit: contain; }
.footer__tag {
  margin: 1.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-light);
  font-style: italic;
}
.footer h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer a { color: var(--on-dark); text-decoration: none; display: inline-block; padding-block: 0.65rem; }
.footer a:hover { color: #ffffff; }
.footer p { color: var(--on-dark); margin: 0 0 0.4rem; }
.footer__bottom {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--on-dark-2);
  font-size: 0.85rem;
}

/* ---------- 404 ---------- */
.error {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 4rem;
  background: var(--navy-deep);
}
.error__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: 1;
  color: rgba(185,158,99,0.28);
}
.error h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); margin-top: 1rem; }
.error p { max-width: 46ch; margin: 1.5rem auto 2.25rem; color: var(--on-dark); }

/* ---------- motion ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .hero h1 { max-width: 18ch; }
  .hero__media img { height: clamp(280px, 44vh, 420px); }
  .firm__grid, .firm__mission, .proc__head, .index__head, .green,
  .proc__psa { grid-template-columns: minmax(0, 1fr); }
  .index { grid-template-columns: minmax(0, 1fr); }
  .team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .svc, .svc--flip { grid-template-columns: minmax(0, 1fr); }
  .svc--flip .svc__media { order: 0; }
  .svc__media img { height: clamp(240px, 36vh, 340px); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .proc__step { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .proc__step p { grid-column: 2; }
  .cta__meta { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .cta__meta { border-top: 1px solid var(--line-dark); }
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* index becomes a snap rail on touch widths */
  .index__list, .index__stage { display: none; }
  .index__rail {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }
  .index__rail::-webkit-scrollbar { display: none; }
  .index__card { flex: 0 0 78%; scroll-snap-align: start; }
  .index__card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
  .index__card h3 { font-size: 1.1rem; margin-top: 0.85rem; }
}

@media (max-width: 560px) {
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .hero__frame { display: none; }
  .btn { width: 100%; justify-content: space-between; }
  .index__card { flex: 0 0 86%; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
