/* ==========================================================================
   Casadei Steel Inc. — site stylesheet
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink:        #0d1013;
  --ink-2:      #14181d;
  --ink-3:      #1c2229;
  --steel:      #2b333c;
  --steel-2:    #3d4750;

  --paper:      #ffffff;
  --paper-2:    #f4f5f7;
  --paper-3:    #e7e9ed;

  --accent:     #ff6a13;
  --accent-dk:  #d9520a;
  --accent-soft: rgba(255, 106, 19, .12);

  --text:       #1b2026;
  --text-mute:  #5d6873;
  --text-inv:   #ffffff;
  --text-inv-m: rgba(255, 255, 255, .68);

  --line:       #dfe3e8;
  --line-dark:  rgba(255, 255, 255, .12);

  --shadow-sm:  0 1px 2px rgba(13, 16, 19, .06), 0 2px 8px rgba(13, 16, 19, .05);
  --shadow-md:  0 4px 12px rgba(13, 16, 19, .08), 0 12px 32px rgba(13, 16, 19, .10);
  --shadow-lg:  0 12px 24px rgba(13, 16, 19, .12), 0 32px 64px rgba(13, 16, 19, .18);

  --wrap:       1240px;
  --nav-h:      76px;

  --ease:       cubic-bezier(.22, .61, .36, 1);

  --display:    "Barlow Condensed", "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -.005em; text-transform: uppercase; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 36px); } }

.section { padding: clamp(64px, 9vw, 124px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--dark { background: var(--ink); color: var(--text-inv); }
.section--ink2 { background: var(--ink-2); color: var(--text-inv); }
.section--grey { background: var(--paper-2); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 12px 20px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body);
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--accent); flex: none;
}

.h1 { font-size: clamp(40px, 8.2vw, 104px); }
.h2 { font-size: clamp(31px, 4.6vw, 58px); }
.h3 { font-size: clamp(24px, 2.4vw, 32px); }
.h4 { font-size: clamp(19px, 1.6vw, 23px); }

.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--text-mute); }
.section--dark .lede, .section--ink2 .lede { color: var(--text-inv-m); }

.rule { width: 56px; height: 4px; background: var(--accent); border: 0; margin: 20px 0 0; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  font-family: var(--body); font-size: 14px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  border: 2px solid transparent; border-radius: 2px;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dk); }

.btn--ghost { border-color: rgba(255,255,255,.42); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--steel); }

.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn .arw { transition: transform .22s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Text link with animated underline */
.tlink {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .3s var(--ease);
}
.tlink:hover { background-size: 100% 2px; }
.tlink .arw { transition: transform .22s var(--ease); }
.tlink:hover .arw { transform: translateX(4px); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(13,16,19,.85), rgba(13,16,19,0));
  opacity: 1; transition: opacity .3s var(--ease);
}
.hdr.is-solid { background: var(--ink); box-shadow: 0 1px 0 var(--line-dark), 0 8px 28px rgba(0,0,0,.28); }
.hdr.is-solid::before { opacity: 0; }
/* Pages without a hero image start solid */
.hdr--static { background: var(--ink); }
.hdr--static::before { opacity: 0; }

.hdr__in { width: min(100% - 48px, var(--wrap)); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
@media (max-width: 640px) { .hdr__in { width: calc(100% - 36px); } }

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 32px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 10px 15px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.82);
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: #fff; }

.hdr .btn { padding: 12px 22px; font-size: 12px; margin-left: 12px; }

/* Phone number in the header */
.hdr__tel {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 18px; padding-left: 18px;
  border-left: 1px solid var(--line-dark);
  font-size: 15px; font-weight: 700; letter-spacing: .01em;
  color: #fff; white-space: nowrap;
  transition: color .2s var(--ease);
}
.hdr__tel svg { width: 15px; height: 15px; fill: var(--accent); flex: none; }
.hdr__tel:hover { color: var(--accent); }
@media (max-width: 1240px) { .hdr__tel { display: none; } }

