/* ── tokens ────────────────────────────────────────────────────────────── */
:root {
  /* Brand palette — Loenbro Branding Guide V11
     Primary: Black #000 · Blue #13406a · Gray #60656b · Red #a02a21 · White
     Secondary: Sea Green #0a413f · Brown #8a6e5f · Slate Blue #5a7b98 · Yellow #eda924
     Substitute fonts per guide: Utility Pro → Hanken Grotesk · Interstate → Inter */
  --ink: #0a0e14;
  --ink-2: #131820;
  --ink-3: #1c232e;
  --ink-deep: #000000;        /* strong contrast bars (utility, marquee, footer) */
  --line: #232a34;
  --line-2: rgba(255,255,255,.08);
  --paper: #f4efe4;
  --paper-2: #ece6d7;
  --signal: #13406a;        /* Loenbro Blue (primary accent) */
  --signal-ink: #ffffff;
  --accent: #a02a21;        /* Loenbro Red (stripe / underline / headlines in light) */
  --accent-2: #60656b;      /* Loenbro Gray */
  --headline: var(--fg);    /* default headline color, overridden in light palette */
  --headline-accent: var(--accent);  /* emphasis word within a headline */
  --muted: #8a909a;
  --muted-2: #5a606b;
  --fg: #f4efe4;
  --fg-soft: #c8ccd3;
  --nav-bg: rgba(10,14,20,.92);

  --display: "Utility Pro", "Hanken Grotesk", system-ui, sans-serif;
  --sans: "Interstate", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Interstate", "Inter", system-ui, sans-serif;
  --serif: var(--display); /* legacy alias */

  --pad-x: clamp(20px, 4vw, 56px);
  --gutter: clamp(16px, 2vw, 32px);
  --maxw: 1440px;
  --density: 1;
}

[data-density="compact"] { --density: .85; }
[data-density="spacious"] { --density: 1.15; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ── layout primitives ─────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.sec { padding-block: calc(96px * var(--density)); }
.sec--tight { padding-block: calc(56px * var(--density)); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: none;
}
.eyebrow--num::before { display: none; }
.eyebrow--num::after {
  content: attr(data-num);
  color: var(--signal);
  font-weight: 600;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -.02em; line-height: 1.02; color: var(--headline); }
h1 { font-size: 65px; font-weight: 500; letter-spacing: -.024em; line-height: 1; }
.h-display {
  font-family: var(--display);
  font-weight: 400;
  font-size: 65px;
  letter-spacing: -.02em;
  line-height: 1.02;
}
.h-section {
  font-size: 65px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.02;
}
.h-section--display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.016em;
}
p { margin: 0; }
.lede { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; color: var(--fg-soft); max-width: 56ch; }

/* ── utility bar ──────────────────────────────────────────────────────── */
.utility {
  background: var(--ink-deep);
  color: var(--fg-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.utility .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 8px;
}
.utility__left { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.utility__pill {
  white-space: nowrap;
}
.utility__pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  font-weight: 600;
  letter-spacing: .08em;
}
.utility__pill::before {
  content: "";
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 999px;
}
.utility__right { display: flex; gap: 14px; align-items: center; color: var(--muted); flex-wrap: wrap; }
.utility a:hover { color: var(--accent); }

@media (max-width: 980px) {
  .utility__right { font-size: 10px; }
  .utility__right a:not([href^="tel:"]) { display: none; }
  .utility__right span { display: none; }
}
@media (max-width: 760px) {
  .utility__right { display: none; }
}

/* ── nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 76px;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 0;
}
.loenbro-logo {
  display: inline-flex;
  align-items: center;
  height: 36px;
}
.loenbro-logo img {
  height: 100%;
  width: auto;
  display: block;
}
/* In dark palettes the blue/red wordmark sits on a dark ground — soften the
   background contrast slightly so the logo doesn't feel like it's floating. */
[data-theme="dark"] .loenbro-logo {
  filter: brightness(1.08);
}
.nav__links {
  display: flex; gap: 4px; justify-self: center;
}
.nav__link {
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-soft);
  position: relative;
  transition: color .15s;
}
.nav__link:hover { color: var(--fg); }
.nav__link[aria-current="page"] {
  color: var(--fg);
}
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 2px;
  background: var(--accent);
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--signal);
  color: var(--signal-ink);
  padding: 12px 18px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  border: 0;
  position: relative;
  transition: transform .15s, background .15s;
}
.nav__cta::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--accent);
  transition: bottom .15s;
}
.nav__cta:hover { transform: translateY(-1px); }
.nav__cta:hover::after { bottom: -6px; }
.nav__cta svg { width: 14px; height: 14px; }

