/* ==========================================================================
   Forward Maintenance Solutions
   Dark, rounded, photography-led. Built to read like a trades company.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --void: #0a0b0c;
  --carbon: #101214;
  --steel: #171a1e;
  --steel-2: #1e2228;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --fog: #9aa2ab;
  --fog-dim: #737a83;
  --white: #f4f6f8;

  --blue: #4a90e2;
  --blue-hot: #6aa9f5;
  --blue-soft: rgba(74, 144, 226, 0.14);

  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;

  --shell: 1280px;
  --gutter: clamp(1.35rem, 4.2vw, 3.4rem);
  --radius: 0px;
  --radius-sm: 0px;
  --pill: 0px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 92px;
  --hero-inset: 0px;
  --hero-gutter: 64px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
/* <picture> is a transparent wrapper: it must not create a box, so every
   existing img rule keeps applying exactly as before. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--blue); color: #06080b; }
:focus-visible { outline: 2px solid var(--blue-hot); outline-offset: 3px; }

/* Cursor: arrow over everything by default, pointer only on clickable things,
   text caret only where you can actually type. */
body { cursor: default; }
a[href], button, .btn, [role="button"], select, summary, .nav-toggle,
label[for], .otile, .sector, .ptile, .card-link { cursor: pointer; }
input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
textarea { cursor: text; }
input[type="button"], input[type="submit"], input[type="checkbox"], input[type="radio"] { cursor: pointer; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

.h-xl {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.028em;
  text-wrap: pretty;
}
.h-lg {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: -0.022em;
}
.h-md { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.h-sm { font-size: clamp(1.12rem, 1.4vw, 1.3rem); line-height: 1.24; }
h4 { line-height: 1.24; }

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

.lede {
  font-size: clamp(1.1rem, 1.4vw, 1.28rem);
  line-height: 1.6;
  color: #d2d8de;
}
.muted { color: var(--fog); }
.accent { color: var(--blue); }

.label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Section eyebrow - a chip, not a hairline */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem 0.5rem 0.85rem;
  margin-bottom: clamp(1.2rem, 2.4vw, 1.8rem);
  border-radius: var(--pill);
  background: var(--blue-soft);
  color: #a9cbf3;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.eyebrow .label { font-size: 0.78rem; letter-spacing: 0.1em; }

/* ---------- 4. Layout ---------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

section { position: relative; z-index: 2; }

.section { padding-block: clamp(3.6rem, 6.5vw, 6rem); }
.section--carbon { background: var(--carbon); }
.section--steel { background: var(--steel); }

.grid { display: grid; gap: clamp(1rem, 1.6vw, 1.4rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}
.split--middle { align-items: center; }
.split--wide-left { grid-template-columns: 1.1fr 0.9fr; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.2rem 3rem;
  align-items: end;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}
.section-head p { max-width: 52ch; color: var(--fog); margin: 0; }
.section-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}
.section-head--center p { margin-inline: auto; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #06080b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.05rem 1.9rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border-radius: var(--pill);
  transition: transform 0.3s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arw { transition: transform 0.3s var(--ease); }
.btn:hover { background: var(--blue-hot); transform: translateY(-2px); }
.btn:hover .arw { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: var(--white);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.4); }
.btn--ghost svg { color: var(--blue); }

.btn--sm { padding: 0.7rem 1.25rem; font-size: 0.88rem; }
.btn--pill { border-radius: 999px; padding: 0.95rem 1.75rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: clamp(1.6rem, 2.6vw, 2.2rem); }
.btn-row--center { justify-content: center; }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.25s, gap 0.25s var(--ease);
}
.tlink:hover { color: var(--blue-hot); gap: 0.85rem; }

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding-block: 24px;
  transition: padding 0.35s var(--ease), background 0.35s;
}
/* light scrim so the nav stays legible over bright footage */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.62), rgba(8, 9, 10, 0));
  transition: opacity 0.35s;
}
.site-header.is-stuck::before { opacity: 0; }
.header-inner { position: relative; z-index: 2; }