/* Phone number in the drawer */
.drawer__tel {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 14px; padding: 16px;
  border: 1px solid var(--line-dark); border-radius: 2px;
  font-family: var(--display); font-size: 27px; font-weight: 700; color: #fff;
}
.drawer__tel svg { width: 20px; height: 20px; fill: var(--accent); }

/* Big phone link on the contact page */
.tel-lg {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 3.4vw, 44px); line-height: 1;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.tel-lg svg { width: 26px; height: 26px; fill: var(--accent); flex: none; }
.tel-lg:hover { color: var(--accent); }

/* Burger */
.burger {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  background: none; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span {
  display: block; position: relative;
  width: 24px; height: 2px; background: #fff;
  transition: background-color .2s var(--ease);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: #fff;
  transition: transform .28s var(--ease), top .28s var(--ease);
}
.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink);
  padding: calc(var(--nav-h) + 24px) 0 40px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer a.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--display); font-size: 32px; font-weight: 700; text-transform: uppercase;
  color: #fff;
}
.drawer a.drawer__link span { font-family: var(--body); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.drawer .btn { margin-top: 28px; width: 100%; }
.drawer__meta { margin-top: auto; padding-top: 32px; color: var(--text-inv-m); font-size: 14px; }
.drawer__meta a { color: #fff; }

@media (max-width: 1000px) {
  .nav, .hdr .btn { display: none; }
  .burger { display: flex; }
}

body.nav-open { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */
/* Sized so the hero plus the stat band below it fit in one screen. */
.hero {
  position: relative;
  min-height: min(78vh, 780px);
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) 0 0;
  background: var(--ink);
  overflow: hidden;
  color: #fff;
}
/* Short laptop screens: compress the hero so the stat band still clears the fold.
   min-height alone is not enough here — the intrinsic content is what's tall. */
@media (min-width: 1001px) and (max-height: 820px) {
  .hero { min-height: 68vh; padding-top: calc(var(--nav-h) + 22px); }
  .hero .h1 { font-size: clamp(40px, 5.4vw, 72px); }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero__sub { margin: 16px 0 22px; font-size: 16px; }
  .hero__in { padding-bottom: 30px; }
  .hero__caption { bottom: 30px; }
  .hero .btn { padding: 12px 24px; }
  .stat { padding: 18px 22px; }
  .stat__n { font-size: 34px; }
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(13,16,19,.96) 0%, rgba(13,16,19,.72) 34%, rgba(13,16,19,.30) 62%, rgba(13,16,19,.55) 100%),
    linear-gradient(to right, rgba(13,16,19,.72), rgba(13,16,19,0) 62%);
}
/* NB: no `width` here — this element also carries .wrap, which owns the gutter. */
.hero__in { position: relative; padding-bottom: clamp(36px, 4vw, 60px); }
.hero h1 { max-width: 20ch; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero h1 em { font-style: normal; color: var(--accent); display: block; }
.hero__sub { max-width: 56ch; margin: 26px 0 34px; font-size: clamp(16px, 1.4vw, 19px); color: rgba(255,255,255,.86); }
.hero__caption {
  position: absolute; right: 0; bottom: clamp(36px, 4vw, 60px);
  text-align: right; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  border-right: 2px solid var(--accent); padding-right: 14px;
}
@media (max-width: 900px) { .hero__caption { display: none; } }

/* Page hero (interior pages) */
.phero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(64px, 8vw, 108px)) 0 clamp(56px, 7vw, 92px);
  background: var(--ink); color: #fff; overflow: hidden;
}
.phero__bg { position: absolute; inset: 0; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.phero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(13,16,19,.95), rgba(13,16,19,.62));
}
.phero__in { position: relative; }
.phero h1 { font-size: clamp(34px, 6.4vw, 82px); max-width: 18ch; }
.phero p { max-width: 62ch; margin-top: 22px; color: rgba(255,255,255,.82); font-size: clamp(16px, 1.3vw, 19px); }

