/* ===========================================================
   Blackmore Earthmoving — components
   =========================================================== */

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  line-height: 1;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border: 1px solid var(--color-primary);
  font-weight: 700;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}
.btn--primary:active {
  background: var(--color-primary-press);
  border-color: var(--color-primary-press);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-border-strong);
}
.btn--ghost:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.04);
}

.btn--lg {
  padding: 18px 28px;
  font-size: var(--fs-base);
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* -----------------------------------------------------------
   Corner-bracket CTA (Uiverse-inspired, retoned to CAT yellow)
   Slides label up on hover; two L-shaped brackets in opposite
   corners expand to a full outline; yellow glow on hover.
   ----------------------------------------------------------- */

.btn-corner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 44px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--color-white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition:
    box-shadow 0.3s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1),
    color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1),
    background 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.btn-corner span,
.btn-corner span::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: top 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Hover label, hidden above the visible area until hover */
.btn-corner span::before {
  content: "Talk to Jared";
  top: -100%;
}

/* Corner brackets — top-left and bottom-right */
.btn-corner::before,
.btn-corner::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  transition:
    width 0.3s cubic-bezier(0.215, 0.61, 0.355, 1),
    height 0.3s cubic-bezier(0.215, 0.61, 0.355, 1),
    border-color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.btn-corner::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--color-white);
  border-left: 2px solid var(--color-white);
}

.btn-corner::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid var(--color-white);
  border-right: 2px solid var(--color-white);
}

.btn-corner:hover {
  background: linear-gradient(45deg, var(--color-primary) 0%, #b58a00 100%);
  color: var(--color-on-primary);
  box-shadow:
    0 0 24px rgba(255, 205, 17, 0.45),
    0 0 12px rgba(255, 205, 17, 0.3);
}

.btn-corner:hover::before,
.btn-corner:hover::after {
  width: 100%;
  height: 100%;
}

.btn-corner:hover span {
  top: 100%;
}

.btn-corner:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--color-bg),
    0 0 0 5px var(--color-primary);
}

.btn-corner:active {
  transform: scale(0.96);
  box-shadow: 0 0 10px rgba(255, 205, 17, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .btn-corner,
  .btn-corner span,
  .btn-corner span::before,
  .btn-corner::before,
  .btn-corner::after {
    transition: none;
  }
}

/* ===========================================================
   Navbar
   =========================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  transition:
    transform 300ms var(--ease-out),
    opacity 300ms var(--ease-out);
  will-change: transform, opacity;
}

/* Hide-on-scroll: the whole bar slides off to the left on scroll-down
   and slides back in from the left on scroll-up (toggled by JS). The
   opacity fades 100% -> 10% on the way out and back on the way in. */
.nav--hidden {
  transform: translateX(-100%);
  opacity: 0.1;
}

/* -----------------------------------------------------------
   Full-width dropdown shelf — replaces the per-item dropdown
   menus on desktop. Hovering About / Capability rolls a second,
   slightly more transparent bar down below the main nav with that
   group's links laid out side by side. It lives inside the header,
   so moving between the two bars keeps it open; it collapses only
   when the pointer leaves both. Built + toggled in main.js.
   ----------------------------------------------------------- */

/* Clean per-item dropdown (the shelf is retired). Keep flex so the base
   .nav__menu opacity/visibility transitions drive the open/close. */
.nav .nav__menu {
  display: flex;
}

.nav__shelf {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  overflow: hidden;
  pointer-events: none;
}
.nav.shelf-open .nav__shelf {
  pointer-events: auto;
}

.nav__shelf-inner {
  transform: translateY(-100%);
  transition: transform 320ms var(--ease-out);
  background: rgba(
    13,
    13,
    13,
    0.7
  ); /* a touch more transparent than the 0.85 main bar */
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.nav.shelf-open .nav__shelf-inner {
  transform: translateY(0);
}

.nav__shelf-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-2);
  min-height: 60px;
}

.nav__shelf-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 16px;
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-text);
  border-radius: var(--radius);
  opacity: 0; /* options fade in via .is-in once the bar has dropped */
  transition:
    opacity 160ms ease,
    background var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.nav__shelf-link.is-in {
  opacity: 0.8;
}
.nav__shelf-link.is-in:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
}
.nav__shelf-link.is-active {
  color: var(--color-primary);
}

.nav__shelf-arrow {
  color: var(--color-faint);
  transition:
    transform var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.nav__shelf-link:hover .nav__shelf-arrow {
  transform: translateX(3px);
  color: var(--color-primary);
}

@media (max-width: 1023px) {
  .nav__shelf {
    display: none;
  }
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-5);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-white);
  flex-shrink: 0;
}

.nav__logo img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 180px;
  transform: translateY(4px);
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-2);
}

.nav__item {
  position: relative;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius);
  transition:
    color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.nav__link:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.04);
}

.nav__link.is-active {
  color: var(--color-white);
}
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
}

/* Dropdown chevron */
.nav__chevron {
  opacity: 0.65;
  transition:
    transform var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

.nav__item--has-menu:hover .nav__chevron,
.nav__item--has-menu:focus-within .nav__chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown menu */
.nav__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, -6px);
  min-width: 220px;
  padding: 8px;
  background: rgba(17, 17, 17, 0.96);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility 0s linear var(--dur);
  z-index: 10;
}

/* Invisible bridge so hover doesn't drop between trigger and menu */
.nav__menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav__item--has-menu:hover .nav__menu,
.nav__item--has-menu:focus-within .nav__menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%, 0);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility 0s linear 0s;
}

.nav__menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 10px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease);
  white-space: nowrap;
}

.nav__menu-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
}

.nav__menu-link.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.nav__menu-link::after {
  content: "→";
  font-size: var(--fs-xs);
  color: var(--color-faint);
  transition:
    transform var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.nav__menu-link:hover::after {
  color: var(--color-primary);
  transform: translateX(2px);
}

.nav__cta {
  display: none;
  margin-left: var(--space-3);
}

.nav__toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.nav__toggle:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border-strong);
}

.nav__toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-white);
  position: relative;
  transition:
    transform var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--color-white);
  transition:
    transform var(--dur) var(--ease),
    top var(--dur) var(--ease);
}
.nav__toggle-bar::before {
  top: -6px;
}
.nav__toggle-bar::after {
  top: 6px;
}

.nav.is-open .nav__toggle-bar {
  background: transparent;
}
.nav.is-open .nav__toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}
.nav.is-open .nav__toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile overlay */
.nav__overlay {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  height: calc(100vh - var(--nav-height));
  height: calc(100dvh - var(--nav-height));
  background: var(--color-bg);
  padding: var(--space-7) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  overflow-y: auto;
}
.nav.is-open .nav__overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav__overlay-group {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-2);
}

.nav__overlay-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-3);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--color-white);
}
.nav__overlay-link.is-active {
  color: var(--color-primary);
}
.nav__overlay-link::after {
  content: "→";
  color: var(--color-faint);
  font-size: var(--fs-md);
  transition:
    transform var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.nav__overlay-link:hover::after {
  transform: translateX(4px);
  color: var(--color-primary);
}

.nav__overlay-sub {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: var(--space-5);
  margin-top: -4px;
}

.nav__overlay-sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--color-text);
  position: relative;
}
.nav__overlay-sublink::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--color-border-strong);
  transform: translate(-100%, -50%);
}
.nav__overlay-sublink.is-active {
  color: var(--color-primary);
}
.nav__overlay-sublink.is-active::before {
  background: var(--color-primary);
}
.nav__overlay-sublink::after {
  content: "→";
  color: var(--color-faint);
  font-size: var(--fs-sm);
  transition:
    transform var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.nav__overlay-sublink:hover::after {
  transform: translateX(4px);
  color: var(--color-primary);
}

.nav__overlay-cta {
  margin-top: var(--space-6);
  align-self: flex-start;
}

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

/* ===========================================================
   Footer
   =========================================================== */

.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-9);
}

