/* ============================================================
   TransCanada Utilities — Design System
   Signature device: the actual North-American utility-locate
   paint colour code (red/yellow/orange/blue/green) used as a
   functional accent system throughout — the same code the
   crews spray on pavement before every dig.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Core palette */
  --asphalt: #1b1d1f;
  --asphalt-soft: #26292c;
  --paper: #f7f5f0;
  --paper-dim: #eeebe3;
  --ink: #232426;
  --slate: #6b6f76;
  --signal-red: #c22a1f;
  --signal-red-dark: #9c2118;
  --line: #dedad0;
  --line-dark: #37393c;

  /* Locate paint code — used ONLY as small functional accents */
  --locate-electric: #d1352a; /* red    */
  --locate-gas:      #f0b429; /* yellow */
  --locate-comm:     #e8792c; /* orange */
  --locate-water:    #2f6fed; /* blue   */
  --locate-sewer:    #2f9e5c; /* green  */

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --container: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

p { margin: 0 0 1em; color: var(--ink); }
.lede { font-size: 1.2rem; color: var(--slate); font-weight: 400; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--signal-red);
  display: inline-block;
}
.hero-inner .eyebrow::before, .page-hero .container .eyebrow::before {
  width: 0;
  animation: dashDraw .4s ease-out .35s forwards;
}
@keyframes dashDraw { to { width: 22px; } }

/* ---------- hazard strip (top of viewport, quiet) ---------- */
.hazard-strip {
  height: 5px;
  background: repeating-linear-gradient(
    -45deg,
    var(--asphalt), var(--asphalt) 12px,
    var(--locate-gas) 12px, var(--locate-gas) 24px
  );
}

