/* ===========================================================
   Modern Method Build LLC - homepage concept
   Design language: Bold Contrast (type, spacing, composition, motion)
   Palette: Modern Method Build's own brand colors
     #3757f7  primary blue      (modernmethodbuild.com theme CSS, 90 uses)
     #071e93  deep blue         (their button gradient partner)
     #232f4b  navy              (their theme CSS, 50 uses)
     #4158a0  logo blue         (logo.svg .st2)
     #1e2845  logo mark navy    (logo2.svg)
     #f4f8fc  pale blue-white   (their section background)
     #fdfdfd  off-white         (logo.svg .st1)
   Type: Archivo (display) + Source Sans 3 (body)
   =========================================================== */

:root {
  /* Their blues */
  --blue:        #3757f7;
  --blue-deep:   #071e93;
  --blue-logo:   #4158a0;
  --blue-lift:   #8fa6ff;  /* #3757f7 lightened for text on dark bands */
  --blue-ink:    #2438a8;  /* #3757f7 deepened for small text on light bands */
  --blue-glow:   rgba(55, 87, 247, 0.28);
  --blue-hair:   rgba(55, 87, 247, 0.32);

  /* Their darks, deepened within family */
  --ink:         #0e1526;
  --ink-2:       #16203a;
  --navy:        #232f4b;
  --navy-line:   rgba(255, 255, 255, 0.12);

  /* Their lights */
  --paper:       #f4f8fc;
  --paper-2:     #e6ecf5;
  --white:       #fdfdfd;

  /* Text */
  --text-dark:        #131a2b;
  --text-body:        #4a5262;
  --text-muted:       #667085;
  --text-light:       rgba(255, 255, 255, 0.92);
  --text-light-body:  rgba(255, 255, 255, 0.78);
  --text-light-muted: rgba(255, 255, 255, 0.62);

  /* Type */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --wrap: min(90%, 1240px);
  --wrap-wide: min(94%, 1520px);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --band-y: clamp(4rem, 8vw, 8.5rem);
  --nav-h: 84px;

  /* Motion (Bold Contrast: snappy) */
  --snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-dark);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 0.96;
  font-weight: 700;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 3px solid var(--blue-lift);
  outline-offset: 3px;
}

/* ---------- shared pieces ---------- */
.wrap { width: var(--wrap); margin-inline: auto; }
.wrap-wide { width: var(--wrap-wide); margin-inline: auto; }

.band { padding-block: var(--band-y); position: relative; }
.band--ink { background: var(--ink); color: var(--text-light-body); }
.band--ink-2 { background: var(--ink-2); color: var(--text-light-body); }
.band--paper { background: var(--paper); }
.band--paper-2 { background: var(--paper-2); }

.band--ink h2, .band--ink h3,
.band--ink-2 h2, .band--ink-2 h3,
.cta h2, .cta h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--eyebrow-color, var(--blue-ink));
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}
.eyebrow::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  background: currentColor;
  opacity: 0.35;
  max-width: 120px;
}
.band--ink, .band--ink-2, .hero, .cta, .footer { --eyebrow-color: var(--blue-lift); }

.h-xl {
  font-size: clamp(2.35rem, 5.6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-transform: uppercase;
}
.h-lg {
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.lede {
  font-size: clamp(1.06rem, 1rem + 0.45vw, 1.32rem);
  line-height: 1.6;
}

/* Buttons: solid blue block with a sliding fill (Bold Contrast, aggressive hover) */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  padding: 1.15rem 1.7rem;
  min-height: 48px;
  border: 2px solid var(--btn-bg);
  overflow: hidden;
  transition: transform 0.35s var(--snap), border-color 0.3s ease, color 0.3s ease;
  will-change: transform;
}
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue-deep);
  transform: translateX(-101%);
  transition: transform 0.42s var(--out);
  z-index: 0;
}
.btn:hover::before { transform: translateX(0); }
.btn__arw { width: 15px; height: 15px; flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--ink); border-color: #fff; }

.btn--dark {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
}
.btn--dark::before { background: var(--blue); }

.btn--line {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: rgba(19, 26, 43, 0.28);
}
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: #fff; border-color: var(--ink); }

.textlink {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue-ink);
  border-bottom: 2px solid var(--blue-hair);
  padding-bottom: 3px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.textlink:hover { border-color: var(--blue); color: var(--blue-deep); }