@media (max-width: 980px) {
  .nav__links { display: none; }
}

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0a0e14;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__media__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,.55);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background:
    radial-gradient(1200px 600px at 70% 30%, rgba(19,64,106,.55), transparent 60%),
    repeating-linear-gradient(135deg, #0d1218 0 22px, #0a0e14 22px 44px);
  pointer-events: none;
}
.hero__media__placeholder__dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(160,42,33,.25);
}
/* Hide the placeholder when the <video> has loaded real footage */
.hero__video:has(source) ~ .hero__media__placeholder,
.hero__video:not([poster=""]) ~ .hero__media__placeholder,
.hero__video[src] ~ .hero__media__placeholder { display: none; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.7) 100%),
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: block;
  padding-block: clamp(96px, 12vw, 180px) clamp(48px, 6vw, 88px);
}
.hero__copy { display: flex; flex-direction: column; gap: 56px; max-width: 880px; }
/* Force-white text over the video, regardless of palette */
.hero .eyebrow,
.hero .eyebrow::after { color: rgba(255,255,255,.85); }
.hero .eyebrow::before { background: var(--accent); }
.hero__title,
.hero__title .signal,
.hero__title .ghost { color: #ffffff; }
.hero__title .signal { color: var(--accent); }
.hero__title .ghost { color: rgba(255,255,255,.55); }
.hero .lede { color: rgba(255,255,255,.82); }
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.22);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero__meta dt { color: rgba(255,255,255,.6); margin-bottom: 4px; }
.hero__meta dd {
  margin: 0;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.hero__strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-deep);
  color: var(--fg);
}
.hero__strip__inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: -.01em;
}
.hero__strip__inner > div {
  display: flex;
  gap: 56px;
  padding: 18px 28px 18px 0;
  animation: marquee 50s linear infinite;
}
.hero__strip__inner span { display: inline-flex; align-items: center; gap: 56px; }
.hero__strip__inner span::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 999px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .hero__grid { padding-block: clamp(72px, 18vw, 140px) 56px; }
  .hero__copy { gap: 40px; }
  .hero__meta { grid-template-columns: 1fr; gap: 16px; }
}

/* ── scale strip ──────────────────────────────────────────────────────── */
.scale {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}
.scale__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.scale__cell {
  padding: 40px 28px;
  border-right: 1px solid rgba(0,0,0,.1);
  position: relative;
}
.scale__cell:last-child { border-right: 0; }
.scale__num {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(56px, 6vw, 88px);
  letter-spacing: -.025em;
  line-height: .9;
  color: #000;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.scale__num .suffix {
  font-size: .4em;
  color: var(--muted-2);
  font-weight: 600;
}
.scale__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 12px;
}
.scale__cell::before {
  content: attr(data-id);
  position: absolute;
  top: 16px; right: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted-2);
}
@media (max-width: 720px) {
  .scale__grid { grid-template-columns: repeat(2, 1fr); }
  .scale__cell:nth-child(-n+2) { border-bottom: 1px solid rgba(0,0,0,.1); }
  .scale__cell:nth-child(2) { border-right: 0; }
}