/* ---------- locate colour key: the signature component ---------- */
.locate-key {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.locate-key span { display: inline-flex; align-items: center; gap: 8px; }
.locate-key i {
  width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none;
}
.locate-key .k-electric i { background: var(--locate-electric); }
.locate-key .k-gas i { background: var(--locate-gas); }
.locate-key .k-comm i { background: var(--locate-comm); }
.locate-key .k-water i { background: var(--locate-water); }
.locate-key .k-sewer i { background: var(--locate-sewer); }
.locate-key.on-dark { color: rgba(247,245,240,0.72); }
.locate-key.on-light { color: var(--slate); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.brand {
  display: flex; align-items: center;
}
.brand-logo {
  height: 54px;
  width: auto;
  display: block;
}
.footer-logo-chip {
  display: inline-flex;
  background: var(--paper);
  padding: 14px 18px;
  border-radius: var(--radius);
}
.footer-logo-chip .brand-logo { height: 46px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius);
  position: relative;
}
.main-nav a:hover { color: var(--signal-red); }
.main-nav a.is-active { color: var(--signal-red); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--asphalt);
  min-width: 260px;
  padding: 8px;
  border-radius: var(--radius);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  box-shadow: 0 18px 36px rgba(0,0,0,0.22);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; color: rgba(247,245,240,0.86);
  padding: 11px 14px; font-size: 0.88rem; font-weight: 500;
  border-radius: 2px;
}
.dropdown a:hover { background: var(--asphalt-soft); color: #fff; }
.dropdown a.dropdown-cta {
  border-top: 1px solid rgba(247,245,240,0.14);
  margin-top: 6px; padding-top: 14px;
  color: #fff; font-weight: 700;
}
.dropdown a.dropdown-cta:hover { color: #fff; background: var(--signal-red); }

.header-cta { display: flex; align-items: center; gap: 14px; flex: none; }
.phone-link {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--asphalt);
  white-space: nowrap;
}
.phone-link .dot { color: var(--locate-water); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--signal-red); color: #fff; }
.btn-primary:hover { background: var(--signal-red-dark); }
.btn-dark { background: var(--asphalt); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; border-color: var(--asphalt); color: var(--asphalt); }
.btn-outline:hover { background: var(--asphalt); color: var(--paper); }
.btn-outline-light { background: transparent; border-color: rgba(247,245,240,0.4); color: var(--paper); }
.btn-outline-light:hover { background: var(--paper); color: var(--asphalt); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 18px; height: 2px; background: var(--asphalt);
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--asphalt);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 88px 0 70px;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(680px 420px at 82% 8%, rgba(209,53,42,0.18), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 64px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.hero h1 { color: #fff; }
.hero .lede { color: rgba(247,245,240,0.78); max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding-top: 26px; border-top: 1px solid rgba(247,245,240,0.14); }
.hero-since { font-family: var(--font-mono); font-size: 0.8rem; color: rgba(247,245,240,0.6); }

/* hero with a real jobsite photo instead of the abstract texture */
.hero-photo {
  background-image:
    linear-gradient(100deg, rgba(15,16,17,0.92) 0%, rgba(15,16,17,0.82) 42%, rgba(15,16,17,0.55) 100%),
    var(--hero-img, none);
  background-size: cover;
  background-position: center 30%;
}
.hero-photo::after { display: none; }

/* ---------- badge row (trust markers pulled from the real site) ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 28px; }
.badge-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.86rem; font-weight: 600; color: rgba(247,245,240,0.9);
  background: rgba(247,245,240,0.08);
  border: 1px solid rgba(247,245,240,0.16);
  padding: 8px 14px; border-radius: 30px;
}
.badge-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--locate-gas); flex: none; }

/* page header (interior pages) */
.page-hero {
  background: var(--asphalt);
  color: var(--paper);
  padding: 62px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(520px 320px at 88% 0%, rgba(209,53,42,0.16), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero .lede { color: rgba(247,245,240,0.76); max-width: 640px; margin-bottom: 0; }
.crumb { font-family: var(--font-mono); font-size: 0.76rem; color: rgba(247,245,240,0.5); margin-bottom: 18px; letter-spacing: 0.04em; }
.crumb a { color: rgba(247,245,240,0.75); }
.crumb a:hover { color: #fff; }

/* ============================================================
   Sections / general
   ============================================================ */
section { padding: 78px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--paper-dim); }
.section-dark { background: var(--asphalt); color: var(--paper); }
.section-dark h2 { color: #fff; }
.section-dark p { color: rgba(247,245,240,0.74); }

.section-head { max-width: 680px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr);
  gap: 64px;
  align-items: center;
}
.two-col > *, .card-grid > *, .process > *, .stat-grid > * { min-width: 0; }

/* ---------- stat strip ---------- */
.stat-strip {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 34px 28px 30px;
  border-left: 1px solid var(--line-dark);
  border-top: 3px solid var(--locate-electric);
}
.stat:first-child { border-left: none; }
.stat:nth-child(2) { border-top-color: var(--locate-water); }
.stat:nth-child(3) { border-top-color: var(--locate-comm); }
.stat:nth-child(4) { border-top-color: var(--locate-gas); }
.stat .num { font-family: var(--font-mono); font-size: 2.8rem; font-weight: 600; letter-spacing: -0.02em; color: #fff; display: block; line-height: 1; }
.stat .label { font-size: 0.82rem; color: rgba(247,245,240,0.6); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 10px; }

/* ---------- cross-section diagram: the site's signature moment.
   Lines "draw in" one at a time, like watching a locate happen,
   the first time the diagram scrolls into view. Class 'is-drawn' is
   added by the single dedicated observer in main.js (see comment
   there on why this is the one deliberate exception to CSS-only). ---------- */
.xsec {
  background: var(--asphalt-soft);
  border-radius: var(--radius);
  padding: 26px;
}
.xsec-lg { width: 100%; max-width: 640px; padding: 40px; }
.xsec-wrap { display: flex; justify-content: center; }
.xsec-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset .9s cubic-bezier(.4,0,.2,1);
}
.xsec-dot {
  opacity: 0;
  transform-origin: center;
  transform: scale(0);
  transition: opacity .3s ease, transform .3s cubic-bezier(.3,1.6,.6,1);
}
.xsec-label { opacity: 0; transition: opacity .35s ease; }
.xsec.is-drawn .xsec-line { stroke-dashoffset: 0; }
.xsec.is-drawn .xsec-dot { opacity: 1; transform: scale(1); }
.xsec.is-drawn .xsec-label { opacity: 1; }
.xsec-line.l1, .xsec-dot.l1 { transition-delay: 0s; }
.xsec-line.l2, .xsec-dot.l2 { transition-delay: .15s; }
.xsec-line.l3, .xsec-dot.l3 { transition-delay: .3s; }
.xsec-line.l4, .xsec-dot.l4 { transition-delay: .45s; }
.xsec-line.l5, .xsec-dot.l5 { transition-delay: .6s; }
.xsec-label.l1 { transition-delay: .75s; }
.xsec-label.l2 { transition-delay: .9s; }
.xsec-label.l3 { transition-delay: 1.05s; }
.xsec-label.l4 { transition-delay: 1.2s; }
.xsec-label.l5 { transition-delay: 1.35s; }

/* ---------- service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  --card-glow: rgba(27,29,31,0.14);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--asphalt);
  padding: 30px 26px;
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s cubic-bezier(.2,.7,.2,1);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -6px var(--card-glow), 0 8px 16px rgba(27,29,31,0.06); }
.card.c-electric { border-left-color: var(--locate-electric); --card-glow: rgba(209,53,42,0.28); }
.card.c-gas { border-left-color: var(--locate-gas); --card-glow: rgba(240,180,41,0.32); }
.card.c-comm { border-left-color: var(--locate-comm); --card-glow: rgba(232,121,44,0.3); }
.card.c-water { border-left-color: var(--locate-water); --card-glow: rgba(47,111,237,0.28); }
.card.c-sewer { border-left-color: var(--locate-sewer); --card-glow: rgba(47,158,92,0.28); }
.card .tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.card h3 { margin-bottom: 10px; text-transform: none; }
.card p { color: var(--slate); font-size: 0.96rem; flex: 1; }
.card .card-link { margin-top: 18px; font-weight: 700; font-size: 0.88rem; color: var(--signal-red); display: inline-flex; align-items: center; gap: 6px; }
.card .card-link .arrow { transition: transform .15s ease; }
.card:hover .card-link .arrow { transform: translateX(4px); }

/* service card with a real field photo instead of just a colour tab */
.card.has-photo { padding: 0; overflow: hidden; border-left: none; border-top: 4px solid var(--asphalt); }
.card.has-photo.c-electric { border-top-color: var(--locate-electric); }
.card.has-photo.c-gas { border-top-color: var(--locate-gas); }
.card.has-photo.c-comm { border-top-color: var(--locate-comm); }
.card.has-photo.c-water { border-top-color: var(--locate-water); }
.card.has-photo.c-sewer { border-top-color: var(--locate-sewer); }
.card.has-photo .card-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--paper-dim); }
.card.has-photo .card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }

/* ---------- real photo treatments ---------- */
.photo-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.photo-frame img { width: 100%; display: block; }
.photo-caption { font-family: var(--font-mono); font-size: 0.74rem; color: var(--slate); margin-top: 10px; letter-spacing: 0.03em; }

/* Service detail pages pair a photo with a "what's included" table in
   the same narrow column. The source photos vary a lot in their own
   shape (some are 270x270 square icons, one is a tall 591x788 portrait),
   and with no height cap a square source scaled to a wide column blows
   up to match its own width, dwarfing the shorter text column next to
   it. Capping to a fixed photo ratio keeps every service page's layout
   the same height regardless of what shape its source image happens
   to be. */
.service-detail-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}

/* Illustration cards (SVG) sit in the same photo/table pairing above.
   The asphalt-card background and radius already come from the shared
   .xsec class, so drop photo-frame's own border to avoid a double
   frame, and let the svg's own 4:3 viewBox set the proportions rather
   than the crop used for real photos. */
.illo-frame { border: none; }
.illo-frame .xsec { width: 100%; box-sizing: border-box; }
.illo-frame svg { display: block; width: 100%; height: auto; }

/* ---------- affiliations / logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 30px 44px; }
.logo-strip img { height: 44px; width: auto; max-width: 150px; object-fit: contain; opacity: 0.85; filter: grayscale(15%); }

/* ---------- vertical numbered feature list (software features, real order) ---------- */
.feature-list { display: flex; flex-direction: column; gap: 0; }
.feature-item { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.feature-item:first-child { border-top: none; }
.feature-item .f-num { font-family: var(--font-mono); font-size: 1.4rem; color: var(--signal-red); font-weight: 600; }
.feature-item h3 { text-transform: none; margin-bottom: 8px; }
.feature-item p { color: var(--slate); margin: 0 0 10px; }
.feature-item ul { margin: 10px 0 0; padding-left: 20px; color: var(--slate); }
.feature-item li { margin-bottom: 6px; }

/* ---------- coming soon state ---------- */
.coming-soon {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  background: var(--paper-dim);
}
.coming-soon .eyebrow { justify-content: center; }
.coming-soon h2 { margin-bottom: 10px; }
.coming-soon p { color: var(--slate); max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---------- process / numbered sequence (real order, so numbers are earned) ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step {
  position: relative;
  padding: 0 26px 0 0;
  border-right: 1px dashed var(--line);
}
.step:last-child { border-right: none; padding-right: 0; }
.step .step-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--signal-red);
  margin-bottom: 14px;
  display: block;
}
.step h3 { text-transform: none; font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 0.92rem; }

/* ---------- region chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--ink);
  background: #fff;
}

/* ---------- service areas, grouped by region ---------- */
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.area-group h3 {
  text-transform: none; font-size: 1.05rem; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--signal-red);
}
.area-group .chip-row { gap: 8px; }
.area-group .chip { font-size: 0.78rem; padding: 7px 13px; background: var(--paper-dim); border-color: transparent; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--signal-red);
  color: #fff;
  padding: 60px 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 26px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-band .btn-outline-light { border-color: rgba(255,255,255,0.55); }