.band--ink .textlink, .band--ink-2 .textlink {
  color: var(--blue-lift);
  border-color: rgba(143, 166, 255, 0.4);
}
.band--ink .textlink:hover, .band--ink-2 .textlink:hover { color: #fff; border-color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}
.nav.is-solid {
  background: var(--ink);
  box-shadow: 0 1px 0 var(--navy-line);
  height: 72px;
}
.nav__inner {
  width: var(--wrap-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__logo { display: block; flex: none; }
.nav__logo img {
  width: auto;
  height: 46px;
  max-width: 210px;
  object-fit: contain;
  transition: height 0.35s ease;
}
.nav.is-solid .nav__logo img { height: 40px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-light);
  padding-block: 0.4rem;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue-lift);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--out);
}
.nav__link:hover::after { transform: scaleX(1); }

.nav__cta {
  padding: 0.85rem 1.25rem;
  min-height: 44px;
  font-size: 0.74rem;
  color: #fff;
}

.burger {
  display: none;
  position: relative;
  z-index: 120;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: background 0.25s ease;
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform 0.35s var(--out);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.burger.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 3rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.55s var(--out);
  pointer-events: none;
  overflow-y: auto;
}
.menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
/* Rule 20: .burger's z-index:120 is trapped inside .nav's own stacking context
   (.nav is z-index:90), so while the menu (z-index:110) is open the close X was
   painted underneath it and could not be tapped. Lift the nav above the overlay
   for exactly the duration the menu is open; nothing else on the page sits
   between z-index 3 and 110, and the closed state is untouched. */
body.is-locked .nav { z-index: 130; }
.menu__list { list-style: none; margin: 0 0 2rem; padding: 0; }
.menu__list li { border-bottom: 1px solid var(--navy-line); }
.menu__link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding-block: 0.75rem;
}
.menu__meta { color: var(--text-light-muted); font-size: 0.98rem; }
.menu__meta a { color: #fff; text-decoration: none; display: inline-block; padding-block: 0.4rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-light-body);
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: stretch;
  overflow: hidden;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)) clamp(2rem, 4.5vw, 4.5rem)
           clamp(2.5rem, 5vw, 4.5rem) max(var(--gutter), calc((100vw - min(94vw, 1520px)) / 2));
}
.hero__index {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue-lift);
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 3.75vw, 3.55rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.042em;
  text-transform: uppercase;
  text-wrap: balance;
  color: #fff;
  margin-bottom: 1.6rem;
}
.hero h1 .accent { color: var(--blue-lift); }
.hero__sub {
  max-width: 46ch;
  font-size: clamp(1.04rem, 0.98rem + 0.4vw, 1.24rem);
  color: var(--text-light-body);
  margin-bottom: 2.2rem;
}
.hero__rule {
  width: 82px;
  height: 4px;
  background: var(--blue);
  margin-bottom: 2.1rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__media { position: relative; overflow: hidden; min-height: 46svh; }
.hero__media img {
  position: absolute;
  inset: -6% 0 -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 21, 38, 0.92) 0%, rgba(14, 21, 38, 0.45) 22%, rgba(14, 21, 38, 0) 48%);
  pointer-events: none;
}
.hero__tag {
  position: absolute;
  left: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: 2;
  max-width: calc(100% - 2rem);
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.7rem 1.1rem;
}

.hero__strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(0.62rem, 1.2vw, 0.74rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.85rem 0;
}
.hero__strip ul {
  width: var(--wrap-wide);
  margin-inline: auto;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem clamp(1rem, 3vw, 2.75rem);
}
.hero__strip li { display: flex; align-items: center; gap: 0.6rem; }
.hero__strip li::before {
  content: "";
  width: 6px; height: 6px;
  background: #fff;
  flex: none;
}

/* ---------- story ---------- */
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.story h2 { margin-bottom: 1.6rem; }
.story__body { max-width: 56ch; }
.story__body p { color: var(--text-light-body); }
.story__figure { position: relative; }
.story__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story__figure figcaption {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-lift);
  padding-top: 0.9rem;
}
.story__facts {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--navy-line);
}
.story__facts li {
  border-bottom: 1px solid var(--navy-line);
  padding: 1.05rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 1rem;
  align-items: baseline;
}
.story__facts dt, .story__facts .k {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-lift);
}
.story__facts .v { color: var(--text-light); font-size: 1rem; }

/* ---------- full bleed palette cleanser ---------- */
.bleed {
  position: relative;
  overflow: hidden;
  border-block: 5px solid var(--blue);
}
.bleed img {
  width: 100%;
  height: clamp(220px, 42vw, 520px);
  object-fit: cover;
  object-position: center 58%;
}

