/* Self-hosted variable fonts (latin subset) — no third-party requests. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/manrope-latin-variable.woff2') format('woff2'); }
@font-face { font-family: 'Saira'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/saira-latin-variable.woff2') format('woff2'); }

:root {
  --blue-950: #111642;
  --blue-900: #1c245f;
  --blue-800: #29358a;
  --blue-100: #e7e9f3;
  --red-600: #d31e26;
  --red-700: #b7171e;
  --red-300: #ff6d72;        /* small red text on navy only (brand red is too dark to read there) */
  --marker: var(--blue-800); /* decorative list markers and numbering, so red is kept for actions */
  --marker-on-dark: #7f86b3;
  --bone: #f4f3ee;
  --paper: #faf9f5;
  --ink: #171926;
  --ink-muted: #5d6070;
  --rule: #d7d7d2;
  --display: 'Saira', 'Eurostile', 'Microgramma D Extended', sans-serif;
  --body: 'Manrope', 'Segoe UI', sans-serif;
  --shell: min(100% - 2rem, 86rem);
  --section: clamp(4.75rem, 9vw, 8.5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1.5rem); }
/* Anchor links land below the sticky header (and Past work's sticky jump bar), whatever element they target. */
html:has(.jump-nav) { scroll-padding-top: calc(var(--header-h) + 4.5rem); }

html, body { overflow-x: clip; }

body {
  margin: 0;
  padding-bottom: calc(3.4rem + env(safe-area-inset-bottom));
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

.shell, .section { min-width: 0; }
.split__media, .feature-copy, .gallery, .gallery figure, .service-detail__copy, .service-detail__media, .project-tile, .contact-photo { min-width: 0; }
p, li, h1, h2, h3, h4, blockquote { overflow-wrap: anywhere; }

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
button, input, select, textarea { font: inherit; }

.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 1000;
  padding: .75rem 1rem;
  background: var(--paper);
  color: var(--blue-950);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--red-600);
  outline-offset: 4px;
}

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