/* Breadcrumb */
.crumb { display: flex; gap: 10px; align-items: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 22px; }
.crumb a:hover { color: #fff; }
.crumb span { color: var(--accent); }

/* ==========================================================================
   Stat band
   ========================================================================== */
.stats { background: var(--ink-2); color: #fff; border-top: 1px solid var(--line-dark); }
.stats__grid {
  display: grid; grid-template-columns: repeat(5, 1fr) auto;
}

/* Certification marks, sharing the stat row. Deliberately quiet — they are
   reassurance for someone already reading, not a headline. */
.stat--certs {
  display: flex; align-items: center; gap: 15px;
  padding-left: 18px; padding-right: 0;
}
.minicert {
  display: flex; align-items: center; gap: 7px;
  /* .42 looked right but put the 7.5px label under 4.5:1 against the band;
     .55 still reads as recessive next to the white stat figures. */
  opacity: .55;
  transition: opacity .25s var(--ease);
}
.minicert:hover, .minicert:focus-visible { opacity: .95; }
.minicert img { height: 24px; width: auto; display: block; }
.minicert__mark { width: 15px; height: 15px; flex: none; fill: #fff; }
.minicert__txt {
  font-size: 7.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #fff; line-height: 1.32; white-space: nowrap;
}
.minicert__txt b { display: block; font-weight: 700; }
.stat { padding: clamp(22px, 2.4vw, 32px) 22px; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__n {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 3vw, 42px); line-height: 1;
  color: #fff;
}
.stat__n small { font-size: .46em; color: var(--accent); margin-left: 4px; letter-spacing: .02em; }
.stat__pre { font-family: var(--body); font-size: .28em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-inv-m); margin-right: 7px; vertical-align: middle; }
.stat__l { margin-top: 8px; font-size: 11.5px; letter-spacing: .085em; text-transform: uppercase; color: var(--text-inv-m); line-height: 1.45; }

/* Not enough room for a sixth column — drop the marks onto their own row. */
@media (max-width: 1280px) {
  .stats__grid { grid-template-columns: repeat(5, 1fr); }
  .stat--certs {
    grid-column: 1 / -1;
    border-left: 0; padding-left: 0;
    border-top: 1px solid var(--line-dark);
  }
}

@media (max-width: 980px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line-dark); padding-left: 0; }
  .stat:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--line-dark); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat:nth-child(even) { padding-left: 0; border-left: 0; }
  .stat:nth-child(2) { border-top: 1px solid var(--line-dark); }
}

/* ==========================================================================
   Capability cards
   ========================================================================== */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 940px) { .caps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

.cap {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.cap:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.cap__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.cap__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cap:hover .cap__img img { transform: scale(1.06); }
.cap__body { padding: 30px 30px 34px; flex: 1; display: flex; flex-direction: column; }
.cap__body h3 { margin-bottom: 14px; }
.cap__body p { color: var(--text-mute); font-size: 16px; }
.cap__body .tlink { margin-top: auto; padding-top: 22px; }

/* ==========================================================================
   Split feature
   ========================================================================== */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 5vw, 76px); align-items: center; }
.split--flip .split__media { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--flip .split__media { order: 0; } }

.split__media { position: relative; }
.split__media img { width: 100%; border-radius: 3px; }
.split__media--stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split__media--stack img:first-child { grid-column: 1 / -1; }

.badge-float {
  position: absolute; right: -18px; bottom: -18px;
  background: var(--accent); color: #fff;
  padding: 22px 26px; border-radius: 3px;
  box-shadow: var(--shadow-md);
  max-width: 220px;
}
.badge-float__pre { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .88; margin-bottom: 3px; }
.badge-float strong { display: block; font-family: var(--display); font-size: 40px; line-height: 1; }
.badge-float span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .92; }
@media (max-width: 900px) { .badge-float { right: 12px; bottom: -14px; } }

/* Checklist */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; margin-top: 8px; }
@media (max-width: 620px) { .checks { grid-template-columns: 1fr; } }
.checks li {
  position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5;
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 13px; height: 8px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg) translateY(-2px);
}