.footer__grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}

.footer__brand h3 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-3);
}

.footer__tag {
  color: var(--color-muted);
  max-width: 360px;
  font-size: var(--fs-sm);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-faint);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__list a {
  color: var(--color-text);
  font-size: var(--fs-sm);
  transition: color var(--dur) var(--ease);
}
.footer__list a:hover {
  color: var(--color-primary);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--fs-sm);
}
.footer__contact a {
  color: var(--color-text);
  transition: color var(--dur) var(--ease);
}
.footer__contact a:hover {
  color: var(--color-primary);
}

.footer__bar {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--color-faint);
}

@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: var(--space-6);
  }
  .footer__bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ===========================================================
   Hero (Home)
   =========================================================== */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--space-9) 0;
  background:
    radial-gradient(
      70% 50% at 100% 0%,
      var(--color-primary-glow),
      transparent 60%
    ),
    radial-gradient(
      50% 60% at 0% 100%,
      rgba(255, 255, 255, 0.04),
      transparent 60%
    ),
    var(--color-bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--color-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}

/* Scroll-driven video background (injected by JS on >768px viewports)
   Generic classes — used on .hero AND .banner via data-scroll-video. */
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 6px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  background: rgba(255, 255, 255, 0.02);
}

.hero__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-glow);
}

.hero__title {
  font-size: clamp(2.5rem, 7vw + 0.5rem, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero__title .accent {
  color: var(--color-primary);
}

.hero__sub {
  margin-top: var(--space-5);
  font-size: clamp(1.05rem, 1vw + 0.6rem, 1.35rem);
  color: var(--color-muted);
  max-width: 640px;
  line-height: var(--lh-loose);
}

.hero__actions {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.hero__meta {
  position: absolute;
  bottom: var(--space-6);
  left: 0;
  right: 0;
  display: none;
  z-index: 1;
}
.hero__meta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--color-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .hero__meta {
    display: block;
  }
}

/* ===========================================================
   Stats strip
   =========================================================== */

.stats {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
}

.stat {
  padding: var(--space-7) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.stat:last-child {
  border-bottom: 0;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw + 1rem, 4rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat__value .unit {
  color: var(--color-primary);
}

.stat__label {
  margin-top: var(--space-3);
  color: var(--color-muted);
  font-size: var(--fs-sm);
  max-width: 220px;
}

@media (min-width: 720px) {
  .stats__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat {
    border-bottom: 0;
    border-right: 1px solid var(--color-border);
  }
  .stat:last-child {
    border-right: 0;
  }
}

/* ===========================================================
   Section header
   =========================================================== */

.section-head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
  max-width: 760px;
}

.section-head__title {
  letter-spacing: -0.02em;
}

.section-head__sub {
  color: var(--color-muted);
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  max-width: none;
}

/* ===========================================================
   Service cards (What we do)
   =========================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 720px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .cards-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  position: relative;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    transparent
  );
  transform: translateX(-100%);
  transition: transform var(--dur-slow) var(--ease);
}

.card:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-2);
}
.card:hover::after {
  transform: translateX(0);
}

.card__index {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  color: var(--color-primary);
  font-weight: 600;
}

.card__title {
  font-size: var(--fs-xl);
}

.card__desc {
  color: var(--color-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
}

.card__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius);
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.card__list li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-text);
  line-height: var(--lh-base);
}
.card__list li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 9px;
  width: 5px;
  height: 5px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* ===========================================================
   Process steps
   =========================================================== */

.steps {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}

.step {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  position: relative;
}

@media (min-width: 1024px) {
  .step {
    border-radius: 0;
    border-right: 0;
  }
  .steps .step:first-child {
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
  }
  .steps .step:last-child {
    border-right: 1px solid var(--color-border);
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
  }
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.step__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-3);
}

.step__desc {
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

/* ===========================================================
   Value pills (Why Blackmore)
   =========================================================== */

.values {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value {
  padding: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.value__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-white);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.value__title::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

.value__desc {
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

/* ===========================================================
   CTA section
   =========================================================== */

.cta {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-7);
  background:
    radial-gradient(
      60% 100% at 100% 50%,
      var(--color-primary-glow),
      transparent 60%
    ),
    var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
  overflow: hidden;
}

.cta__title {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  max-width: 600px;
}

.cta__sub {
  color: var(--color-muted);
  max-width: 520px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

@media (min-width: 900px) {
  .cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-8);
  }
  .cta__copy {
    flex: 1;
  }
}

/* ===========================================================
   About — Who we are
   =========================================================== */

.split {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-8);
  }
}

.split__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
}

.split__body p {
  font-size: var(--fs-md);
  color: var(--color-text);
}

/* ===========================================================
   Values (About — What we stand for)
   =========================================================== */

.principles {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}

.principle {
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}
.principle:last-child {
  border-bottom: 0;
}

.principle__num {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  color: var(--color-faint);
  margin-bottom: var(--space-3);
}

.principle__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.principle__title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  transform: rotate(45deg);
}

.principle__desc {
  color: var(--color-muted);
}

@media (min-width: 720px) {
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }
  .principle {
    border-right: 1px solid var(--color-border);
  }
  .principle:nth-child(2n) {
    border-right: 0;
  }
  .principle:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

/* ===========================================================
   Person cards (Our People / About — team)
   =========================================================== */

.people {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .people {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .people {
    grid-template-columns: repeat(4, 1fr);
  }
}

.person {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--dur) var(--ease);
}
.person:hover {
  border-color: var(--color-border-strong);
}

.person__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-primary-soft),
    var(--color-surface-3)
  );
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--fs-lg);
}

.person__name {
  font-size: var(--fs-lg);
}
.person__role {
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.person__bio {
  color: var(--color-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
}

.person--empty {
  background: transparent;
  border-style: dashed;
  border-color: var(--color-border);
  color: var(--color-faint);
  text-align: center;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.person--empty .person__name {
  color: var(--color-faint);
}
.person--empty .person__role {
  color: var(--color-faint);
}
.person--empty .person__bio {
  color: var(--color-faint);
}

/* ===========================================================
   Bio + references (Our People) — pinned hero, scrolling refs
   =========================================================== */
.bio__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 1024px) {
  .bio__layout {
    grid-template-columns: minmax(330px, 400px) 1fr;
    gap: var(--space-7);
    align-items: start;
  }
  .bio__hero {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-5));
  }
}

