/* ==========================================================================
   Precision Material Management — static site
   Design tokens
   ========================================================================== */

:root {
  /* Palette sampled directly from the PMM logo */
  --ink:      #101112;   /* logo wordmark black */
  --ink-2:    #232527;
  --steel:    #6B7074;
  --steel-2:  #9AA0A4;
  --rule:     #DCDEDF;
  --paper:    #F1F1EF;
  --white:    #FFFFFF;
  --hi:       #EE7D00;   /* logo orange — primary accent */
  --hi-deep:  #B25C00;   /* accessible orange for text on light */
  --red:      #D40008;   /* logo red */
  --maroon:   #6E000C;   /* logo dark red */
  --signal:   #D40008;

  --shell: 1200px;
  --gut: clamp(20px, 5vw, 56px);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; display: block; height: auto; }

a { color: var(--ink); text-decoration-color: var(--hi); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--hi);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.shell { width: min(100% - (var(--gut) * 2), var(--shell)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--hi); color: var(--ink); padding: 12px 20px;
  font-family: var(--f-mono); font-size: 13px;
}
.skip:focus { left: 0; }

/* ==========================================================================
   Signature: inventory-tag typography
   Field labels, index markers and eyebrows read like warehouse tags.
   ========================================================================== */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.tag::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--hi);
}
.tag--light { color: rgba(255,255,255,.66); }

.barcode {
  height: 30px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px, transparent 2px 5px,
    var(--ink) 5px 6px, transparent 6px 10px,
    var(--ink) 10px 13px, transparent 13px 15px,
    var(--ink) 15px 16px, transparent 16px 21px
  );
  opacity: .85;
}

/* ==========================================================================
   Header
   ========================================================================== */

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: var(--white);
  border-bottom: 3px solid var(--hi);
}

.masthead__inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 74px;
}

.brand { display: block; margin-right: auto; line-height: 0; }
.brand img { height: 40px; width: auto; }
@media (max-width: 480px) { .brand img { height: 32px; } }

.nav { display: flex; align-items: center; gap: 26px; }

.nav a, .nav__trigger {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
}
.nav a:hover, .nav__trigger:hover { color: var(--hi-deep); border-bottom-color: var(--hi); }
.nav a[aria-current="page"], .nav__trigger[data-current="true"] { border-bottom-color: var(--hi); }

/* Services dropdown */
.nav__group { position: relative; display: flex; align-items: center; }
.nav__trigger::after { content: " \25BE"; font-size: 9px; }
.nav__menu {
  position: absolute; top: calc(100% + 14px); left: -18px;
  min-width: 300px; background: var(--white);
  border: 2px solid var(--ink); border-top: 3px solid var(--hi);
  padding: 6px 0; margin: 0; list-style: none;
  box-shadow: 0 22px 40px -24px rgba(0,0,0,.55);
  display: none; z-index: 80;
}
.nav__group:hover .nav__menu,
.nav__group:focus-within .nav__menu,
.nav__menu[data-open="true"] { display: block; }
.nav__menu li { margin: 0; }
.nav__menu a {
  display: block; padding: 12px 18px; border-bottom: 1px solid var(--rule);
  border-left: 3px solid transparent; font-size: 12px; letter-spacing: .08em;
}
.nav__menu li:last-child a { border-bottom: 0; }
.nav__menu a:hover { background: var(--paper); border-left-color: var(--hi); border-bottom-color: var(--rule); }

.btn {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 13px 22px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background: var(--hi);
  color: var(--ink);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--white); transform: translateY(-2px); }
.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--light {
  background: transparent; color: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.4);
}
.btn--light:hover { background: var(--white); color: var(--ink); }