/* ---------- table (audit / TMS style data) ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.data-table th, .data-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.data-table th { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }

/* ---------- forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--signal-red); }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--signal-red); outline-offset: 1px; border-color: var(--signal-red);
}
.form-note { font-size: 0.84rem; color: var(--slate); margin-top: 16px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.2em; font-size: 0.9rem; font-weight: 600; margin: 14px 0 0; }
.form-status.is-sending { color: var(--slate); font-weight: 500; }
.form-status.is-success { color: var(--locate-sewer); }
.form-status.is-error { color: var(--signal-red); }

/* ---------- side info card ---------- */
.info-card {
  background: var(--asphalt); color: var(--paper);
  padding: 30px; border-radius: var(--radius);
}
.info-card h3 { color: #fff; text-transform: none; margin-bottom: 16px; }
.info-line { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(247,245,240,0.12); }
.info-line:first-of-type { border-top: none; }
.info-line .k { font-family: var(--font-mono); font-size: 0.76rem; color: rgba(247,245,240,0.55); width: 92px; flex: none; text-transform: uppercase; letter-spacing: 0.05em; }
.info-line a, .info-line span.v { color: #fff; font-weight: 500; font-size: 0.94rem; flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* ---------- job listing ---------- */
.job {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: #fff; margin-bottom: 14px;
}
.job-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate); margin-top: 6px; }
.job h3 { text-transform: none; margin-bottom: 4px; font-size: 1.15rem; }