.bio-card {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.bio-card__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  transition: gap var(--dur-slow) var(--ease);
}
.bio-card__avatar {
  position: relative;
  width: 150px;
  height: 150px;
  flex: 0 0 auto;
  transition:
    width var(--dur-slow) var(--ease),
    height var(--dur-slow) var(--ease);
}
/* Rotating yellow glow that travels the perimeter, sitting behind the photo */
.bio-card__avatar::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--color-primary) 50deg,
    var(--color-primary-glow) 130deg,
    transparent 210deg,
    transparent 360deg
  );
  filter: blur(9px);
  z-index: 0;
  animation: avatarGlow 15s linear infinite;
}
.bio-card__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 8%;
  border: 3px solid var(--color-surface);
}
@keyframes avatarGlow {
  to {
    transform: rotate(360deg);
  }
}
/* Name fades in only after the avatar has shrunk, so it never wraps mid-transition */
@keyframes nameIn {
  0%,
  45% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bio-card__avatar::before {
    animation: none;
  }
  .bio-card.is-compact .bio-card__name {
    animation: none;
  }
}
.bio-card__id {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}
.bio-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.bio-card__role {
  color: var(--color-primary);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow: hidden;
  max-height: 2.5em;
  transition:
    opacity var(--dur) var(--ease),
    max-height var(--dur-slow) var(--ease);
}
.bio-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.bio-card__lead {
  color: var(--color-text);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
}
.bio-card__text {
  color: var(--color-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
}
.bio-card__chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.bio-card__chips li {
  padding: 4px 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

/* Compact state — set by JS while the pinned bio is "stuck" and refs scroll */
.bio-card.is-compact .bio-card__head {
  flex-direction: row;
  align-items: center;
  gap: var(--space-4);
}
.bio-card.is-compact .bio-card__avatar {
  width: 60px;
  height: 60px;
}
.bio-card.is-compact .bio-card__avatar::before {
  inset: -4px;
  filter: blur(6px);
}
.bio-card.is-compact .bio-card__role {
  opacity: 0;
  max-height: 0;
}
.bio-card.is-compact .bio-card__name {
  animation: nameIn var(--dur-slow) var(--ease);
}

/* ===========================================================
   Marquee — "worked alongside" auto-scrolling name strip
   =========================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
}
.marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: var(--space-7);
  animation: marquee 66s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-7);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-muted);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.marquee__item::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.55;
  flex: 0 0 auto;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
}
.marquee-band__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-faint);
  margin-bottom: var(--space-5);
}
/* Projects: pin the strip to the bottom of the scroll-locked viewport */
.hscroll__marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-6);
  z-index: 3;
}
.hscroll__marquee .marquee-band__label {
  text-align: center;
  margin-bottom: var(--space-3);
}
@media (max-width: 1023px) {
  .hscroll__marquee {
    position: static;
    margin-top: var(--space-7);
  }
}

.bio__refs {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.refs__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
  margin-top: var(--space-2);
}
.refs__sub {
  color: var(--color-muted);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  margin-top: var(--space-3);
  max-width: 56ch;
}

.ref-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--dur) var(--ease);
}
.ref-card:hover {
  border-color: var(--color-border-strong);
}
.ref-card__kind {
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.ref-card__quote {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: var(--color-white);
  letter-spacing: -0.01em;
  margin: 0;
}
.ref-card__by {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.ref-card__name {
  color: var(--color-white);
  font-weight: 600;
  font-size: var(--fs-base);
}
.ref-card__role {
  color: var(--color-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
}
/* Deep-link arrival glow (triggered once from the Projects "Reference available" link) */
.ref-card.ref-glow {
  animation: refGlow 2s var(--ease);
}
@keyframes refGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 205, 17, 0);
    border-color: var(--color-border);
  }
  50% {
    box-shadow: 0 0 30px 5px rgba(255, 205, 17, 0.45);
    border-color: var(--color-primary);
  }
}

/* ===========================================================
   Service block (Services page)
   =========================================================== */

.service {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-border);
}
.service:last-of-type {
  border-bottom: 0;
}

.service__index {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.18em;
  color: var(--color-primary);
  font-weight: 600;
}

.service__title {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
}

.service__desc {
  color: var(--color-text);
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
}

.service__list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.service__list li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-text);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.service__list li:last-child {
  border-bottom: 0;
}
.service__list li::before {
  content: "→";
  color: var(--color-primary);
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .service {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-8);
    align-items: start;
  }
}

/* ===========================================================
   Projects
   =========================================================== */

.projects {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .projects {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  overflow: hidden;
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.project:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}

.project__media {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(
      120% 80% at 50% 0%,
      var(--color-primary-glow),
      transparent 60%
    ),
    repeating-linear-gradient(
      45deg,
      var(--color-surface-2) 0,
      var(--color-surface-2) 14px,
      var(--color-surface-3) 14px,
      var(--color-surface-3) 28px
    );
  position: relative;
  border-bottom: 1px solid var(--color-border);
}
.project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.project__chip {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: 4px 10px;
  background: rgba(13, 13, 13, 0.7);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--color-text);
  text-transform: uppercase;
  z-index: 1;
}

.project__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.project__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--color-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project__meta span + span::before {
  content: "·";
  margin-right: var(--space-3);
  color: var(--color-faint);
}

.project__title {
  font-size: var(--fs-lg);
}
.project__desc {
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

/* ===========================================================
   Safety & Quality pillars
   =========================================================== */

.pillars {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pillar {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.pillar__num {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1;
  min-width: 56px;
}

.pillar__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}
.pillar__desc {
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

.quote {
  margin-top: var(--space-7);
  padding: var(--space-7);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.4vw + 0.6rem, 1.75rem);
  color: var(--color-white);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* ===========================================================
   Capability — plant table / list
   =========================================================== */

.plant {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}

.plant__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding: var(--space-5);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--dur) var(--ease);
}
.plant__row:last-child {
  border-bottom: 0;
}
.plant__row:hover {
  background: var(--color-surface-2);
}

.plant__name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-white);
  font-size: var(--fs-md);
}

.plant__note {
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

/* Slow, smooth slide + slight zoom on row hover. Both text cells move
   together. transform-origin: left keeps the growth anchored to the
   text's leading edge so they don't drift back into the row's gutter. */
.plant__name,
.plant__note {
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left center;
  will-change: transform;
}
.plant__row:hover .plant__name,
.plant__row:hover .plant__note {
  transform: translateX(10px) scale(1.03);
}
@media (prefers-reduced-motion: reduce) {
  .plant__name,
  .plant__note {
    transition: none;
  }
  .plant__row:hover .plant__name,
  .plant__row:hover .plant__note {
    transform: none;
  }
}

@media (min-width: 720px) {
  .plant__row {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-5);
    align-items: center;
  }
}

/* Accreditations grid */
.accreditations {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .accreditations {
    grid-template-columns: repeat(3, 1fr);
  }
}

.accred {
  padding: var(--space-6);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
/* When stripe-scroll is applied, drop the host bg so the animated
   pattern shows fully through. */
.accred.stripe-scroll {
  background-color: transparent;
}

.accred__chip {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.accred__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-white);
}
.accred__note {
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

/* Coverage chips */
.coverage {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.coverage__chip {
  padding: 10px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition:
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.coverage__chip::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}
.coverage__chip:hover {
  border-color: var(--color-border-strong);
  color: var(--color-white);
}

/* ===========================================================
   Contact
   =========================================================== */

.contact-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-8);
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Static map image with a pulsing marker over the base (Kilcoy). */
.contact-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.7;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #272727;
}

.contact-map__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Pulsing marker — centred over the image (Kilcoy sits dead-centre). */
.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.map-pin__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
  box-shadow:
    0 0 0 1px var(--color-primary),
    0 0 10px rgba(255, 205, 17, 0.7);
  z-index: 2;
}

.map-pin__pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: map-pulse 2.4s ease-out infinite;
}
.map-pin__pulse--2 {
  animation-delay: 1.2s;
}

@keyframes map-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-pin__pulse {
    animation: none;
    opacity: 0.4;
  }
}

/* ===========================================================
   Fixed, scroll-scrubbed page background video (Projects page).
   The video is pinned to the viewport and scrubs with scroll; the
   page content is lifted above it and kept transparent so it shows
   through, while opaque cards and the footer sit on top.
   =========================================================== */

.page-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--color-bg); /* fallback behind the video / on mobile */
  pointer-events: none;
}