.site-header.is-stuck {
  padding-block: 0.55rem;
  background: rgba(10, 11, 12, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  padding-inline: calc(var(--hero-inset) + var(--hero-gutter));
  display: flex;
  align-items: center;
}

.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; transition: opacity 0.25s; }
.brand:hover img { opacity: 0.85; }

/* plain inline navigation */
.nav-main { display: flex; align-items: center; gap: 34px; margin-left: 118px; }
.nav-main a {
  position: relative;
  padding: 0.4rem 0;
  font-weight: 600;
  font-size: 1rem;
  color: #cfd5db;
  transition: color 0.2s;
}
.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.25s var(--ease);
}
.nav-main a:hover { color: var(--white); }
.nav-main a:hover::after, .nav-main a.is-active::after { width: 100%; }
.nav-main a.is-active { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; }
.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: #d4dae0;
  transition: color 0.25s;
}
.header-tel svg { width: 17px; height: 17px; color: var(--blue); }
.header-tel:hover { color: var(--white); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: var(--pill);
  background: rgba(22, 25, 29, 0.8);
  border: 1px solid var(--line);
  position: relative;
}
.nav-toggle i {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav-toggle i:nth-child(1) { top: 17px; }
.nav-toggle i:nth-child(2) { top: 22px; }
.nav-toggle i:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--carbon);
  padding: 7rem var(--gutter) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav ul { display: grid; gap: 0.6rem; }
.mobile-nav a {
  display: block;
  padding: 1rem 1.3rem;
  border-radius: var(--radius);
  background: var(--steel);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.4rem;
  transition: background 0.25s, border-color 0.25s;
}
.mobile-nav a:hover { background: var(--steel-2); border-color: var(--line-strong); }
.mobile-nav-foot { display: grid; gap: 0.9rem; margin-top: 2rem; }
.mobile-nav-foot .btn {
  width: 100%;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: none;
}
.mobile-nav-foot .btn svg { width: 20px; height: 20px; }
/* primary "Request a Quote" CTA */
.mobile-nav-foot .btn--cta { background: var(--blue); color: #06080b; border: 0; }
.mobile-nav-foot .btn--cta:hover { background: var(--blue-hot); }
/* call: blue text + blue icon on a steel tile */
.mobile-nav-foot .btn--call { background: var(--steel); border: 1px solid var(--line-strong); color: var(--blue); }
.mobile-nav-foot .btn--call svg { color: var(--blue); }
.mobile-nav-foot span { color: var(--fog); font-size: 0.95rem; text-align: center; }

body.nav-open { position: fixed; inset: 0; width: 100%; overflow: hidden; }

/* ---------- 7. Hero ----------
   Inset card. Nothing inside is in normal flow: four clusters pin to the
   corners and share one left edge with the nav.
--------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  margin: var(--hero-inset);
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video,
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-veil--a { background: linear-gradient(90deg, rgba(6, 7, 8, 0.72) 0%, rgba(6, 7, 8, 0.36) 46%, rgba(6, 7, 8, 0.03) 84%); }
.hero-veil--b {
  background: linear-gradient(180deg,
    rgba(6, 7, 8, 0.4) 0%,
    rgba(6, 7, 8, 0) 20%,
    rgba(10, 11, 12, 0) 60%,
    rgba(10, 11, 12, 0.5) 84%,
    rgba(10, 11, 12, 0.88) 94%,
    var(--void) 100%);
}

/* headline cluster */
.hero-block {
  position: absolute;
  left: var(--hero-gutter);
  top: clamp(150px, 22vh, 245px);
  z-index: 3;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(10, 11, 12, 0.4);
  backdrop-filter: blur(6px);
  font-size: 0.86rem;
  font-weight: 600;
  color: #e2e8ee;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) forwards;
}
.hero-badge svg { width: 15px; height: 15px; flex: none; color: var(--blue); }

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 112;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 3.3vw, 3.05rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.1s forwards;
}
.hero-title em { font-style: normal; font-weight: 800; }

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.2s forwards;
}

.proof-badge { width: 138px; height: auto; flex: none; }


/* body copy, sitting between the headline and the CTA */
.hero-para {
  max-width: 480px;
  margin: 1.5rem 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #c8d0d8;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.18s forwards;
}

