/* =============================================================
   BAWE — components
   Nav, footer, buttons, cards, badges, marquee, forms.
   Depends on tokens.css + base.css. Load third.
   ============================================================= */

/* =========================================================
   The bolt+house glyph
   One cached SVG, tinted to currentColor with a mask so it
   works on light chrome, dark footers and the footer rule.
   ========================================================= */

.glyph {
  display: block;
  background-color: currentColor;
  -webkit-mask: url("/logos/bawe-glyph-mask.svg") center / contain no-repeat;
          mask: url("/logos/bawe-glyph-mask.svg") center / contain no-repeat;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--bawe-blue-600);
  color: #fff;
}
.btn--primary:hover {
  background: var(--bawe-blue-500);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border-color: var(--bawe-steel-200);
  color: var(--bawe-ink-900);
}
.btn--outline:hover {
  border-color: var(--bawe-blue-600);
  color: var(--bawe-blue-600);
}

/* On dark surfaces */
.section--dark .btn--outline,
.on-dark .btn--outline {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.section--dark .btn--outline:hover,
.on-dark .btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Text link with arrow — used to leave a section */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.link-arrow span[aria-hidden] { transition: transform var(--dur-fast) var(--ease); }
.link-arrow:hover span[aria-hidden] { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--bawe-blue-400); }
.section--dark .link-arrow:hover { color: #fff; }

/* =========================================================
   Site nav
   ========================================================= */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bawe-paper);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-med) var(--ease),
              border-color var(--dur-med) var(--ease);
}
.site-nav.is-scrolled {
  border-bottom-color: var(--bawe-steel-200);
  box-shadow: var(--shadow-nav);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: var(--nav-h);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Logo lockup: bolt+house glyph + wordmark */
.site-nav__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--bawe-ink-900);
}
.site-nav__logo .glyph {
  width: 30px;
  height: 24px;
  color: var(--bawe-blue-600);
  flex: none;
}
.site-nav__wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav__links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}
.site-nav__links a {
  position: relative;
  padding-block: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bawe-ink-800);
}
.site-nav__links a:hover { color: var(--bawe-blue-600); }
.site-nav__links a[aria-current="page"] { color: var(--bawe-blue-600); }
.site-nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--bawe-blue-600);
}

.site-nav__cta { display: none; }

.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: calc(var(--space-3) * -1);
  padding: 0;
  background: none;
  border: 0;
  color: var(--bawe-ink-900);
  cursor: pointer;
}
.site-nav__toggle svg { width: 22px; height: 22px; }
.site-nav__toggle .icon-close { display: none; }
.site-nav__toggle[aria-expanded="true"] .icon-close { display: block; }
.site-nav__toggle[aria-expanded="true"] .icon-open { display: none; }

@media (min-width: 1024px) {
  .site-nav__links { display: flex; }
  .site-nav__cta { display: inline-flex; }
  .site-nav__toggle { display: none; }
}

/* Mobile drawer */
.site-drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-8) var(--container-pad) var(--space-12);
  background: var(--bawe-ink-900);
  color: var(--on-dark-body);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-med) var(--ease),
              transform var(--dur-med) var(--ease),
              visibility var(--dur-med) var(--ease);
}
.site-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-drawer__links { display: grid; gap: var(--space-2); }
.site-drawer__links a {
  display: block;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--on-dark-rule);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}