.page-video__vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-video__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* darken for legibility of content on top */
}

/* Lift the page chrome above the fixed video. Content stays transparent
   (so the video shows through); the footer is opaque and covers it. */
.page--video main,
.page--video .footer {
  position: relative;
  z-index: 1;
}
.page--video .banner {
  background: transparent;
}

/* ===========================================================
   Projects — horizontal-scroll focus carousel. Vertical scroll
   drives the row sideways while it's pinned; the centre tile is
   focused and the rest dim. Stacks vertically on mobile.
   =========================================================== */

.hscroll {
  position: relative;
}

.hscroll__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hscroll__track {
  display: flex;
  align-items: stretch;
  gap: var(--space-5);
  padding: 0 calc(50vw - min(26vw, 340px)); /* centres the first / last tile */
  will-change: transform;
}

.htile {
  flex: 0 0 auto;
  width: min(52vw, 680px);
  height: min(70vh, 660px);
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  opacity: 0.32;
  transform: scale(0.95);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out);
}
.htile.is-center {
  opacity: 1;
  transform: scale(1);
  border-color: var(--color-border-strong);
}

.htile__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.htile__chip {
  padding: 4px 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.htile__chip--role {
  background: transparent;
  color: var(--color-muted);
  border: 1px solid var(--color-border-strong);
}
.htile__client {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.htile__value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 2.5vw + 1rem, 3.25rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}
.htile__value span {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.htile__title {
  font-size: var(--fs-xl);
  margin-top: var(--space-4);
}

.htile__intro {
  margin-top: var(--space-4);
  color: var(--color-text);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
}

.htile__list {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-2);
}
.htile__list li {
  position: relative;
  padding-left: var(--space-4);
  color: var(--color-muted);
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.htile__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
}

.htile__outcome {
  margin-top: auto;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
}
.htile__outcome span {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.htile__outcome-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.htile__outcome-head span {
  margin-bottom: 0;
}
.htile__ref {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-muted);
  text-decoration: none;
  border: 1px solid var(--color-border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.htile__ref:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ===========================================================
   Process steps (About — how we work)
   =========================================================== */
.process {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .process {
    flex-direction: row;
    gap: var(--space-5);
  }
  .process__step {
    flex: 1;
  }
}
.process__step {
  position: relative;
  border-top: 2px solid var(--color-border-strong);
  padding-top: var(--space-4);
}
/* connector rail filling the gap between steps on desktop */
@media (min-width: 768px) {
  .process__step:not(:first-child)::before {
    content: "";
    position: absolute;
    top: -2px;
    left: calc(var(--space-5) * -1);
    width: var(--space-5);
    height: 2px;
    background: var(--color-border);
  }
}
.process__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-3);
}
.process__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  margin-bottom: var(--space-2);
}
.process__desc {
  color: var(--color-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
}

/* Mobile / no-hscroll fallback: a simple vertical stack. */
@media (max-width: 1023px) {
  .hscroll__sticky {
    position: static;
    height: auto;
    overflow: visible;
    padding: var(--space-8) 0;
  }
  .hscroll__track {
    flex-direction: column;
    gap: var(--space-5);
    padding: 0 var(--space-5);
    transform: none !important;
  }
  .htile {
    width: 100%;
    height: auto;
    opacity: 1;
    transform: none;
  }
  .return-top,
  .hscroll__nav {
    display: none;
  }
}

/* Return-to-top pill + edge nav chevrons — shown while the carousel is
   pinned (.hscroll.is-pinned, toggled in JS). */
.return-top {
  position: fixed;
  top: calc(var(--nav-height) + var(--space-4));
  left: var(--space-5);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 9px 18px 9px 13px;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-pill);
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out),
    background 0.2s var(--ease);
}
.hscroll.is-pinned .return-top {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.return-top:hover {
  background: rgba(13, 13, 13, 0.85);
}
.return-top:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.return-top__chevron {
  display: inline-flex;
  color: var(--color-primary);
  animation: return-top-pulse 5s ease-in-out infinite;
}
@keyframes return-top-pulse {
  0%,
  78% {
    transform: translateY(0);
  }
  88% {
    transform: translateY(-5px);
  }
  96%,
  100% {
    transform: translateY(0);
  }
}

.hscroll__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.55);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--color-white);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease-out),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.hscroll__nav--prev {
  left: var(--space-5);
}
.hscroll__nav--next {
  right: var(--space-5);
}
.hscroll.is-pinned .hscroll__nav {
  opacity: 1;
  pointer-events: auto;
}
.hscroll__nav:hover {
  background: rgba(13, 13, 13, 0.85);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.hscroll__nav:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.hscroll.is-pinned .hscroll__nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.contact-item {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-item__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
}

.contact-item__value {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-white);
}

.contact-item__value a:hover {
  color: var(--color-primary);
}

/* Form */
.form {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form__row {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
}
.field__label .req {
  color: var(--color-primary);
  margin-left: 4px;
}

.field__input,
.field__textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-white);
  font-size: var(--fs-base);
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--color-faint);
}
.field__input:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-surface-2);
}

.field__textarea {
  min-height: 140px;
  resize: vertical;
  font-family: inherit;
  line-height: var(--lh-base);
}

.field__error {
  font-size: var(--fs-xs);
  color: var(--color-primary);
  min-height: 18px;
  letter-spacing: 0.02em;
}

.field.is-invalid .field__input,
.field.is-invalid .field__textarea {
  border-color: var(--color-primary);
}

.form__footnote {
  font-size: var(--fs-sm);
  color: var(--color-muted);
}

.form__status {
  padding: var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-primary-soft);
  color: var(--color-white);
  font-size: var(--fs-sm);
  display: none;
}
.form__status.is-visible {
  display: block;
}

/* ===========================================================
   Capability — Principal-led delivery (org comparison)
   =========================================================== */

.led {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 860px) {
  .led {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}

.led__col {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.led__col--ours {
  border-color: var(--color-primary);
  background:
    radial-gradient(
      90% 55% at 50% 0%,
      var(--color-primary-soft),
      transparent 70%
    ),
    var(--color-bg);
}

.led__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.led__tag {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--color-primary);
}
.led__tag--muted {
  color: var(--color-muted);
}

.led__count {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-on-primary);
  background: var(--color-primary);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.led__count--muted {
  color: var(--color-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  font-weight: 600;
}

/* The chart fills the card so both columns line up at equal height;
   on the Blackmore side the single connector grows to fill the gap,
   which reads as one long, direct line. */
.led__chart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
}

.led__node {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.led__node--principal {
  border-color: var(--color-primary);
  background: var(--color-surface-2);
}

.led__node--faint {
  border-style: dashed;
  background: transparent;
}
.led__node--faint .led__name {
  color: var(--color-muted);
  font-size: var(--fs-base);
}
.led__node--bottom {
  border-style: solid;
  background: var(--color-surface);
}
.led__node--bottom .led__name {
  color: var(--color-text);
}

.led__role {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-faint);
  font-weight: 600;
}
.led__node--principal .led__role {
  color: var(--color-primary);
}

.led__name {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--color-white);
}

/* Connectors */
.led__line {
  width: 2px;
  background: var(--color-primary);
  margin: 0 auto;
}
.led__line--grow {
  flex: 1;
  min-height: var(--space-7);
}
.led__line--faint {
  height: var(--space-5);
  background: var(--color-border-strong);
}

.led__caption {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  line-height: var(--lh-loose);
}