/* floating action buttons */
.hero-fabs {
  position: absolute;
  right: var(--hero-gutter);
  bottom: 64px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.4s forwards;
}
.fab {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(244, 246, 248, 0.92);
  color: #0a0b0c;
  backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.fab svg { width: 24px; height: 24px; }
.fab:hover { background: #fff; transform: translateY(-2px); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 7g. Hero kicker + tag strip ---------- */
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b9c3cd;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) forwards;
}
.hero-kicker::before {
  content: "";
  width: 42px;
  height: 3px;
  flex: none;
  background: var(--blue);
}

.hero-tags {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(8, 9, 10, 0), rgba(8, 9, 10, 0.55));
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.45s forwards;
}
.hero-tags ul {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
  padding-block: 1.15rem;
}
.hero-tags li {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 100;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  letter-spacing: 0.08em;
  color: #dbe1e8;
}
.hero-tags li:not(:last-child)::after {
  content: "»";
  color: var(--blue);
  font-size: 1rem;
}

/* ---------- 7h. Word band - type as the graphic ---------- */
.wordband {
  position: relative;
  overflow: hidden;
  border-block: 4px solid var(--blue);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.wordband img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.6);
}
.wordband::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.88), rgba(8, 9, 10, 0.82));
}
.wordband-inner { position: relative; z-index: 2; }
.wordband p {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 5.1vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
}
/* the brand arrow, set inline as the separator */
.wordband p .fwd {
  display: inline-block;
  width: 0.66em;
  height: 0.66em;
  margin-inline: 0.1em;
  vertical-align: 0.04em;
  color: var(--blue);
}
.wordband .btn-row { margin-top: clamp(1.4rem, 2.4vw, 2rem); }
.wordband .sub {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog);
  margin-top: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.5;
}

/* ---------- 7a. Blue divider rules ---------- */
.rule-blue {
  position: relative;
  z-index: 3;
  height: 4px;
  background: var(--blue);
}

/* short rule used to break two stacked sections apart */
.rule-short {
  position: relative;
  z-index: 2;
  background: var(--carbon);
}
.rule-short span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--blue);
}

/* full-bleed tile grid - edge to edge, no gaps */
.tilewall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding-inline: 34px;
}

/* ---------- 7e. Overlay service tiles ---------- */
.otile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
  transition: outline-color 0.25s;
}
.otile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.otile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.15) 30%, rgba(8, 9, 10, 0.88) 100%);
  transition: background 0.3s;
}
.otile:hover { outline: 3px solid var(--blue); outline-offset: -3px; z-index: 2; }
.otile:hover img { transform: scale(1.06); }
.otile:hover::after { background: linear-gradient(180deg, rgba(8, 9, 10, 0.05) 25%, rgba(8, 9, 10, 0.85) 100%); }

.otile-body {
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  padding: clamp(1.2rem, 2vw, 1.6rem);
  border-bottom: 4px solid transparent;
  transition: border-color 0.3s;
}
.otile:hover .otile-body { border-bottom-color: var(--blue); }
.otile-body h3 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
.otile-body .go {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue);
  transition: gap 0.25s var(--ease);
}
.otile:hover .go { gap: 0.8rem; }