.site-drawer__links a[aria-current="page"] { color: var(--bawe-blue-400); }
.site-drawer__foot { display: grid; gap: var(--space-3); }
.site-drawer__foot a {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--on-dark-body);
  text-decoration: none;
}
.site-drawer__foot a:hover { color: #fff; }

@media (min-width: 1024px) {
  .site-drawer { display: none; }
}

body.nav-open { overflow: hidden; }

/* =========================================================
   Marquee strip — home hero only
   ========================================================= */

.marquee {
  display: flex;
  overflow: hidden;
  background: var(--bawe-blue-600);
  color: #fff;
  user-select: none;
}
.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--space-8);
  padding-block: var(--space-3);
  padding-right: var(--space-8);
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.125rem, 2.4vw, 1.75rem);
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
  animation: marquee 40s linear infinite;
}
.marquee__track span[aria-hidden] {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7em;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Mobile: one line, static. */
@media (max-width: 767px) {
  .marquee__track {
    animation: none;
    flex: 1 1 auto;
    justify-content: flex-start;
    padding-inline: var(--container-pad);
    overflow: hidden;
    text-overflow: clip;
  }
  .marquee__track > :nth-child(n + 2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* =========================================================
   Badges / pills
   ========================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35em 0.7em;
  border-radius: var(--radius-sm);
  background: var(--bawe-blue-600);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
.badge--quiet {
  background: var(--bawe-steel-100);
  color: var(--bawe-steel-600);
}
.badge--active {
  background: var(--bawe-blue-50);
  color: var(--bawe-blue-600);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.pill {
  display: inline-flex;
  padding: 0.4em 0.75em;
  border: 1px solid var(--bawe-steel-200);
  border-radius: var(--radius-sm);
  background: var(--bawe-paper);
  color: var(--bawe-steel-600);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}
.section--dark .pill {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--on-dark-body);
}

/* =========================================================
   Project card
   ========================================================= */

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bawe-paper);
  border: 1px solid var(--bawe-steel-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-med) var(--ease),
              box-shadow var(--dur-med) var(--ease),
              transform var(--dur-med) var(--ease);
}
.project-card:hover {
  border-color: var(--bawe-blue-600);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
  color: inherit;
}

.project-card__photo {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bawe-steel-100);
}
.project-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.project-card:hover .project-card__photo img { transform: scale(1.03); }

/* Legibility wash behind the bottom tag */
.project-card__photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(2, 8, 26, 0) 0%, rgba(2, 8, 26, 0.72) 100%);
  pointer-events: none;
}

.project-card__seq {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 1;
}
.project-card__status {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 1;
  background: #fff;
  color: var(--bawe-blue-600);
}
.project-card__tag {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  z-index: 1;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  padding-right: var(--space-4);
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  flex: 1 1 auto;
}
.project-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.15;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease);
}
.project-card:hover .project-card__title { color: var(--bawe-blue-600); }

.project-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-6);
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--bawe-steel-200);
  margin-top: auto;
}
.project-card__meta dt {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--bawe-steel-500);
  margin-bottom: var(--space-2);
}
.project-card__meta dd {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--bawe-ink-800);
}

@media (min-width: 640px) {
  .project-card__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Dark-section variant — featured projects sit on ink */
.section--dark .project-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}
.section--dark .project-card:hover { border-color: var(--bawe-blue-500); }
.section--dark .project-card__title { color: #fff; }
.section--dark .project-card:hover .project-card__title { color: var(--bawe-blue-400); }
.section--dark .project-card__meta { border-top-color: rgba(255, 255, 255, 0.12); }
.section--dark .project-card__meta dd { color: var(--on-dark-body); }
/* steel-500 labels drop below AA on ink — lift them to the dark-surface muted tone. */
.section--dark .project-card__meta dt { color: var(--on-dark-mute); }

/* =========================================================
   Stat tile
   ========================================================= */

.stat {
  position: relative;
  padding: var(--space-6);
  background: var(--bawe-paper-2);
  border: 1px solid var(--bawe-steel-200);
  border-top: 3px solid var(--bawe-steel-200);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* The cobalt rule draws itself in when the tile arrives —
   the blue marker device, animated. */
.stat::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: var(--bawe-blue-600);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms var(--ease) 120ms;
}
.stat.is-in::before { transform: scaleX(1); }
.stat__num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--bawe-ink-900);
}
.stat__num sup {
  font-size: 0.4em;
  vertical-align: super;
  color: var(--bawe-blue-600);
  letter-spacing: 0;
}
.stat__label {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--bawe-ink-900);
}
.stat__desc {
  margin-top: var(--space-3);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--bawe-steel-600);
}

/* The one inverted tile, as on page 6 of the profile */
.stat--invert {
  background: var(--bawe-ink-900);
  border-color: var(--bawe-ink-900);
  border-top-color: var(--bawe-ink-800);
}
.stat--invert .stat__num,
.stat--invert .stat__label { color: #fff; }
.stat--invert .stat__num sup { color: var(--bawe-blue-500); }
.stat--invert .stat__desc { color: var(--on-dark-body); }

/* =========================================================
   Capability card (home) / service card (services)
   ========================================================= */

.capability {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: var(--space-6);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bawe-ink-900);
  color: var(--on-dark-body);
  text-decoration: none;
  isolation: isolate;
}
.capability img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.capability::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 8, 26, 0.45) 0%, rgba(2, 8, 26, 0.92) 78%);
}
.capability:hover img { transform: scale(1.04); }