.masthead__tel {
  font-family: var(--f-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .06em; color: var(--white); text-decoration: none;
  white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent;
}
.masthead__tel:hover { border-bottom-color: var(--hi); }

.nav-toggle {
  display: none;
  background: transparent; border: 2px solid var(--rule);
  color: var(--ink); font-family: var(--f-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 14px; cursor: pointer;
}

@media (max-width: 940px) {
  .masthead__tel {
  font-family: var(--f-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .06em; color: var(--white); text-decoration: none;
  white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent;
}
.masthead__tel:hover { border-bottom-color: var(--hi); }

.nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    background: var(--white);
    max-height: calc(100vh - 74px); overflow-y: auto;
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px var(--gut) 28px;
    border-bottom: 3px solid var(--hi);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--rule); }
  .nav__group { display: block; }
  .nav__trigger { width: 100%; text-align: left; padding: 15px 0; border-bottom: 1px solid var(--rule); }
  .nav__menu {
    position: static; display: block; min-width: 0; border: 0;
    box-shadow: none; padding: 0; background: var(--paper);
  }
  .nav__menu a { padding: 13px 18px; }
  .nav .btn { margin-top: 18px; text-align: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--ink);
  color: var(--white);
  padding: clamp(60px, 9vw, 108px) 0 clamp(64px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 18px, transparent 18px 36px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(44px, 6.6vw, 88px);
  font-weight: 900;
  color: var(--white);
  margin: 22px 0 0;
}
.hero h1 em {
  font-style: normal;
  display: block;
  color: var(--hi);
}

.hero__lede {
  margin-top: 26px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: rgba(255,255,255,.78);
  max-width: 46ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.creds {
  display: flex; align-items: center; gap: 26px;
  margin-top: 42px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.14);
  flex-wrap: wrap;
}
.creds img { height: 62px; width: auto; }
.creds p {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.5); max-width: 22ch;
}

/* The asset tag — signature element */

.assettag {
  background: var(--white);
  color: var(--ink);
  padding: 26px 28px 24px 38px;
  position: relative;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
}
.assettag::before {
  content: "";
  position: absolute; left: 14px; top: 22px; bottom: 22px; width: 8px;
  background-image: radial-gradient(circle at 4px 4px, var(--paper) 3.4px, transparent 3.6px);
  background-size: 8px 15px;
}
.assettag__top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase;
}
.assettag__top strong { font-weight: 600; }
.assettag__top span { color: var(--steel); }

.assettag__rows { margin: 0; }
.assettag__row {
  display: grid; grid-template-columns: 84px 1fr;
  gap: 12px; align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.assettag__row dt {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--steel);
}
.assettag__row dd {
  margin: 0; font-family: var(--f-mono); font-size: 14px; font-weight: 500;
}
.assettag__row dd b { font-weight: 600; }