/* -----------------------------------------------------------
   Principal-led animation — a pulse races down each side.
   Blackmore: one fast zip top-to-bottom (~0.8s of a 3s loop).
   Typical chain: the pulse hops segment by segment, reaching the
   operator only at ~2.4s. Both share the 3s cycle, so they race.
   Starts once the block scrolls in (.led.is-visible).
   ----------------------------------------------------------- */

.led__line {
  position: relative;
}

.led__line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px 1px var(--color-primary);
  opacity: 0;
}

/* Blackmore — fast single zip */
.led.is-visible .led__col--ours .led__line--grow::after {
  animation: led-zip 3s linear infinite;
}

/* Blackmore — the 'on the ground' tile lights only as the pulse lands */
.led.is-visible .led__col--ours .led__node--ground {
  animation: led-arrive 3s ease-in-out infinite;
}

/* Typical chain — no travelling dot; each tile thickens its outline in
   turn, one by one, so the decision visibly steps down the chain. */
.led.is-visible .led__col--theirs .led__node {
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
.led.is-visible .led__col--theirs .led__chart > div:nth-child(1) {
  animation-name: led-step-1;
}
.led.is-visible .led__col--theirs .led__chart > div:nth-child(3) {
  animation-name: led-step-2;
}
.led.is-visible .led__col--theirs .led__chart > div:nth-child(5) {
  animation-name: led-step-3;
}
.led.is-visible .led__col--theirs .led__chart > div:nth-child(7) {
  animation-name: led-step-4;
}
.led.is-visible .led__col--theirs .led__chart > div:nth-child(9) {
  animation-name: led-step-5;
}

@keyframes led-zip {
  0% {
    top: 0;
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  28% {
    top: 100%;
    opacity: 1;
  }
  34% {
    top: 100%;
    opacity: 0;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* Ground tile stays neutral until the pulse reaches it (~28%), then
   flashes yellow and settles back. */
@keyframes led-arrive {
  0%,
  26% {
    border-color: var(--color-border);
    box-shadow: none;
  }
  31% {
    border-color: var(--color-primary);
    box-shadow: 0 0 18px var(--color-primary-glow);
  }
  50% {
    border-color: var(--color-primary);
    box-shadow: 0 0 18px var(--color-primary-glow);
  }
  66% {
    border-color: var(--color-border);
    box-shadow: none;
  }
  100% {
    border-color: var(--color-border);
    box-shadow: none;
  }
}

/* Outline-thickness pulse, staggered down the chain. Uses a box-shadow
   ring so nothing shifts layout. Each tile peaks in its own ~18% window. */
@keyframes led-step-1 {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    border-color: var(--color-border);
  }
  9% {
    box-shadow: 0 0 0 2px var(--color-border-strong);
    border-color: var(--color-border-strong);
  }
  18%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    border-color: var(--color-border);
  }
}
@keyframes led-step-2 {
  0%,
  18% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    border-color: var(--color-border);
  }
  27% {
    box-shadow: 0 0 0 2px var(--color-border-strong);
    border-color: var(--color-border-strong);
  }
  36%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    border-color: var(--color-border);
  }
}
@keyframes led-step-3 {
  0%,
  36% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    border-color: var(--color-border);
  }
  45% {
    box-shadow: 0 0 0 2px var(--color-border-strong);
    border-color: var(--color-border-strong);
  }
  54%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    border-color: var(--color-border);
  }
}
@keyframes led-step-4 {
  0%,
  54% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    border-color: var(--color-border);
  }
  63% {
    box-shadow: 0 0 0 2px var(--color-border-strong);
    border-color: var(--color-border-strong);
  }
  72%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    border-color: var(--color-border);
  }
}
@keyframes led-step-5 {
  0%,
  72% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    border-color: var(--color-border);
  }
  81% {
    box-shadow: 0 0 0 2px var(--color-border-strong);
    border-color: var(--color-border-strong);
  }
  90%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    border-color: var(--color-border);
  }
}

/* ===========================================================
   Image placeholders — drop-in slots for client photography.
   Match the project-card media look (diagonal stripes + chip),
   carry a label naming the intended shot. Swap for an <img> later.
   =========================================================== */

.media-ph {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background:
    radial-gradient(
      120% 80% at 50% 0%,
      var(--color-primary-glow),
      transparent 55%
    ),
    repeating-linear-gradient(
      45deg,
      var(--color-surface-2) 0,
      var(--color-surface-2) 14px,
      var(--color-surface-3) 14px,
      var(--color-surface-3) 28px
    );
  transition: border-color var(--dur) var(--ease);
}
.media-ph:hover {
  border-color: var(--color-border-strong);
}

.media-ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 45%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}

.media-ph--wide {
  aspect-ratio: 21 / 9;
}
.media-ph--ratio {
  aspect-ratio: 16 / 10;
}
.media-ph--portrait {
  aspect-ratio: 3 / 4;
}

/* Real photo inside a media-ph slot, with a dark gradient overlay (top + bottom) */
.media-ph__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.media-ph--has-img::after {
  background:
    linear-gradient(
      180deg,
      rgba(13, 13, 13, 0.5) 0%,
      rgba(13, 13, 13, 0) 32%,
      rgba(13, 13, 13, 0) 58%,
      rgba(13, 13, 13, 0.62) 100%
    ),
    radial-gradient(
      ellipse at center,
      transparent 50%,
      rgba(0, 0, 0, 0.32) 100%
    );
}
/* Subtle image divider between sections (Our People) — half-height, low padding */
.divider-band {
  padding: var(--space-5) 0;
}
.media-ph--divider {
  aspect-ratio: 14 / 3;
  min-height: 0;
}

.media-ph__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 80%;
  padding: 8px 14px;
  background: rgba(13, 13, 13, 0.72);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
}
.media-ph__label svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ===========================================================
   Learn-more CTA (Uiverse by cssbuttons-io, retoned to brand)
   Circle expands to fill the button on hover; used on the home page.
   =========================================================== */

.btn-learn {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: var(--fs-sm);
  width: 13rem;
  height: auto;
}

.btn-learn .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: var(--color-primary);
  border-radius: 1.625rem;
}

.btn-learn .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: var(--color-on-primary);
}

.btn-learn .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

.btn-learn .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.29rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid var(--color-on-primary);
  border-right: 0.125rem solid var(--color-on-primary);
  transform: rotate(45deg);
}

.btn-learn .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0;
  margin: 0 0 0 1.85rem;
  color: var(--color-white);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.btn-learn:hover .circle {
  width: 100%;
}
.btn-learn:hover .circle .icon.arrow {
  background: var(--color-on-primary);
  transform: translate(1rem, 0);
}
.btn-learn:hover .button-text {
  color: var(--color-on-primary);
}

.btn-learn:focus-visible .circle {
  box-shadow:
    0 0 0 3px var(--color-bg),
    0 0 0 5px var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
  .btn-learn .circle,
  .btn-learn .circle .icon,
  .btn-learn .circle .icon.arrow,
  .btn-learn .button-text {
    transition: none;
  }
}

/* Form error colour (distinct from the yellow accent) */
.field__error {
  color: var(--color-error);
}
.field.is-invalid .field__input,
.field.is-invalid .field__textarea {
  border-color: var(--color-error);
}
/* Centred stats variant (Safety & Quality track record) */
/* Track-record stats as prominent, centred cards (Safety & Quality) */
.stats--center {
  border: 0;
  background: transparent;
}
.stats--center .stats__grid {
  gap: var(--space-5);
}
.stats--center .stat {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
  box-shadow: var(--shadow-card);
}
.stats--center .stat__value {
  justify-content: center;
  font-size: clamp(3rem, 5vw + 1rem, 4.5rem);
}
.stats--center .stat__label {
  margin: var(--space-4) auto 0;
  max-width: none;
  font-size: var(--fs-base);
  color: var(--color-text);
}