.capability__label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bawe-blue-400);
}
.capability__body { margin-top: auto; }
.capability__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
}
.capability__desc {
  margin-top: var(--space-3);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--on-dark-body);
}
.capability__list {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
}
.capability__list li {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
}

/* =========================================================
   Callout — the blue-tinted note from pages 16/17
   ========================================================= */

.callout {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--bawe-blue-50);
  border-left: 3px solid var(--bawe-blue-600);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.callout__title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--bawe-blue-600);
}
.callout__body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--bawe-ink-800);
}
@media (min-width: 768px) {
  .callout {
    grid-template-columns: 200px 1fr;
    gap: var(--space-8);
    align-items: start;
  }
}

/* Dark callout — page 13 */
.callout--dark {
  background: var(--bawe-ink-900);
  border-left-color: var(--bawe-blue-500);
}
.callout--dark .callout__title { color: #fff; }
.callout--dark .callout__body { color: var(--on-dark-body); }

/* =========================================================
   Data strip — the dark company-essentials band (page 7)
   ========================================================= */

.data-strip {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--bawe-ink-900);
  border-radius: var(--radius-md);
  color: var(--on-dark-body);
}
.data-strip dt {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  margin-bottom: var(--space-2);
}
.data-strip dd {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: #fff;
}
@media (min-width: 768px) {
  .data-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: var(--space-8);
  }
}

/* =========================================================
   Site footer
   ========================================================= */

.site-footer {
  background: var(--bawe-ink-900);
  color: var(--on-dark-body);
  padding-block: var(--space-16) var(--space-8);
}

.site-footer__rule { margin-bottom: var(--space-12); }

.site-footer__grid {
  display: grid;
  gap: var(--space-12);
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
    gap: var(--space-8);
  }
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: #fff;
  text-decoration: none;
}
.site-footer__logo .glyph { width: 30px; height: 24px; color: var(--bawe-blue-500); flex: none; }
.site-footer__logo span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.site-footer__tagline {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--on-dark-body);
  max-width: 24ch;
}

.site-footer h2 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  margin-bottom: var(--space-6);
}

.site-footer__nav { display: grid; gap: var(--space-3); }
.site-footer__nav a {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark-body);
}
.site-footer__nav a:hover { color: #fff; }

.site-footer__dl { display: grid; gap: var(--space-4); margin: 0; }
.site-footer__dl dt {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  margin-bottom: var(--space-1);
}
.site-footer__dl dd {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--on-dark-body);
}
.site-footer__dl a { color: var(--on-dark-body); text-decoration: none; }
.site-footer__dl a:hover { color: #fff; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-16);
  padding-top: var(--space-6);
  border-top: 1px solid var(--on-dark-rule);
  font-size: 0.8125rem;
  color: var(--on-dark-mute);
}

/* =========================================================
   Forms
   ========================================================= */

.field { display: grid; gap: var(--space-2); }
.field label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bawe-steel-500);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bawe-paper);
  border: 1px solid var(--bawe-steel-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--bawe-ink-900);
  transition: border-color var(--dur-fast) var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--bawe-steel-400); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--bawe-steel-400); }
.field textarea { min-height: 150px; resize: vertical; }
.field__error {
  font-size: 0.8125rem;
  color: #B4243A;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #B4243A; }

/* =========================================================
   Section marker
   The profile numbers every page with a filled cobalt disc
   in the top-right corner. Ported as a per-section index.
   ========================================================= */

.section .container { position: relative; }

.section-marker {
  /* In flow, right-aligned. It used to be absolutely positioned into the
     top-right corner, which is a corner real content reaches — it sat on
     top of the director's letter and the band eyebrow. */
  display: none;
  margin: 0 0 var(--space-8) auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--bawe-blue-600);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}
.section--dark .section-marker { background: var(--bawe-blue-500); }