/* ==========================================================================
   Projects
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  padding: 11px 22px;
  background: transparent; border: 1px solid var(--line); border-radius: 2px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mute); cursor: pointer;
  transition: all .22s var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter span { color: var(--accent); margin-left: 6px; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }

.pcard {
  position: relative;
  border-radius: 3px; overflow: hidden;
  background: var(--ink-3);
  border: 0; padding: 0; margin: 0;
  text-align: left; cursor: pointer;
  display: block; width: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pcard.is-hidden { display: none; }

.pcard__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.07); }
.pcard__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,16,19,.94) 0%, rgba(13,16,19,.55) 42%, rgba(13,16,19,0) 78%);
}

.pcard__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(13,16,19,.78); backdrop-filter: blur(6px);
  color: #fff; font-size: 10.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 2px;
}
.pcard__tag--awarded { background: var(--accent); }

.pcard__tons {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(255,255,255,.94); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1;
  padding: 8px 11px 6px; border-radius: 2px;
}
.pcard__tons small { display: block; font-family: var(--body); font-size: 8.5px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }

.pcard__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 24px 24px; color: #fff; }
.pcard__body h3 { font-size: 25px; margin-bottom: 6px; }
.pcard__loc { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pcard__team {
  margin-top: 14px; padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.5;
  max-height: 0; opacity: 0; overflow: hidden; border-top-color: transparent;
  transition: max-height .35s var(--ease), opacity .3s var(--ease), margin .35s var(--ease), padding .35s var(--ease);
  margin-top: 0; padding-top: 0;
}
.pcard:hover .pcard__team, .pcard:focus-visible .pcard__team {
  max-height: 140px; opacity: 1; margin-top: 14px; padding-top: 13px; border-top-color: rgba(255,255,255,.2);
}
.pcard__team b { color: #fff; font-weight: 600; }
@media (hover: none) {
  .pcard__team { max-height: 140px; opacity: 1; margin-top: 14px; padding-top: 13px; border-top-color: rgba(255,255,255,.2); }
}

.no-results { padding: 60px 0; text-align: center; color: var(--text-mute); }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 10, 12, .95);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb__inner { max-width: 1000px; width: 100%; }
.lb__fig { margin: 0; }
.lb__fig img {
  width: 100%; max-height: 74vh; object-fit: contain;
  border-radius: 3px; background: var(--ink-2);
}
.lb__cap { margin-top: 20px; color: #fff; display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; }
.lb__cap h3 { font-size: 30px; }
.lb__cap .lb__loc { color: var(--accent); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.lb__meta { width: 100%; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 10px 36px; font-size: 14px; color: var(--text-inv-m); }
.lb__meta b { color: #fff; font-weight: 600; }
.lb__close {
  position: absolute; top: 20px; right: 20px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s var(--ease);
}
.lb__close:hover { background: var(--accent); border-color: var(--accent); }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s var(--ease);
}
.lb__nav:hover { background: var(--accent); border-color: var(--accent); }
.lb__nav--prev { left: 20px; }
.lb__nav--next { right: 20px; }
@media (max-width: 720px) { .lb__nav { display: none; } .lb__cap h3 { font-size: 24px; } }

/* ==========================================================================
   Client logos
   ========================================================================== */
/* minmax(0,…) not 1fr: the tracks must be free to shrink below the logo's
   intrinsic width, otherwise the images force the grid open. */
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.logo-cell {
  background: var(--paper);
  aspect-ratio: 3 / 2;
  display: flex; align-items: center; justify-content: center;
  padding: 26px;
  min-width: 0;
  transition: background-color .25s var(--ease);
}
/* Every logo ships on the same 400x160 canvas, trimmed and scaled to equal
   optical area, so one width rule renders them all consistently. */