/* ===========================================================
   Accountability chain (Our People) — one person, every step
   =========================================================== */
.chain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .chain {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}
.chain__node {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-6);
}
@media (min-width: 768px) {
  .chain__node:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(var(--space-6) * -1);
    width: var(--space-6);
    height: 2px;
    background: var(--color-primary);
    opacity: 0.5;
    transform: translateY(-50%);
  }
}
.chain__step {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.chain__title {
  font-size: var(--fs-md);
  margin: var(--space-3) 0 var(--space-2);
}
.chain__desc {
  color: var(--color-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
}
.chain__rail {
  margin-top: var(--space-5);
  text-align: center;
}
.chain__rail span {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ===========================================================
   Pavement cross-section (Services — what final trim means)
   =========================================================== */
.pavement {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 680px;
  margin: 0 auto;
}
.pavement__layer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-muted);
  font-size: var(--fs-sm);
}
.pavement__layer span:first-child {
  color: var(--color-text);
  letter-spacing: 0.02em;
}
.pavement__layer--seal {
  background: var(--color-surface-3);
}
.pavement__layer--gravel {
  background: var(--color-surface-2);
}
.pavement__layer--box {
  background: var(--color-surface);
}
.pavement__layer--subgrade {
  background: #0e0e0e;
}
.pavement__layer--trim {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
  animation: trimBreathe 8s ease-in-out infinite;
}
@keyframes trimBreathe {
  0%,
  100% {
    box-shadow: inset 0 0 0 0 rgba(255, 205, 17, 0);
  }
  50% {
    box-shadow: inset 0 0 26px 2px rgba(255, 205, 17, 0.38);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pavement__layer--trim {
    animation: none;
  }
}
.pavement__layer--trim span:first-child {
  color: var(--color-white);
  font-weight: 600;
}
.pavement__tol {
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Slot-machine stat landing (Safety & Quality track record) */
.stat__value.slotted {
  animation: slotLand 0.42s var(--ease-out);
}
@keyframes slotLand {
  0% {
    transform: translateY(-7px);
  }
  60% {
    transform: translateY(2px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ===========================================================
   Canvas grain on uploaded media only (images + videos)
   =========================================================== */
.media-ph--has-img::before,
.banner--photo::before,
[data-scroll-video]::after,
.page-video::after,
.bio-card__avatar::after,
.contact-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  pointer-events: none;
  background: url(../assets/images/grain.jpg) center / cover;
  opacity: 0.35;
  mix-blend-mode: soft-light;
}
.bio-card__avatar::after {
  border-radius: 50%;
  z-index: 2;
}

/* ===========================================================
   Footer studio credit (Remote Infrastructure Group)
   =========================================================== */
.footer__meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.footer__sep {
  color: var(--color-border-strong);
}
.footer__credit {
  color: var(--color-faint);
  transition: color var(--dur) var(--ease);
}
.footer__credit:hover,
.footer__credit:focus-visible {
  color: var(--color-primary);
}

/* ===========================================================
   THE BLACKMORE LINE — principal-led delivery model
   =========================================================== */
.model {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-7);
}
@media (min-width: 768px) {
  .model {
    gap: var(--space-6);
  }
}

.model__rail {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-5);
}
@media (min-width: 768px) {
  .model__rail {
    padding: var(--space-6);
  }
}
.model__rail--direct {
  border-color: rgba(255, 205, 17, 0.35);
  background:
    radial-gradient(
      120% 160% at 50% -30%,
      var(--color-primary-soft),
      transparent 62%
    ),
    var(--color-surface);
  box-shadow:
    0 0 0 1px rgba(255, 205, 17, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.35);
}

.model__rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.model__rail-label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.model__rail--direct .model__rail-label {
  color: var(--color-white);
}
.model__tag {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  color: var(--color-muted);
}
.model__tag--ok {
  color: var(--color-on-primary);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.model__track {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.model__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  flex: 0 0 auto;
  width: 88px;
}
.model__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-faint);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}
.model__name {
  font-size: var(--fs-xs);
  color: var(--color-muted);
  line-height: 1.25;
}

.model__link {
  flex: 1 1 auto;
  height: 2px;
  min-width: 18px;
  position: relative;
  background: var(--color-border-strong);
}
.model__link--break::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%) rotate(20deg);
  background: var(--color-bg);
  box-shadow:
    2px 0 0 var(--color-bg),
    -2px 0 0 var(--color-bg);
}

.model__track--direct .model__dot {
  background: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-soft);
}
.model__track--direct .model__name {
  color: var(--color-text);
}
.model__link--live {
  height: 3px;
  background: var(--color-primary);
  box-shadow: 0 0 14px var(--color-primary-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}
.is-visible .model__link--live {
  transform: scaleX(1);
}

.model__hub {
  flex: 0 0 auto;
  text-align: center;
  color: var(--color-on-primary);
  background: var(--color-primary);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  box-shadow:
    0 0 0 5px var(--color-primary-soft),
    0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(0.82);
  transition:
    opacity 0.5s var(--ease-out) 0.3s,
    transform 0.5s var(--ease-out) 0.3s;
}
.is-visible .model__hub {
  opacity: 1;
  transform: scale(1);
}
.model__hub-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  line-height: 1;
}
.model__hub-roles {
  display: block;
  margin-top: 5px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.82;
}

.model__caption {
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--color-muted);
}
.model__caption--ok {
  color: var(--color-text);
}

@media (max-width: 640px) {
  .model__track {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .model__node {
    flex-direction: row;
    width: auto;
    gap: var(--space-3);
  }
  .model__link {
    width: 2px;
    height: 22px;
    min-width: 0;
    margin-left: 5px;
  }
  .model__link--break::before {
    width: 12px;
    height: 2px;
    box-shadow:
      0 2px 0 var(--color-bg),
      0 -2px 0 var(--color-bg);
  }
  .model__hub {
    align-self: stretch;
    text-align: left;
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .model__link--live {
    transform: scaleX(1);
  }
  .model__hub {
    opacity: 1;
    transform: none;
  }
}

/* ===========================================================
   THE CYCLE — process / quality system loop
   =========================================================== */
.cycle {
  margin-top: var(--space-7);
}
.cycle__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.cycle__stage {
  position: relative;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: var(--space-5);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}
.is-visible .cycle__stage {
  opacity: 1;
  transform: none;
}
.is-visible .cycle__stage:nth-child(1) {
  transition-delay: 0.05s;
}
.is-visible .cycle__stage:nth-child(2) {
  transition-delay: 0.15s;
}
.is-visible .cycle__stage:nth-child(3) {
  transition-delay: 0.25s;
}
.is-visible .cycle__stage:nth-child(4) {
  transition-delay: 0.35s;
}
.cycle__stage:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: calc(var(--space-4) / -2 - 5px);
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--color-primary);
  border-right: 2px solid var(--color-primary);
  transform: translateY(-50%) rotate(45deg);
}
.cycle__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--color-on-primary);
  background: var(--color-primary);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cycle__title {
  margin-top: var(--space-3);
  font-size: var(--fs-lg);
}
.cycle__desc {
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-muted);
}
.cycle__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-4);
}
.cycle__tags li {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
}
.cycle__return {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}
.cycle__return::before {
  content: "\21BB";
  color: var(--color-primary);
  font-size: var(--fs-xl);
  line-height: 1;
}
.cycle__return-label {
  font-family: var(--font-hand);
  color: var(--color-primary);
  font-size: var(--fs-md);
  transform: rotate(-1deg);
}