@media (min-width: 1024px) {
  .section-marker { display: grid; }
}

/* =========================================================
   In situ — the full-bleed photo spread
   Pages 10, 12 and 14 of the profile break the document with
   one of these. Same job here: a breath between dense sections.
   ========================================================= */

.insitu {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 60svh;
  padding-block: var(--space-24) var(--space-16);
  background: var(--bawe-ink-900);
  color: var(--on-dark-body);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 1024px) {
  .insitu { min-height: 78svh; }
}

.insitu__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.insitu__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1600ms var(--ease);
}
.insitu.is-in .insitu__media img { transform: scale(1); }

.insitu__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 8, 26, 0.62) 0%, rgba(2, 8, 26, 0.18) 42%, rgba(2, 8, 26, 0.9) 100%),
    linear-gradient(90deg, rgba(2, 8, 26, 0.7) 0%, rgba(2, 8, 26, 0) 60%);
}

.insitu__eyebrow {
  display: block;
  margin-bottom: var(--space-6);
  color: var(--bawe-blue-400);
}
.insitu__title {
  max-width: 18ch;
  color: #fff;
}
.insitu__lead {
  max-width: 56ch;
  margin-top: var(--space-6);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--on-dark-body);
}
.insitu__actions { margin-top: var(--space-8); }

.insitu__caption {
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
}

.insitu .container { position: relative; }

.insitu > .section-marker {
  position: absolute;
  top: var(--space-12);
  left: 50%;
  margin: 0;
  z-index: 1;
  transform: translateX(calc(
    min(var(--container-max), 100vw - 2 * var(--container-pad)) / 2 - 100%));
}

/* A shorter band for pages that use several of them. */
.insitu--band { min-height: 42svh; padding-block: var(--space-16) var(--space-12); }
@media (min-width: 1024px) {
  .insitu--band { min-height: 52svh; }
}

/* Photo-led page header (contact) */
.page-head--photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 38svh;
  max-width: 100%;
  background: var(--bawe-ink-900);
  color: var(--on-dark-body);
  border-bottom: 0;
  overflow: hidden;
  isolation: isolate;
}
/* Flex items default to min-width:auto and refuse to shrink below
   their content, which pushed the page wider than a phone viewport. */
.page-head--photo > .container { width: 100%; min-width: 0; }
.page-head--photo .page-head__lead { color: var(--on-dark-body); }
.page-head--photo .page-head__eyebrow { color: var(--bawe-blue-400); }
.page-head--photo h1 { color: #fff; }
.page-head__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.page-head__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.page-head__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 8, 26, 0.5) 0%, rgba(2, 8, 26, 0.3) 45%, rgba(2, 8, 26, 0.92) 100%),
    linear-gradient(90deg, rgba(2, 8, 26, 0.72) 0%, rgba(2, 8, 26, 0.05) 70%);
}

/* A tall photo beside content */
.photo-side {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bawe-steel-100);
}
.photo-side img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A row of real photographs used as a divider between text blocks */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .photo-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
}
.photo-strip figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bawe-steel-100);
}
.photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.photo-strip figure:hover img { transform: scale(1.04); }
.photo-strip figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-4) var(--space-3) var(--space-3);
  background: linear-gradient(180deg, rgba(2, 8, 26, 0) 0%, rgba(2, 8, 26, 0.8) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .photo-strip img { aspect-ratio: 3 / 4; }
}

/* =========================================================
   Filter row (projects page)
   ========================================================= */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--bawe-steel-200);
}

.filter {
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: 1px solid var(--bawe-steel-200);
  border-radius: var(--radius-sm);
  color: var(--bawe-steel-600);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.filter:hover {
  border-color: var(--bawe-blue-600);
  color: var(--bawe-blue-600);
}
.filter[aria-pressed="true"] {
  background: var(--bawe-blue-600);
  border-color: var(--bawe-blue-600);
  color: #fff;
}

.filter__count {
  margin-left: var(--space-2);
  opacity: 0.6;
}

.result-count {
  margin-bottom: var(--space-6);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bawe-steel-500);
}