/* ── services explorer ────────────────────────────────────────────────── */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: end;
  margin-bottom: 56px;
}
.section-head__right { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
}

.services {
  background: var(--ink);
}
.services__list { border-top: 1px solid var(--line); }
.svc {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 1fr) 56px;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: background .2s;
}
.svc:hover { background: linear-gradient(90deg, rgba(160,42,33,.08), transparent 40%); }
.svc:hover .svc__title { color: var(--accent); }
.svc:hover .svc__arrow { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateX(4px); }
.svc__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
}
.svc__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -.02em;
  line-height: 1.02;
  transition: color .15s;
}
.svc__desc {
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.5;
  max-width: 52ch;
}
.svc__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.svc__tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 2px;
}
.svc__arrow {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--fg-soft);
  transition: background .15s, color .15s, transform .15s;
}
@media (max-width: 1000px) {
  .svc { grid-template-columns: 50px 1fr 40px; }
  .svc__desc, .svc__tags { display: none; }
}

/* ── industries ──────────────────────────────────────────────────────── */
.industries {
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
}
.industries__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.ind {
  background: var(--ink);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 180px;
  cursor: pointer;
  transition: background .2s, color .2s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.ind > *:not(.ind__slot) { position: relative; z-index: 2; }
.ind__slot {
  position: absolute !important;
  inset: 0;
  z-index: 1;
  display: block;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .35s ease, transform .8s ease;
}
/* Scrim over the dropped photo so white text + arrow stay legible on hover */
.ind__slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.7) 100%);
  pointer-events: none;
  z-index: 1;
}
.ind:hover .ind__slot {
  opacity: 1;
  transform: scale(1);
}
/* Hover-reveal layer: brand-keyed gradient fallback when no photo has been dropped yet */
.ind::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--ind-tone, #13406a);
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%),
    radial-gradient(120% 80% at 20% 10%, rgba(255,255,255,.18), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .35s ease, transform .8s ease;
}
.ind__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .35s ease, transform .8s ease;
  pointer-events: none;
}
.ind__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 80%, rgba(0,0,0,.7) 100%);
}
.ind:hover::before,
.ind:hover .ind__bg {
  opacity: 1;
  transform: scale(1);
}
.ind:hover { color: #fff; }
.ind:hover .ind__name { color: #fff; }
.ind:hover .ind__arrow { color: #fff; }

/* Brand-aligned tones (Loenbro primary + secondary palette) */
.ind[data-tone="signal"]   { --ind-tone: #13406a; }  /* Loenbro Blue */
.ind[data-tone="accent"]   { --ind-tone: #a02a21; }  /* Loenbro Red */
.ind[data-tone="yellow"]   { --ind-tone: #c4881d; }  /* deepened Yellow */
.ind[data-tone="seagreen"] { --ind-tone: #0a413f; }  /* Sea Green */
.ind[data-tone="brown"]    { --ind-tone: #6b513f; }  /* deepened Brown */
.ind[data-tone="slate"]    { --ind-tone: #3d556e; }  /* deepened Slate Blue */
.ind__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  transition: color .2s;
}
.ind__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -.014em;
  line-height: 1.12;
}
.ind__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ind__arrow {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
  transition: color .2s;
}
@media (max-width: 980px) { .industries__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .industries__grid { grid-template-columns: 1fr; } }

/* ── projects ─────────────────────────────────────────────────────────── */
.projects { background: var(--ink); }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.proj {
  background: var(--ink-2);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
  position: relative;
}
/* Stretched link: only the title is a real <a>, but it covers the body
   so the card text area still navigates. Stays BELOW the image area so
   the <image-slot> drop target remains clickable. */
.proj__title-link {
  display: block;
  color: inherit;
  text-decoration: none;
  position: static;
}
.proj__title-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.proj__img { position: relative; z-index: 2; }
.proj:hover { transform: translateY(-2px); border-color: var(--accent); }
/* Project cards always sit on the darker slate (--ink-2 in light theme);
   force white text regardless of palette */
.proj,
.proj__title,
.proj__meta,
.proj__meta span,
.proj__stat dt,
.proj__stat dd { color: #ffffff; }
.proj__stats { border-top-color: rgba(255,255,255,.25); }
.proj__img {
  aspect-ratio: 4/3;
  background: var(--paper-2);
  position: relative;
  display: grid; place-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.proj__img image-slot { width: 100%; height: 100%; }
.proj__tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent);
  color: #fff;
  padding: 5px 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
}
.proj__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.proj__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffffff;
  display: flex; gap: 16px;
}
.proj__title { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -.018em; line-height: 1.15; }
.proj__stats {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.25);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.proj__stat dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.proj__stat dd {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}
@media (max-width: 980px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .proj-grid { grid-template-columns: 1fr; } }

/* ── safety / values ─────────────────────────────────────────────────── */
.safety {
  background: var(--signal);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.safety__stripe {
  position: absolute; left: 0; right: 0; top: 0;
  height: 6px;
  background: linear-gradient(to right, var(--accent) 0 65%, rgba(255,255,255,.45) 65% 80%, transparent 80%);
}
.safety__hex {
  position: absolute;
  right: -120px; top: -60px;
  width: 520px; height: 600px;
  opacity: .12;
  pointer-events: none;
}
.safety__hex svg { width: 100%; height: 100%; }
.safety__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.safety__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 65px;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: #fff;
}
.safety__title .strike {
  display: inline-block;
}
.safety__lede { margin-top: 24px; font-size: 17px; line-height: 1.55; max-width: 50ch; color: rgba(255,255,255,.85); }
.safety__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.18);
}
.safety__metric {
  background: var(--signal);
  padding: 28px 24px;
}
.safety__metric .v {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 4vw, 64px);
  letter-spacing: -.02em;
  line-height: .95;
}
.safety__metric .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 10px;
  color: rgba(255,255,255,.7);
}
.safety__metric .n {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,.45);
  margin-bottom: 8px;
  letter-spacing: .08em;
}
.safety__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 28px);
}
@media (max-width: 900px) { .safety__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── careers ─────────────────────────────────────────────────────────── */
.careers { background: var(--ink); border-top: 1px solid var(--line); }
.careers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.careers__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 65px;
  line-height: 1.02;
  letter-spacing: -.02em;
}
.careers__title .signal { color: var(--headline-accent); }
.careers__lede { color: var(--fg-soft); font-size: 18px; line-height: 1.55; margin-top: 20px; max-width: 50ch; }
.careers__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  background: var(--signal);
  color: #fff;
  padding: 14px 22px;
  font-weight: 600;
  border-radius: 2px;
  border: 0;
  font-size: 15px;
  position: relative;
  transition: transform .15s;
}
.careers__cta::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--accent);
  transition: bottom .15s;
}
.careers__cta:hover { transform: translateY(-1px); }
.careers__cta:hover::after { bottom: -6px; }

