/* K & J Transport
   Direction: working-yard, spec-sheet. Real job photos carry the page; type is
   condensed and heavy like truck signwriting; colour comes from the fleet
   livery (white trucks, royal-blue stripe) plus hi-vis amber used sparingly.
   All colour, type and spacing values live in :root. */

@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #16191d;
  --ink-2: #4f5761;
  --paper: #eceeef;
  --white: #ffffff;
  --stone: #b9bec5;
  --rule: #7a7e84;
  --rule-soft: #d3d7db;
  --livery: #1d4c9c;
  --livery-deep: #133573;
  --hivis: #f5b700;
  --scrim: rgb(10 12 15 / 0.62);

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  --t-2xl: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  --t-3xl: clamp(3rem, 1.2rem + 7.2vw, 7.5rem);

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem;

  --edge: clamp(1.25rem, 4vw, 3rem);
  --maxw: 84rem;
  --measure: 38rem;
  --bar: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-md)/1.6 var(--f-body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--livery); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--livery-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 3px; }
p { margin: 0 0 var(--s-4); max-width: var(--measure); }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 800; line-height: 0.95; text-transform: uppercase; letter-spacing: 0.005em; }
ul { margin: 0; padding: 0; }

.wrap { width: min(100% - 2 * var(--edge), var(--maxw)); margin-inline: auto; }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 20; background: var(--hivis); color: var(--ink); padding: var(--s-2) var(--s-4); font-weight: 700; }
.skip-link:focus { left: var(--s-4); top: var(--s-4); }

/* Label: condensed caps used for eyebrow text, table heads, meta */
.label { font-family: var(--f-label); font-weight: 600; font-size: var(--t-sm); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; color: var(--white); }
.site-header.solid { position: relative; background: var(--ink); }
.header-inner { display: flex; align-items: center; gap: var(--s-6); padding-block: var(--s-5); }
.brand { color: inherit; text-decoration: none; display: block; line-height: 1; }
.brand:hover { color: inherit; }
.brand-mark { font-family: var(--f-display); font-weight: 900; font-size: 2.1rem; letter-spacing: 0.01em; text-transform: uppercase; }
.brand-mark .amp { color: var(--hivis); }
.brand-sub { display: block; font-family: var(--f-label); font-weight: 600; font-size: var(--t-xs); letter-spacing: 0.32em; text-transform: uppercase; margin-top: 2px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: var(--s-5); }
.nav a { color: inherit; text-decoration: none; font-family: var(--f-label); font-weight: 600; font-size: var(--t-sm); letter-spacing: 0.06em; text-transform: uppercase; padding-block: var(--s-2); border-bottom: 2px solid transparent; }
.nav a:hover { color: inherit; border-bottom-color: currentColor; }
.nav a[aria-current="page"] { border-bottom-color: var(--hivis); }
.header-phone { color: var(--ink); background: var(--hivis); text-decoration: none; font-family: var(--f-label); font-weight: 600; font-size: var(--t-lg); letter-spacing: 0.04em; padding: var(--s-2) var(--s-4); white-space: nowrap; display: inline-flex; align-items: center; gap: var(--s-2); }
.header-phone:hover { color: var(--ink); background: var(--white); }
.menu-toggle { display: none; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: min(92vh, 56rem); display: grid; align-items: end; color: var(--white); background: var(--ink); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 12 15 / 0.55) 0%, rgb(10 12 15 / 0.1) 30%, rgb(10 12 15 / 0.35) 55%, rgb(10 12 15 / 0.85) 100%); }
.hero-body { position: relative; z-index: 1; padding-block: var(--s-9) var(--s-7); }
.hero h1 { font-size: var(--t-3xl); }
.hero h1 span { display: block; }
.hero-lede { margin-top: var(--s-5); font-size: var(--t-lg); max-width: 34rem; color: var(--white); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5) var(--s-7); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid rgb(255 255 255 / 0.35); }
.hero-foot .label { color: var(--stone); }
.hero-call { color: var(--white); text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: var(--t-2xl); line-height: 1; }
.hero-call:hover { color: var(--hivis); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--s-6); list-style: none; }
.hero-facts li { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--t-sm); }
.hero-facts b { display: block; font-family: var(--f-display); font-weight: 800; font-size: var(--t-xl); letter-spacing: 0; color: var(--hivis); }

/* ---------- Inner page masthead ---------- */
.masthead { position: relative; color: var(--white); background: var(--ink); min-height: 30rem; display: grid; align-items: end; overflow: hidden; }
.masthead > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.masthead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 12 15 / 0.6) 0%, rgb(10 12 15 / 0.2) 40%, rgb(10 12 15 / 0.85) 100%); }
.masthead-body { position: relative; z-index: 1; padding-block: var(--s-9) var(--s-6); }
.masthead h1 { font-size: var(--t-3xl); }
.masthead p { font-size: var(--t-lg); margin-top: var(--s-4); margin-bottom: 0; }
.crumb { color: var(--livery); margin-bottom: var(--s-3); display: block; }
.hero .crumb, .masthead .crumb, .on-ink .crumb, .on-livery .crumb { color: var(--hivis); }