@media (max-width: 860px) {
  .cycle__track {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }
  .cycle__stage:nth-child(2)::after {
    display: none;
  }
}
@media (max-width: 520px) {
  .cycle__track {
    grid-template-columns: 1fr;
  }
  .cycle__stage::after {
    top: auto;
    right: 50%;
    bottom: calc(var(--space-3) / -2 - 5px);
    transform: translateX(50%) rotate(135deg);
  }
  .cycle__stage:last-child::after {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cycle__stage {
    opacity: 1;
    transform: none;
  }
}

/* ===========================================================
   Social links
   =========================================================== */
.social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.social__link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  color: var(--color-muted);
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.social__link:hover,
.social__link:focus-visible {
  color: var(--color-on-primary);
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.social__link svg {
  width: 18px;
  height: 18px;
}
.social__label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted);
  margin-right: var(--space-2);
}

/* ===========================================================
   Home: who / paths / featured reference
   =========================================================== */
.who {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 860px) {
  .who {
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--space-8);
  }
}
.who__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 5;
  background: var(--color-surface);
}
.who__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.who__lead {
  font-size: var(--fs-lg);
  color: var(--color-white);
  line-height: var(--lh-snug);
}
.who__text {
  margin-top: var(--space-4);
  color: var(--color-text);
}
.who__sign {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.who__sign-meta {
  display: flex;
  flex-direction: column;
}
.who__sign-name {
  font-weight: 600;
  color: var(--color-white);
}
.who__sign-role {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted);
}

.paths {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .paths {
    grid-template-columns: repeat(3, 1fr);
  }
}
.path-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-5);
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.path-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-3px);
  background: var(--color-surface-2);
}
.path-card__k {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
}
.path-card__t {
  font-size: var(--fs-xl);
}
.path-card__d {
  font-size: var(--fs-sm);
  color: var(--color-muted);
}
.path-card__go {
  margin-top: auto;
  padding-top: var(--space-4);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-white);
}
.path-card__go .arrow {
  color: var(--color-primary);
}

.feature-ref {
  max-width: 58rem;
  margin-inline: auto;
  text-align: center;
}
.feature-ref__mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--color-primary);
}
.feature-ref__quote {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw + 1rem, 2.4rem);
  line-height: 1.22;
  color: var(--color-white);
  letter-spacing: -0.01em;
}
.feature-ref__by {
  margin-top: var(--space-6);
}
.feature-ref__name {
  display: block;
  font-weight: 600;
  color: var(--color-white);
}
.feature-ref__role {
  display: block;
  font-size: var(--fs-sm);
  color: var(--color-muted);
  margin-top: 2px;
}

/* ===========================================================
   Silky interactions — "grader blade" motion language
   =========================================================== */
/* Ghost button: a yellow blade sweeps across on hover, text flips dark */
.btn--ghost {
  position: relative;
  overflow: hidden;
  z-index: 0;
  isolation: isolate;
}
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--color-on-primary);
  border-color: var(--color-primary);
  background: transparent;
}
.btn--ghost:hover::before,
.btn--ghost:focus-visible::before {
  transform: scaleX(1);
}

/* Primary button: a soft sheen sweeps once on hover */
.btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  width: 40%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  pointer-events: none;
  opacity: 0;
}
.btn--primary:hover::after {
  animation: btn-sheen 0.7s var(--ease-out);
}
@keyframes btn-sheen {
  0% {
    left: -45%;
    opacity: 1;
  }
  100% {
    left: 130%;
    opacity: 1;
  }
}

/* Path cards: a yellow blade line grades across the top on hover */
.path-card {
  position: relative;
  overflow: hidden;
}
.path-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.path-card:hover::before {
  transform: scaleX(1);
}
.path-card__go .arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}
.path-card:hover .path-card__go .arrow {
  transform: translateX(4px);
}

/* Nav links: a short blade underline grows from the left */
.nav__link {
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .btn--ghost::before,
  .path-card::before,
  .nav__link::after {
    transition: none;
  }
  .btn--primary:hover::after {
    animation: none;
  }
}

/* ===========================================================
   Capacity / support module (PM + engineering behind Jared)
   =========================================================== */
.support {
  margin-top: var(--space-7);
}
.support__core {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.support__core-pill {
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  box-shadow: 0 0 0 5px var(--color-primary-soft);
}
.support__core-note {
  font-size: var(--fs-sm);
  color: var(--color-muted);
}
.support__stem {
  width: 2px;
  height: var(--space-6);
  background: var(--color-border-strong);
  margin-top: 6px;
}
.support__row {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
@media (min-width: 760px) {
  .support__row {
    grid-template-columns: repeat(4, 1fr);
  }
}
.support__item {
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: var(--space-4);
  text-align: center;
  transition:
    border-top-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.support__item:hover {
  border-top-color: var(--color-primary);
  transform: translateY(-2px);
}
.support__item h3 {
  font-size: var(--fs-base);
}
.support__item p {
  font-size: var(--fs-xs);
  color: var(--color-muted);
  margin-top: 4px;
}
.support__foot {
  margin-top: var(--space-5);
  text-align: center;
  font-family: var(--font-hand);
  color: var(--color-primary);
  font-size: var(--fs-md);
  transform: rotate(-1deg);
}

/* ===========================================================
   Grader load intro (home, once per session)
   =========================================================== */
.no-intro .grader-intro {
  display: none !important;
}
.grader-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition:
    transform 0.6s var(--ease-out),
    opacity 0.6s var(--ease-out);
}
.grader-intro.is-done {
  transform: translateY(-100%);
  opacity: 0;
}
.grader-intro__stage {
  position: relative;
  width: min(340px, 72vw);
  text-align: center;
}
.grader-intro__machine {
  display: block;
  width: 192px;
  max-width: 58%;
  height: auto;
  margin: 0 auto;
  animation: grader-drive 1.15s var(--ease-out) both;
}
@keyframes grader-drive {
  0% {
    transform: translateX(-145%);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  74% {
    transform: translateX(4%);
  }
  100% {
    transform: translateX(0);
  }
}
.grader-intro__word {
  display: block;
  width: 196px;
  max-width: 62%;
  height: auto;
  margin: var(--space-5) auto 0;
  opacity: 0;
  animation: intro-rise 0.55s var(--ease-out) 0.5s both;
}
.grader-intro__road {
  position: relative;
  height: 2px;
  width: 196px;
  max-width: 62%;
  margin: var(--space-3) auto 0;
  background: var(--color-surface-3);
  overflow: hidden;
}
.grader-intro__grade {
  display: block;
  height: 100%;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  animation: grade-fill 0.85s var(--ease-out) 0.6s both;
}
@keyframes grade-fill {
  to {
    transform: scaleX(1);
  }
}
.grader-intro__tag {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--color-primary);
  opacity: 0;
  animation: intro-rise 0.55s var(--ease-out) 0.78s both;
}
@keyframes intro-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================================================
   Coverage map (Local Content)
   =========================================================== */
.coverage-map {
  height: 480px;
  margin-top: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  position: relative;
  z-index: 0;
}
.coverage-legend {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--color-muted);
}
.coverage-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.coverage-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.coverage-legend i.base {
  background: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.coverage-legend i.work {
  background: var(--color-primary);
  opacity: 0.8;
}
.coverage-legend i.target {
  background: transparent;
  border: 2px solid var(--color-primary);
}
/* dark-theme Leaflet to match the site */
.leaflet-container {
  background: #0d0d0d;
  font-family: var(--font-body);
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--color-surface-3);
  color: var(--color-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.leaflet-popup-content {
  font-size: var(--fs-sm);
}
.leaflet-bar a {
  background: var(--color-surface-2);
  color: var(--color-white);
  border-bottom-color: var(--color-border);
}
.leaflet-bar a:hover {
  background: var(--color-surface-3);
}
.leaflet-control-attribution {
  background: rgba(13, 13, 13, 0.7) !important;
  color: var(--color-faint) !important;
}
.leaflet-control-attribution a {
  color: var(--color-muted) !important;
}

.coverage-map__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: var(--space-6);
  color: var(--color-muted);
  font-size: var(--fs-sm);
}
.coverage-map__fallback a {
  color: var(--color-primary);
}

/* ===========================================================
   Elevated top-bar links — industrial type + silky text-roll
   (later in file so it supersedes the base .nav__link rules)
   =========================================================== */
.nav__links {
  gap: var(--space-5);
}
.nav__link {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-muted);
  padding: 10px 2px;
  border-radius: 0;
  background: none;
  transition: color var(--dur) var(--ease);
}
.nav__link-roll {
  position: relative;
  display: block;
  overflow: hidden;
}
.nav__link-text {
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__link-text--dup {
  position: absolute;
  inset: 0;
  color: var(--color-primary);
  transform: translateY(115%);
}
.nav__link:hover .nav__link-text--orig,
.nav__link:focus-visible .nav__link-text--orig {
  transform: translateY(-115%);
}
.nav__link:hover .nav__link-text--dup,
.nav__link:focus-visible .nav__link-text--dup {
  transform: translateY(0);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}
.nav__link.is-active {
  color: var(--color-white);
}
.nav__link.is-active .nav__link-text--orig {
  color: var(--color-white);
}
@media (prefers-reduced-motion: reduce) {
  .nav__link-text {
    transition: none;
  }
  .nav__link:hover .nav__link-text--orig {
    transform: none;
  }
  .nav__link:hover .nav__link-text--dup {
    display: none;
  }
  .nav__link:hover {
    color: var(--color-primary);
  }
}

/* ===========================================================
   Standards alignment + conformance flow (Safety & Quality)
   =========================================================== */
.standards {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-7);
}
@media (min-width: 760px) {
  .standards {
    grid-template-columns: repeat(4, 1fr);
  }
}
.standard {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
  padding: var(--space-5);
}
.standard--spec {
  border-color: rgba(255, 205, 17, 0.35);
  background:
    radial-gradient(
      120% 150% at 50% -20%,
      var(--color-primary-soft),
      transparent 62%
    ),
    var(--color-surface-2);
}
.standard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.standard__code {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  color: var(--color-white);
}
.standard__tag {
  font-family: var(--font-display);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  color: var(--color-muted);
  white-space: nowrap;
}
.standard__tag--built {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}
.standard__name {
  margin-top: var(--space-3);
  font-size: var(--fs-lg);
}
.standard__desc {
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-muted);
}