/* ---------- value list ---------- */
.value-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.value-item { display: flex; gap: 16px; }
.value-item i {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-dim); color: var(--signal-red); font-weight: 700; font-family: var(--font-mono); font-size: 0.8rem;
}
.value-item h3 { text-transform: none; font-size: 1.08rem; margin-bottom: 4px; }
.value-item p { color: var(--slate); font-size: 0.92rem; margin: 0; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--asphalt); color: rgba(247,245,240,0.7); padding: 60px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(247,245,240,0.12);
}
.footer-grid > * { min-width: 0; }
.footer-col a { overflow-wrap: anywhere; }
.footer-tag { font-size: 0.9rem; margin-top: 12px; color: rgba(247,245,240,0.55); max-width: 260px; }
.footer-col h4 {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.78rem; color: rgba(247,245,240,0.5); margin-bottom: 16px; font-weight: 500;
}
.footer-col a, .footer-col address { display: block; font-size: 0.92rem; color: rgba(247,245,240,0.78); margin-bottom: 11px; font-style: normal; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: rgba(247,245,240,0.45); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: rgba(247,245,240,0.6); }
.footer-social a:hover { color: #fff; }

/* ============================================================
   Utilities
   ============================================================ */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.center-col { margin-left: auto; margin-right: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--signal-red); color: #fff;
  padding: 12px 18px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============================================================
   Motion — one orchestrated moment (the page-load reveal), plus
   restrained, CSS-only hover micro-interactions. No scroll-triggered
   confetti scattered through every section; the load-in is where
   the delight budget goes.
   ============================================================ */

/* ---------- the one orchestrated moment: staggered hero load-in ---------- */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero-inner > *,
.page-hero .container > * {
  opacity: 0;
  animation: heroIn .7s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-inner > *:nth-child(1), .page-hero .container > *:nth-child(1) { animation-delay: .05s; }
.hero-inner > *:nth-child(2), .page-hero .container > *:nth-child(2) { animation-delay: .16s; }
.hero-inner > *:nth-child(3), .page-hero .container > *:nth-child(3) { animation-delay: .27s; }
.hero-inner > *:nth-child(4), .page-hero .container > *:nth-child(4) { animation-delay: .38s; }
.hero-inner > *:nth-child(5) { animation-delay: .49s; }
.hero-inner > *:nth-child(6) { animation-delay: .60s; }

/* ---------- hero photo: slow ambient pan, not a zoom gimmick ---------- */
.hero-photo {
  animation: heroPan 22s ease-in-out infinite alternate;
}
@keyframes heroPan {
  from { background-position: center 22%; }
  to   { background-position: center 38%; }
}

/* ---------- card photo hover zoom (CSS-only micro-interaction) ---------- */
.card.has-photo .card-photo { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card.has-photo:hover .card-photo { transform: scale(1.06); }

/* ---------- affiliations marquee: pure CSS, no JS.
   The logo list is duplicated once at build time (see logo_strip()
   in content.py); this just scrolls the doubled track and loops. ---------- */
.logo-strip {
  flex-wrap: nowrap;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track { display: flex; align-items: center; gap: 44px; animation: marquee 32s linear infinite; }
.logo-strip:hover .logo-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.stat .num { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero-inner > *, .page-hero .container > * { opacity: 1; transform: none; }
  .eyebrow::before { width: 22px; }
  .xsec-line { stroke-dashoffset: 0; }
  .xsec-dot, .xsec-label { opacity: 1; transform: none; }
  /* Marquee track is a doubled list for the seamless CSS loop; with
     the animation off, show only the first (real) copy. */
  .logo-track > *:nth-child(n+13) { display: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .step { border-right: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-list { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav, .header-cta .phone-link { display: none; }
  .nav-toggle { display: flex; flex: none; }
  .header-cta { gap: 8px; }
  .header-bar { padding: 14px 16px; gap: 10px; }
  .brand-logo { height: 40px; }
  .header-cta .btn { padding: 10px 14px; font-size: 0.82rem; }
  .card-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.6rem; }

  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column; align-items: stretch;
    padding: 10px 20px 20px;
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: var(--paper-dim); box-shadow: none; margin-top: 4px;
  }
  .site-header.nav-open .dropdown a { color: var(--ink); }
  .site-header.nav-open .dropdown a:hover { background: #fff; }
  .site-header.nav-open .dropdown a.dropdown-cta {
    color: var(--signal-red);
    border-top-color: var(--line);
  }
  .site-header.nav-open .dropdown a.dropdown-cta:hover { color: #fff; }
}