.assettag__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 600;
}
.assettag__dot {
  width: 9px; height: 9px; background: var(--hi-deep); border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.assettag__code { margin-top: 18px; }
.assettag__code p {
  margin: 8px 0 0;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em;
  color: var(--steel); text-align: center;
}

/* Scanning sweep — one orchestrated motion moment */
.assettag__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--hi), transparent);
  animation: scan 5.5s cubic-bezier(.6,0,.4,1) infinite;
  pointer-events: none;
}
@keyframes scan {
  0%, 12% { transform: translateY(0); opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  88%, 100% { transform: translateY(var(--scan-h, 340px)); opacity: 0; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Section frames
   ========================================================================== */

.band { padding: clamp(64px, 8vw, 104px) 0; }
.band--white { background: var(--white); }
.band--ink { background: var(--ink); color: var(--white); }
.band--ink h2, .band--ink h3 { color: var(--white); }
.band--tight { padding-block: clamp(44px, 5vw, 64px); }

.band__head { max-width: 62ch; margin-bottom: clamp(36px, 4.5vw, 56px); }
.band__head h2 {
  font-size: clamp(30px, 4vw, 50px);
  margin-top: 18px;
}
.band__head p { margin-top: 16px; color: var(--steel); font-size: 18px; }
.band--ink .band__head p { color: rgba(255,255,255,.72); }

.headrow {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.headrow .band__head { margin-bottom: 0; }

.link-more {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none;
  border-bottom: 2px solid var(--hi); padding-bottom: 4px; white-space: nowrap;
}
.link-more:hover { border-bottom-color: var(--ink); }
.band--ink .link-more { color: var(--white); }

/* ==========================================================================
   Client marquee
   ========================================================================== */

.clients { background: var(--white); padding: 40px 0 46px; overflow: hidden; }
.clients__label {
  text-align: center; margin-bottom: 26px;
}
.clients__label .tag::before { display: none; }

.marquee { position: relative; display: flex; overflow: hidden; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--white), transparent); }

.marquee__track {
  display: flex; align-items: center; gap: 54px;
  padding-right: 54px;
  animation: slide 58s linear infinite;
  flex-shrink: 0;
  min-width: 100%;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: 62px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .62;
  transition: filter .2s ease, opacity .2s ease;
}
.marquee__track img:hover { filter: none; opacity: 1; }
@keyframes slide { to { transform: translateX(-100%); } }

/* ==========================================================================
   Services grid
   ========================================================================== */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-top: 2px solid var(--ink);
}
.svc {
  padding: 30px 26px 34px;
  border-bottom: 2px solid var(--ink);
  border-right: 1px solid var(--rule);
  background: var(--white);
  text-decoration: none;
  display: block;
  position: relative;
  transition: background .18s ease, color .18s ease;
}
.svc:last-child { border-right: 0; }
.svc__idx {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em;
  color: var(--steel-2);
}
.svc h3 { font-size: 23px; margin: 14px 0 10px; }
.svc p { color: var(--steel); font-size: 15.5px; margin: 0; }
.svc:hover { background: var(--ink); }
.svc:hover h3, .svc:hover p, .svc:hover .svc__idx { color: var(--white); }
.svc:hover .svc__idx { color: var(--hi); }

/* ==========================================================================
   Count sheet (stats)
   ========================================================================== */

.countsheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.16);
}
.countsheet div { background: var(--ink); padding: 30px 26px 28px; }
.countsheet dt {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.countsheet dd {
  margin: 12px 0 0;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1; letter-spacing: -.03em;
  color: var(--hi);
}
.countsheet dd small { font-size: .5em; font-weight: 600; }

/* ==========================================================================
   Software / module panels
   ========================================================================== */

.modules { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.module {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.module:nth-child(even) .module__body { order: 2; }
.module__body { padding: clamp(30px, 4vw, 52px); }
.module__body h3 { font-size: clamp(24px, 2.6vw, 34px); margin: 14px 0 14px; }
.module__body p { color: var(--steel); }
.module__list { list-style: none; margin: 20px 0 0; padding: 0; }
.module__list li {
  position: relative; padding: 9px 0 9px 26px;
  border-top: 1px solid var(--rule);
  font-size: 15.5px;
}
.module__list li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 12px; height: 2px; background: var(--hi-deep);
}
.module__art { background: var(--paper); position: relative; overflow: hidden; }
.module__art img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
@media (max-width: 820px) {
  .module__art { position: relative; aspect-ratio: 16 / 9; }
}

@media (max-width: 820px) {
  .module { grid-template-columns: 1fr; }
  .module:nth-child(even) .module__body { order: 0; }

}

/* ==========================================================================
   Case study cards
   ========================================================================== */

.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }
.case {
  background: var(--white);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border-bottom: 3px solid transparent;
  transition: border-color .18s ease, transform .18s ease;
}
.case:hover { border-bottom-color: var(--hi); transform: translateY(-4px); }
.case img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.case__body { padding: 24px 24px 28px; }
.case h3 { font-size: 21px; margin: 12px 0 12px; }
.case p { color: var(--steel); font-size: 15px; margin: 0; }
.case__read {
  margin-top: 18px; display: inline-block;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; border-bottom: 2px solid var(--hi);
  padding-bottom: 3px;
}

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */

.pagehead {
  background: var(--ink); color: var(--white);
  padding: clamp(56px, 7vw, 92px) 0 clamp(48px, 6vw, 76px);
  border-bottom: 3px solid var(--hi);
}
.pagehead h1 { font-size: clamp(38px, 5.6vw, 74px); color: var(--white); margin-top: 20px; }
.pagehead p { margin-top: 20px; color: rgba(255,255,255,.76); max-width: 58ch; font-size: 18px; }

/* ==========================================================================
   Pillars (mission / vision / value)
   ========================================================================== */

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--rule); }
.pillar { background: var(--white); padding: 34px 30px 38px; }
.pillar h2 { font-size: 25px; margin: 16px 0 0; }
.pillar hr { border: 0; border-top: 3px solid var(--hi); width: 54px; margin: 18px 0 18px; }
.pillar p { color: var(--steel); margin: 0; }

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline { border-top: 2px solid var(--ink); }
.tl {
  display: grid; grid-template-columns: 140px 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.tl__year {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(30px, 3.4vw, 42px); line-height: 1;
  letter-spacing: -.03em;
  position: relative; padding-left: 18px;
}
.tl__year::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 5px; background: var(--hi);
}
.tl p { font-size: 17px; max-width: 68ch; }