.openings {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.opening {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: padding .15s;
}
.opening:hover { padding-inline: 12px; background: linear-gradient(90deg, rgba(160,42,33,.06), transparent); }
.opening__role { font-weight: 700; font-size: 17px; }
.opening__loc, .opening__type {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.opening__arrow {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--fg-soft);
}
.opening:hover .opening__arrow { background: var(--signal); color: #fff; border-color: var(--signal); }

@media (max-width: 900px) {
  .careers__grid { grid-template-columns: 1fr; gap: 24px; }
  .opening { grid-template-columns: 1fr auto; }
  .opening__loc, .opening__type { display: none; }
}

/* ── footer ──────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink-deep);
  color: var(--fg-soft);
  border-top: 1px solid var(--line);
}
.footer__top {
  padding-block: 80px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer__brand h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 32px;
  color: var(--fg);
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.footer__brand p { max-width: 36ch; font-size: 14px; line-height: 1.6; }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--fg-soft); font-size: 14px; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* ── pillars (Simplify · Control · Succeed) ────────────────────────── */
.pillars { background: var(--ink); border-top: 1px solid var(--line); }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.pillar {
  position: relative;
  padding: 36px 32px 36px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
  min-height: 320px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.pillar::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}
.pillar:hover { border-color: var(--signal); transform: translateY(-2px); }
.pillar__hex {
  position: relative;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}
.pillar__hex svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pillar__hex span { position: relative; z-index: 1; }
.pillar__tag {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -.018em;
  color: var(--fg);
}
.pillar__formula {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--accent);
  padding: 10px 12px;
  background: rgba(160,42,33,.08);
  border-left: 2px solid var(--accent);
  line-height: 1.4;
}
.pillar__body {
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.55;
  margin-top: auto;
}
/* Pillar cards always sit on a darker slate; force white text regardless of palette */
.pillar,
.pillar__tag,
.pillar__body { color: #ffffff; }
.pillar__body { color: rgba(255,255,255,.85); }
.pillar__formula {
  color: #ffffff;
  background: rgba(255,255,255,.12);
  border-left-color: #ffffff;
}
@media (max-width: 900px) { .pillars__grid { grid-template-columns: 1fr; } }

/* ── footer accents ──────────────────────────────────────────────────── */
.footer__stripe {
  height: 8px;
  background: linear-gradient(to right, var(--accent) 0 70%, rgba(255,255,255,.25) 70% 82%, transparent 82%);
}
.footer__brand-lockup {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  color: var(--logo, var(--signal));
}
.footer__brand-lockup h3 { margin: 0; line-height: 1; }
.footer__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ── misc ─────────────────────────────────────────────────────────────── */
/* Light-theme overrides: utility/strip/footer/scale bands now sit on slate
   blue (--ink-deep / --paper = #5a7b98). Flip text to white for legibility. */
[data-theme="light"] .utility,
[data-theme="light"] .utility a,
[data-theme="light"] .utility__right { color: rgba(255,255,255,.88); }
[data-theme="light"] .utility a:hover { color: #ffffff; }

[data-theme="light"] .hero__strip,
[data-theme="light"] .hero__strip__inner { color: #ffffff; }

[data-theme="light"] .footer { color: rgba(255,255,255,.88); }
[data-theme="light"] .footer__col h4 { color: rgba(255,255,255,.6); }
[data-theme="light"] .footer__col a { color: rgba(255,255,255,.88); }
[data-theme="light"] .footer__col a:hover { color: #ffffff; }
[data-theme="light"] .footer__bottom { color: rgba(255,255,255,.6); border-top-color: rgba(255,255,255,.18); }
[data-theme="light"] .footer .btn-ghost {
  border-color: rgba(255,255,255,.3);
  color: #ffffff;
}
[data-theme="light"] .footer .btn-ghost:hover {
  border-color: #ffffff;
  color: #ffffff;
}
[data-theme="light"] .footer__top { border-bottom: 0; }
/* Footer sits on slate blue — present the colored logo on a small white
   plaque (the brand guide's preferred treatment over a 1-color reproduction). */
[data-theme="light"] .footer__brand-lockup .loenbro-logo {
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 3px;
  height: auto;
}
[data-theme="light"] .footer__brand-lockup .loenbro-logo img {
  height: 40px;
}

[data-theme="light"] .scale { color: #ffffff; }
[data-theme="light"] .scale__num { color: #ffffff; }
[data-theme="light"] .scale__num .suffix { color: rgba(255,255,255,.65); }
[data-theme="light"] .scale__label { color: rgba(255,255,255,.75); }
[data-theme="light"] .scale__cell { border-right-color: rgba(255,255,255,.18); }
[data-theme="light"] .scale__cell::before { color: rgba(255,255,255,.55); }
@media (max-width: 720px) {
  [data-theme="light"] .scale__cell:nth-child(-n+2) { border-bottom-color: rgba(255,255,255,.18); }
}

/* ── utility classes ─────────────────────────────────────────────────── */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost--light {
  color: #ffffff;
  border-color: rgba(255,255,255,.35);
}
.btn-ghost--light:hover { border-color: #ffffff; color: #ffffff; }

image-slot {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── projects-page ───────────────────────────────────────────────────── */
/* Hero header for the Projects index. Sits on Loenbro Blue, white type,
   with the red brand stripe along the top to echo the safety section. */
.proj-hero {
  background: var(--signal);
  color: #ffffff;
  position: relative;
  isolation: isolate;
  padding-block: clamp(72px, 9vw, 132px) clamp(56px, 7vw, 96px);
}
.proj-hero::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 6px;
  background: linear-gradient(to right, var(--accent) 0 65%, rgba(255,255,255,.45) 65% 80%, transparent 80%);
}
.proj-hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(255,255,255,.10), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 18px, transparent 18px 36px);
  pointer-events: none;
}
.proj-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: end;
}
.proj-hero__copy { display: flex; flex-direction: column; gap: 24px; }
.proj-hero__title {
  color: #ffffff;
  font-size: clamp(48px, 6.6vw, 92px);
  line-height: 1;
  letter-spacing: -.022em;
}
.proj-hero__title .signal { color: var(--accent); }
.proj-hero__lede {
  color: rgba(255,255,255,.85);
  max-width: 56ch;
}
.proj-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.22);
  margin: 0;
}
.proj-hero__stats > div {
  background: var(--signal);
  padding: 22px 22px 24px;
}
.proj-hero__stats dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 8px;
}
.proj-hero__stats dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -.018em;
  color: #ffffff;
}
@media (max-width: 900px) {
  .proj-hero__grid { grid-template-columns: 1fr; align-items: stretch; }
}

/* Index grid: filters + count + project cards */
.proj-index { background: var(--ink); }
.proj-index__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.proj-index__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--signal); color: var(--signal); }
.chip--active {
  background: var(--signal);
  border-color: var(--signal);
  color: #ffffff;
}
.chip--active:hover { color: #ffffff; }
.proj-index__count {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
}
.proj-index__count > span:first-child {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.018em;
  color: var(--headline);
}
.proj-index__count__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.proj-grid--index {
  row-gap: calc(var(--gutter) + 12px);
}
.proj__meta__industry {
  margin-left: auto;
  color: rgba(255,255,255,.6) !important;
}
.proj-index__empty {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* Closing CTA strip on the Projects page — sits on Loenbro Blue */
.proj-cta {
  background: var(--signal);
  color: #ffffff;
  padding-block: clamp(56px, 7vw, 96px);
  position: relative;
}
.proj-cta::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--accent);
}
.proj-cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.proj-cta__title {
  color: #ffffff;
  max-width: 22ch;
}
.proj-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}
@media (max-width: 900px) {
  .proj-cta__grid { grid-template-columns: 1fr; }
  .proj-cta__actions { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .proj-index__toolbar { flex-direction: column; align-items: flex-start; }
}

/* ── project detail page ─────────────────────────────────────────────── */
.pd-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.pd-breadcrumb:hover { color: var(--accent); }

.pd-hero {
  background: var(--ink);
  padding-block: clamp(40px, 5vw, 64px) clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.pd-hero__head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.pd-hero__tag {
  position: static;
  background: var(--accent);
  color: #ffffff;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pd-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pd-hero__title {
  color: var(--headline);
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 1;
  letter-spacing: -.022em;
  margin-bottom: 16px;
}
.pd-hero__subtitle {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -.01em;
  color: var(--fg);
  margin: 0 0 48px;
}
.pd-hero__image {
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  transition: transform .25s ease;
}
.pd-hero__image:hover { transform: translateY(-2px); }
.pd-hero__image::after {
  content: "Click to enlarge";
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(10,10,10,.78);
  color: #ffffff;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Facts grid: 6 cells, 3-up on desktop, 2-up on tablet, 1-up on mobile */
.pd-facts { background: var(--ink); border-top: 1px solid var(--line); }
.pd-facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 0;
}
.pd-fact {
  background: var(--ink);
  padding: 28px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.pd-fact::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 36px;
  background: var(--accent);
}
.pd-fact dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pd-fact dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -.018em;
  color: var(--fg);
}
.pd-fact p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 980px) { .pd-facts__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pd-facts__grid { grid-template-columns: 1fr; } }

