/* Triumph Cabling Systems — one stylesheet, no framework.
   Brand: navy #0A2E45, Archivo display (uppercase, tracked), Inter body. */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0A2E45;
  --navy-deep: #061e2e;
  --navy-soft: #14405c;
  --accent: #126194;
  --accent-hover: #0d4a72;
  --accent-bright: #1890D7;
  --steel: #4A6B80;
  --ink: #17252E;
  --muted: #55707F;
  --line: #DCE4E9;
  --paper: #FFFFFF;
  --paper-alt: #F4F7F9;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 3px;
  --font-head: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
ul, ol { padding-left: 1.25rem; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 .5em;
  text-wrap: balance;
}
/* Uppercase reads larger than sentence case at the same size, so these run
   smaller than the sentence-case scale they replaced. Tracking eases off as
   the size drops, which is the opposite of what caps want at display size. */
h1 { font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.5rem); line-height: 1.06; letter-spacing: .055em; }
h2 { font-size: clamp(1.2rem, 1rem + .95vw, 1.7rem); line-height: 1.1; letter-spacing: .05em; }
h3 { font-size: clamp(.9375rem, .9rem + .3vw, 1.0625rem); line-height: 1.25; letter-spacing: .045em; font-weight: 700; }
h3.label, h4 {
  font-family: var(--font-body); font-size: .8125rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--steel);
  margin: 0 0 .75em;
}

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: #0d5b8a; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid #FFB703; outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #fff; color: var(--navy); padding: .75rem 1rem; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: .9375rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: .8rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-accent { background: var(--accent); color: #fff; border-color: #2E7FB5; }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: #fff; }