@media (max-width: 640px) {
  .tl { grid-template-columns: 1fr; gap: 12px; }
}

/* ==========================================================================
   Team
   ========================================================================== */

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 28px; }
.member { background: var(--white); }
.member img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; filter: grayscale(.35); }
.member__body { padding: 20px 22px 24px; }
.member h3 { font-size: 19px; }
.member p {
  margin: 6px 0 0; font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--steel);
}
.member a {
  display: inline-block; margin-top: 14px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .13em;
  text-transform: uppercase; text-decoration: none;
  border-bottom: 2px solid var(--hi); padding-bottom: 2px;
}

/* ==========================================================================
   Service detail blocks
   ========================================================================== */

.svcdetail {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  padding: clamp(44px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--rule);
}
.svcdetail:nth-child(even) .svcdetail__art { order: -1; }
.svcdetail h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 16px 0 18px; }
.svcdetail p { color: var(--steel); }
.svcdetail ul { list-style: none; margin: 22px 0 0; padding: 0; }
.svcdetail li {
  position: relative; padding: 12px 0 12px 30px;
  border-top: 1px solid var(--rule); font-size: 16px;
}
.svcdetail li:last-child { border-bottom: 1px solid var(--rule); }
.svcdetail li::before {
  content: ""; position: absolute; left: 0; top: 21px;
  width: 14px; height: 3px; background: var(--hi);
}
.svcdetail li strong { font-weight: 600; }
.svcdetail__note { margin-top: 22px; font-size: 16px; color: var(--ink); }

@media (max-width: 840px) {
  .svcdetail { grid-template-columns: 1fr; }
  .svcdetail:nth-child(even) .svcdetail__art { order: 0; }
}

/* ==========================================================================
   Scope of work — two-column bordered list, reads like an RFP scope
   ========================================================================== */

.scope { columns: 2; column-gap: clamp(28px, 4vw, 56px); margin: 0; padding: 0; list-style: none; }
@media (max-width: 720px) { .scope { columns: 1; } }
.scope li {
  break-inside: avoid;
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
}
.scope li::before {
  content: ""; position: absolute; left: 0; top: 21px;
  width: 14px; height: 3px; background: var(--hi);
}

.leadin {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 60px); align-items: center;
}
@media (max-width: 840px) { .leadin { grid-template-columns: 1fr; } }
.leadin p { font-size: 18px; color: var(--steel); }
.leadin p strong { color: var(--ink); font-weight: 600; }

/* Spec sheet — codes and contracting facts, set like a data plate */
.specsheet {
  border: 2px solid var(--ink);
  background: var(--white);
}
.specsheet__row {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 20px; padding: 16px 22px;
  border-bottom: 1px solid var(--rule);
}
.specsheet__row:last-child { border-bottom: 0; }
.specsheet dt {
  font-family: var(--f-mono); font-size: 16px; font-weight: 600;
  letter-spacing: .06em; color: var(--ink);
}
.specsheet dd { margin: 0; font-family: var(--f-body); font-size: 16px; }
.specsheet dd em { color: var(--hi-deep); font-weight: 600; }
.specsheet dd em { font-style: normal; color: var(--steel-2); }
.specsheet dd b { font-weight: 600; color: var(--ink); }
.specsheet dd { line-height: 1.9; }
@media (max-width: 620px) {
  .specsheet__row { grid-template-columns: 1fr; gap: 6px; }
}