.eyebrow {
  margin: 0;
  color: var(--red-600);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before { content: '/ '; }

.display {
  margin: 0;
  color: var(--blue-950);
  font-family: var(--display);
  font-size: clamp(3rem, 7.2vw, 7rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: .88;
  text-transform: uppercase;
}

.display--sm { font-size: clamp(2.75rem, 5.5vw, 5.25rem); }

.lede {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: var(--ink-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .82rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.985); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button--red { background: var(--red-600); color: var(--paper); }
.button--red:hover { background: var(--red-700); }
.button--blue { background: var(--blue-900); color: var(--paper); }
.button--blue:hover { background: var(--blue-800); }
.button--ghost { border-color: currentColor; color: var(--blue-950); }
.button--ghost:hover { background: var(--blue-950); color: var(--paper); }
.button--light { border-color: #c9cbd9; color: var(--paper); }
.button--light:hover { background: var(--paper); color: var(--blue-950); }
.button__arrow { font-size: 1.1rem; transition: transform .2s var(--ease); }
.button:hover .button__arrow { transform: translateX(.3rem); }

.utility-bar { padding-top: env(safe-area-inset-top); background: var(--blue-950); color: #d7d9e7; }

.utility-bar__inner {
  display: flex;
  min-height: 2.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.utility-bar p { margin: 0; }
.utility-bar a { color: var(--paper); text-decoration: none; }
.utility-bar .utility-bar__brand { font-weight: 800; letter-spacing: .02em; text-decoration: underline 2px var(--red-300); text-underline-offset: .2em; transition: color .2s ease; }
.utility-bar .utility-bar__brand:hover, .utility-bar .utility-bar__brand:focus-visible { color: var(--red-300); }
.utility-phone { display: inline-flex; align-items: center; gap: .6rem; }
.utility-phone svg { width: .9rem; fill: var(--red-600); }

.site-header {
  position: sticky;
  top: env(safe-area-inset-top);
  z-index: 100;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(14px);
}

body.menu-open .site-header { background: var(--paper); }

.site-header__inner {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  min-width: 7rem;
  align-items: center;
  text-decoration: none;
}

.brand__window {
  --logo-w: 7.75rem;
  --logo-top: -.6rem;
  position: relative;
  width: var(--logo-w);
  height: 5rem;
  overflow: hidden;
}

.brand__window img {
  position: absolute;
  top: var(--logo-top);
  left: 0;
  width: var(--logo-w);
  height: auto;
}

/* The logo replays the pyramid build from the 2010 website: once on page load
   (main.js adds .brand--intro when the frames have loaded) and again on hover.
   The strip's 20 frames cover the logo's pyramid (x 53-253, y 22-167 of the
   300x269 logo); the last frame is the logo's own pyramid, so it settles back
   seamlessly. Hover uses a second keyframes name so it restarts after the intro. */
.brand__pyramid { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .brand__pyramid {
    position: absolute;
    top: calc(var(--logo-top) + var(--logo-w) * 22 / 300);
    left: calc(var(--logo-w) * 53 / 300);
    display: block;
    width: calc(var(--logo-w) * 200 / 300);
    aspect-ratio: 200 / 145;
    background: url("../images/mcnally-logo-pyramid-build.webp") 0 0 / 2000% 100% no-repeat;
    visibility: hidden;
  }
  .brand--intro .brand__window img { clip-path: inset(63% 0 0 0); }
  .brand--intro .brand__pyramid { visibility: visible; animation: pyramid-build 1.6s steps(19, end) forwards; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brand:hover .brand__window img { clip-path: inset(63% 0 0 0); }
  .brand:hover .brand__pyramid { visibility: visible; animation: pyramid-build-hover 1.6s steps(19, end) forwards; }
}

@keyframes pyramid-build { to { background-position: 100% 0; } }
@keyframes pyramid-build-hover { to { background-position: 100% 0; } }

.desktop-nav { display: none; }
.desktop-nav ul { display: flex; height: 100%; align-items: stretch; gap: 1.65rem; margin: 0; padding: 0; list-style: none; }
.desktop-nav li { display: flex; }
.desktop-nav a {
  position: relative;
  display: flex;
  min-height: 3rem;
  align-items: center;
  color: var(--blue-950);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: .35rem;
  left: 0;
  height: 2px;
  background: var(--red-600);
  content: '';
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s var(--ease);
}

.desktop-nav a:hover::after, .desktop-nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-actions > .button { display: none; }

.menu-toggle {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--blue-950);
  cursor: pointer;
  place-content: center;
}

.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  content: '';
  transition: transform .25s var(--ease), opacity .2s ease;
}

.menu-toggle span { margin: .27rem 0; }
.menu-toggle[aria-expanded='true'] span { opacity: 0; }
.menu-toggle[aria-expanded='true']::before { transform: translateY(calc(.27rem + 2px)) rotate(45deg); }
.menu-toggle[aria-expanded='true']::after { transform: translateY(calc(-.27rem - 2px)) rotate(-45deg); }

/* Starts under the real header (main.js sets --menu-top) and scrolls above the call bar. */
.mobile-menu {
  position: fixed;
  top: var(--menu-top, 8rem);
  right: 0;
  bottom: calc(3.4rem + env(safe-area-inset-bottom));
  left: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: var(--blue-950);
  color: var(--paper);
  opacity: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .35rem 0 .85rem;
  pointer-events: none;
  transform: translateY(-.5rem);
  transition: opacity .25s ease, transform .35s var(--ease);
}

.mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu__shade {
  position: sticky;
  top: -.45rem;
  z-index: 2;
  flex: none;
  align-self: stretch;
  height: 2.9rem;
  margin-bottom: -2.9rem;
  background: linear-gradient(var(--blue-950) 80%, transparent);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.can-scroll-back .mobile-menu__shade { opacity: 1; }
.mobile-menu.can-scroll::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 2.75rem;
  background: linear-gradient(transparent, var(--blue-950));
  pointer-events: none;
}
.mobile-menu ul { width: min(100% - 2.5rem, 32rem); margin: 0 auto; padding: .4rem 0 1rem; list-style: none; }
.mobile-menu li { border-bottom: 1px solid #343965; }
.mobile-menu a {
  display: flex;
  min-height: 3.75rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--display);
  font-size: clamp(1.7rem, 6.5vw, 2.15rem);
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
}
.mobile-menu a[aria-current='page'] { padding-left: .75rem; box-shadow: inset 3px 0 0 var(--red-600); }
.mobile-menu a::after { color: var(--red-600); content: '↗'; font-family: var(--body); font-size: 1rem; }

@media (max-height: 34rem) {
  .mobile-menu { padding-top: 0; padding-bottom: .25rem; scroll-snap-type: y proximity; }
  .mobile-menu ul { padding-bottom: .35rem; }
  .mobile-menu li { scroll-snap-align: start; }
  .mobile-menu a { min-height: 3rem; font-size: 1.45rem; }
}

.hero {
  position: relative;
  min-height: min(48rem, calc(100svh - 7.65rem));
  display: grid;
  align-items: start;
  overflow: hidden;
  background: var(--blue-950);
  color: var(--paper);
  isolation: isolate;
}

.hero__media, .hero__media::after { position: absolute; inset: 0; }
.hero__media { z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 61% center; }
.hero__media::after {
  z-index: 1;
  background: linear-gradient(90deg, #111642f5 0%, #111642dc 37%, #11164255 70%, #11164218 100%), linear-gradient(0deg, #111642cc 0%, transparent 42%);
  content: '';
}

.hero__grid {
  display: grid;
  min-height: min(48rem, calc(100svh - 7.65rem));
  align-items: center;
  padding-block: clamp(5rem, 12vw, 9rem) 0;
}

.hero__content { max-width: 54rem; container-type: inline-size; }
.hero .eyebrow { color: var(--red-300); }
.hero .display { color: var(--paper); }
.hero .hero__headline { max-width: none; font-size: min(clamp(4rem, 10vw, 8.5rem), 16.5cqw); }
.hero__line { display: block; line-height: .9; white-space: nowrap; overflow-wrap: normal; word-break: keep-all; }
.hero__line--accent { color: var(--red-600); }
.hero__lead { max-width: 41rem; margin: 1.5rem 0 0; color: #d6d9e8; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero-spec {
  border-top: 1px solid #59608a;
  background: #111642dc;
}

.hero-spec__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-spec__item { min-height: 5.25rem; padding: 1.1rem .7rem; border-right: 1px solid #3c426e; }
.hero-spec__item:last-child { border-right: 0; }
.hero-spec strong { display: block; font-family: var(--display); font-size: clamp(1.3rem, 3vw, 2.1rem); line-height: 1; }
.hero-spec span { display: block; margin-top: .35rem; color: #aeb3cf; font-size: .68rem; font-weight: 700; letter-spacing: .08em; line-height: 1.25; text-transform: uppercase; }

.section { padding-block: var(--section); }
.section--bone { background: var(--bone); }
.section--blue { background: var(--blue-950); color: var(--paper); }
.section--blue .display { color: var(--paper); }
.section--blue .lede { color: #c3c7da; }
.section--blue .eyebrow, .contact-card .eyebrow, .job-card .eyebrow { color: var(--red-300); }
.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.75rem, 6vw, 5rem); }
.section-head .lede { margin: 0; }

.intro-grid { display: grid; gap: 2.5rem; align-items: end; }
.intro-grid__side { border-top: 1px solid var(--rule); padding-top: 1.25rem; }

.service-list { border-top: 1px solid var(--rule); }
.intro-grid + .service-list { margin-top: clamp(3rem, 7vw, 6rem); }
.service-row {
  display: grid;
  gap: 1rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: color .2s ease;
}
.service-row__number { color: var(--marker); font-family: var(--display); font-size: 1.1rem; font-weight: 700; }
.service-row h3 { margin: 0; color: var(--blue-950); font-family: var(--display); font-size: clamp(2rem, 4vw, 3.5rem); line-height: .95; text-transform: uppercase; }
.service-row p { max-width: 42rem; margin: 0; color: var(--ink-muted); }
.service-row__arrow { color: var(--red-600); font-size: 1.35rem; transition: transform .2s var(--ease); }
.service-row:hover .service-row__arrow { transform: translateX(.4rem); }

.split { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.media-frame { position: relative; overflow: hidden; background: var(--blue-100); }
.media-frame::after { position: absolute; inset: 0; border: 1px solid #11164212; content: ''; pointer-events: none; }
.media-frame img { width: 100%; height: 100%; max-width: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.media-frame:hover img { transform: scale(1.018); }
.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-frame--landscape { aspect-ratio: 16 / 10; }
.media-frame--wide { aspect-ratio: 16 / 8.5; }

.feature-copy h1, .feature-copy h2 { margin: .85rem 0 1.5rem; color: inherit; font-family: var(--display); font-size: clamp(3rem, 6vw, 5.75rem); line-height: .9; text-transform: uppercase; }
.feature-copy > p { max-width: 38rem; color: inherit; opacity: .78; font-size: 1.08rem; }
.feature-copy > .button { margin-top: 1.5rem; }
.feature-media { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.gallery + .button { margin-top: 2rem; }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 1.75rem; }
.inline-actions p { margin: 0; color: var(--ink-muted); }
.inline-actions p a { color: var(--blue-950); font-weight: 700; }
.feature-list { margin: 2rem 0 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .8rem; padding-block: .8rem; border-top: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 18%, transparent); }
.feature-list li::before { color: var(--marker); content: '↗'; font-weight: 800; }
.section--blue .feature-list li::before { color: var(--marker-on-dark); }

.numbers-band { background: var(--blue-900); color: var(--paper); }
.numbers-grid { display: grid; }
.number-block { padding: 2rem 0; border-bottom: 1px solid #3f4779; }
.number-block:last-child { border-bottom: 0; }
.number-block strong { display: block; font-family: var(--display); font-size: clamp(3.5rem, 8vw, 7.5rem); font-weight: 700; letter-spacing: -.03em; line-height: .8; }
.world-map { grid-column: 1 / -1; margin: 0; padding: 2.5rem 0; border-bottom: 1px solid #3f4779; }
.world-map__title { max-width: 22ch; margin: 0 0 2rem; color: var(--paper); font-family: var(--display); font-size: clamp(1.75rem, 3.6vw, 3.1rem); font-weight: 700; line-height: 1; text-transform: uppercase; }
.world-map img { display: block; width: 100%; height: auto; }
.number-block p { margin: 1rem 0 0; color: #bcc0d5; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.maker-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.maker-list li { display: flex; align-items: center; min-height: 5.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.maker-logo { height: 1.9rem; width: auto; max-width: 85%; object-fit: contain; object-position: left center; }
.maker-logo--tall { height: 2.5rem; }

.project-strip { display: grid; gap: 1rem; }
.project-tile { position: relative; min-height: 25rem; overflow: hidden; background: var(--blue-950); text-decoration: none; }
.project-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project-tile:hover img { transform: scale(1.025); }

.gallery { columns: 2; column-gap: .6rem; }
.gallery figure { margin: 0 0 .6rem; break-inside: avoid; display: flex; flex-direction: column; }
.gallery img { width: 100%; height: auto; background: var(--blue-100); }
/* A short preview (About page): one even row instead of masonry, so 4 photos never leave an orphan. */
.gallery--row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.gallery.gallery--row figure { margin: 0; }
.gallery--row img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__item--clickable { position: relative; cursor: zoom-in; }
.gallery__item--clickable:focus-visible { outline: 3px solid var(--red-600); outline-offset: 2px; }
.gallery__item--clickable::after {
  content: '⤢'; position: absolute; top: .6rem; right: .6rem; width: 2rem; height: 2rem;
  display: grid; place-items: center; border-radius: 50%; background: #111642cc; color: var(--paper);
  font-size: 1rem; opacity: 0; transform: scale(.85); transition: opacity .2s var(--ease), transform .2s var(--ease);
  pointer-events: none;
}
.gallery__item--clickable:hover::after, .gallery__item--clickable:focus-visible::after { opacity: 1; transform: scale(1); }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: #0a0d20f0; padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: grid; }
body.lightbox-open { overflow: hidden; }
.lightbox__figure { margin: 0; max-width: min(94vw, 96rem); max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.lightbox__img { max-width: 100%; max-height: 78vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 1.5rem 4rem #00000066; }
.lightbox__close, .lightbox__nav {
  position: fixed; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: #ffffff1a; color: var(--paper); cursor: pointer; transition: background .2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: #ffffff33; }
.lightbox__close { top: 1.25rem; right: 1.25rem; width: 3rem; height: 3rem; font-size: 1.75rem; line-height: 1; }
.lightbox__nav { top: 50%; width: 3.25rem; height: 3.25rem; font-size: 1.5rem; transform: translateY(-50%); }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
@media (max-width: 40rem) {
  .lightbox__nav { width: 2.75rem; height: 2.75rem; }
  .lightbox__prev { left: .4rem; }
  .lightbox__next { right: .4rem; }
}

.trust-bar { border-block: 1px solid var(--rule); background: var(--paper); }
.trust-bar__inner { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 1.5rem 2.75rem; align-items: center; justify-content: center; margin: 0; padding: 0; list-style: none; }
.trust-head { display: grid; gap: .6rem; justify-items: center; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); text-align: center; }
.trust-note { max-width: 44rem; margin: 0; color: var(--ink-muted); font-size: .85rem; line-height: 1.5; }
.trust-strip li { display: flex; align-items: center; }
.trust-strip a { display: flex; align-items: center; transition: opacity .2s ease, transform .2s var(--ease); }
.trust-strip a:hover { opacity: .75; transform: translateY(-2px); }
.trust-badge { height: 4.75rem; width: auto; }
.trust-logo { height: 2.9rem; width: auto; max-width: 11rem; object-fit: contain; }
.trust-logo--tall { height: 4.25rem; }
.trust-logo--chip { box-sizing: content-box; height: 1.9rem; padding: .5rem .8rem; background: var(--blue-950); }

.cta-panel { position: relative; overflow: hidden; background: var(--red-600); color: var(--paper); }
.cta-panel::before { position: absolute; top: -55%; right: -12%; width: 46rem; height: 46rem; border: 1px solid #ffffff45; border-radius: 50%; content: ''; }
.cta-panel__inner { position: relative; display: grid; gap: 2rem; align-items: end; padding-block: clamp(4rem, 8vw, 7rem); }
.cta-panel .display { max-width: 9ch; color: var(--paper); }
.cta-panel .eyebrow { color: var(--paper); }
.cta-panel p { max-width: 40rem; margin: 1rem 0 0; color: #ffe8e9; }

.page-hero { position: relative; min-height: clamp(24rem, 55vw, 38rem); overflow: hidden; background: var(--blue-950); color: var(--paper); isolation: isolate; }
.page-hero__media { position: absolute; z-index: -2; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .64; }
.page-hero__media::after { position: absolute; inset: 0; background: linear-gradient(90deg, #111642f2 0%, #111642c5 48%, #11164233 100%), linear-gradient(0deg, #111642cf 0%, transparent 55%); content: ''; }
.page-hero__inner { display: flex; min-height: inherit; flex-direction: column; justify-content: flex-end; padding-block: 1.35rem 5rem; }
.page-hero .display { max-width: 11ch; color: var(--paper); }
.page-hero .lede { max-width: 38rem; color: #d8daea; }
.page-hero .eyebrow { color: var(--red-300); }
/* Sits under the header. The auto margin keeps the headline group at the bottom of the hero. */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 auto; padding-bottom: 1rem; color: #c4c8dc; font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.crumbs a { text-decoration-color: #7c82a8; text-underline-offset: 4px; }
.crumbs span { color: var(--red-300); }

/* Past work: sticky project jump bar under the header. */
.jump-nav { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top)); z-index: 50; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(14px); }
.jump-nav__inner { display: flex; gap: .5rem; overflow-x: auto; padding-block: .6rem; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.jump-nav:has(.is-scrolled)::before,
.jump-nav:has(.is-overflowing)::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}
/* Left fade is wider so a chip stub at the end of the row disappears, instead of reading as a cut-off letter. */
.jump-nav:has(.is-scrolled)::before {
  left: 0;
  width: 4.25rem;
  background: linear-gradient(90deg, var(--paper) 68%, #faf9f500);
}
.jump-nav:has(.is-overflowing)::after {
  right: 0;
  width: 2.75rem;
  background: linear-gradient(90deg, #faf9f500, var(--paper) 78%);
}
.jump-nav__inner::-webkit-scrollbar { display: none; }
.jump-nav a { display: inline-flex; flex: none; min-height: 2.75rem; align-items: center; padding-inline: 1rem; border: 1px solid var(--rule); color: var(--blue-950); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; scroll-snap-align: start; transition: border-color .2s ease, color .2s ease; }
.jump-nav a:hover { border-color: var(--red-600); color: var(--red-600); }

/* Touch screens: every link at least 44px tall (WCAG 2.5.5). */
@media (max-width: 63.99rem) {
  .utility-bar a, .crumbs a, .footer-grid a, .footer-address a, .w3w, .contact-card__list a { display: inline-flex; min-height: 2.75rem; align-items: center; }
  .footer-address a { align-items: flex-start; justify-content: center; }
  .footer-links { gap: 0 1.5rem; }
  .utility-bar__inner { min-height: 2.75rem; }

  /* Fill the screen above the call bar so it never slices a heading or a button. */
  .hero {
    display: flex;
    flex-direction: column;
    height: calc(100svh - 8rem - 3.4rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    min-height: 0;
  }
  .hero__grid { flex: 1 1 auto; min-height: 0; padding-block: clamp(1.25rem, 4vw, 2.5rem); }
  .hero-spec { flex-shrink: 0; }
  .page-hero { min-height: calc(100svh - 8rem - 3.4rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .page-hero__inner { padding-block: clamp(1.5rem, 4vw, 2.75rem) clamp(1.15rem, 3vw, 1.75rem); }
  .jump-nav .jump-nav__inner { width: 100%; padding-inline: 1rem; scroll-padding-inline: 1rem; }
}

/* Short phones: the stats row sits below the first screen so the buttons stay clear of the call bar. */
@media (max-width: 63.99rem) and (max-height: 36rem) {
  .hero { height: auto; min-height: 0; }
  .hero__grid {
    flex: none;
    min-height: calc(100svh - 8rem - 4.15rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
  .page-hero .display { font-size: clamp(2.15rem, 9vh, 3rem); }
  .page-hero .lede { margin-top: .6rem; font-size: .98rem; }
  .page-hero__inner { padding-block: 1rem .85rem; }
  .crumbs { padding-bottom: .35rem; }
  .hero-spec__item { min-height: 0; padding: .6rem .4rem; }
  .hero-spec strong { font-size: 1.15rem; }
  .hero-spec span { letter-spacing: .04em; }
}

/* Landscape phones: tighter type so the headline and both actions fit above the bar. */
@media (max-width: 63.99rem) and (max-height: 32rem) {
  .hero__grid { padding-block: 1rem; }
  .hero .hero__headline { font-size: clamp(2rem, 8.5vh, 3rem); }
  .hero__lead { margin-top: .55rem; font-size: 1rem; }
  .hero__actions { margin-top: .8rem; }
  .page-hero__inner { padding-block: .75rem .85rem; }
  .page-hero .display { max-width: 16ch; font-size: clamp(1.7rem, 7vh, 2.4rem); }
  .page-hero .lede { margin-top: .4rem; font-size: .95rem; }
  .crumbs { padding-bottom: .25rem; }
}
/* Phones: the sticky call bar already shows the number, so the top bar drops it. */
@media (max-width: 39.99rem) {
  .utility-bar .utility-phone { display: none; }
}

.service-detail { display: grid; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.service-detail + .service-detail { margin-top: var(--section); padding-top: var(--section); border-top: 1px solid var(--rule); }
.service-detail__index { color: var(--red-600); font-family: var(--display); font-size: 1.2rem; font-weight: 700; }
.service-detail h2 { margin: 1rem 0 1.5rem; color: var(--blue-950); font-family: var(--display); font-size: clamp(3.25rem, 7vw, 6.5rem); line-height: .87; text-transform: uppercase; }
.service-detail .lede { margin-bottom: 2rem; }
.clean-list { margin: 0; padding: 0; border-top: 1px solid var(--rule); list-style: none; }
.clean-list li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .75rem; padding-block: .9rem; border-bottom: 1px solid var(--rule); }
.clean-list li::before { color: var(--marker); content: '—'; font-weight: 800; }
.spec-card { margin-top: 1.5rem; padding: 1.5rem; background: var(--blue-950); color: var(--paper); container-type: inline-size; }
.spec-card strong { display: block; font-family: var(--display); font-size: clamp(1.6rem, 10cqi, 4.5rem); line-height: 1; text-transform: uppercase; overflow-wrap: break-word; }
.spec-card p { margin: .75rem 0 0; color: #c2c6db; }

.timeline { position: relative; margin-top: 3rem; }
.timeline::before { position: absolute; top: 0; bottom: 0; left: 3.25rem; width: 1px; background: var(--rule); content: ''; }
.timeline-item { position: relative; display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.25rem; padding-bottom: 3rem; }
.timeline-year { position: relative; z-index: 1; padding: .4rem .5rem; background: var(--paper); color: var(--red-600); font-family: var(--display); font-size: 1.5rem; font-weight: 700; line-height: 1; text-align: center; }
.timeline-item h3 { margin: 0; color: var(--blue-950); font-family: var(--display); font-size: 2rem; line-height: 1; text-transform: uppercase; }
.timeline-item p { max-width: 47rem; margin: .75rem 0 0; color: var(--ink-muted); }

.firsts { margin-top: 4.5rem; }
.firsts .section-head { margin-bottom: 2.5rem; }
.firsts-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.firsts-list li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) minmax(0, 1.6fr); gap: 1.25rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.firsts-year { font-family: var(--display); font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--red-600); text-align: left; }
.firsts-machine { font-family: var(--display); font-size: 1.125rem; font-weight: 700; line-height: 1.15; color: var(--blue-950); text-transform: uppercase; }
.firsts-claim { color: var(--ink-muted); }
@media (max-width: 42rem) {
  .firsts-list li { grid-template-columns: 5rem 1fr; } .firsts-claim { grid-column: 2; }
  .timeline::before { left: 2.125rem; }
  .timeline-item { grid-template-columns: 4.25rem minmax(0, 1fr); gap: 1rem; }
  .timeline-year { font-size: 1.2rem; }
  .timeline-item h3 { font-size: clamp(1.4rem, 6.5vw, 2rem); }
}

.values-grid { display: grid; border-top: 1px solid #3e4573; }
.value { padding: 2rem 0; border-bottom: 1px solid #3e4573; }
.value h3 { margin: 1rem 0 .5rem; font-family: var(--display); font-size: 2.4rem; line-height: 1; text-transform: uppercase; }
.value p { max-width: 28rem; margin: 0; color: #bfc3d7; }

.locations { display: grid; border-top: 1px solid var(--rule); }
.location { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
a.location { display: block; color: inherit; text-decoration: none; transition: padding-left .25s var(--ease); }
a.location:hover { padding-left: .6rem; }
a.location:hover h3 { color: var(--red-600); }
.location h3 { margin: 0; color: var(--blue-950); font-family: var(--display); font-size: 2rem; line-height: 1; text-transform: uppercase; transition: color .25s var(--ease); }
.location p { margin: .6rem 0 0; color: var(--ink-muted); }

.error-diagram { border: 1px solid var(--rule); background: var(--bone); padding: 1.25rem; }
.error-diagram__svg { display: block; width: 100%; height: auto; }

.publication { display: grid; gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 4rem); background: var(--blue-100); }
.publication h2 { margin: .8rem 0 1rem; color: var(--blue-950); font-family: var(--display); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: .92; text-transform: uppercase; }

.job-card { padding: clamp(1.75rem, 4vw, 3rem); background: var(--blue-950); color: var(--paper); }
.job-card__title { margin: 1rem 0 0; font-family: var(--display); font-size: clamp(2.25rem, 4.5vw, 3.75rem); line-height: .94; text-transform: uppercase; }
.job-card__list { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid #3e4573; }
.job-card__list li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .75rem; padding-block: .9rem; border-bottom: 1px solid #3e4573; color: #c2c6db; }
.job-card__list li::before { color: var(--marker-on-dark); content: '—'; font-weight: 800; }
.job-card__apply { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #3e4573; }
.job-card__apply p { margin: 0; color: #aeb3ce; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.contact-layout { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
/* The form sits in its own white panel so it holds its own against the dark contact card. */
.contact-form { display: grid; gap: 1.25rem; margin-top: 2rem; padding: clamp(1.25rem, 4vw, 2.5rem); background: #fff; border: 1px solid #dcdde4; border-top: 4px solid var(--blue-950); box-shadow: 0 18px 40px -24px #11173f40; }
.form-row { display: grid; gap: 1.25rem; }
.field label, .field legend, .field-label { display: block; margin-bottom: .45rem; color: var(--blue-950); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3.4rem;
  padding: .8rem .9rem;
  border: 1px solid #bfc1c9;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6b6e7b; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-800); outline: 3px solid #29358a2e; }
.field [aria-invalid='true'] { border-color: var(--red-600); outline: 3px solid #d31e2626; }
.radio-group { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.radio-label { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .5rem; }
.radio-label input { width: 1.1rem; min-height: 0; accent-color: var(--red-600); }
.form-note { margin: 0; color: var(--ink-muted); font-size: .78rem; }
.form-status { display: none; margin: 0; padding: .9rem 1rem; background: var(--blue-100); color: var(--blue-950); font-size: .85rem; font-weight: 600; }
.form-status.is-visible { display: block; }
.form-status.is-error { background: #fdecea; color: #b42318; }

.contact-card { padding: clamp(1.75rem, 4vw, 3rem); background: var(--blue-950); color: var(--paper); container-type: inline-size; }
.contact-layout .display { margin-top: .85rem; }
.contact-card h2 { margin: 0; font-family: var(--display); font-size: clamp(2.25rem, 16cqi, 4.5rem); line-height: .9; text-transform: uppercase; }
.contact-card__list { margin: 2rem 0 0; padding: 0; list-style: none; }
.contact-card__list li { padding-block: 1.15rem; border-top: 1px solid #3e4573; }
.contact-card__list small { display: block; color: #aeb3ce; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-card__list a, .contact-card__list address, .contact-card__list span { display: block; margin-top: .4rem; color: var(--paper); font-style: normal; text-decoration-color: #747b9f; text-underline-offset: 4px; }
.contact-photo { margin-top: 1.25rem; aspect-ratio: 4 / 3; overflow: hidden; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }

.send-list { margin-top: 1.25rem; padding: 1.5rem; border: 1px solid var(--rule); }
.send-list h3 { margin: 0 0 1rem; color: var(--blue-950); font-family: var(--display); font-size: 2rem; text-transform: uppercase; }
.send-list__row { display: flex; justify-content: space-between; gap: 1rem; padding-block: .65rem; border-top: 1px solid var(--rule); font-size: .85rem; }

.thanks { display: grid; min-height: 100svh; background: var(--bone); place-items: center; }
.thanks__card { width: min(100% - 2rem, 46rem); padding: clamp(2rem, 6vw, 5rem); border-top: .45rem solid var(--red-600); background: var(--paper); box-shadow: 0 1.5rem 5rem #11164218; }
.thanks__mark { color: var(--red-600); font-family: var(--display); font-size: 4rem; line-height: 1; }
.thanks__card h1 { margin: 1rem 0; color: var(--blue-950); font-family: var(--display); font-size: clamp(3.5rem, 8vw, 6rem); line-height: .9; text-transform: uppercase; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Footer: CTA row (quote | phone), links and address, then a colophon "title block",
   over a faint engineering grid and vignette. */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--blue-950); color: var(--paper); }
.site-footer::before, .site-footer::after { position: absolute; z-index: -1; inset: 0; content: ''; pointer-events: none; }
.site-footer::before {
  background-image: repeating-linear-gradient(to right, #faf9f50a 0 1px, transparent 1px 56px), repeating-linear-gradient(to bottom, #faf9f50a 0 1px, transparent 1px 56px);
  mask-image: radial-gradient(ellipse at center, transparent 0%, black 100%);
}
.site-footer::after { background: radial-gradient(ellipse 140% 120% at 50% 45%, transparent 55%, #0a0d2059 100%); }
.footer-watermark { position: absolute; z-index: -1; inset: 0; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; pointer-events: none; }
.footer-watermark span { display: block; margin-bottom: -.14em; color: #faf9f50c; font-family: var(--display); font-size: clamp(5rem, 21vw, 40rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; white-space: nowrap; user-select: none; }

.footer-cta { display: grid; gap: 2rem; padding-block: clamp(2.75rem, 6vw, 4.5rem); border-bottom: 1px solid #faf9f51f; }
.footer-cta a { display: block; color: inherit; text-decoration: none; }
.footer-cta .eyebrow { color: var(--red-300); }
.footer-cta__heading { margin: .9rem 0 0; font-family: var(--display); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; line-height: .9; text-transform: uppercase; text-wrap: balance; }
.footer-cta__arrow { display: inline-block; color: var(--red-600); transition: transform .3s var(--ease); }
.footer-cta__quote:hover .footer-cta__arrow { transform: translateX(.4rem); }
.footer-cta__phone .eyebrow { color: #faf9f599; }
.footer-cta__number { margin: .9rem 0 0; font-family: var(--display); font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 600; line-height: 1; white-space: nowrap; transition: color .2s ease; }
.footer-cta__phone:hover .footer-cta__number { color: var(--red-300); }

.footer-grid { display: grid; gap: 2.25rem; padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.footer-label { margin: 0 0 1rem; color: #faf9f599; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer-label::before { color: var(--red-300); content: '/ '; }
.footer-grid p { margin: 0; color: #c2c6da; font-size: .9rem; }
.footer-grid a { color: #dce0ed; text-decoration-color: #5a6189; text-underline-offset: 4px; transition: color .2s ease; }
.footer-grid a:hover { color: var(--paper); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem 1.5rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.footer-links a { text-decoration: none; }
.footer-address { color: #c2c6da; font-size: .9rem; font-style: normal; }
.footer-address a { display: inline-flex; flex-direction: column; }
.footer-address__code { display: block; margin-top: .3rem; color: #faf9f5b3; font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* what3words: official three-slash symbol beside the address, per their usage guidelines. */
.w3w { display: inline-flex; align-items: center; gap: .4rem; margin-top: .45rem; font-size: .85rem; text-decoration: none !important; }
.w3w img { width: .875rem; height: .875rem; flex-shrink: 0; }
.site-footer .w3w { color: #faf9f58c; }
.site-footer .w3w:hover { color: var(--paper); }
.contact-card__list .w3w { display: inline-flex; color: #c2c6da; }
.contact-card__list .w3w span { display: inline; margin: 0; }

.footer-colophon { display: flex; flex-direction: column; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid #faf9f51f; }
.footer-colophon__legal { margin: 0; }
.footer-colophon__name { display: block; color: #faf9f58c; font-size: .8rem; }
.footer-colophon__plate { display: block; margin-top: .2rem; color: #faf9f566; font-size: .72rem; }
.footer-colophon__notice { display: block; max-width: 30rem; margin-top: .75rem; color: #faf9f54d; font-size: .65rem; line-height: 1.5; }
.footer-colophon__notice a { color: inherit; text-decoration: underline; text-decoration-color: #faf9f526; text-underline-offset: .18em; }
.footer-colophon__notice a:hover { color: #faf9f58c; }
.footer-colophon__meta { display: flex; flex-direction: column; gap: .5rem; }
.footer-colophon__links { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; color: #faf9f580; font-size: .8rem; }
.footer-colophon__links li:not(:last-child)::after { margin-inline: .7em; color: #faf9f538; content: '·'; }
.footer-colophon__links a, .footer-colophon__credit a { display: inline-flex; min-height: 2.75rem; align-items: center; color: inherit; text-decoration: none; transition: color .2s ease; }
.footer-colophon__links a:hover { color: #faf9f5e6; }
.footer-colophon__credit { order: -1; margin: 0; color: #faf9f566; font-size: .8rem; white-space: nowrap; }
.footer-colophon__credit a { text-decoration: underline; text-decoration-color: #faf9f533; text-underline-offset: .18em; }
.footer-colophon__credit a:hover { color: #faf9f5b3; }

.mobile-actions {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 95;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -.5rem 1.5rem #1116421f;
}
.mobile-actions a { display: flex; min-width: 0; min-height: 3.4rem; align-items: center; justify-content: center; gap: .4rem; padding: .6rem .5rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; line-height: 1.2; text-align: center; text-decoration: none; text-transform: uppercase; }
.mobile-actions a:first-child { background: var(--blue-950); color: var(--paper); }
.mobile-actions a:last-child { background: var(--red-600); color: var(--paper); }

.js .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Cross-page transitions: pages fade while the header stays put. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: site-header; }
.mobile-actions { view-transition-name: mobile-actions; }
::view-transition-old(root) { animation: .22s ease both page-out; }
::view-transition-new(root) { animation: .38s var(--ease) both page-in; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(.75rem); } }

/* Hero entrance: the headline is hoisted up out of a slot, the photo settles. */
.hero__media img { animation: hero-settle 9s var(--ease) both; }
.hero .eyebrow, .hero__line, .hero__lead, .hero__actions, .hero-spec__item { animation: hero-rise .9s var(--ease) both; }
.hero__line { animation-name: hero-hoist; animation-duration: 1.1s; }
.hero .eyebrow { animation-delay: .1s; }
.hero__line { animation-delay: .2s; }
.hero__line + .hero__line { animation-delay: .38s; }
.hero__lead { animation-delay: .6s; }
.hero__actions { animation-delay: .72s; }
.hero-spec__item { animation-delay: .85s; }
.hero-spec__item:nth-child(2) { animation-delay: .95s; }
.hero-spec__item:nth-child(3) { animation-delay: 1.05s; }
@keyframes hero-settle { from { transform: scale(1.08); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(1rem); } }
@keyframes hero-hoist {
  from { clip-path: inset(-.2em -.2em 100% -.2em); transform: translateY(.45em); }
  to { clip-path: inset(-.2em); transform: none; }
}

.number-block strong, .hero-spec strong { font-variant-numeric: tabular-nums; }

/* Crane hook on a cable that pays out as the page scrolls (large screens only). */
.scroll-hook { display: none; }
@supports (animation-timeline: scroll()) {
  @media (min-width: 64rem) {
    .scroll-hook { position: fixed; top: 0; right: clamp(.6rem, 1.4vw, 1.5rem); z-index: 60; display: block; width: 24px; height: 100vh; pointer-events: none; }
    .scroll-hook__cable { position: absolute; top: 0; left: 14px; width: 2px; height: 100vh; background: var(--red-600); transform-origin: top; animation: hook-cable linear both; animation-timeline: scroll(root); }
    .scroll-hook__load { position: absolute; top: 0; left: 0; animation: hook-drop linear both; animation-timeline: scroll(root); }
    .scroll-hook__hook { display: block; width: 24px; height: 36px; transform-origin: 15px 0; animation: hook-sway 3.2s ease-in-out infinite alternate; }
  }
}
@keyframes hook-cable { from { transform: scaleY(.18); } to { transform: scaleY(.88); } }
@keyframes hook-drop { from { transform: translateY(18vh); } to { transform: translateY(88vh); } }
@keyframes hook-sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }

@media (min-width: 40rem) {
  :root { --shell: min(100% - 3rem, 86rem); }
  .section-head { grid-template-columns: minmax(0, 1.4fr) minmax(18rem, .6fr); align-items: end; }
  .intro-grid { grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr); }
  .service-row { grid-template-columns: 3rem minmax(12rem, .8fr) minmax(16rem, 1fr) 2rem; align-items: center; }
  .numbers-grid { grid-template-columns: repeat(3, 1fr); }
  .maker-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .number-block { padding: 3rem 1.5rem; border-right: 1px solid #3f4779; border-bottom: 0; }
  .number-block:first-child { padding-left: 0; }
  .number-block:last-child { border-right: 0; }
  .number-block--lead { grid-column: 1 / -1; padding-right: 0; border-right: 0; border-bottom: 1px solid #3f4779; }
  .world-map + .number-block { padding-left: 0; }
  .project-strip { grid-template-columns: 1.2fr .8fr; }
  .gallery { column-gap: 1rem; }
  .gallery figure { margin-bottom: 1rem; }

  .cta-panel__inner { grid-template-columns: 1.4fr .6fr; }
  .cta-panel__action { justify-self: end; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .value { padding: 2rem; border-right: 1px solid #3e4573; }
  .value:first-child { padding-left: 0; }
  .value:last-child { border-right: 0; }
  .locations { grid-template-columns: repeat(2, 1fr); }
  .location { padding: 1.75rem; border-right: 1px solid var(--rule); }
  .location:nth-child(odd) { padding-left: 0; }
  .location:nth-child(even) { border-right: 0; }
  .publication { grid-template-columns: 1fr auto; }
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .footer-cta { grid-template-columns: 1fr 1fr; gap: 0; }
  .footer-cta__phone { padding-left: 2.5rem; border-left: 1px solid #faf9f51f; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-colophon__meta { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 2rem; }
  .footer-colophon__credit { order: 0; }
}

@media (min-width: 64rem) {
  :root { --shell: min(100% - 6rem, 86rem); --header-h: 89px; }
  .desktop-nav { display: block; align-self: stretch; }
  .brand__window { --logo-w: 8.6rem; --logo-top: -.85rem; height: 5.55rem; }
  .desktop-nav a { height: 100%; }
  .header-actions > .button { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none; }
  .split { grid-template-columns: minmax(0, 1.08fr) minmax(22rem, .92fr); }
  .split--reverse { grid-template-columns: minmax(22rem, .92fr) minmax(0, 1.08fr); }
  .split--reverse .split__media { order: 2; }
  .split--reverse .feature-copy { order: 1; }
  .service-detail { grid-template-columns: minmax(0, 1fr) minmax(22rem, .78fr); }
  .service-detail:nth-child(even) .service-detail__media { order: -1; }
  .contact-layout { grid-template-columns: minmax(0, 1.15fr) minmax(22rem, .85fr); }
  .gallery { columns: 3; }
  .gallery--row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .mobile-actions { display: none; }
  .footer-colophon { flex-direction: row; align-items: center; justify-content: space-between; gap: 3rem; }
  .footer-colophon__links a, .footer-colophon__credit a { min-height: 0; }
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