/* ---------- 7f. Numbered steps ---------- */
.steplist { display: grid; }
.stepitem {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 1.3rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.stepitem:last-child { border-bottom: 1px solid var(--line); }
.stepitem .sn {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 1px;
}
.stepitem .sn svg { width: 23px; height: 23px; flex: none; color: var(--blue); }
.stepitem h4 { font-size: 1.08rem; margin-bottom: 0.25rem; }
.stepitem p { color: var(--fog); font-size: 0.96rem; margin: 0; }

/* ---------- 7b. Trust bar under the hero ---------- */
.trustbar {
  position: relative;
  z-index: 3;
  background: var(--steel);
  border-top: 3px solid var(--blue);
  border-bottom: 1px solid var(--line);
}
.trustbar ul {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trustbar li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.35rem 1.6rem 1.35rem 0;
  border-right: 1px solid var(--line);
}
.trustbar li:last-child { border-right: 0; }
.trustbar li:not(:first-child) { padding-left: 1.6rem; }
.trustbar svg { width: 26px; height: 26px; flex: none; color: var(--blue); }
.trustbar span { font-weight: 600; font-size: 0.98rem; line-height: 1.35; }

/* ---------- 7c. Photo tiles (image-led service cards) ---------- */
.ptile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--steel);
  border: 1px solid var(--line);
  transition: border-color 0.25s;
}
.ptile-img { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.ptile-body { display: block; }
.ptile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.ptile-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0) 45%, rgba(8, 9, 10, 0.55));
}
.ptile:hover { border-color: rgba(74, 144, 226, 0.6); }
.ptile:hover .ptile-img img { transform: scale(1.05); }
.ptile-body { padding: 1.3rem 1.4rem 1.5rem; }
.ptile-body h3 { margin-bottom: 0.45rem; }
.ptile-body p { color: var(--fog); font-size: 0.96rem; margin: 0; }
.ptile-body .go {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue);
  transition: gap 0.25s var(--ease);
}
.ptile:hover .go { gap: 0.85rem; }

/* ---------- 7d. Full-bleed industry band ---------- */
.band { display: grid; grid-template-columns: repeat(3, 1fr); }
.band a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(220px, 26vw, 340px);
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.band a:last-child { border-right: 0; }
.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) brightness(0.5);
  transition: transform 0.9s var(--ease), filter 0.4s;
}
.band a:hover img { transform: scale(1.05); filter: grayscale(0) brightness(0.65); }
.band span {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 104;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  text-align: center;
  padding-inline: 1rem;
}

/* ---------- 8. Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  transition: border-color 0.25s, background 0.25s, transform 0.35s var(--ease);
}
.card:hover { border-color: rgba(74, 144, 226, 0.5); background: var(--steel-2); transform: translateY(-3px); }
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--fog); font-size: 0.98rem; }

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 1.3rem;
}
.card-icon svg { width: 25px; height: 25px; }

.card-link .go {
  margin-top: auto;
  padding-top: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue);
  transition: gap 0.25s var(--ease);
}
.card-link:hover .go { gap: 0.85rem; }

/* Checkmark list */
.checklist { display: grid; gap: 0.95rem; }
.checklist li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  color: #cdd3da;
}
.checklist li svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 0.2rem;
  color: var(--blue);
}

/* ---------- 9. Media ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--steel);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.media:hover img { transform: scale(1.04); }
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }

.media-cap {
  position: absolute;
  z-index: 2;
  left: 1rem;
  bottom: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--pill);
  background: rgba(10, 11, 12, 0.75);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Industry cards */
.sector {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}
.sector img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.sector::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.05) 35%, rgba(8, 9, 10, 0.9) 100%);
}
.sector:hover img { transform: scale(1.05); }
.sector-body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1.6rem; }
.sector-body h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); margin-bottom: 0.45rem; }
.sector-body p { color: #c3cad2; font-size: 0.94rem; margin: 0; }

/* ---------- 10. Stat / fact panels ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.8rem, 1.4vw, 1.2rem); }
.fact {
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 2vw, 1.7rem);
}
.fact .fk { display: block; color: var(--blue); margin-bottom: 0.7rem; }
.fact .fv {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 104;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 1.5vw, 1.28rem);
  line-height: 1.2;
}

/* ---------- 11. Service rows (services page) ---------- */
.srow {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: start;
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--steel);
  margin-bottom: 1.1rem;
  transition: border-color 0.25s, background 0.25s;
}
.srow:hover { border-color: rgba(74, 144, 226, 0.45); background: var(--steel-2); }
.srow h3 { margin-bottom: 0.8rem; }
.srow-body p { color: var(--fog); }
.srow-num { display: none; }
.srow-list { display: grid; gap: 0.7rem; align-content: start; }
.srow-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: #c8cfd6;
  font-size: 0.98rem;
}
.srow-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.62rem;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- 12. Steps ---------- */
.steps { display: grid; gap: 0.9rem; }
.step {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  padding: clamp(1.2rem, 2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--steel);
}
.step .st-k { color: var(--blue); }
.step h4 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step p { color: var(--fog); font-size: 0.98rem; max-width: 64ch; }