/* ---------- header ---------- */
.site-head { background: var(--navy); color: #fff; position: relative; z-index: 20; }
.head-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .9rem; }
.brand { flex: 0 0 auto; line-height: 0; color: inherit; }
.brand img { width: clamp(178px, 16vw, 218px); height: auto; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.35rem; }
.site-nav ul { display: flex; gap: 1.15rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: #E8EFF3; text-decoration: none; font-size: .8125rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; padding-block: .4rem;
  border-bottom: 2px solid transparent; display: block;
}
.site-nav a:hover { color: #fff; border-bottom-color: var(--accent-bright); }
.head-actions { display: flex; align-items: center; gap: .9rem; }
.head-phone {
  color: #fff; font-weight: 600; text-decoration: none; font-size: .95rem; white-space: nowrap;
}
.head-phone:hover { color: #fff; text-decoration: underline; }
.head-actions .btn { padding: .6rem 1rem; font-size: .75rem; letter-spacing: .06em; white-space: nowrap; }

/* active page */
body[data-nav="underground"] a[data-nav="underground"],
body[data-nav="services"] a[data-nav="services"],
body[data-nav="projects"] a[data-nav="projects"],
body[data-nav="dir"] a[data-nav="dir"],
body[data-nav="company"] a[data-nav="company"],
body[data-nav="safety"] a[data-nav="safety"],
body[data-nav="contact"] a[data-nav="contact"] { color: #fff; border-bottom-color: var(--accent-bright); }

.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: .55rem;
  background: none; border: 2px solid rgba(255,255,255,.4); border-radius: var(--radius);
  color: #fff; padding: .5rem .8rem; font: inherit; font-size: .8125rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: #fff; content: ''; position: relative;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 4px; }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .head-inner { flex-wrap: wrap; gap: 1rem; }
  .site-nav {
    display: none; flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: 0; margin-left: 0; padding-bottom: .5rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-top: 1px solid rgba(255,255,255,.14); }
  .site-nav a { padding: .95rem .2rem; font-size: .9375rem; border-bottom: none; }
  .site-nav a:hover { border-bottom: none; }
  body[data-nav] .site-nav a[data-nav]{ border-bottom: none; }
  .head-actions {
    flex-direction: column; align-items: stretch; gap: .75rem;
    padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.14);
  }
  .head-actions .btn { text-align: center; padding: .85rem 1rem; font-size: .875rem; }
  .head-phone { text-align: center; font-size: 1.05rem; }
}

/* ---------- home hero (split: copy panel + photo) ---------- */
.hero { background: var(--navy); color: #fff; position: relative; }
/* An even scrim, not a directional one: a gradient kept the clip visible on
   the right and buried it behind the words on the left, which read as the
   video only covering part of the band. .68 over the brightest frame in the
   clip still leaves white text above 4.5:1. */
.hero-media { position: absolute; inset: 0; overflow: hidden; z-index: 0; background: var(--navy); }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(6,30,46,.68);
}
.hero-inner {
  position: relative; z-index: 1; padding-block: clamp(3rem, 7vw, 5.5rem);
  text-shadow: 0 1px 12px rgba(3,16,25,.55);
}
.hero-inner > * { max-width: 46rem; }
.hero h1 { color: #fff; margin-bottom: .55em; font-size: clamp(1.55rem, 1.15rem + 1.55vw, 2.2rem); }
.hero .eyebrow { color: #E8EFF3; }
.hero p { color: #fff; font-size: clamp(1.0625rem, 1rem + .35vw, 1.2rem); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.eyebrow {
  font-family: var(--font-body); font-size: .8125rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--steel);
  margin: 0 0 1rem;
}
@media (max-width: 860px) {
  .hero-inner > * { max-width: none; }
}

/* ---------- interior page head ---------- */
.page-head { background: var(--navy); color: #fff; padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.page-head h1 { color: #fff; margin-bottom: .35em; }
.page-head p { color: #D6E3EB; max-width: 48em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.175rem); }
.page-head .eyebrow { color: #9FC4DA; }
/* every dark band needs its own link colour, or links inherit the light-ground blue */
.page-head a, .hero a, .cta-band a, .stat a { color: #BBDCF0; }
.page-head a:hover, .hero a:hover, .cta-band a:hover { color: #fff; }
.crumb { font-size: .8125rem; color: #9FC4DA; margin: 0 0 1rem; }
.crumb a { color: #C9DDE8; }

/* ---------- generic sections ---------- */
.section { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section-alt { background: var(--paper-alt); }
.section-navy { background: var(--navy); color: #E8EFF3; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: #9FC4DA; }
.section-navy a { color: #BBDCF0; }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.2rem); color: var(--muted); max-width: 46em; }
.prose { max-width: 44em; }
.prose h2 { margin-top: 2em; }
.prose h2:first-child, .prose .eyebrow + h2 { margin-top: 0; }
/* .wrap.prose keeps the page's left edge; only the lines are narrowed */
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 44em; }

/* a wide photo used as a band rather than a column */
.band { display: block; }
.band img { width: 100%; }
.band figcaption { color: var(--muted); font-size: .8125rem; padding-top: .6rem; }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: clamp(1.75rem, 4vw, 3.25rem); align-items: center; }
@media (min-width: 62rem) { .split-wide { grid-template-columns: 1.4fr 1fr; } }
.split-top { align-items: start; }

/* a bare photo strip: no card chrome, and it reads on the navy band */
.photo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.photo-strip img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.card-link:hover { border-color: var(--navy); color: inherit; }
.card-link .more { color: var(--accent); font-weight: 600; font-size: .875rem; letter-spacing: .05em; text-transform: uppercase; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: .5rem; height: .5rem; background: var(--accent); border-radius: 50%;
}
.ticks-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); column-gap: 1.75rem; }
.section-navy .ticks li::before { background: #7FB6D6; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1.5rem; }
.stat .n {
  font-family: var(--font-head); font-weight: 800; letter-spacing: .04em;
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.25rem); color: #fff; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat p { color: #BFD4E0; font-size: .9375rem; margin: .5rem 0 0; }

/* ---------- projects ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.proj { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.proj img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.proj .body { padding: 1.15rem 1.25rem 1.35rem; }
.proj h3 { font-size: 1.1rem; margin-bottom: .3em; }
.proj p { font-size: .9375rem; color: var(--muted); margin: 0; }
.proj .tag {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--steel); margin-bottom: .55rem;
}
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filters button {
  font: inherit; font-size: .8125rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; cursor: pointer; padding: .55rem 1.1rem;
  background: #fff; color: var(--navy); border: 2px solid var(--line); border-radius: 999px;
}
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- logos ---------- */
.logo-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  /* fixed row height reserves the space, so nothing shifts when the marks load */
  grid-auto-rows: 46px; align-items: center; justify-items: center;
}
.logo-row img {
  max-height: 46px; max-width: 100%; width: auto; height: auto;
  /* the source marks carry white boxes; multiply drops them into the page */
  mix-blend-mode: multiply;
  filter: grayscale(1); opacity: .78; transition: filter .15s ease, opacity .15s ease;
}
.logo-row img:hover { filter: none; opacity: 1; }
.cert-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: 1.75rem;
  grid-auto-rows: 72px; align-items: center; justify-items: center;
}
.cert-row img { max-height: 72px; max-width: 100%; width: auto; height: auto; }


/* ---------- steps ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.35rem; }
.steps li { counter-increment: step; padding-left: 3.25rem; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800;
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: .2em; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; padding: .75rem .85rem; color: var(--ink);
  border: 1px solid #B9C7D0; border-radius: var(--radius); background: #fff; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .875rem; color: var(--muted); }
.form-status { padding: .9rem 1.1rem; border-radius: var(--radius); font-size: .9375rem; display: none; }
.form-status.is-ok { display: block; background: #E7F3EA; border: 1px solid #9CC9A9; color: #1D5B2C; }
.form-status.is-err { display: block; background: #FBEAEC; border: 1px solid #E0A2A8; color: #8A1721; }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--navy-soft); color: #fff; }
.cta-inner {
  display: flex; flex-wrap: wrap; gap: 1.75rem; align-items: center; justify-content: space-between;
  padding-block: clamp(2rem, 4vw, 2.75rem);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #D6E3EB; max-width: 40em; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.site-foot { background: var(--navy-deep); color: #C6D6E0; padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem; font-size: .9375rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 2rem; }
.site-foot h2 { font-size: .8125rem; font-family: var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #8FB0C4; margin-bottom: .8em; }
.site-foot a { color: #DCE9F1; }
.site-foot a:hover { color: #fff; }
.foot-brand img { width: 200px; }
.foot-brand p { margin-top: 1rem; max-width: 26em; }
.foot-badges img { width: 200px; margin-top: .5rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.addr { font-style: normal; }
.foot-legal {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8125rem; color: #8FB0C4;
}
.foot-legal p { margin: 0; }

/* ---------- utilities ----------
   These exist so no page needs an inline style="" attribute: the CSP in
   _headers sets style-src 'self', which blocks inline styles outright. */
.mt-05 { margin-top: .5rem; }
.mt-1 { margin-top: 1rem; }
.mt-125 { margin-top: 1.25rem; }
.mt-15 { margin-top: 1.5rem; }
.mt-175 { margin-top: 1.75rem; }
.mt-2 { margin-top: 2rem; }
.mt-25 { margin-top: 2.5rem; }
.mb-15 { margin-bottom: 1.5rem; }
.ml-05 { margin-left: .5rem; }
.my-125 { margin: 1.25rem 0; }
.measure-52 { max-width: 52rem; }
.cap-left { text-align: left; padding: .5rem 0; }
.wordmark { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: #fff; letter-spacing: .12em; }
.defn-note { color: #9FC4DA; margin-top: -.6rem; }