/* ---------- Blocks ---------- */
.block { padding-block: var(--s-8); }
.block-tight { padding-block: var(--s-7); }
.on-white { background: var(--white); }
.on-ink { background: var(--ink); color: var(--white); }
.on-ink a { color: var(--white); }
.on-livery { background: var(--livery); color: var(--white); }

.head-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); align-items: end; margin-bottom: var(--s-7); padding-bottom: var(--s-5); border-bottom: var(--bar) solid var(--ink); }
.on-ink .head-row { border-bottom-color: var(--hivis); }
.head-row h2 { font-size: var(--t-2xl); }
.head-row p { margin: 0; color: var(--ink-2); }
.on-ink .head-row p { color: var(--stone); }

/* Story: text column with a tall photo and a pull fact */
.story { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
.story h2 { font-size: var(--t-2xl); margin-bottom: var(--s-5); }
.story .lead { font-size: var(--t-lg); font-weight: 500; }
.story figure { margin: 0; }
.story figcaption, .plate figcaption { margin-top: var(--s-2); font-size: var(--t-xs); color: var(--ink-2); font-family: var(--f-label); letter-spacing: 0.06em; text-transform: uppercase; }
.pull { margin: var(--s-6) 0 0; padding: var(--s-4) 0 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-5); align-items: baseline; }
.pull b { font-family: var(--f-display); font-weight: 900; font-size: var(--t-2xl); line-height: 1; color: var(--livery); }
.pull span { max-width: 26rem; }

/* Services index: numbered rows, not cards */
.svc { list-style: none; margin-top: calc(-1 * var(--s-7) + var(--s-2)); }
.svc li { border-bottom: 1px solid var(--rule); }
.svc a { display: grid; grid-template-columns: 3.5rem minmax(0, 4fr) minmax(0, 6fr) 12rem; gap: var(--s-5); align-items: center; padding-block: var(--s-5); color: inherit; text-decoration: none; }
.svc .n { font-family: var(--f-label); font-weight: 600; color: var(--ink-2); font-size: var(--t-lg); }
.svc h3 { font-size: var(--t-xl); }
.svc p { margin: 0; color: var(--ink-2); }
.svc img { width: 12rem; height: 7rem; object-fit: cover; filter: grayscale(0.35); transition: filter 0.2s ease; }
.svc a:hover h3 { color: var(--livery); }
.svc a:hover img { filter: none; }

/* Photo band */
.band { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4px; background: var(--ink); }
.band img { width: 100%; height: 26rem; object-fit: cover; }

/* Split: photo bleeds to the page edge */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split > img { width: 100%; height: 100%; min-height: 26rem; object-fit: cover; }
.split > img.focus-low { object-position: 50% 80%; }
.split-text { padding: var(--s-8) var(--edge); max-width: calc(var(--maxw) / 2); }
.split.flip > img { order: 2; }
.split.flip .split-text { margin-left: auto; }
.split-text h2 { font-size: var(--t-2xl); margin-bottom: var(--s-5); }

/* Spec table */
.spec { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.spec th, .spec td { text-align: left; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.spec thead th { font-family: var(--f-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--t-sm); color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.spec td:last-child, .spec th:last-child { text-align: right; padding-right: 0; }
.spec .t { font-family: var(--f-display); font-weight: 800; font-size: var(--t-xl); }
.on-ink .spec th, .on-ink .spec td { border-bottom-color: rgb(255 255 255 / 0.3); }
.on-ink .spec thead th { color: var(--stone); border-bottom-color: var(--hivis); }

/* Product ledger */
.ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--s-7) var(--s-6); }
.ledger h3 { font-size: var(--t-xl); padding-bottom: var(--s-3); margin-bottom: var(--s-3); border-bottom: var(--bar) solid var(--livery); }
.ledger ul { list-style: none; }
.ledger li { padding-block: var(--s-2); border-bottom: 1px solid var(--rule-soft); }

/* Project list */
.jobs { list-style: none; margin-top: calc(-1 * var(--s-7) + var(--s-2)); }
.jobs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); padding-block: var(--s-4); border-bottom: 1px solid rgb(255 255 255 / 0.3); }
.jobs b { font-family: var(--f-display); font-weight: 800; font-size: var(--t-xl); text-transform: uppercase; line-height: 1.05; }
.jobs span { color: var(--stone); font-family: var(--f-label); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: var(--t-sm); text-align: right; }

/* Ticks list for inline bullets */
.ticks { list-style: none; margin-bottom: var(--s-5); }
.ticks li { padding: var(--s-2) 0 var(--s-2) var(--s-5); position: relative; border-bottom: 1px solid var(--rule-soft); max-width: var(--measure); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 0.7rem; height: 3px; background: var(--hivis); }
.on-ink .ticks li, .on-livery .ticks li { border-bottom-color: rgb(255 255 255 / 0.25); }