.logo-cell img {
  width: 100%; height: auto; max-width: 240px;
  filter: grayscale(1); opacity: .58;
  transition: filter .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease);
  mix-blend-mode: multiply;
}
.logo-cell:hover { background: var(--paper-2); }
.logo-cell:hover img { filter: none; opacity: 1; transform: scale(1.05); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-block { padding: 28px 0; border-top: 1px solid var(--line); }
.info-block:first-child { border-top: 0; padding-top: 0; }
.info-block h3 { font-size: 20px; margin-bottom: 14px; }
.info-block address { font-style: normal; font-size: 18px; line-height: 1.6; }

.hours { display: grid; gap: 9px; }
.hours li { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); font-size: 16px; }
.hours li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours li b { font-weight: 600; }
.hours li.is-closed { color: var(--text-mute); }
.hours li.is-note { color: var(--text-mute); font-size: 14.5px; }

.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 620px) { .people { grid-template-columns: 1fr; } }
.person {
  border: 1px solid var(--line); border-radius: 3px;
  padding: 22px 24px; background: var(--paper);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.person:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.person__dept { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.person__name { font-family: var(--display); font-size: 25px; font-weight: 700; text-transform: uppercase; margin: 7px 0 9px; }
.person a { font-size: 14.5px; color: var(--text-mute); word-break: break-word; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.person a:hover { color: var(--ink); border-color: var(--accent); }

.map-card { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--paper); }
.map-card iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.35) contrast(1.05); }
.map-card__foot { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding: 20px 24px; border-top: 1px solid var(--line); }
.map-card__foot p { font-size: 15px; color: var(--text-mute); }

/* ==========================================================================
   Careers
   ========================================================================== */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
@media (max-width: 860px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .perks { grid-template-columns: 1fr; } }
.perk { background: var(--ink-2); padding: 30px 28px; transition: background-color .25s var(--ease); }
.perk:hover { background: var(--ink-3); }
.perk__i { width: 34px; height: 34px; color: var(--accent); margin-bottom: 16px; }
.perk h3 { font-size: 21px; color: #fff; margin-bottom: 8px; }
.perk p { font-size: 15px; color: var(--text-inv-m); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: clamp(64px, 8vw, 108px) 0;
}
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(13,16,19,.94), rgba(13,16,19,.55)); }
.cta__in { position: relative; display: grid; grid-template-columns: 1.2fr auto; gap: 40px; align-items: center; }
@media (max-width: 860px) { .cta__in { grid-template-columns: 1fr; } }
.cta h2 { max-width: 18ch; }
.cta p { margin-top: 18px; max-width: 52ch; color: var(--text-inv-m); }

/* ==========================================================================
   Footer
   ========================================================================== */
.ftr { background: var(--ink-2); color: var(--text-inv-m); padding: clamp(56px, 6vw, 84px) 0 0; font-size: 15px; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 52px; }
@media (max-width: 900px) { .ftr__grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .ftr__grid { grid-template-columns: 1fr; } }

.ftr img.ftr__logo { height: 30px; width: auto; margin-bottom: 20px; }
.ftr h4 { font-size: 15px; letter-spacing: .14em; color: #fff; margin-bottom: 18px; font-family: var(--body); font-weight: 700; }
.ftr li { margin-bottom: 10px; }
.ftr a { transition: color .2s var(--ease); }
.ftr a:hover { color: var(--accent); }
.ftr address { font-style: normal; line-height: 1.7; }

.certs { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.certs img { height: 42px; width: auto; background: #fff; padding: 5px 8px; border-radius: 2px; }
.cert-chip {
  display: inline-flex; flex-direction: column;
  padding: 7px 14px; border: 1px solid var(--line-dark); border-radius: 2px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-inv-m);
  line-height: 1.5;
}
.cert-chip b { color: var(--accent); font-family: var(--display); font-size: 19px; letter-spacing: .02em; }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

.ftr__bar {
  border-top: 1px solid var(--line-dark);
  padding: 24px 0 30px;
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  font-size: 13.5px;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: .09s; }
.rv[data-d="2"] { transition-delay: .18s; }
.rv[data-d="3"] { transition-delay: .27s; }
.rv[data-d="4"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1; transform: none; }
}

@media print {
  .hdr, .drawer, .burger, .lb, .cta { display: none !important; }
  body { color: #000; }
}