/* ---------- services ---------- */
.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4.5rem);
  padding-block: clamp(2.25rem, 4.5vw, 4rem);
  border-top: 2px solid rgba(19, 26, 43, 0.12);
}
.svc:first-of-type { border-top: 0; }
.svc--flip .svc__media { order: -1; }
.svc__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(55, 87, 247, 0.45);
  margin-bottom: 1.1rem;
}
.svc h3 {
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
}
.svc__body { max-width: 48ch; margin-bottom: 1.5rem; }
.svc__list {
  list-style: none;
  margin: 0 0 1.7rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.svc__list li {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-ink);
  border: 2px solid var(--blue-hair);
  padding: 0.5rem 0.8rem;
}
.svc__media { position: relative; overflow: hidden; }
.svc__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.7s var(--out);
}
.svc:hover .svc__media img { transform: scale(1.04); }

/* ---------- trades index (signature) ---------- */
.trades__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.trades__head p { color: var(--text-light-body); max-width: 52ch; }
.trades__group + .trades__group { margin-top: clamp(2.5rem, 5vw, 4rem); }
.trades__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue-lift);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 0.8rem;
  margin-bottom: 0;
}
.trades__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.trades__list li {
  border-bottom: 1px solid var(--navy-line);
  border-right: 1px solid var(--navy-line);
  padding: clamp(1rem, 1.8vw, 1.5rem) clamp(0.9rem, 1.6vw, 1.4rem);
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  overflow: hidden;
}
.trades__list li:nth-child(3n) { border-right: 0; }
.trades__list .n {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue-lift);
  flex: none;
}
.trades__list .t {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.7vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}
.trades__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}
.trades__note p { color: var(--text-light-muted); margin: 0; max-width: 46ch; }

/* ---------- work ---------- */
.work__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.work__card {
  background: var(--white);
  border: 2px solid rgba(19, 26, 43, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.45s var(--out);
}
.work__card:hover { border-color: var(--blue); transform: translateY(-4px); }
.work__card--wide { grid-column: 1 / -1; }
.work__card--wide .work__media img { aspect-ratio: 21 / 9; }
.work__media { overflow: hidden; }
.work__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.7s var(--out);
}
.work__card:hover .work__media img { transform: scale(1.05); }
.work__text { padding: clamp(1.3rem, 2.4vw, 2rem); }
.work__meta {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-ink);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.9rem;
}
.work__card h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}
.work__card p { font-size: 0.99rem; color: var(--text-body); }

/* ---------- voices ---------- */
.voices__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.voice {
  border: 1px solid var(--navy-line);
  border-top: 3px solid var(--blue);
  padding: clamp(1.5rem, 2.8vw, 2.4rem);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
}
.voice blockquote {
  margin: 0 0 1.5rem;
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.16rem);
  line-height: 1.6;
  color: var(--text-light);
}
.voice cite {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-lift);
  margin-top: auto;
}

/* ---------- area ---------- */
.area__head { max-width: 58ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.area__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.5rem;
}
.area__list li {
  font-family: var(--font-display);
  font-size: clamp(0.74rem, 1.3vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  background: var(--white);
  border: 2px solid rgba(19, 26, 43, 0.1);
  padding: 0.6rem 0.9rem;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.area__list li:hover { border-color: var(--blue); color: var(--blue-ink); }
.area__more {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
}

/* ---------- cta ---------- */
.cta { background: var(--ink); color: var(--text-light-body); position: relative; overflow: hidden; }
.cta::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: min(70vw, 780px);
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--blue-glow) 0%, rgba(55, 87, 247, 0) 68%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; }
.cta h2 { margin-bottom: 1.4rem; }
.cta p { color: var(--text-light-body); max-width: 52ch; margin-bottom: 2.2rem; }
.cta__row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- footer ---------- */
.footer { background: var(--ink-2); color: var(--text-light-muted); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--navy-line);
}
.footer__logo img { width: auto; height: 52px; max-width: 220px; object-fit: contain; margin-bottom: 1.35rem; }
.footer__blurb { color: var(--text-light-muted); font-size: 0.98rem; max-width: 34ch; }
.footer h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-lift);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a, .footer li span {
  display: inline-block;
  color: var(--text-light-body);
  text-decoration: none;
  padding-block: 0.65rem;
  font-size: 0.97rem;
  transition: color 0.25s ease;
}
.footer li a:hover { color: #fff; }
.footer__base {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.86rem;
}

/* ---------- 404 ---------- */
.err {
  background: var(--ink);
  color: var(--text-light-body);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 3rem) 4rem;
}
.err__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 15rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 3px rgba(55, 87, 247, 0.5);
  margin-bottom: 1.5rem;
}
.err h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 1.2rem;
}
.err p { max-width: 48ch; margin-bottom: 2rem; color: var(--text-light-body); }