/* Overview: lede on left, body paragraphs on right */
.pd-overview { background: var(--ink); border-top: 1px solid var(--line); }
.pd-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.pd-overview__lede h2 { max-width: 18ch; }
.pd-overview__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--fg);
}
.pd-overview__body p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}
@media (max-width: 900px) { .pd-overview__grid { grid-template-columns: 1fr; } }

/* Gallery: bento-style mosaic */
.pd-gallery { background: var(--ink); border-top: 1px solid var(--line); }
.pd-gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: var(--gutter);
}
.pd-gallery__tile {
  position: relative;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .2s ease, border-color .2s ease;
}
.pd-gallery__tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.pd-gallery__tile image-slot { width: 100%; height: 100%; }
/* Mosaic spans — repeat across the 8 tiles */
.pd-gallery__tile--1 { grid-column: span 4; grid-row: span 2; }
.pd-gallery__tile--2 { grid-column: span 2; grid-row: span 1; }
.pd-gallery__tile--3 { grid-column: span 2; grid-row: span 1; }
.pd-gallery__tile--4 { grid-column: span 2; grid-row: span 2; }
.pd-gallery__tile--5 { grid-column: span 2; grid-row: span 1; }
.pd-gallery__tile--6 { grid-column: span 2; grid-row: span 1; }
.pd-gallery__num {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(10,10,10,.78);
  color: #ffffff;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  z-index: 2;
}
@media (max-width: 900px) {
  .pd-gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .pd-gallery__tile { grid-column: span 1 !important; grid-row: span 1 !important; }
  .pd-gallery__tile--1, .pd-gallery__tile--4 { grid-column: span 2 !important; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 56px clamp(48px, 8vw, 96px);
  animation: lb-in .18s ease;
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__scrim {
  position: absolute;
  inset: 0;
  background: rgba(8,12,16,.92);
  border: 0;
  cursor: zoom-out;
}
.lightbox__frame {
  position: relative;
  width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lightbox__stage {
  aspect-ratio: 16 / 9;
  background: #0a0e14;
  border: 1px solid rgba(255,255,255,.14);
  overflow: hidden;
}
.lightbox__stage image-slot { width: 100%; height: 100%; }
.lightbox__caption {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.lightbox__count { color: var(--accent); font-weight: 600; }
.lightbox__btn {
  position: absolute;
  appearance: none;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(10,10,10,.55);
  color: #ffffff;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.lightbox__btn:hover { background: var(--accent); border-color: var(--accent); }
.lightbox__btn--prev  { top: 50%; left: clamp(8px, 2vw, 24px);  transform: translateY(-50%); }
.lightbox__btn--next  { top: 50%; right: clamp(8px, 2vw, 24px); transform: translateY(-50%); }
.lightbox__btn--close { top: clamp(8px, 2vw, 24px); right: clamp(8px, 2vw, 24px); }
@media (max-width: 720px) {
  .lightbox { padding: 56px 16px; }
  .lightbox__btn--prev, .lightbox__btn--next {
    top: auto; bottom: 16px; transform: none;
  }
  .lightbox__btn--prev { left: 16px; }
  .lightbox__btn--next { right: 16px; }
}