/* =========================================================
   Diagrams
   Arguments that are currently prose, drawn instead.
   All inline SVG — no library, no image request. Lines draw
   themselves in with stroke-dashoffset, which is GPU-cheap,
   and everything collapses to a static state under
   prefers-reduced-motion.
   ========================================================= */

.diagram {
  margin-top: var(--space-16);
  padding: var(--space-6);
  border: 1px solid var(--bawe-steel-200);
  border-radius: var(--radius-md);
  background: var(--bawe-paper);
}
.section--tint .diagram { background: var(--bawe-paper); }
.section--dark .diagram {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}
@media (min-width: 768px) {
  .diagram { padding: var(--space-12); }
}

.diagram__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-8);
}
.diagram__title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bawe-blue-600);
}
.diagram__note {
  font-size: 0.875rem;
  color: var(--bawe-steel-600);
}

/* ---- Line draw-in ---- */
.draw {
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
  transition: stroke-dashoffset 1200ms var(--ease);
  transition-delay: var(--draw-delay, 0ms);
}
.is-in .draw { stroke-dashoffset: 0; }

.fade-node {
  opacity: 0;
  transition: opacity 500ms var(--ease);
  transition-delay: var(--draw-delay, 0ms);
}
.is-in .fade-node { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .draw { stroke-dashoffset: 0; }
  .fade-node { opacity: 1; }
}

/* SVG type — set in CSS so it inherits the design tokens */
.dgm-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--bawe-ink-900);
}
.dgm-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  fill: var(--bawe-steel-600);
}
.dgm-caption {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--bawe-steel-500);
}
.dgm-figure {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.03em;
  fill: var(--bawe-ink-900);
}
.dgm-figure--blue { fill: var(--bawe-blue-600); }
.dgm-accent { fill: var(--bawe-blue-600); }

/* =========================================================
   Process rail — earthworks through handover
   ========================================================= */

/* Built in HTML rather than SVG so it reflows to a vertical
   sequence on phones instead of shrinking its own type. */
.rail { position: relative; }

.rail__steps { position: relative; display: grid; gap: var(--space-8); }

.rail__steps::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--bawe-blue-600) 0%, var(--bawe-steel-200) 100%);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1400ms var(--ease);
}
.rail.is-in .rail__steps::before { transform: scaleY(1); }

.rail__step { position: relative; padding-left: var(--space-8); }
.rail__dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bawe-paper);
  border: 2px solid var(--bawe-blue-600);
}
.rail__step:last-child .rail__dot { background: var(--bawe-blue-600); }

.rail__num {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--bawe-steel-500);
}
.rail__name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bawe-ink-900);
}
.rail__desc {
  margin-top: var(--space-2);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--bawe-steel-600);
}

@media (min-width: 768px) {
  .rail__steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-4); }
  .rail__steps::before {
    left: 7px;
    right: 7px;
    top: 7px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--bawe-blue-600) 0%, var(--bawe-steel-200) 100%);
    transform: scaleX(0);
    transform-origin: left center;
  }
  .rail.is-in .rail__steps::before { transform: scaleX(1); }
  .rail__step { padding-left: 0; padding-top: var(--space-8); }
  .rail__dot { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rail__steps::before { transform: none !important; }
}

/* =========================================================
   Coverage — mobilisation reach from Polokwane
   Geometry in SVG, every label in the HTML key beside it.
   ========================================================= */

.reach-wrap { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 900px) {
  .reach-wrap { grid-template-columns: 1.15fr 0.85fr; gap: var(--space-12); }
}

.reach { width: 100%; max-width: 520px; margin-inline: auto; }
.reach__ring { fill: none; stroke: var(--bawe-steel-200); stroke-width: 1; }
.reach__num {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
  fill: var(--bawe-blue-600);
}
.reach__home {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.1em;
  fill: var(--bawe-ink-900);
}

.reach-key { display: grid; gap: var(--space-4); }
.reach-key__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-1) var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--bawe-steel-200);
}
.reach-key__num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--bawe-blue-600);
  padding-top: 0.15em;
}
.reach-key__name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bawe-ink-900);
}
.reach-key__sub {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--bawe-steel-600);
}

/* =========================================================
   Pull quote — an entry point for scanners
   ========================================================= */