/* ---------- 13. Values ---------- */
.value {
  padding: clamp(1.4rem, 2.2vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--steel);
  transition: border-color 0.25s, background 0.25s;
}
.value:hover { border-color: rgba(74, 144, 226, 0.45); background: var(--steel-2); }
.value .vk {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.value .vk svg { width: 24px; height: 24px; }
.value h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.value p { color: var(--fog); font-size: 0.96rem; }

/* ---------- 14. Photo callout ---------- */
.callout {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 6.5rem);
  border-top: 4px solid var(--blue);
}
.callout img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.callout::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.8), rgba(8, 9, 10, 0.9));
}
.callout-inner { position: relative; z-index: 2; max-width: 44rem; margin-inline: auto; text-align: center; }
.callout-inner p { color: #d2d8de; margin-top: 1rem; }

/* ---------- 15. CTA band ---------- */
.cta-band {
  background: var(--carbon);
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.cta-cards { display: grid; gap: 0.9rem; }
.cta-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  background: var(--steel);
  border: 1px solid var(--line);
  transition: border-color 0.25s, background 0.25s;
}
.cta-card:hover { border-color: rgba(74, 144, 226, 0.45); background: var(--steel-2); }
.cta-card .ci {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  color: var(--blue);
}
.cta-card .ci svg { width: 20px; height: 20px; }
.cta-card .ck { display: block; color: var(--fog-dim); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.cta-card .cv { font-weight: 600; }

/* ---------- 15c. Interior page hero ---------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(440px, 62vh, 660px);
  padding: calc(var(--header-h) + 3rem) 0 clamp(3.2rem, 7vw, 5rem);
  overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.page-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-inline: var(--hero-gutter);
}
.page-hero h1 {
  max-width: 22ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
}
.page-hero .hero-title { max-width: min(100%, 42rem); }
.page-hero .lede {
  max-width: 56ch;
  margin-top: 1.1rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.7);
}
.page-hero .btn-row { margin-top: 1.8rem; }

/* two-column service row, image alternating side */
.srow-block { display: grid; gap: clamp(2.6rem, 5vw, 4.5rem); }
.srow-item {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.6rem, 3.5vw, 3rem);
  align-items: center;
  scroll-margin-top: 120px;
}
.srow-item:nth-child(even) .srow-media { order: 2; }
.srow-media { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.srow-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.srow-item:hover .srow-media img { transform: scale(1.03); }
.srow-item h2 { margin-bottom: 0.9rem; }
.srow-item > div > p { color: var(--fog); }
.srow-item .checklist { margin-top: 1.3rem; }
.srow-item .checklist li { font-size: 0.97rem; }

/* ==========================================================================
   PAGE-SPECIFIC ARCHITECTURES
   Each interior page gets its own skeleton, not a shared template.
   ========================================================================== */

/* ---------- B. SERVICES: flat index header + sticky rail ---------- */
.svc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.svc-rail { position: sticky; top: 130px; }
.svc-rail p {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog-dim);
  margin-bottom: 1rem;
}
.svc-rail a {
  display: block;
  padding: 0.62rem 0;
  border-top: 1px solid var(--line);
  color: var(--fog);
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.25s, padding-left 0.25s var(--ease);
}
.svc-rail a:last-child { border-bottom: 1px solid var(--line); }
.svc-rail a:hover { color: var(--white); padding-left: 8px; }
.svc-rail a.is-current { color: var(--blue); }

.svc-block { padding-bottom: clamp(2.6rem, 5vw, 4rem); }
.svc-block + .svc-block { padding-top: clamp(2.6rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.svc-shot { position: relative; aspect-ratio: 21 / 9; overflow: hidden; margin-bottom: 1.6rem; }
.svc-shot img { width: 100%; height: 100%; object-fit: cover; }
.svc-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.1) 40%, rgba(8, 9, 10, 0.8));
}
.svc-shot h2 {
  position: absolute;
  z-index: 2;
  left: clamp(1.1rem, 2vw, 1.7rem);
  bottom: clamp(1rem, 1.8vw, 1.4rem);
  margin: 0;
  max-width: 90%;
}
.svc-body { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.4rem, 3vw, 2.6rem); }
.svc-body > p { color: var(--fog); margin: 0; }