.alsoknown {
  font-family: var(--f-mono); font-size: 12.5px; color: var(--steel);
  letter-spacing: .04em; margin-top: 26px; padding-top: 16px;
  border-top: 1px solid var(--rule);
}

/* ==========================================================================
   Article (case study detail)
   ========================================================================== */

.article { background: var(--white); }
.article__wrap { max-width: 780px; margin-inline: auto; padding: clamp(44px, 6vw, 76px) 0; }
.article__hero { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.article h2 {
  font-size: 26px; margin: 46px 0 18px;
  padding-top: 20px; border-top: 2px solid var(--ink);
}
.article h2:first-of-type { margin-top: 34px; }
.article ul, .article ol { padding-left: 0; list-style: none; margin: 0; }
.article li {
  position: relative; padding: 13px 0 13px 42px;
  border-bottom: 1px solid var(--rule); font-size: 16.5px;
}
.article ol { counter-reset: step; }
.article ol li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 14px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600;
  color: var(--hi-deep); letter-spacing: .08em;
}
.article ul li::before {
  content: ""; position: absolute; left: 0; top: 22px;
  width: 16px; height: 3px; background: var(--hi);
}
.article li strong { font-weight: 600; }

.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--rule); margin-top: 8px; }
.result { background: var(--paper); padding: 24px 22px 26px; }
.result dt {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--steel);
}
.result dd {
  margin: 10px 0 0; font-family: var(--f-display); font-weight: 900;
  font-size: 34px; line-height: 1; letter-spacing: -.03em;
}
.result p { margin: 10px 0 0; font-size: 14.5px; color: var(--steel); }

.pager {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 2px solid var(--ink); margin-top: 52px; padding-top: 24px;
}
.pager a {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; max-width: 40ch;
}
.pager a:hover { color: var(--signal); }
.pager span { display: block; color: var(--steel); margin-bottom: 6px; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 68px);
}
@media (max-width: 840px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card { background: var(--white); padding: 32px 30px 36px; align-self: start; }
.contact-card h2 { font-size: 22px; }
.contact-card dl { margin: 0; }
.contact-card dt {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--steel);
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule);
}
.contact-card dd { margin: 10px 0 0; font-size: 17px; }

.form { background: var(--white); padding: clamp(26px, 4vw, 42px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 8px;
}
.field label .req { color: var(--hi-deep); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: 16px; color: var(--ink);
  background: var(--paper); border: 0; border-bottom: 2px solid var(--rule);
  padding: 13px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-bottom-color: var(--hi); outline: none; background: var(--white);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.field textarea { min-height: 140px; resize: vertical; }
.form__note {
  font-family: var(--f-mono); font-size: 11.5px; color: var(--steel);
  letter-spacing: .04em; margin-top: 18px;
}

/* ==========================================================================
   CTA strip
   ========================================================================== */

.cta {
  background: var(--hi); color: var(--ink);
  padding: clamp(48px, 6vw, 76px) 0;
}
.cta__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta h2 { font-size: clamp(28px, 3.8vw, 46px); max-width: 20ch; }
.cta p { margin-top: 14px; max-width: 46ch; font-size: 17px; }
.cta .btn { background: var(--ink); color: var(--white); }
.cta .btn:hover { background: var(--white); color: var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: clamp(48px, 6vw, 74px) 0 34px; }
.footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
@media (max-width: 840px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.footer h3 {
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--hi);
  margin-bottom: 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 11px; }
.footer a { color: rgba(255,255,255,.72); text-decoration: none; font-size: 15px; }
.footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--hi); }
.footer__logo { height: 46px; width: auto; }
.footer__blurb { margin-top: 16px; max-width: 34ch; font-size: 15px; }
.footer__badges { display: flex; gap: 20px; margin-top: 24px; align-items: center; }
.footer__badges img { height: 56px; width: auto; }
.footer__base {
  margin-top: 46px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
}

/* ==========================================================================
   Scroll reveal + motion preferences
   ========================================================================== */

[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-in { opacity: 1; transform: none; }

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