.pullquote {
  margin-block: var(--space-8);
  padding-left: var(--space-6);
  border-left: 3px solid var(--bawe-blue-600);
}
.pullquote p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--bawe-ink-900);
}
.section--dark .pullquote p { color: #fff; }
.pullquote cite {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bawe-steel-500);
}

/* A wide photograph used to close out a column */
.photo-wide {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bawe-steel-100);
}
.photo-wide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.photo-wide figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-8) var(--space-6) var(--space-5);
  background: linear-gradient(180deg, rgba(2, 8, 26, 0) 0%, rgba(2, 8, 26, 0.82) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* =========================================================
   The programme — a scroll-driven act
   A Gantt chart that tells the argument under the visitor's
   hand: four contractors in series with dead handover time,
   then one contract where the trades overlap and completion
   moves forward.

   Everything is driven by custom properties written by
   js/friction.js. Only transform, opacity and clip-path move.
   Without JavaScript, or under reduced motion, the track never
   displays and the static before/after pair carries the story.
   ========================================================= */

.friction {
  --p: 0;          /* act progress, drives the rail */
  --blue: 0;       /* cobalt fill on the bars */
  --fin: 100;      /* completion line, % along the programme */
  --fo: 0;         /* completion line opacity */
  --gs: 1;         /* handover gaps: 1 open, 0 squeezed shut */
  --hl: 0;         /* handover highlight */
  --ghost: 0;      /* the old completion, dashed */
  --zo: 0;         /* recovered-time shading */
  --bo: 0;         /* the "time back" bracket */
  --swap: 0;       /* copy roll: 0 in pieces, 1 from BAWE */
}

.friction__track { display: none; }
.friction.is-live .friction__track { display: block; height: 380vh; }
.friction.is-live .friction__static { display: none; }
.friction__static { padding-block: var(--section-y); }

.friction__stage {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: var(--space-12);
  overflow: hidden;
}

/* Copy states share one clipped cell and ROLL: the old line slides up and
   out as the new one rises in. They never occupy the same pixels (no mush)
   and the cell is never empty (no blank frame). */
.friction__heading,
.friction__verdict,
.friction__note { display: grid; overflow: hidden; }
.friction__heading > *,
.friction__verdict > *,
.friction__note > * { grid-area: 1 / 1; }
.friction__swap--a {
  transform: translateY(calc(var(--swap) * -105%));
  opacity: calc(1 - var(--swap));
}
.friction__swap--b {
  transform: translateY(calc((1 - var(--swap)) * 105%));
  opacity: var(--swap);
}

.friction__heading { max-width: 22ch; }

.friction__verdict {
  margin-top: var(--space-8);
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--bawe-ink-900);
}
.friction__verdict .friction__swap--b,
.friction__verdict--b { color: var(--bawe-blue-600); }

.friction__note {
  margin-top: var(--space-3);
  max-width: 60ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--bawe-steel-600);
}
.friction__fine {
  margin-top: var(--space-3);
  font-size: 0.75rem;
  color: var(--bawe-steel-500);
}

/* ---- progress rail: where you are, and how much is left ---- */

.pg-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
  margin-bottom: var(--space-8);
}
.pg-rail::before,
.pg-rail__fill {
  content: "";
  position: absolute;
  left: 6px;
  right: 0;
  top: 5px;
  height: 2px;
  border-radius: 1px;
}
.pg-rail::before { background: var(--bawe-steel-200); }
.pg-rail__fill {
  background: var(--bawe-blue-600);
  transform: scaleX(var(--p));
  transform-origin: left center;
}
.pg-rail__step {
  position: relative;
  padding-top: 22px;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--bawe-steel-400);
}
.pg-rail__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bawe-paper);
  border: 2px solid var(--bawe-steel-200);
}
.pg-rail__step.is-now { color: var(--bawe-blue-600); }
.pg-rail__step.is-now::before { border-color: var(--bawe-blue-600); box-shadow: 0 0 0 4px var(--bawe-blue-50); }
.pg-rail__step.is-done { color: var(--bawe-ink-900); }
.pg-rail__step.is-done::before { background: var(--bawe-blue-600); border-color: var(--bawe-blue-600); }

/* ---- the programme chart ---- */