/* horizontal process strip */
.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.process-row > div {
  padding: clamp(1.2rem, 2vw, 1.8rem) clamp(0.9rem, 1.6vw, 1.4rem) clamp(1.4rem, 2.4vw, 2rem) 0;
  border-right: 1px solid var(--line);
}
.process-row > div:last-child { border-right: 0; }
.process-row .pk { display: flex; gap: 0; margin-bottom: 1rem; }
.process-row .pk svg { width: 17px; height: 17px; color: var(--blue); flex: none; }
.process-row h4 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.process-row p { margin: 0; color: var(--fog); font-size: 0.92rem; }

@media (max-width: 940px) {
  .svc-layout, .svc-body { grid-template-columns: 1fr; }
  .svc-rail { position: static; }
  .svc-rail a { display: inline-block; border: 1px solid var(--line); padding: 0.45rem 0.8rem; margin: 0 0.4rem 0.4rem 0; }
  .svc-rail a:last-child { border: 1px solid var(--line); }
  .process-row { grid-template-columns: 1fr 1fr; }
  .process-row > div:nth-child(2n) { border-right: 0; }
}

/* ---------- 16. Interior page header ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.page-head-bg { position: absolute; inset: 0; z-index: 0; }
.page-head-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-head-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.86), rgba(8, 9, 10, 0.92) 55%, var(--void));
}
.page-head .shell { position: relative; z-index: 2; }
.page-head .lede { max-width: 52rem; margin-inline: auto; margin-top: 1.1rem; }
.page-head .eyebrow { margin-inline: auto; }
.page-head .btn-row { justify-content: center; }
.crumbs { display: none; }

/* ---------- 17. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.panel {
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
}

.field { display: grid; gap: 0.5rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: 0.95rem; color: #d3d9df; }
.field label .req { color: var(--blue); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--fog) 50%), linear-gradient(135deg, var(--fog) 50%, transparent 50%);
  background-position: calc(100% - 20px) 23px, calc(100% - 14px) 23px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: var(--fog-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.form-note { color: var(--fog); font-size: 0.92rem; margin-top: 1rem; }
.form-status {
  margin-top: 1.1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(74, 144, 226, 0.4);
  background: var(--blue-soft);
  border-radius: var(--radius-sm);
  color: #dce7f4;
  font-size: 0.96rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-error {
  border-color: rgba(226, 90, 74, 0.55);
  background: rgba(226, 90, 74, 0.1);
  color: #f0d3cf;
}
.form-status a { color: var(--blue); }

/* honeypot: never shown, never focusable */
.honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.field--check label b { color: var(--blue); font-weight: 700; }
.field--check input { max-width: 190px; }

.info-list { display: grid; gap: 1.3rem; }
.info-item { display: grid; gap: 0.15rem; }
.info-item .ci {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  color: var(--blue);
}
.info-item .ci svg { width: 20px; height: 20px; }
.info-item .ik { display: block; color: var(--fog-dim); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.info-item a, .info-item p { margin: 0; font-size: 1.05rem; transition: color 0.25s; }
.info-item a:hover { color: var(--blue); }

.map-frame { border-radius: var(--radius); overflow: hidden; height: 280px; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.86) hue-rotate(180deg); }

