/* ==========================================================================
   American Iron Works, Inc. — Website Redesign
   Design system / global stylesheet
   Palette: Black #000 | White #fff | Gray #7f7f7f | Blue #1414b4
   Type: Archivo (headings) + Inter (body), system fallbacks
   ========================================================================== */

:root {
  /* Core palette (as specified) */
  --black: #000000;
  --white: #ffffff;
  --gray: #7f7f7f;
  --blue: #1414b4;

  /* Derived neutral tints (kept within the black/white/gray family) */
  --ink: #000000;            /* primary text */
  --ink-soft: #7f7f7f;       /* secondary text only */
  --paper: #ffffff;          /* primary background */
  --paper-2: #f5f5f6;        /* subtle section band */
  --line: #e3e3e5;           /* hairline borders */
  --blue-deep: #0f0f8c;      /* blue hover */

  --maxw: max(1200px, 85vw);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lift: 0 6px 14px rgba(0,0,0,.10), 0 18px 40px rgba(0,0,0,.12);

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1rem; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.container--wide { max-width: max(1360px, 90vw); }
.section { padding-block: clamp(2.1rem, 4.2vw, 3.6rem); }
.section--tight { padding-block: clamp(1.5rem, 3vw, 2.4rem); }
.section--paper { background: var(--paper-2); }
.section--dark { background: var(--black); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: #d6d6d8; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gray);
  margin: 0 0 .9rem;
  display: inline-block;
}
.section--dark .eyebrow { color: #b9b9d6; }
.accent-bar { width: 54px; height: 4px; background: var(--blue); border: 0; margin: 0 0 1.4rem; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink); max-width: 62ch; }
.muted { color: var(--ink-soft); font-size: 1.06rem; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--blue); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  letter-spacing: .02em; line-height: 1;
  padding: .95rem 1.6rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; transition: all .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color:#fff; }
.btn--dark { background: var(--black); color: #fff; border-color: var(--black); }
.btn--dark:hover { background: #1a1a1a; color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--black); border-color:#fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: var(--nav-h);
}
/* Brand / text-logo lockup (placeholder for uploaded logo) */
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark {
  font-family: var(--font-head); font-weight: 800; color: #fff; background: var(--black);
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius);
  font-size: 1.05rem; letter-spacing: .02em; border-bottom: 3px solid var(--blue);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.06rem; letter-spacing: -.01em; }
.brand__tag { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); margin-top: 3px; }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  color: var(--ink);
}
.nav__toggle svg { width: 28px; height: 28px; }

.nav__menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); padding: .6rem .8rem; border-radius: var(--radius);
  background: none; border: 0; cursor: pointer;
}
.nav__link:hover { color: var(--blue); text-decoration: none; background: var(--paper-2); }
.nav__item.is-active > .nav__link { color: var(--blue); }
.nav__item.is-active > .nav__link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: -1px; height: 3px; background: var(--blue);
}
.caret { width: 10px; height: 10px; transition: transform .2s ease; }
.nav__item--has-sub:hover .caret, .nav__item--has-sub:focus-within .caret { transform: rotate(180deg); }

/* Dropdown */
.nav__sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 256px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: .4rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .16s ease; z-index: 120;
}
.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a {
  display: block; padding: .6rem .8rem; border-radius: var(--radius);
  color: var(--ink); font-size: .92rem; font-weight: 500;
}
.nav__sub a:hover { background: var(--paper-2); color: var(--blue); text-decoration: none; }
.nav__cta { margin-left: .4rem; }

/* Mobile nav */
@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 0 auto; width: min(360px, 86vw);
    background: #fff; border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 1rem;
    transform: translateX(110%); transition: transform .25s ease; overflow-y: auto;
    box-shadow: var(--shadow-lift);
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__link { width: 100%; justify-content: space-between; font-size: 1rem; padding: .85rem .6rem; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__item.is-active > .nav__link::after { display: none; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; padding: 0 0 .5rem .6rem; min-width: 0; display: none;
  }
  .nav__item--open .nav__sub,
  .nav__item--has-sub:hover .nav__sub,
  .nav__item--has-sub:focus-within .nav__sub { display: block; }
  .nav__cta { margin: .8rem 0 0; }
  .btn--nav { width: 100%; justify-content: center; }
}