.pg {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  column-gap: var(--space-4);
  margin-top: var(--space-12);   /* room for the completion label */
}
.pg__labels span {
  display: flex;
  align-items: center;
  height: 38px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bawe-ink-900);
}
.pg__lanes {
  position: relative;
  overflow-x: clip;    /* translated full-width layers never widen the page */
  overflow-y: visible;
}
.pg__lane {
  position: relative;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 2px;
  background: var(--bawe-paper-2);
}

/* Bars are full-lane elements placed by transform:
   scaleX sets the duration, translateX the start. No layout animates. */
.pg__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: 2px;
  background: var(--bawe-steel-500);
  transform-origin: left center;
  transform: translateX(calc(var(--l, 0) * 1%)) scaleX(calc(var(--w, 0) * var(--r, 0)));
}
.pg__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--bawe-blue-600);
  opacity: var(--blue);
}

/* Handover gaps: positioned once, then squeezed and faded. The label sits
   outside the scaled layer so it never distorts. */
.pg__gap {
  position: absolute;
  top: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  opacity: var(--go, 0);
}
.pg__gap::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed var(--bawe-steel-400);
  border-radius: 2px;
  background: repeating-linear-gradient(135deg, var(--bawe-steel-200) 0 5px, var(--bawe-paper) 5px 10px);
  transform: scaleX(var(--gs));
}
.pg__gap::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--bawe-blue-600);
  border-radius: 4px;
  opacity: var(--hl);
}
.pg__gap em {
  position: relative;
  padding: 3px 4px;
  font-family: var(--font-display);
  font-size: 0.5625rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bawe-ink-700);
  background: var(--bawe-paper);
  opacity: var(--gs);
}

/* Completion line travels with the programme. Its label sits on the
   left of the line so nothing ever overhangs the chart's right edge. */
.pg__finish,
.pg__ghost {
  position: absolute;
  top: -30px;
  bottom: -4px;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.pg__finish {
  transform: translateX(calc(var(--fin) * 1%));
  opacity: var(--fo);
  z-index: 2;
}
.pg__ghost {
  transform: translateX(100%);
  opacity: var(--ghost);
}
.pg__finish::before,
.pg__ghost::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  border-left: 2px solid var(--bawe-ink-900);
}
.pg__ghost::before { border-left: 2px dashed var(--bawe-steel-400); }
.pg__finish span,
.pg__ghost span {
  position: absolute;
  top: 0;
  right: 100%;
  margin-right: 8px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--bawe-ink-900);
}
.pg__ghost span { color: var(--bawe-steel-500); }

/* Recovered time: full-width stripes, revealed right of the completion
   line with a clip-path wipe so the stripes never stretch. */
.pg__zone {
  position: absolute;
  top: -4px;
  bottom: 8px;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, var(--bawe-blue-50) 0 6px, transparent 6px 12px);
  clip-path: inset(0 0 0 calc(var(--fin) * 1%));
  opacity: var(--zo);
}

.pg__axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bawe-steel-500);
}
.pg__below { position: relative; height: 44px; }
.pg__bracket {
  position: absolute;
  left: 70%;
  width: 30%;
  top: 10px;
  height: 10px;
  border: 2px solid var(--bawe-blue-600);
  border-top: 0;
  opacity: var(--bo);
}
.pg__bracket span {
  position: absolute;
  top: 16px;
  right: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bawe-blue-600);
}

.friction__static .pg { margin-top: var(--space-12); }
.friction__static-head { margin-top: var(--space-4); }

@media (max-width: 767px) {
  .pg { grid-template-columns: 58px minmax(0, 1fr); column-gap: var(--space-3); }
  .pg__labels span { font-size: 0.5625rem; letter-spacing: 0.06em; }
  .pg__gap em { display: none; }
  .pg-rail__step { font-size: 0.5625rem; letter-spacing: 0.08em; }
  .pg__bracket span { font-size: 0.5625rem; }
  .friction__stage { padding-block: var(--space-8); }
}

/* Says the card is a link, rather than leaving it to the hover state. */
.project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bawe-blue-600);
}
.project-card__cta span { transition: transform var(--dur-fast) var(--ease); }
.project-card:hover .project-card__cta span,
.project-card:focus-visible .project-card__cta span { transform: translateX(4px); }
.section--dark .project-card__cta { color: var(--bawe-blue-400); }