/* ---------- 18. Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--carbon);
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 5vw, 4.5rem);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.footer-brand img { height: 34px; margin-bottom: 1.3rem; }
.footer-brand p { color: var(--fog); max-width: 36ch; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.12em; color: var(--fog-dim); font-weight: 600; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { color: var(--fog); transition: color 0.25s; }
.footer-col a:hover { color: var(--blue); }

.footer-bar {
  border-top: 1px solid var(--line);
  padding-block: 1.4rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  justify-content: space-between;
  align-items: center;
  color: var(--fog-dim);
  font-size: 0.92rem;
}
.footer-bar a { transition: color 0.25s; }
.footer-bar a:hover { color: var(--blue); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ---------- 18b. Legal pages ---------- */
.legal { max-width: 46rem; }
.page-head + .section { padding-top: clamp(2.2rem, 3.5vw, 3.2rem); }
.legal h2 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2.6rem 0 0.9rem;
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #c4ccd4; }
.legal ul { display: grid; gap: 0.6rem; margin: 0 0 1.1em; }
.legal li { display: flex; gap: 0.8rem; align-items: flex-start; }
.legal li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.65rem;
  flex: none;
  background: var(--blue);
}
.legal a { color: var(--blue); }
.legal a:hover { color: var(--blue-hot); }
.legal .updated {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  background: var(--steel);
  color: var(--fog);
  font-size: 0.88rem;
}

/* ---------- 18c. Page transition ----------
   Only ever visible when the inline head script has run, so the site stays
   usable with JavaScript disabled.
--------------------------------------------------------------------------- */
.page-fade {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--void);
  opacity: 0;
  visibility: hidden;
  will-change: opacity;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
html.is-loading .page-fade,
html.is-leaving .page-fade {
  opacity: 1;
  visibility: visible;
}
/* clearing the incoming page is the part worth rushing */
html:not(.is-loading):not(.is-leaving) .page-fade { transition: opacity 0.26s ease, visibility 0.26s ease; }
.page-fade svg {
  width: clamp(52px, 7vw, 76px);
  height: clamp(52px, 7vw, 76px);
  color: var(--blue);
  transform-origin: 50% 50%;
  will-change: transform;
  backface-visibility: hidden;
}

/* leaving: one turn only. Barely moves, then rips through and stops.
   The arriving page holds it still, so nothing restarts mid-flight. */
html.is-leaving .page-fade svg {
  animation: spinOnce 0.72s cubic-bezier(0.87, 0, 0.13, 1) forwards;
}

@keyframes spinOnce {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- 19. Reveal ---------- */
.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.rv.is-in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: 0.07s; }
.rv[data-d="2"] { transition-delay: 0.14s; }
.rv[data-d="3"] { transition-delay: 0.21s; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1150px) {
  .nav-main { gap: 1.3rem; }
  .header-tel { display: none; }
}

@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  :root { --header-h: 78px; }
  .nav-main { display: none; }
  .nav-toggle { display: block; }
  .split, .split--wide-left, .contact-grid, .srow, .srow-item { grid-template-columns: 1fr; }
  .srow-item:nth-child(even) .srow-media { order: 0; }
  .cols-3, .cols-4, .tilewall { grid-template-columns: repeat(2, 1fr); }
  .trustbar ul { grid-template-columns: repeat(2, 1fr); }
  .trustbar li:nth-child(2n) { border-right: 0; }
  .trustbar li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split .media--tall { aspect-ratio: 4 / 3; }
  .hero {
    height: auto;
    min-height: 78vh;
    margin: 0;
    padding: calc(var(--header-h) + 2.5rem) 24px 2.75rem;
  }
  .hero-block { position: relative; top: auto; left: auto; z-index: 3; max-width: none; }
  .hero-title { font-size: clamp(2rem, 6vw, 2.9rem); }
  .hero-para { margin-top: 1.3rem; max-width: 48ch; }
  .hero-fabs { display: none; }
  .hero-tags li { gap: 1rem; }
  .hero-tags li:nth-child(n+4) { display: none; }
  .hero-tags li:nth-child(3)::after { content: none; }
}