/* ---------- Hero (rotating) ---------- */
.hero { position: relative; min-height: clamp(520px, 86vh, 860px); display: grid; align-items: center; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease;
  background-size: cover; background-position: center;
}
.hero__slide.is-active { opacity: 1; }
/* Steel-toned placeholder fills (replaced by real photos later) */
.hero__slide--ph1 { background: linear-gradient(125deg,#000 0%,#2a2a2e 45%,#7f7f7f 130%); }
.hero__slide--ph2 { background: linear-gradient(125deg,#1a1a1d 0%,#3a3a40 50%,#5a5a60 120%); }
.hero__slide--ph3 { background: linear-gradient(125deg,#000 0%,#14142e 60%,#1414b4 150%); }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.25) 100%); }
.hero__inner { position: relative; z-index: 2; color: #fff; padding-block: clamp(3rem,8vw,6rem); }
.hero h1 { color: #fff; max-width: 18ch; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero__since { color: #fff; }
.hero__sub { color: #ededed; font-size: clamp(1.05rem,1.7vw,1.3rem); max-width: 52ch; margin-top: .25rem; }
.hero .btn-row { margin-top: 1.8rem; }
.hero__caption {
  position: absolute; right: 14px; bottom: 12px; z-index: 2;
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.62); background: rgba(0,0,0,.28); padding: .25rem .5rem; border-radius: 3px;
}
.hero__dots { position: absolute; left: var(--gutter); bottom: 22px; z-index: 3; display: flex; gap: .5rem; }
.hero__dot { width: 30px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.4); border: 0; cursor: pointer; padding: 0; }
.hero__dot.is-active { background: #fff; }

/* ---------- Photo placeholders ---------- */
.ph {
  position: relative; display: grid; place-items: center; text-align: center;
  background: var(--paper-2);
  border: 1px dashed #c9c9cf; border-radius: var(--radius);
  color: var(--gray); overflow: hidden; aspect-ratio: 4 / 3;
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(135deg, rgba(127,127,127,.06) 25%, transparent 25%, transparent 50%, rgba(127,127,127,.06) 50%, rgba(127,127,127,.06) 75%, transparent 75%, transparent);
  background-size: 22px 22px;
}
.ph__body { position: relative; z-index: 1; padding: 1rem; }
.ph__icon { width: 34px; height: 34px; margin: 0 auto .5rem; opacity: .6; }
.ph__label { font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .04em; color: #5e5e5e; text-transform: uppercase; }
.ph__file { font-size: .72rem; color: var(--gray); margin-top: .25rem; font-family: var(--font-body); letter-spacing: .02em; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--tall { aspect-ratio: 3 / 4; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--hero { aspect-ratio: auto; height: 100%; min-height: 280px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.8rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(1.25rem, 3vw, 2.6rem); align-items: center; }
.split--media-first .split__media { order: -1; }

/* Larger feature media on sub-pages (home uses .container.split, so it is excluded here) */
.split:not(.container) .split__media > .rotator,
.split:not(.container) .split__media > .ph,
.seg-float__media > .rotator,
.seg-float__media > .ph { min-height: clamp(340px, 30vw, 500px); }

/* Business Operations: three stacked upload placeholders, aligned to top of the text column */
.split--ops { align-items: start; }
.ops-stack { display: grid; gap: clamp(.9rem, 1.6vw, 1.3rem); }

@media (max-width: 860px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .grid--3.grid--keep2, .grid--4.grid--keep2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .grid--3.grid--keep2, .grid--4.grid--keep2 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card .ph { border: 0; border-radius: 0; aspect-ratio: 4/3; }
.card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card__tag { font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.card__title { font-family: var(--font-head); font-weight: 800; font-size: 1.16rem; color: var(--ink); margin: 0; line-height: 1.15; }
.card__desc { color: var(--ink-soft); font-size: 1.02rem; margin: 0; line-height: 1.55; }
.card__more { margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .03em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: .35rem; }
.card__link { position: absolute; inset: 0; z-index: 2; }
.card__link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.card:hover .card__more { gap: .6rem; }
.card__more svg { width: 15px; height: 15px; }

/* Feature tiles (capabilities / strengths) */
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.9rem; height: 100%;
}
.feature__num { font-family: var(--font-head); font-weight: 800; color: var(--blue); font-size: .95rem; letter-spacing: .1em; }
.feature h3 { margin: .6rem 0 .5rem; font-size: clamp(1.25rem, 2.1vw, 1.6rem); }
.feature p { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.6; margin: 0; }
.section--dark .feature { background: #0e0e10; border-color: #232327; }
.section--dark .feature p { color: #c2c2c4; }
.section--dark .feature h3 { color:#fff; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
@media (max-width: 760px){ .stats { grid-template-columns: 1fr 1fr; } }
.stat { padding: 1.2rem; border-left: 3px solid var(--blue); }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem,3vw,2.3rem); color: var(--ink); line-height: 1; }
.section--dark .stat__num { color: #fff; }
.stat__label { color: var(--ink-soft); font-size: .98rem; margin-top: .4rem; }
.section--dark .stat__label { color: #c2c2c4; }

/* Bullet list, refined */
.ticks { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.05rem; height: 1.05rem;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.section--dark .ticks li::before { background: #6f6fe0; }

/* ---------- Contractors grid ---------- */
.gc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; }
.gc {
  flex: 0 1 calc(25% - 0.7rem);
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 78px; padding: .8rem 1rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: .96rem; color: var(--ink);
  transition: all .16s ease; letter-spacing: .01em;
}
@media (max-width: 860px){ .gc { flex-basis: calc(50% - 0.5rem); } }
@media (max-width: 520px){ .gc { flex-basis: 100%; } }
a.gc:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.gc--static { color: var(--gray); cursor: default; }
.gc__note { display:block; font-family: var(--font-body); font-weight: 500; font-size: .66rem; letter-spacing: .04em; color: var(--gray); margin-top: .2rem; }

/* ---------- Certification badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 1.1rem; justify-content: center; }
.badge {
  width: 150px; min-height: 150px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; padding: 1rem;
  background: #fff; border: 2px solid var(--ink); color: var(--ink);
}
.badge__k { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: .02em; }
.badge__t { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-top: .25rem; color: var(--ink); }
.badge__ph { font-size: .62rem; color: var(--gray); margin-top: .4rem; letter-spacing: .04em; }
.badge--blue { border-color: var(--blue); }
.badge--blue .badge__k { color: var(--blue); }

/* Footer mini badges */
.minibadges { display: flex; flex-wrap: wrap; gap: .6rem; }
.minibadge {
  border: 1px solid #3a3a3f; border-radius: var(--radius); padding: .45rem .65rem;
  font-family: var(--font-head); font-weight: 700; font-size: .68rem; letter-spacing: .06em;
  text-transform: uppercase; color: #d6d6d8;
}

/* ---------- Project detail ---------- */
.proj-hero { background: var(--black); color: #fff; }
.proj-hero .eyebrow { color:#b9b9d6; }
.proj-hero h1 { color: #fff; margin-bottom: .2rem; }
.proj-meta { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
@media (max-width: 760px){ .proj-meta { grid-template-columns: 1fr 1fr; } }
.proj-meta dt { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; color: var(--gray); margin: 0 0 .25rem; }
.proj-meta dd { margin: 0; font-weight: 600; color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.gallery__img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); display: block; background: var(--paper-2); }
@media (max-width: 760px){ .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px){ .gallery { grid-template-columns: 1fr; } }
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.3rem; margin-top: 0; }
.pager a { font-family: var(--font-head); font-weight: 700; }
/* Mobile: stack the project nav centered — All projects on top, then previous, then next. */
@media (max-width: 600px){
  .pager { flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; }
  .pager a:nth-child(1){ order: 2; } /* previous project */
  .pager a:nth-child(2){ order: 1; } /* All projects -> top */
  .pager a:nth-child(3){ order: 3; } /* next project */
}

/* Sector filter */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 2.2rem; }
.filter {
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  text-transform: uppercase; padding: .55rem 1.05rem; border-radius: 999px;
  border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; transition: all .16s ease;
}
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.sector-group { margin-bottom: 2rem; scroll-margin-top: 92px; }
.sector-group__head { display: flex; align-items: baseline; gap: .8rem; border-bottom: 2px solid var(--ink); padding-bottom: .6rem; margin-bottom: 1.3rem; }
.sector-group__head h2 { margin: 0; }
.sector-group__count { color: var(--gray); font-size: .9rem; }
.is-hidden { display: none !important; }

/* ---------- Locations ---------- */
.map-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }
.loc-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.loc-card h3 { margin-top: 0; }
.loc-card address { font-style: normal; color: var(--ink); line-height: 1.7; }

/* ---------- Careers / link list ---------- */
.linklist { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .7rem; max-width: 640px; }
.linklist a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem; font-family: var(--font-head); font-weight: 700; color: var(--ink);
}
.linklist a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; box-shadow: var(--shadow); }
.linklist svg { width: 18px; height: 18px; flex: none; }
.pending-tag { font-family: var(--font-body); font-weight:500; font-size:.7rem; letter-spacing:.03em; color: var(--gray); text-transform: uppercase; }

/* ---------- Contact ---------- */
.contact-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem,3vw,2.5rem); }
.contact-row { display:flex; align-items:center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row svg { width: 26px; height: 26px; color: var(--blue); flex: none; }
.contact-row a { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #c8c8ca; padding-block: clamp(2.6rem, 5vw, 4rem) 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color:#fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer a { color: #d6d6d8; }
.site-footer a:hover { color:#fff; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }
.footer-brand .brand__mark { background:#fff; color:#000; }
.footer-brand .brand__name { color:#fff; }
.footer-motto { font-family: var(--font-head); font-weight: 700; color:#fff; margin: 1rem 0 .6rem; }
.footer address { font-style: normal; line-height: 1.7; font-size: .95rem; }
.footer-social { display:flex; gap:.6rem; margin-top: 1rem; }
.footer-social a {
  width: 40px; height: 40px; border: 1px solid #3a3a3f; border-radius: var(--radius);
  display: grid; place-items: center; color:#d6d6d8;
}
.footer-social a:hover { border-color: var(--blue); color:#fff; background: var(--blue); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom {
  margin-top: 2.5rem; border-top: 1px solid #232327; padding-block: 1.3rem;
  display:flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; align-items: center;
  font-size: .82rem; color: #9a9a9d;
}
.footer-bottom a { color:#9a9a9d; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__slide { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .82rem; color: var(--gray); padding-top: 1.4rem; }
.crumbs a { color: var(--gray); }
.crumbs a:hover { color: var(--blue); }
.crumbs span { color: var(--ink); }

/* page intro band */
.pagehead { background: var(--paper-2); border-bottom: 1px solid var(--line); padding-block: clamp(1.6rem, 3.2vw, 2.6rem); }
.pagehead .crumbs { padding-top: 0; margin-bottom: .55rem; }
.pagehead .filters { margin: 1.3rem 0 0; }
.eyebrow-link { color: #b9b9d6; text-decoration: none; border-bottom: 1px solid transparent; }
.eyebrow-link:hover { color: #fff; border-bottom-color: #fff; text-decoration: none; }
.pagehead h1 { margin-bottom: .4rem; }
.pagehead p { color: var(--ink-soft); max-width: 60ch; margin: 0; }

/* sub-page side nav */
.subnav { list-style:none; margin:0 0 1.5rem; padding:0; display:flex; flex-wrap:wrap; gap:.5rem; }
.subnav a {
  font-family: var(--font-head); font-weight:700; font-size:.84rem; letter-spacing:.03em;
  text-transform: uppercase; padding:.5rem .95rem; border-radius:999px; border:1.5px solid var(--line);
  color: var(--ink);
}
.subnav a:hover { border-color: var(--blue); color: var(--blue); text-decoration:none; }
.subnav a.is-active { background: var(--ink); color:#fff; border-color: var(--ink); }

hr.rule { border:0; border-top:1px solid var(--line); margin: 2.2rem 0; }

/* ---------- Logo (uploaded) ---------- */
.brand__logo { height: 44px; width: auto; display: block; }
@media (max-width: 520px){ .brand__logo { height: 38px; } }
.footer-brand .brand__logo { height: 40px; }

/* ---------- Image rotator (cards, hero media, project media) ---------- */
.rotator { position: relative; overflow: hidden; background: #1a1a1d; }
.rotator img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s ease;
}
.rotator img:first-child { opacity: 1; }
.rotator img.is-active { opacity: 1; }
.rotator img.was-active { opacity: 0; }
.rotator--wide { aspect-ratio: 16 / 9; }
.rotator--4x3 { aspect-ratio: 4 / 3; }
.rotator--tall { aspect-ratio: 3 / 4; }
.rotator--square { aspect-ratio: 1 / 1; }
.card .rotator { aspect-ratio: 4 / 3; border-radius: 0; }
.rotator__count {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  font-family: var(--font-head); font-weight: 700; font-size: .68rem; letter-spacing: .04em;
  color: #fff; background: rgba(0,0,0,.55); padding: .2rem .45rem; border-radius: 3px;
}
@media (prefers-reduced-motion: reduce){ .rotator img { transition: none; } }

/* ---------- Certification badges strip (real artwork) ---------- */
.badges-strip { width: 100%; max-width: 860px; margin: 0 auto; }
.badges-strip img { width: 100%; height: auto; display: block; }

/* ---------- Sub-page nav lifted into the gray header ---------- */
.pagehead .subnav { margin: 1.4rem 0 0; }
.section--snug { padding-top: clamp(1.25rem, 2.6vw, 1.9rem); }

/* CEO quote styling */
.ceo-quote { position: relative; }
.ceo-quote p { font-size: 1.12rem; line-height: 1.7; }
.ceo-quote p.first::before { content: "\201C"; }
.ceo-quote p.last::after { content: "\201D"; }
.ceo-sign { font-family: var(--font-head); font-weight: 800; margin-top: 1.5rem; }
.ceo-role { color: var(--ink-soft); font-size: .9rem; margin-top: -.6rem; }

/* Strengths ticks: stay continuous when stacked (minimized window) */
.grid--ticks { gap: 1rem 1.8rem; }
.grid--ticks .ticks { margin-top: .7rem; }
@media (max-width: 860px) {
  .grid--ticks { gap: 0; }
  .grid--ticks .ticks { margin-top: .7rem; }
  .grid--ticks > div:first-child .ticks { margin-top: 0; }
}

/* Go Deeper / Explore sections: tighter */
.section--explore { padding-block: clamp(1.4rem, 2.8vw, 2.3rem); }
.section--explore .explore-head { margin: 0 auto 1.2rem; }

/* Ornamental wide segment: gray text spans full width under the image + intro */
.seg-wide__rest { margin-top: clamp(1rem, 2vw, 1.5rem); }
.seg-wide__rest p { margin-bottom: .9rem; }

/* Project gallery lightbox */
.gallery__img { cursor: zoom-in; transition: opacity .15s ease; }
.gallery__img:hover { opacity: .9; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.92); padding: 2rem; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox__close { position: absolute; top: .8rem; right: 1.1rem; width: 44px; height: 44px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; line-height: 1; border-radius: 50%; }
.lightbox__close:hover { background: rgba(255,255,255,.25); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; line-height: 1; border-radius: 50%; }
.lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__prev { left: 1rem; } .lightbox__next { right: 1rem; }
@media (max-width: 560px){ .lightbox__nav { width: 40px; height: 40px; } }

/* Project detail: meta with 2 fields reads cleaner */
.proj-meta--two { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 520px; }

/* Capabilities segment: photo floats right; title + black text on the left, gray wraps under */
.seg-float { overflow: hidden; }
.seg-float::after { content: ""; display: block; clear: both; }
.seg-float__media { float: right; width: 46%; margin: 0 0 1.2rem 2.2rem; }
.seg-float h2 { margin-top: 0; }
.seg-float .eyebrow { margin-bottom: .6rem; }
/* Overview & Operations: wide media keeps its true 16:9 frame at every width — no
   forced min-height that would crop / shrink the photo on laptop or mobile. */
.seg-float__media > .rotator--wide,
.seg-float__media > .ph--wide { min-height: 0; }
/* Business Operations: looping muted video sits in the same 16:9 frame as the photos */
.seg-float__media .ops-video {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  background: #1a1a1d; min-height: 0;
}
@media (max-width: 760px) {
  .seg-float__media { float: none; width: 100%; margin: 0 0 1.2rem; }
  /* Mobile: title + text first, photo below. Plain .seg-float (Capabilities
     Overview + Business Operations) stacks here; the --wrap/--left variants
     stay floated until 720 and are reordered in that breakpoint. */
  .seg-float:not(.seg-float--wrap):not(.seg-float--left) { display: flex; flex-direction: column; }
  .seg-float:not(.seg-float--wrap):not(.seg-float--left) .seg-float__media { order: 99; }
}
[id^="segment-"] { scroll-margin-top: 94px; }

/* Project detail: location under the title, in white */
.proj-loc { color: #eaeaf0; font-size: .98rem; font-weight: 500; margin: .1rem 0 0; }

/* ==========================================================================
   2026 update — responsive hardening, B&W title banners, wrap layouts,
   home-hero overlay header, parallax/zoom, back-to-top, richer reveals
   ========================================================================== */

/* ---------- Slow "Ken Burns" zoom (shared by hero + banners) ---------- */
@keyframes kenburns { from { transform: scale(1.001); } to { transform: scale(1.09); } }

/* ---------- Home: header sits transparent over the rotating hero ---------- */
.is-home .site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,0));
  border-bottom-color: transparent; box-shadow: none;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.is-home .site-header .nav__link,
.is-home .site-header .nav__toggle { color: #fff; }
.is-home .site-header .nav__link:hover { color: #fff; background: rgba(255,255,255,.16); }
.is-home .site-header .nav__item.is-active > .nav__link { color: #fff; }
.is-home .site-header .nav__item.is-active > .nav__link::after { background: #fff; }
.is-home .site-header .brand__logo { filter: brightness(0) invert(1); }
/* Solid state once scrolled past the hero */
.is-home .site-header.is-solid {
  background: #fff; border-bottom-color: var(--line); box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
.is-home .site-header.is-solid .nav__link,
.is-home .site-header.is-solid .nav__toggle { color: var(--ink); }
.is-home .site-header.is-solid .nav__link:hover { color: var(--blue); background: var(--paper-2); }
.is-home .site-header.is-solid .nav__item.is-active > .nav__link { color: var(--blue); }
.is-home .site-header.is-solid .nav__item.is-active > .nav__link::after { background: var(--blue); }
.is-home .site-header.is-solid .brand__logo { filter: none; }
/* Submenu always renders on white, so keep its links dark even in overlay mode */
.is-home .site-header .nav__sub .nav__link,
.is-home .site-header .nav__sub a { color: var(--ink); }
#welcome { scroll-margin-top: var(--nav-h); }

/* On mobile the slide-in menu is a white panel; force dark items inside it */
@media (max-width: 960px) {
  .is-home .site-header .nav__menu .nav__link { color: var(--ink); }
  .is-home .site-header .nav__menu.is-open ~ * { }
}

/* ---------- Hero: slow zoom + parallax-safe sizing + scroll cue ---------- */
.hero__slides { top: -10%; height: 120%; will-change: transform; }
.hero__slide.is-active { animation: kenburns 22s ease-out both; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .45rem;
  color: rgba(255,255,255,.85); text-decoration: none;
}
.hero__scroll:hover { color: #fff; text-decoration: none; }
.hero__scroll-txt { font-family: var(--font-head); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; }
.hero__scroll-mouse {
  width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.7); border-radius: 12px; position: relative;
}
.hero__scroll-mouse::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; border-radius: 2px;
  background: #fff; transform: translateX(-50%); animation: mousewheel 1.8s ease-in-out infinite;
}
@keyframes mousewheel { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 70%{opacity:1;transform:translate(-50%,9px)} 100%{opacity:0;transform:translate(-50%,9px)} }
@media (max-width: 600px){ .hero__scroll { display: none; } }

/* ---------- Sub-page title banners: rotating B&W hero photos ---------- */
.pagehead {
  position: relative; overflow: hidden;
  background: #141416; border-bottom: 0;
  min-height: clamp(230px, 27vw, 300px);
  display: flex; align-items: center;
  padding-block: clamp(2.1rem, 4vw, 3rem);
}
.pagehead__bg { position: absolute; inset: 0; z-index: 0; top: -8%; height: 116%; will-change: transform; }
.pagehead__slide {
  position: absolute; inset: 0; opacity: 0; background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.06) brightness(.92);
  transition: opacity 1.1s ease;
}
.pagehead__slide.is-active { opacity: 1; animation: kenburns 24s ease-out both; }
.pagehead__slide--ph { background: linear-gradient(125deg,#000 0%,#2a2a2e 45%,#7f7f7f 130%); filter: none; }
.pagehead__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.42) 100%);
}
.pagehead__inner { position: relative; z-index: 2; color: #fff; width: 100%; }
.pagehead h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.4); margin-bottom: .4rem; }
.pagehead .eyebrow { color: #d9d9ea; }
.pagehead p { color: #e8e8ec; max-width: 60ch; }
.pagehead .crumbs,
.pagehead .crumbs a { color: rgba(255,255,255,.82); }
.pagehead .crumbs span { color: #fff; }
.pagehead .crumbs a:hover { color: #fff; }
/* sub-nav pills on the dark banner */
.pagehead .subnav a {
  color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06);
}
.pagehead .subnav a:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.16); }
.pagehead .subnav a.is-active { background: #fff; color: #000; border-color: #fff; }
/* project filters on the dark banner */
.pagehead .filters .filter {
  color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08);
}
.pagehead .filters .filter:hover { border-color: #fff; color: #fff; }
.pagehead .filters .filter.is-active { background: #fff; color: #000; border-color: #fff; }

/* ---------- Text-wrap variant: large image floats, copy wraps and fills the width ---------- */
.seg-float--wrap .seg-float__media { float: right; width: clamp(300px, 46%, 520px); margin: .2rem 0 1.3rem 2.4rem; }
.seg-float--left .seg-float__media { float: left; margin: .2rem 2.4rem 1.3rem 0; }
.seg-float--wrap h2 { margin-top: 0; }
.seg-float--wrap .lede, .seg-float--wrap .muted { max-width: none; }
/* let the floated image show at its natural aspect (no forced tall min-height) */
.seg-float--wrap .seg-float__media > .rotator,
.seg-float--wrap .seg-float__media > .ph { min-height: 0; }
@media (max-width: 720px) {
  .seg-float--wrap .seg-float__media,
  .seg-float--left .seg-float__media { float: none; width: 100%; margin: 0 0 1.4rem; }
  /* Mobile: title + text first, photo below (About + Capabilities sub-pages) */
  .seg-float--wrap, .seg-float--left { display: flex; flex-direction: column; }
  .seg-float--wrap .seg-float__media,
  .seg-float--left .seg-float__media { order: 99; }
}

/* About Us 2nd block: the photo and the black paragraph share a two-column row, so the
   black copy stays in its own column beside the photo and never drops beneath it; the
   gray paragraph still runs full width below. On mobile the row collapses (the wrapper
   is flattened so the parent stacks black, gray, then photo as the other blocks do). */
.seg-aside { display: flex; align-items: flex-end; gap: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1.1rem; }
.seg-aside .seg-float__media { float: none; flex: 0 0 clamp(300px, 46%, 520px); width: auto; margin: 0; }
.seg-aside .lede { flex: 1 1 0; min-width: 0; margin: 0; }
@media (max-width: 720px){
  .seg-aside { display: contents; }
  .seg-aside .seg-float__media { flex: 0 0 auto; width: 100%; }
  .seg-aside .lede { margin: 0 0 1.1rem; }
}

/* ---------- Business Operations: 3 large images stacked + floated left, text wraps around ---------- */
.seg-float--ops .seg-float__media--stack {
  float: left; width: clamp(300px, 42%, 500px); margin: .2rem 2.4rem 1.3rem 0;
  display: flex; flex-direction: column; gap: clamp(1rem, 1.8vw, 1.5rem);
}
.seg-float--ops .seg-float__media--stack > .rotator,
.seg-float--ops .seg-float__media--stack > .ph { width: 100%; min-height: 0; }
.seg-float--ops h2 { margin-top: 2.2rem; }
.seg-float--ops h2:first-of-type { margin-top: 0; }
.seg-float--ops .accent-bar { margin-bottom: 1.1rem; }
@media (max-width: 720px) {
  .seg-float--ops .seg-float__media--stack { float: none; width: 100%; margin: 0 0 1.4rem; }
}

/* ---------- Locations: equal heading height so addresses + maps line up ---------- */
.loc-card h3 { min-height: 2.4em; }

/* ---------- Checkmark lists that always reflow with uniform gaps ---------- */
.ticks--flow {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: .7rem 1.9rem; margin-top: 1.1rem;
}
.ticks--flow li { break-inside: avoid; }

/* ---------- General responsive hardening ---------- */
/* Stack two-column splits a little earlier so columns never get cramped */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__media { order: 2; }
  /* On mobile, text comes before the photo even for the media-first (image-left
     on desktop) Suppliers split on About > Our Solutions. */
  .split--media-first .split__media { order: 2; }
  /* When a split stacks, let media size naturally instead of forcing tall min-heights */
  .split:not(.container) .split__media > .rotator,
  .split:not(.container) .split__media > .ph { min-height: 0; }
}
/* Careers (and any tall portrait beside text): cap height + center the photo */
.split .split__media > .rotator--tall,
.split .split__media > .ph--tall { max-height: 560px; }
/* Careers: enlarge the portrait on desktop / large screens — a bigger box of the
   same photo (downscaled and sharp), not a tighter crop. */
.split--careers .split__media > .rotator--tall,
.split--careers .split__media > .ph--tall { max-height: 720px; }
@media (min-width: 901px) {
  .split--careers { grid-template-columns: .85fr 1.15fr; }
}
@media (min-width: 901px) {
  .split { align-items: center; }
}
/* Keep the home hero readable / tall enough on short, wide minimized windows */
@media (max-height: 640px) and (min-width: 901px) {
  .hero { min-height: 460px; }
}

/* ---------- Back-to-top ---------- */
.to-top {
  position: fixed; right: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px);
  z-index: 95; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-lift); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Richer staggered reveals for card/feature grids ---------- */
.reveal .card, .reveal .feature, .reveal .loc-card, .reveal .gc {
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in .card, .reveal.in .feature, .reveal.in .loc-card, .reveal.in .gc {
  opacity: 1; transform: none;
}
.reveal.in .card:nth-child(2), .reveal.in .feature:nth-child(2), .reveal.in .loc-card:nth-child(2) { transition-delay: .07s; }
.reveal.in .card:nth-child(3), .reveal.in .feature:nth-child(3), .reveal.in .loc-card:nth-child(3) { transition-delay: .14s; }
.reveal.in .card:nth-child(4), .reveal.in .feature:nth-child(4) { transition-delay: .21s; }
.reveal.in .card:nth-child(5) { transition-delay: .28s; }
.reveal.in .card:nth-child(6) { transition-delay: .35s; }

/* ---------- Motion-reduction & no-JS safety nets ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__slide.is-active, .pagehead__slide.is-active { animation: none; }
  .hero__scroll-mouse::after { animation: none; }
  .reveal .card, .reveal .feature, .reveal .loc-card, .reveal .gc {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}
/* If JS never runs, nothing removes .no-js — so reveal everything up front. */
.no-js .reveal { opacity: 1 !important; transform: none !important; }
.no-js .reveal .card, .no-js .reveal .feature, .no-js .reveal .loc-card, .no-js .reveal .gc { opacity: 1; transform: none; }