/* ---------- motion ---------- */
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .wipe { clip-path: inset(0 100% 0 0); }

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

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .burger { display: flex; }
  .hero {
    position: relative;
    display: flex;
    height: 100vh;
    height: 100svh;
    min-height: 0;
  }
  .hero__copy {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 0;
    padding: calc(var(--nav-h) + 2rem) var(--gutter) clamp(5.4rem, 11svh, 7rem);
  }
  .hero__media { position: absolute; inset: 0; min-height: 0; }
  .hero__media::after {
    background: linear-gradient(90deg, rgba(14, 21, 38, 0.96) 0%, rgba(14, 21, 38, 0.9) 56%, rgba(14, 21, 38, 0.52) 100%);
  }
  .hero__strip { position: absolute; inset: auto 0 0; z-index: 3; }
  .story__grid { grid-template-columns: minmax(0, 1fr); }
  .trades__head { grid-template-columns: minmax(0, 1fr); }
  .trades__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trades__list li:nth-child(3n) { border-right: 1px solid var(--navy-line); }
  .trades__list li:nth-child(2n) { border-right: 0; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .svc, .svc--flip { grid-template-columns: minmax(0, 1fr); }
  .svc--flip .svc__media { order: 0; }
  .work__grid { grid-template-columns: minmax(0, 1fr); }
  .work__card--wide .work__media img { aspect-ratio: 16 / 10; }
  .voices__grid { grid-template-columns: minmax(0, 1fr); }
  .story__facts li { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(2.05rem, 9.25vw, 2.45rem);
    line-height: 0.98;
  }
  .trades__list { grid-template-columns: minmax(0, 1fr); }
  .trades__list li { border-right: 0 !important; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; justify-content: space-between; }
  .hero__cta { gap: 0.7rem; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(14, 21, 38, 0.9) 0%, rgba(14, 21, 38, 0.82) 68%, rgba(14, 21, 38, 0.94) 100%);
  }
}

/* ---------- tap targets (44px minimum) ---------- */
.textlink {
  display: inline-block;
  padding: 0.8rem 0 0.65rem;
  min-height: 44px;
}
.story__facts .v a {
  display: inline-block;
  padding-block: 0.65rem;
  min-height: 44px;
}

/* ---------- compact nav CTA on small screens ---------- */
@media (max-width: 1024px) {
  .nav__inner { gap: 0.75rem; }
  .nav__cta {
    padding: 0.72rem 0.9rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    gap: 0.5rem;
    white-space: nowrap;
  }
  .nav__logo img { height: 40px; max-width: 150px; }
  .nav.is-solid .nav__logo img { height: 36px; }
}
@media (max-width: 420px) {
  .nav__cta .btn__arw { display: none; }
  .nav__cta { padding: 0.72rem 0.75rem; }
  .nav__logo img { max-width: 128px; height: 36px; }
}

/* ---------- contrast gate fixes (rule 51) ---------- */
/* 1. transparent nav sits over bright hero sky: add a top scrim */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 21, 38, 0.78) 0%, rgba(14, 21, 38, 0.32) 62%, rgba(14, 21, 38, 0) 100%);
  transition: opacity 0.35s ease;
}
.nav.is-solid::before { opacity: 0; }
.nav__link { color: #fff; }

/* 2. closed mobile menu must not be sampled or focusable */
.menu {
  visibility: hidden;
  transition: clip-path 0.55s var(--out), visibility 0s linear 0.55s;
}
.menu.is-open {
  visibility: visible;
  transition: clip-path 0.55s var(--out), visibility 0s linear 0s;
}
.menu__meta { color: var(--text-light-body); }

/* 3. white on the mid brand blue is marginal at small sizes: use the deep blue */
.area__more {
  background: var(--blue-deep) !important;
  border-color: var(--blue-deep) !important;
}

/* long email label must wrap inside its button on narrow screens */
@media (max-width: 640px) {
  .cta__row .btn { white-space: normal; align-items: center; }
  .cta__row .btn > span { overflow-wrap: anywhere; min-width: 0; text-align: left; }
  .cta__row .btn { font-size: 0.74rem; letter-spacing: 0.08em; padding-inline: 1.15rem; }
}