@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4, .facts, .tilewall { grid-template-columns: 1fr; }
  .stepitem { grid-template-columns: 108px 1fr; gap: 0.9rem; }
  .trustbar ul { grid-template-columns: 1fr; }
  .trustbar li { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
  .trustbar li:not(:first-child) { padding-left: 0; }
  .trustbar li:last-child { border-bottom: 0; }
  .band { grid-template-columns: 1fr; }
  .band a { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.12); min-height: 180px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .step { grid-template-columns: 1fr; gap: 0.4rem; }
  .btn { width: 100%; }
  .btn--sm { width: auto; }
  .hero-cta { flex-wrap: wrap; gap: 20px; }
  .hero-cta .btn { width: auto; }
  .proof-badge { width: 120px; }
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- 21. Mobile refinements (batch) ---------- */

/* Footer contact icons */
.footer-col--contact a { display: flex; align-items: flex-start; gap: 0.55rem; overflow-wrap: anywhere; }
.footer-col--contact .fic { width: 15px; height: 15px; flex: none; margin-top: 0.28rem; color: var(--blue); }

/* About: "What we stand for" is 3-across on tablet+, 2-across on phones */
.values-grid { grid-template-columns: repeat(3, 1fr); gap: clamp(0.55rem, 1.6vw, 1.4rem); }

/* Mobile-only line break in headings (hidden on desktop) */
.br-mobile { display: none; }

/* Home "Built for shutdown work" schedule visual */
.sched {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--steel), var(--carbon));
  padding: clamp(1.4rem, 2vw, 2rem);
}
.sched-cap {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fog-dim);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.sched-rows { display: grid; gap: 0.6rem; padding-block: 1rem; }
.sched-row { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 0.9rem; }
.sched-name { font-size: 0.82rem; font-weight: 600; color: var(--fog); }
.sched-track { position: relative; height: 13px; background: rgba(255, 255, 255, 0.05); }
.sched-track i { position: absolute; top: 0; bottom: 0; background: var(--blue); }
.sched-track i:nth-child(2) { background: var(--blue-hot); }
.sched-note { margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--fog); }

/* Contact: phone + email share one row; map sits above the info panel */
.info-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.9rem, 3vw, 1.3rem); }
.info-item a { word-break: break-word; }
.contact-aside { display: flex; flex-direction: column; }
.contact-aside .map-frame { order: -1; margin: 0 0 1.1rem; }

@media (max-width: 940px) {
  /* Header: just logo + hamburger. Call and Request a Quote live in the menu. */
  .header-inner { padding-inline: clamp(18px, 5vw, 28px); }
  .header-actions { gap: 0.75rem; }
  .header-actions .btn--sm { display: none; }

  /* Hero: vertically centred with safe side padding */
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 86svh;
    padding: calc(var(--header-h) + 1.5rem) clamp(20px, 6vw, 32px) 2.5rem;
  }
  .hero-block { margin: 0; }

  /* Interior page heroes: shorter than default, but not squished */
  .page-hero {
    min-height: clamp(360px, 54vh, 480px);
    align-items: flex-end;
    padding: calc(var(--header-h) + 2.4rem) 0 clamp(2.2rem, 6vw, 3rem);
  }
  .page-hero-inner { padding-inline: clamp(20px, 6vw, 32px); }

  /* Schedule visual is desktop-only (too big for phones) */
  .sched-wrap { display: none; }
}

@media (max-width: 640px) {
  /* Values: 2 across, 3 down on phones (3-across is too tight to fit) */
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .values-grid .card { padding: 1rem 0.9rem; }
  .values-grid .card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
  .values-grid .card p { font-size: 0.82rem; line-height: 1.42; }

  /* mobile-only line breaks in headings */
  .br-mobile { display: inline; }

  /* Hero headline: large, header-sized ("Built for shutdowns." wraps to two rows) */
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.8rem); font-variation-settings: "wdth" 100; letter-spacing: -0.045em; }

  /* Request a Quote + Google rating always on one row, side by side */
  .hero-cta { flex-wrap: nowrap; gap: 10px; align-items: center; }
  .hero-cta .btn { width: auto; flex: none; padding: 0.72rem 0.95rem; font-size: 0.82rem; }
  .proof-badge { width: 120px; flex: 0 1 auto; min-width: 0; }

  /* Footer: brand on top, Nav + Contact beside each other */
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rv { opacity: 1; transform: none; }
  /* a single, gentler turn rather than no motion at all */
  html.is-leaving .page-fade svg { animation: spinOnce 0.6s ease-in-out forwards !important; }
}