.specflow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.specflow__step {
  flex: 1 1 0;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--color-text);
  letter-spacing: 0.01em;
}
.specflow__step small {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--color-muted);
  letter-spacing: 0;
  line-height: 1.4;
}
.specflow__n {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-on-primary);
  background: var(--color-primary);
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
}
.specflow__step--end {
  background: var(--color-primary-soft);
}
.specflow__arr {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 700;
  padding: 0 2px;
}
@media (max-width: 760px) {
  .specflow {
    flex-direction: column;
  }
  .specflow__arr {
    transform: rotate(90deg);
    align-self: center;
  }
}

/* Plant register group label */
.plant__group-label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  padding: var(--space-4) 0 var(--space-2);
}
.plant__group-label:first-child {
  padding-top: 0;
}

/* ===========================================================
   Three generations lineage (About)
   =========================================================== */
.lineage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-7);
}
.lineage__node {
  position: relative;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: var(--space-5);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
}
.is-visible .lineage__node {
  opacity: 1;
  transform: none;
}
.is-visible .lineage__node:nth-child(1) {
  transition-delay: 0.1s;
}
.is-visible .lineage__node:nth-child(2) {
  transition-delay: 0.3s;
}
.is-visible .lineage__node:nth-child(3) {
  transition-delay: 0.5s;
}
.lineage__node:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: calc(var(--space-4) / -2 - 5px);
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--color-primary);
  border-right: 2px solid var(--color-primary);
  transform: translateY(-50%) rotate(45deg);
}
.lineage__gen {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  line-height: 1;
  color: var(--color-primary);
}
.lineage__era {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}
.lineage__title {
  margin-top: var(--space-3);
  font-size: var(--fs-lg);
}
.lineage__desc {
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-muted);
}
@media (max-width: 760px) {
  .lineage {
    grid-template-columns: 1fr;
  }
  .lineage__node:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: calc(var(--space-4) / -2 - 5px);
    transform: translateX(50%) rotate(135deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lineage__node {
    opacity: 1;
    transform: none;
  }
}

/* Methodology: pavement cross-section builds up bottom-to-top on reveal */
.pavement__layer {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}
.is-visible .pavement__layer {
  opacity: 1;
  transform: none;
}
.is-visible .pavement__layer:nth-last-child(1) {
  transition-delay: 0.05s;
}
.is-visible .pavement__layer:nth-last-child(2) {
  transition-delay: 0.2s;
}
.is-visible .pavement__layer:nth-last-child(3) {
  transition-delay: 0.35s;
}
.is-visible .pavement__layer:nth-last-child(4) {
  transition-delay: 0.5s;
}
.is-visible .pavement__layer:nth-last-child(5) {
  transition-delay: 0.65s;
}
@media (prefers-reduced-motion: reduce) {
  .pavement__layer {
    opacity: 1;
    transform: none;
  }
}

/* ===========================================================
   Capacity to scale — multiple double-grader crews (Capability)
   =========================================================== */
.crews {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-7);
}
@media (min-width: 760px) {
  .crews {
    grid-template-columns: repeat(3, 1fr);
  }
}
.crew {
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
}
.is-visible .crew {
  opacity: 1;
  transform: none;
}
.is-visible .crew:nth-child(1) {
  transition-delay: 0.12s;
}
.is-visible .crew:nth-child(2) {
  transition-delay: 0.34s;
}
.is-visible .crew:nth-child(3) {
  transition-delay: 0.56s;
}
.crew__site {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted);
}
.crew__graders {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--space-3);
  margin: var(--space-4) 0 var(--space-3);
}
.crew__graders img {
  width: 84px;
  max-width: 38%;
  height: auto;
}
.crew__label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--color-white);
}
.crews__foot {
  margin-top: var(--space-5);
  text-align: center;
  font-family: var(--font-hand);
  color: var(--color-primary);
  font-size: var(--fs-md);
  transform: rotate(-0.8deg);
}
@media (prefers-reduced-motion: reduce) {
  .crew {
    opacity: 1;
    transform: none;
  }
}

/* Brand logo image in nav + footer */
.nav__logo img {
  height: 48px;
  width: auto;
}
.footer__logo {
  width: 210px;
  max-width: 64%;
  height: auto;
}

/* ===========================================================
   Operators / crew cards (Our People)
   =========================================================== */
.crew-cards {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-7);
  max-width: 760px;
}
@media (min-width: 620px) {
  .crew-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
.op-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.op-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-3px);
}
.op-card__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-surface-2);
}
.op-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.op-card__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
}
.op-card__name {
  font-size: var(--fs-lg);
}
.op-card__role {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
}
.op-card__note {
  margin-top: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-muted);
}