/* Plates: captioned photo grid with uneven sizes */
.plates { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-4); }
.plate { margin: 0; grid-column: span 2; }
.plate.wide { grid-column: span 4; }
.plate.half { grid-column: span 3; }
.plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.plate.wide img { aspect-ratio: 16 / 9; height: 100%; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--f-label); font-weight: 600; font-size: var(--t-lg); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; padding: var(--s-3) var(--s-5); border: 2px solid currentColor; color: var(--ink); }
.btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-hivis { background: var(--hivis); border-color: var(--hivis); color: var(--ink); }
.btn-hivis:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* Contact */
.call-big { display: block; font-family: var(--f-display); font-weight: 900; font-size: var(--t-3xl); line-height: 0.9; color: var(--ink); text-decoration: none; margin-block: var(--s-4) var(--s-6); }
.call-big:hover { color: var(--livery); }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--s-6); border-top: var(--bar) solid var(--ink); padding-top: var(--s-5); }
.people h2 { font-size: var(--t-xl); margin-bottom: var(--s-3); }
.people p { margin: 0 0 var(--s-2); }
.people .label { color: var(--ink-2); display: block; margin-bottom: var(--s-2); }

/* Closing strip */
.closer { background: var(--livery); color: var(--white); }
.closer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); padding-block: var(--s-7); }
.closer h2 { font-size: var(--t-2xl); max-width: 16ch; }
.closer a.num { color: var(--white); font-family: var(--f-display); font-weight: 900; font-size: var(--t-2xl); text-decoration: none; line-height: 1; border-bottom: var(--bar) solid var(--hivis); padding-bottom: var(--s-2); }
.closer a.num:hover { color: var(--hivis); }

/* Footer */
.site-footer { background: var(--ink); color: var(--stone); font-size: var(--t-sm); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-6); padding-block: var(--s-7) var(--s-6); }
.site-footer .brand { color: var(--white); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { font-family: var(--f-label); font-weight: 600; font-size: var(--t-sm); letter-spacing: 0.08em; color: var(--stone); margin-bottom: var(--s-3); line-height: 1.2; }
.site-footer ul { list-style: none; }
.site-footer li { padding-block: var(--s-1); }
.footer-base { border-top: 1px solid rgb(255 255 255 / 0.18); padding-block: var(--s-4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); }
.footer-base p { margin: 0; max-width: none; }

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
  .nav ul { gap: var(--s-4); }
  .svc a { grid-template-columns: 3rem minmax(0, 1fr) 9rem; }
  .svc p { grid-column: 2 / 3; grid-row: 2; }
  .svc img { grid-row: 1 / 3; grid-column: 3; width: 9rem; height: 6rem; }
}
@media (max-width: 54rem) {
  .header-inner { flex-wrap: wrap; gap: var(--s-3) var(--s-4); }
  .menu-toggle { display: inline-flex; margin-left: auto; align-items: center; gap: var(--s-2); background: none; border: 2px solid currentColor; color: inherit; font: 600 var(--t-sm)/1 var(--f-label); letter-spacing: 0.08em; text-transform: uppercase; padding: var(--s-2) var(--s-3); cursor: pointer; }
  .nav { order: 3; width: 100%; margin-left: 0; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; border-top: 1px solid rgb(255 255 255 / 0.35); }
  .nav a { display: block; padding-block: var(--s-3); border-bottom: 1px solid rgb(255 255 255 / 0.2); }
  .site-header:has(.nav.open) { background: var(--ink); }
  .header-phone { order: 2; }
  .head-row, .story, .split, .footer-inner { grid-template-columns: 1fr; }
  .story { gap: var(--s-6); }
  .split > img { min-height: 18rem; }
  .split.flip > img { order: 0; }
  .split-text { padding-block: var(--s-7); max-width: none; }
  .band { grid-template-columns: 1fr 1fr; }
  .band img { height: 14rem; }
  .band img:first-child { grid-column: 1 / -1; height: 18rem; }
  .plates { grid-template-columns: 1fr 1fr; }
  .plate, .plate.wide, .plate.half { grid-column: span 1; }
  .plate.wide { grid-column: 1 / -1; }
  .jobs li { grid-template-columns: 1fr; gap: var(--s-1); }
  .jobs span { text-align: left; }
}
@media (max-width: 36rem) {
  .brand-mark { font-size: 1.7rem; }
  .header-phone span { display: none; }
  .svc a { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .svc img { display: none; }
  .hero-facts { gap: var(--s-4) var(--s-5); }
  .hero::after, .masthead::after { background: linear-gradient(180deg, rgb(10 12 15 / 0.6) 0%, rgb(10 12 15 / 0.45) 25%, rgb(10 12 15 / 0.78) 50%, rgb(10 12 15 / 0.92) 100%); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header, .closer, .site-footer, .menu-toggle { display: none; } .hero, .masthead { min-height: 0; color: var(--ink); } .hero > img, .masthead > img, .hero::after, .masthead::after { display: none; } }

/* Utilities */
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.muted { color: var(--ink-2); }
.head-row.solo { grid-template-columns: 1fr; margin-bottom: var(--s-5); }
.eyebrow-livery { color: var(--livery); }
.h1-compact { font-size: var(--t-2xl); }
