/* ==========================================================================
   Midwest Machine & Tool, Inc.
   Static site styles. No framework, no build step.
   Type: Barlow Condensed (headlines) + Inter (body), self-hosted from /fonts
   as latin-subset woff2 (SIL Open Font License). Inter is one variable file
   covering 400-700; Barlow Condensed is two static weights.
   ========================================================================== */

@font-face{
  font-family:'Barlow Condensed';font-style:normal;font-weight:600;font-display:swap;
  src:url("fonts/barlow-condensed-600.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Barlow Condensed';font-style:normal;font-weight:700;font-display:swap;
  src:url("fonts/barlow-condensed-700.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;
  src:url("fonts/inter-400-700.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root{
  --red:#E92534;
  --red-dark:#C51124;
  --ink:#0A0A0A;
  --steel-900:#141619;
  --steel-800:#1C1F24;
  --steel-700:#282C33;
  --steel-500:#5A616B;
  --steel-400:#3C4148;
  --steel-300:#A8AEB8;
  --steel-100:#E8EAED;
  --line:#E3E5E9;
  --paper:#FFFFFF;
  --off:#F5F6F8;
  --maxw:1200px;
  --nav-h:76px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  color:var(--ink);background:var(--paper);
  line-height:1.6;-webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:'Barlow Condensed','Inter',sans-serif;font-weight:700;line-height:1.05;letter-spacing:-.01em;text-transform:uppercase}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
a:hover{color:var(--red)}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}

/* ---------- header: white, original logo ---------- */
header{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.97);backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:var(--nav-h)}
.logo{flex:0 0 auto;display:flex;align-items:center}
.logo img{height:42px;width:auto}
.nav-links{display:flex;align-items:center;gap:24px;list-style:none;flex-wrap:nowrap}
.nav-links a{
  color:var(--ink);font-size:13px;font-weight:600;letter-spacing:.08em;
  text-transform:uppercase;white-space:nowrap;transition:color .2s;
}
.nav-links a:hover{color:var(--red)}
.nav-cta{display:flex;gap:10px;align-items:center}

.btn{
  display:inline-block;padding:13px 20px;font-size:13px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;border-radius:2px;
  transition:background .2s,border-color .2s,color .2s;cursor:pointer;
  border:1px solid transparent;white-space:nowrap;
}
.btn-red{background:var(--red);color:#fff}
.btn-red:hover{background:var(--red-dark);color:#fff}
.btn-ghost{border-color:rgba(255,255,255,.28);color:var(--steel-100)}
.btn-ghost:hover{border-color:#fff;background:rgba(255,255,255,.06);color:#fff}
.btn-white{background:#fff;color:var(--red);text-align:center}
.btn-white:hover{background:var(--steel-100);color:var(--red)}
.btn-outline-w{border-color:rgba(255,255,255,.6);color:#fff;text-align:center}
.btn-outline-w:hover{background:rgba(255,255,255,.12);color:#fff}

/* hamburger: hidden until the nav runs out of room (see media query) */
.burger{
  display:none;width:48px;height:48px;background:none;border:1px solid #C9CDD3;
  border-radius:2px;cursor:pointer;flex-direction:column;align-items:center;
  justify-content:center;gap:5px;
}
.burger:hover{border-color:var(--ink);background:var(--off)}
.burger span{display:block;width:20px;height:2px;background:var(--ink)}

/* ---------- hero ---------- */
.hero{position:relative;background:var(--steel-900);color:#fff;overflow:hidden}
.hero-media{
  position:absolute;inset:0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(233,37,52,.16), transparent 55%),
    linear-gradient(120deg,#0A0A0A 0%,#1C1F24 55%,#282C33 100%);
}
.hero-media::after{
  content:'';position:absolute;inset:0;opacity:.28;z-index:2;
  background-image:repeating-linear-gradient(115deg,rgba(255,255,255,.045) 0px,rgba(255,255,255,.045) 1px,transparent 1px,transparent 9px);
  will-change:auto;pointer-events:none;
}
/* no stripe overlay once the video is carrying the texture */
.hero:has(.hero-video) .hero-media::after{display:none}
.hero-inner{position:relative;z-index:3;padding:clamp(74px,9vw,110px) 24px clamp(64px,8vw,96px);max-width:820px}
.hero h1{font-size:clamp(44px,7.2vw,86px);margin-bottom:22px}
.hero h1 em{font-style:normal;color:var(--red)}
.hero .lede{font-size:clamp(17px,2vw,21px);color:var(--steel-300);max-width:620px;margin-bottom:36px;line-height:1.55;text-wrap:pretty}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap}

/* ---------- shared section furniture ---------- */
section{padding:clamp(60px,8vw,88px) 0}
.eyebrow{
  display:inline-flex;align-items:center;gap:10px;font-size:12px;font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;color:var(--red);margin-bottom:22px;
}
.eyebrow::before{content:'';width:34px;height:2px;background:var(--red)}
.sec-head{max-width:720px;margin-bottom:52px}
.sec-head h2{font-size:clamp(32px,4.4vw,50px);margin-bottom:16px}
.sec-head p{color:var(--steel-500);font-size:17px;text-wrap:pretty}
.tight-head{margin-bottom:38px}
.h2-mid{font-size:clamp(30px,4vw,46px);margin-bottom:18px}
.body-lg{font-size:16.5px;margin-bottom:16px;color:var(--steel-400);text-wrap:pretty}
.body-lg.muted{color:var(--steel-500);margin-bottom:26px}
.note{margin-top:16px;font-size:13.5px;color:var(--steel-500)}
.alt{background:var(--off)}
.dark{background:var(--steel-900);color:#fff}
.dark .sec-head p{color:var(--steel-300)}
.split{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:clamp(32px,4vw,56px);align-items:center}

/* ---------- photo placeholders ----------
   Replace each .ph with <img> at the ratio noted in its class:
   .ph-43 = 4:3 (parts, shop floor) | .ph-45 = 4:5 (portraits, inspection).
   Keep the ratio; crop to it on export. */
.ph{
  position:relative;background:linear-gradient(135deg,#1C1F24,#3A4049);
  border-radius:3px;overflow:hidden;display:flex;align-items:flex-end;padding:14px;
}
.ph::after{
  content:'';position:absolute;inset:0;opacity:.5;
  background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.03) 0px,rgba(255,255,255,.03) 2px,transparent 2px,transparent 12px);
}
.ph-43{aspect-ratio:4/3}
.ph-45{aspect-ratio:4/5}
.ph .tag{
  position:relative;z-index:2;font-size:10px;letter-spacing:.14em;
  text-transform:uppercase;color:rgba(255,255,255,.5);font-weight:600;
}

/* ---------- capabilities ---------- */
.cap-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:24px}
.cap{
  background:#fff;border:1px solid var(--steel-100);border-left:3px solid var(--steel-100);
  border-radius:3px;padding:30px 26px;
  transition:transform .22s,box-shadow .22s,border-color .22s;
}
.cap:hover{
  border-color:var(--steel-300);border-left-color:var(--red);
  transform:translateY(-3px);box-shadow:0 12px 28px rgba(10,10,10,.09);
}
.cap .ic{width:40px;height:40px;margin-bottom:18px;color:var(--red)}
.cap h3{font-size:22px;margin-bottom:10px}
.cap p{font-size:15px;color:var(--steel-500);line-height:1.6}

/* ---------- trust bar (sits directly above the spec table) ---------- */
.trust{background:var(--ink);color:#fff}
.trust-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:1px;background:rgba(255,255,255,.09)}
.trust-item{background:var(--ink);padding:26px 18px;text-align:center}
.trust-item .n{font-family:'Barlow Condensed',sans-serif;font-size:32px;font-weight:700;color:#fff;line-height:1}
.trust-item .n span{color:var(--red)}
.trust-item .l{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#8A9099;margin-top:8px;font-weight:600}

/* ---------- equipment spec table ---------- */
.tablewrap{overflow-x:auto;border:1px solid var(--steel-100);border-radius:3px;background:#fff;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse;min-width:660px}
thead th{
  background:var(--ink);color:#fff;text-align:left;padding:14px 18px;font-size:11px;
  letter-spacing:.1em;text-transform:uppercase;font-weight:700;white-space:nowrap;
  position:sticky;top:0;
}
tbody th{
  text-align:left;font-family:'Inter',sans-serif;font-size:15px;font-weight:600;
  text-transform:none;letter-spacing:0;padding:14px 18px;border-bottom:1px solid var(--steel-100);
}
tbody td{padding:14px 18px;border-bottom:1px solid var(--steel-100);font-size:15px;color:var(--steel-500)}
tbody tr:nth-child(even) th,tbody tr:nth-child(even) td{background:var(--off)}
tbody tr:hover th,tbody tr:hover td{background:#FFF6F7}
tbody tr:last-child th,tbody tr:last-child td{border-bottom:0}
.mono{font-variant-numeric:tabular-nums;color:var(--ink)}
.tol{font-weight:600}
.tol.tight{color:var(--red)}
.na{color:var(--steel-500)}

/* ---------- video ---------- */
.video-frame{position:relative;aspect-ratio:16/9;background:var(--ink);border-radius:4px;overflow:hidden;border:1px solid var(--steel-700)}
.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
/* facade: thumbnail + play disc until the visitor clicks */
.yt-facade{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:var(--ink);cursor:pointer;display:block}
.yt-facade img{width:100%;height:100%;object-fit:cover;opacity:.85;transition:opacity .25s}
.yt-facade:hover img,.yt-facade:focus-visible img{opacity:1}
.yt-facade:focus-visible{outline:3px solid var(--red);outline-offset:-3px}
.yt-play{
  position:absolute;left:50%;top:50%;width:76px;height:76px;margin:-38px 0 0 -38px;
  border-radius:50%;background:var(--red);box-shadow:0 10px 30px rgba(0,0,0,.45);
  transition:transform .2s;
}
.yt-play::after{
  content:'';position:absolute;left:50%;top:50%;margin:-13px 0 0 -9px;
  border-left:24px solid #fff;border-top:13px solid transparent;border-bottom:13px solid transparent;
}
.yt-facade:hover .yt-play{transform:scale(1.06)}
.yt-nojs{position:absolute;left:0;right:0;bottom:0;padding:12px;text-align:center;color:#fff;background:rgba(10,10,10,.85);z-index:2}
@media (prefers-reduced-motion:reduce){.yt-play,.yt-facade img{transition:none}.yt-facade:hover .yt-play{transform:none}}

/* ---------- quality ---------- */
.q-list{list-style:none;display:grid;gap:18px;margin-top:8px}
.q-list li{display:flex;gap:14px;align-items:flex-start}
.q-list .tick{
  flex:0 0 22px;height:22px;border-radius:50%;background:rgba(233,37,52,.12);
  color:var(--red);display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:700;margin-top:2px;
}
.q-list strong{display:block;font-size:16px;margin-bottom:3px}
.q-list .d{font-size:14.5px;color:var(--steel-500);line-height:1.55}

/* ---------- industries ---------- */
.ind-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:20px}
.ind{border:1px solid rgba(255,255,255,.12);border-radius:3px;padding:28px 22px;background:rgba(255,255,255,.03);transition:background .2s,border-color .2s}
.ind:hover{background:rgba(233,37,52,.09);border-color:rgba(233,37,52,.4)}
.ind h3{font-size:20px;margin-bottom:8px;color:#fff}
.ind p{font-size:14px;color:var(--steel-300);line-height:1.55}

/* ---------- portfolio ---------- */
.port-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:22px}
.port{border-radius:3px;overflow:hidden;background:#fff;border:1px solid var(--steel-100)}
.port .ph{border-radius:0}
.port .meta{padding:18px 20px}
.port .meta h3{font-size:19px;margin-bottom:10px}
.port .specs{display:flex;flex-wrap:wrap;gap:6px}
.chip{
  font-size:11.5px;letter-spacing:.04em;background:var(--off);border:1px solid var(--steel-100);
  color:var(--steel-500);padding:4px 9px;border-radius:2px;font-weight:500;
}

/* ---------- team ---------- */
/* six people: one column on phones, three across everywhere else - two clean
   rows of three, no orphan at any width (five columns would give 5+1) */
.team-grid{display:grid;grid-template-columns:1fr;gap:24px}
@media (min-width:640px){.team-grid{grid-template-columns:repeat(3,1fr)}}
.person .ph{margin-bottom:14px}
.person h3{font-size:20px;margin-bottom:3px}
.person .role{font-size:13px;color:var(--red);font-weight:600;letter-spacing:.06em;text-transform:uppercase}

/* ---------- quote CTA ---------- */
.cta{background:var(--red);color:#fff;padding:clamp(56px,7vw,76px) 0}
.cta-inner{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:clamp(28px,4vw,48px);align-items:center}
.cta h2{font-size:clamp(30px,4vw,46px);margin-bottom:14px}
.cta p{font-size:17px;opacity:.94;max-width:520px;text-wrap:pretty}
.cta-actions{display:flex;flex-direction:column;gap:12px}

/* ---------- footer ---------- */
footer{background:var(--ink);color:var(--steel-300);padding:clamp(48px,6vw,64px) 0 28px;font-size:14.5px}
.f-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:40px;margin-bottom:44px}
footer h4{font-family:'Barlow Condensed',sans-serif;font-size:15px;letter-spacing:.12em;color:#fff;text-transform:uppercase;margin-bottom:16px;font-weight:700}
footer ul{list-style:none;display:grid;gap:9px}
.f-logo img{height:38px;width:auto;margin-bottom:18px}
.f-about{color:var(--steel-500);font-size:14px;max-width:280px}
.f-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:22px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:13px;color:var(--steel-500)}

/* ==========================================================================
   Responsive. The nav needs ~1150px to sit on one line, so it collapses there,
   not at a phone width. Everything else is auto-fit grid and reflows on its own.
   ========================================================================== */
@media (max-width:1150px){
  .nav-links{
    display:none;position:absolute;top:100%;left:0;right:0;background:#fff;
    flex-direction:column;align-items:stretch;gap:0;padding:8px 24px;
    border-bottom:1px solid var(--line);box-shadow:0 12px 24px rgba(10,10,10,.08);
  }
  .nav-links.open{display:flex}
  .nav-links a{display:block;padding:15px 0;font-size:14px;border-bottom:1px solid #EDEFF2}
  .nav-links li:last-child a{border-bottom:0}
  .burger{display:flex}
  header{position:sticky}
  .nav{position:relative}
}
@media (max-width:560px){
  /* five stat tiles read better two across than as a tower */
  .trust-grid{grid-template-columns:1fr 1fr}
  .trust-item:last-child{grid-column:1 / -1}
}
@media (max-width:520px){
  .wrap{padding:0 18px}
  .hero-inner{padding-left:18px;padding-right:18px}
  .cta-actions .btn{width:100%}
  /* the full-size header row wants ~393px; trim logo and button so the
     burger keeps its edge inset on small phones */
  .logo img{height:36px}
  .nav{gap:12px}
  .nav-cta{gap:8px}
  .nav-cta .btn{padding:13px 14px;font-size:12px}
}
@media (max-width:820px){
  /* roomier touch targets for footer and team contact links */
  footer .f-grid a,.pcontact a{display:inline-block;padding:7px 0}
}

/* ---------- scroll reveal (progressive: no JS means no hiding) ---------- */
.js .rv{opacity:0;transform:translateY(18px);transition:opacity .55s ease,transform .55s ease}
.js .rv.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .rv{opacity:1;transform:none;transition:none}
  .cap:hover{transform:none}
}

/* ==========================================================================
   Additions for real content: hero video, equipment list, photo grids
   ========================================================================== */

/* hero background video sits under the existing gradient overlay */
.hero-video{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;z-index:0;
}
.hero-media::before{
  content:'';position:absolute;inset:0;z-index:1;
  background:linear-gradient(100deg,
    rgba(10,10,10,.94) 0%, rgba(10,10,10,.82) 42%,
    rgba(10,10,10,.48) 72%, rgba(10,10,10,.34) 100%);
}
/* phones and metered connections get the poster frame, not 20MB of video */
@media (prefers-reduced-motion:reduce){ .hero-video{display:none} }

/* ==========================================================================
   EQUIPMENT
   Each category leads with the two things a buyer screens on: how many
   machines, and the envelope. The full list is one click away, so the section
   reads as six scannable lines instead of fifty machine names.
   Progressive: with JS off, every list is open and nothing is hidden.
   ========================================================================== */
.eq-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px;align-items:start}
.eqcat{background:#fff;border:1px solid var(--steel-100);border-radius:3px;overflow:hidden;transition:border-color .2s,box-shadow .2s}
.eqcat:hover{border-color:var(--steel-300);box-shadow:0 10px 24px rgba(10,10,10,.07)}
.eqcat.open{border-color:var(--steel-300)}

.eq-head{
  display:block;width:100%;text-align:left;background:none;border:0;
  padding:24px 24px 22px;cursor:pointer;font:inherit;color:inherit;
  border-left:3px solid transparent;transition:border-color .2s,background .2s;
}
.eq-head:hover{background:var(--off)}
.eqcat.open .eq-head{border-left-color:var(--red)}
.eq-head:focus-visible{outline:2px solid var(--red);outline-offset:-2px}

.eq-title{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.eq-title h3{font-size:19px;color:var(--ink);margin:0}
.eq-n{
  font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--red);background:rgba(233,37,52,.09);
  padding:3px 9px;border-radius:2px;white-space:nowrap;
}
.eq-spec{display:block;font-size:14.5px;color:var(--steel-500);line-height:1.5;margin-bottom:14px}

.eq-more{display:inline-flex;align-items:center;gap:8px}
.eq-more-t{font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--steel-500);transition:color .2s}
.eq-head:hover .eq-more-t{color:var(--red)}
.eq-chev{
  width:8px;height:8px;border-right:2px solid var(--steel-500);border-bottom:2px solid var(--steel-500);
  transform:rotate(45deg) translate(-2px,-2px);transition:transform .3s ease,border-color .2s;
}
.eq-head:hover .eq-chev{border-color:var(--red)}
.eqcat.open .eq-chev{transform:rotate(-135deg) translate(-2px,-2px)}
.eqcat.open .eq-more-t{color:var(--red)}

/* the list itself: grid-rows 0fr to 1fr gives a real height transition
   without measuring anything in JS */
.eq-list{display:grid;grid-template-rows:1fr}
.js .eq-list{grid-template-rows:0fr;transition:grid-template-rows .34s cubic-bezier(.4,0,.2,1)}
.js .eqcat.open .eq-list{grid-template-rows:1fr}
.eq-list > ul{overflow:hidden;list-style:none;display:grid;gap:9px;padding:0 24px 26px;margin:0}
/* with JS the vertical padding moves onto the last item so the collapsed
   track closes flush instead of leaving a blank strip under the button */
.js .eq-list > ul{padding-top:0;padding-bottom:0}
.js .eq-list li:last-child{padding-bottom:26px}
.eqcat li{font-size:14px;color:var(--steel-400);line-height:1.45;padding-left:14px;position:relative}
.eqcat li::before{
  content:'';position:absolute;left:0;top:8px;width:5px;height:5px;
  background:var(--red);opacity:.45;border-radius:50%;
}
.eqcat li:first-child{padding-top:2px;border-top:1px solid var(--steel-100);margin-top:2px}
.eqcat li:first-child::before{top:12px}

@media (prefers-reduced-motion:reduce){
  .js .eq-list{transition:none}
  .eq-chev{transition:none}
}

/* portfolio: photographs, four across, no caption furniture */
.port-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:16px}
.port{margin:0}
.port img{width:100%;aspect-ratio:1;object-fit:cover;display:block;transition:transform .4s}
.port:hover img{transform:scale(1.04)}
@media (prefers-reduced-motion:reduce){ .port:hover img{transform:none} }

/* team contact block under each name */
.pcontact{font-size:13px;color:var(--steel-500);margin-top:7px;line-height:1.5}
.pcontact a{color:var(--steel-500);overflow-wrap:anywhere}
.pcontact a:hover{color:var(--red)}

/* Missing-image resilience: until images/ is populated, an absent file shows as a
   neutral panel at the right ratio instead of collapsing the layout. Harmless
   once the files are in place. */
.port img, .team-grid img, #story img, #quality img{
  background:linear-gradient(135deg,#1C1F24,#3A4049);
  color:transparent;font-size:0;
}

/* ==========================================================================
   Capability cards: the clip belongs to the capability, not the page.
   Video is preload="none" and only fetched on first hover/focus/scroll-in,
   so the page costs nothing until someone shows interest.
   ========================================================================== */
.cap{position:relative;overflow:hidden;padding:0}
.cap > h3, .cap > p{padding-left:26px;padding-right:26px}
.cap > h3{margin-top:22px}
.cap > p{padding-bottom:28px}

.cap-media{
  position:relative;aspect-ratio:16/10;overflow:hidden;
  background-color:#1C1F24;background-size:cover;background-position:center;
}
/* the photo is the base layer on every card; a clip, where one exists, fades in
   over it. Cards without footage are simply photo cards - same visual weight.
   Scrim runs light at the top and dark at the bottom, where the Watch cue sits. */
.cap-media::before{
  content:'';position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(10,10,10,.22),rgba(10,10,10,.55));
  transition:opacity .35s ease;
}
.cap:hover .cap-media::before{opacity:.7}
.cap-video{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;z-index:2;transition:opacity .45s ease;
}
.cap-media.playing .cap-video{opacity:1}

/* small "Watch" cue, bottom-left, fades out once the clip runs */
.cap-cue{
  position:absolute;left:14px;bottom:12px;z-index:3;
  font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(255,255,255,.62);transition:opacity .3s ease;
  display:flex;align-items:center;gap:6px;
}
.cap-cue::before{
  content:'';width:0;height:0;
  border-left:7px solid var(--red);
  border-top:4.5px solid transparent;border-bottom:4.5px solid transparent;
}
.cap-media.playing .cap-cue,
.cap-media.no-video .cap-cue{opacity:0}

/* keyboard focus gets the same treatment as hover, and stays visible */
.cap:focus-visible{outline:2px solid var(--red);outline-offset:3px}
/* subtle zoom on the still when a card is hovered, video or not.
   The photo is painted by ::after (inheriting the card's inline
   background-image) so it can scale with a transform — background-size
   cannot animate from "cover", it snapped instead of zooming. */
.cap-photo{
  position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;
  transition:transform .6s ease;
}
.cap:hover .cap-photo{transform:scale(1.06)}
@media (prefers-reduced-motion:reduce){
  .cap:hover .cap-photo{transform:none}
}

/* no clip available: the card just keeps its icon, nothing looks broken */
.cap-media.no-video .cap-video{display:none}

@media (prefers-reduced-motion:reduce){
  .cap-video{display:none}
  .cap-cue{display:none}
}

/* ==========================================================================
   THE WORK BAND
   A full-bleed letterbox strip of parts footage, dropped between two content
   sections. One line of type, nothing to click. Its job is scale and rhythm:
   after a page of cards and lists, a moment where the work fills the screen.
   ========================================================================== */
.workband{
  position:relative;padding:0;overflow:hidden;
  height:clamp(280px,42vh,460px);
  background:var(--ink);
  /* the poster sits under the video at every width: it is the loading state,
     the no-video fallback, and the Data Saver stand-in */
  background-image:url("images/video-04-poster.jpg");
  background-image:image-set(url("images/video-04-poster.avif") type("image/avif"),url("images/video-04-poster.webp") type("image/webp"),url("images/video-04-poster.jpg") type("image/jpeg"));
  background-size:cover;background-position:center;
  display:flex;align-items:center;
}
.workband-video{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  /* the footage is already black and white; lift contrast so the red type
     and the machined edges both hold up */
  filter:contrast(1.12) brightness(.82);
}
.workband::after{
  content:'';position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.55) 45%, rgba(10,10,10,.25) 100%),
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, transparent 22%, transparent 78%, rgba(10,10,10,.55) 100%);
}
.workband-inner{
  position:relative;z-index:2;
  max-width:var(--maxw);margin:0 auto;padding:0 24px;width:100%;
}
.workband-line{
  font-family:'Barlow Condensed','Inter',sans-serif;
  font-weight:700;text-transform:uppercase;line-height:1.02;
  font-size:clamp(30px,5vw,62px);color:#fff;max-width:16ch;
  letter-spacing:-.01em;
}
.workband-line span{color:var(--steel-300);display:block;font-size:.52em;
  letter-spacing:.02em;margin-top:.5em;font-weight:600;max-width:24ch;line-height:1.25}

/* thin red rule at the top edge, so the band reads as deliberate */
.workband::before{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;z-index:3;
  background:var(--red);
}

/* no clip: the poster carries it, and failing that a flat panel */
.workband.no-video .workband-video{display:none}

@media (prefers-reduced-motion:reduce){
  .workband-video{display:none}
}

/* ==========================================================================
   QUOTE DIALOG
   The conversion point. Native <dialog> supplies the backdrop, focus trap
   and Escape handling; a noscript block in index.html renders it inline.
   Structure borders use steel-100 like the rest of the system; the inputs
   use the existing control border (#C9CDD3, same as the burger) so fields
   read as fields against the white card.
   ========================================================================== */
/* The universal reset above zeroes the UA's dialog{margin:auto}, which is what
   centers a modal dialog inside its inset:0 box. margin:auto here restores it -
   never position offsets. The dialog itself never scrolls: a fixed header and
   a scrolling body split the inside. */
.qd{
  margin:auto;
  width:min(640px,calc(100vw - 48px));
  max-height:min(88dvh,880px);
  padding:0;border:0;border-radius:4px;
  overflow:hidden;
  background:var(--paper);color:var(--ink);
  box-shadow:0 30px 80px rgba(10,10,10,.35);
}
.qd::backdrop{background:rgba(10,10,10,.72);backdrop-filter:blur(2px)}
.qd[open]{display:flex;animation:qd-in .16s ease-out}
@keyframes qd-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.qd[open]{animation:none}}

.qd-inner{display:flex;flex-direction:column;min-height:0;width:100%}

/* header stays put while the fields scroll */
.qd-head{
  position:relative;flex:0 0 auto;
  padding:clamp(20px,4vw,30px) clamp(22px,4.5vw,38px) 16px;
  padding-right:82px;
  border-bottom:1px solid var(--steel-100);
}
.qd-close{
  position:absolute;top:14px;right:14px;width:44px;height:44px;
  background:none;border:1px solid var(--steel-100);border-radius:3px;
  color:var(--steel-500);font-size:15px;line-height:1;cursor:pointer;
  transition:color .2s,border-color .2s;
}
.qd-close:hover{color:var(--ink);border-color:var(--steel-300)}
.qd-close:focus-visible{outline:2px solid var(--red);outline-offset:1px}

.qd-body{
  flex:1 1 auto;min-height:0;overflow:auto;
  padding:20px clamp(22px,4.5vw,38px) 28px;
  -webkit-overflow-scrolling:touch;
}

.qd-head h3{font-size:clamp(24px,3.2vw,30px);margin-bottom:8px}
.qd-sub{font-size:14px;color:var(--steel-500)}
.qd-sub a{color:var(--red);font-weight:600;white-space:nowrap}
.req{color:var(--red);font-weight:700}

.qd-form{display:grid;grid-template-columns:1fr 1fr;gap:16px 14px}
.qf{display:flex;flex-direction:column}
.qf-full{grid-column:1 / -1}
.qf label{
  font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--steel-400);margin-bottom:7px;
}
.qf input,.qf textarea{
  width:100%;min-height:44px;padding:10px 12px;
  font:inherit;font-size:15px;color:var(--ink);
  background:#fff;border:1px solid #C9CDD3;border-radius:3px;
  transition:border-color .2s;
}
.qf textarea{resize:vertical;min-height:96px}
.qf input:hover,.qf textarea:hover{border-color:var(--steel-300)}
.qf input:focus-visible,.qf textarea:focus-visible{outline:2px solid var(--red);outline-offset:1px}
.qf input[type="file"]{padding:9px 10px;color:var(--steel-500);font-size:13.5px}
.qf input[type="file"]::file-selector-button{
  font:inherit;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--ink);background:var(--off);border:1px solid #C9CDD3;border-radius:2px;
  padding:8px 12px;margin-right:12px;cursor:pointer;
}
.qf input[type="file"]::file-selector-button:hover{border-color:var(--steel-300)}
.qf-note{font-size:12.5px;color:var(--steel-500);margin-top:6px}
.qd-actions{margin-top:6px}
.qd-send{width:100%;border:0;font-size:14px}
.qd-fine{text-align:center;font-size:13px;color:var(--steel-500);margin-top:12px}

/* honeypot: present for bots, invisible and unreachable for people */
.qd-bot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* while the modal is up, the dialog scrolls internally, not the page */
body:has(.qd[open]){overflow:hidden}

@media (max-width:700px){
  .qd-form{grid-template-columns:1fr}
}

/* phones: a full-screen sheet, not a floating box. dvh, not vh, so the form
   bottom stays reachable under mobile browser chrome; the body's bottom
   padding always clears the home-indicator safe area. */
@media (max-width:639px){
  .qd{
    width:100%;max-width:100%;
    height:100vh;height:100dvh;
    max-height:100vh;max-height:100dvh;
    margin:0;border-radius:0;
  }
  .qd-body{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
}

/* ==========================================================================
   SMALL-SCREEN OVERRIDES
   Kept at the end of the file so they win over the component rules above
   at equal specificity.
   ========================================================================== */
@media (max-width:560px){
  /* twelve part photos, two across instead of a tower */
  .port-grid{grid-template-columns:1fr 1fr;gap:12px}
}
@media (max-width:520px){
  /* tighter equipment summaries on phones */
  .eq-head{padding:20px 18px 18px}
  .eq-spec{font-size:13.5px;margin-bottom:12px}
  .eq-list > ul{padding-left:18px;padding-right:18px}
}

/* ==========================================================================
   MULTI-PAGE CHROME (Sep 7)
   Nav dropdown, breadcrumbs, page heads, service-page layout, the standalone
   quote page. Header, footer and dialog markup are identical on every page.
   ========================================================================== */

/* ---- capabilities dropdown ---- */
.nav-sub{position:relative}
.nav-sub-btn{
  background:none;border:0;padding:0;font:inherit;color:var(--ink);
  font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  cursor:pointer;display:inline-flex;align-items:center;gap:7px;transition:color .2s;
}
.nav-sub-btn:hover,.nav-sub.open .nav-sub-btn,.nav-sub-btn.is-here{color:var(--red)}
.nav-sub-btn:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.nav-chev{width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.nav-sub-list{
  display:none;position:absolute;top:calc(100% + 14px);left:-16px;min-width:236px;
  background:#fff;border:1px solid var(--line);border-top:3px solid var(--red);border-radius:3px;
  box-shadow:0 14px 34px rgba(10,10,10,.12);padding:8px 0;list-style:none;z-index:120;
}
.nav-sub-list::before{content:'';position:absolute;top:-17px;left:0;right:0;height:17px}
.nav-sub:hover .nav-sub-list,.nav-sub:focus-within .nav-sub-list,.nav-sub.open .nav-sub-list{display:block}
.nav-sub-list a{display:block;padding:10px 18px;font-size:13px;letter-spacing:.06em;white-space:nowrap}
.nav-sub-list a:hover,.nav-sub-list a[aria-current="page"]{color:var(--red);background:var(--off)}
.nav-links > li > a[aria-current="page"]{color:var(--red)}
@media (max-width:1150px){
  .nav-sub{position:static}
  .nav-sub-btn{display:block;width:100%;text-align:left;padding:15px 0;font-size:14px;border-bottom:1px solid #EDEFF2}
  .nav-chev{display:none}
  .nav-sub-list{display:block;position:static;min-width:0;border:0;border-radius:0;box-shadow:none;padding:0 0 4px 16px}
  .nav-sub-list::before{display:none}
  .nav-links .nav-sub-list a{padding:12px 0;font-size:14px;border-bottom:1px solid #EDEFF2}
  .nav-sub-list li:last-child a{border-bottom:0}
}

/* ---- page head + breadcrumb ---- */
.page-head{background:var(--steel-900);color:#fff;padding:clamp(36px,5.5vw,60px) 0 clamp(36px,5vw,56px)}
.page-head h1{font-size:clamp(38px,6vw,68px);margin:8px 0 16px}
.page-head .lede{font-size:clamp(16px,1.8vw,19px);color:var(--steel-300);max-width:680px;line-height:1.55;text-wrap:pretty}
.page-head .eyebrow{margin-bottom:10px}
.crumbs{list-style:none;display:flex;flex-wrap:wrap;gap:6px 10px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--steel-300);margin-bottom:24px}
.crumbs li+li::before{content:'/';margin-right:10px;color:var(--steel-500)}
.crumbs a{color:var(--steel-300)}
.crumbs a:hover{color:#fff}
.crumbs [aria-current]{color:#fff}

/* ---- service pages ---- */
.svc-intro .split{align-items:start}
.prose p{font-size:16.5px;color:var(--steel-400);margin-bottom:16px;max-width:66ch;text-wrap:pretty}
.prose a{color:var(--red);font-weight:600}
.svc-media{position:relative;aspect-ratio:16/10;overflow:hidden;border-radius:3px;background:var(--ink)}
.svc-media picture,.svc-media img{position:absolute;inset:0;width:100%;height:100%}
.svc-media img{object-fit:cover}
.svc-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s ease}
.svc-media.playing video{opacity:1}
.svc-media.no-video video{display:none}
@media (prefers-reduced-motion:reduce){.svc-media video{display:none}}
.spec-list{list-style:none;display:grid;gap:9px;padding:0;margin:0}
.eq-static{padding:24px}
.eq-static-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.eq-static-head h3{font-size:19px;color:var(--ink);margin:0}
.eq-static > .eq-spec{margin-bottom:14px}
.eq-static .spec-list li{font-size:14px;color:var(--steel-400);line-height:1.45;padding-left:14px;position:relative}
.eq-static .spec-list li::before{content:'';position:absolute;left:0;top:8px;width:5px;height:5px;background:var(--red);opacity:.45;border-radius:50%}
.eq-full{align-items:start}
.svc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:24px}
.fact{background:#fff;border:1px solid var(--steel-100);border-left:3px solid var(--red);border-radius:3px;padding:24px}
.fact h3{font-size:19px;margin-bottom:10px}
.fact p,.fact li{font-size:15px;color:var(--steel-500);line-height:1.6}
.fact p{margin-bottom:10px}
.fact p:last-child{margin-bottom:0}
.fact a{color:var(--red);font-weight:600}
.fact ul{list-style:none;display:grid;gap:8px}
.fact li{padding-left:14px;position:relative}
.fact li::before{content:'';position:absolute;left:0;top:9px;width:5px;height:5px;background:var(--red);opacity:.45;border-radius:50%}
.related{display:flex;flex-wrap:wrap;gap:10px}
.related a{display:inline-block;padding:11px 15px;border:1px solid var(--steel-100);border-radius:3px;font-size:12.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--ink);background:#fff}
.related a:hover{border-color:var(--red);color:var(--red)}

/* ---- home: capability cards are links now, equipment teaser is links ---- */
a.cap{display:block;color:inherit}
a.cap:hover,a.cap:focus-visible{color:inherit}
.cap > p{padding-bottom:12px}
.cap-more{display:inline-flex;align-items:center;gap:8px;margin:0 26px 26px;font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--red)}
.cap-more::after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-top:1.5px solid currentColor;transform:rotate(45deg)}
.eq-teaser .eq-head{border-left-color:transparent}
.eq-teaser .eq-head:hover{border-left-color:var(--red)}
.btn-dark{background:var(--ink);color:#fff}
.btn-dark:hover{background:var(--steel-700);color:#fff}

/* ---- standalone quote page ---- */
.qp-split{align-items:start;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr)}
.qp{background:#fff;border:1px solid var(--steel-100);border-radius:4px;padding:clamp(22px,4vw,36px)}
.qp .qd-sub{margin-bottom:18px}
.qp-aside h3{font-size:19px;margin:0 0 10px}
.qp-aside h3+h3,.qp-aside p+h3,.qp-aside ul+h3{margin-top:26px}
.qp-aside ul{list-style:none;display:grid;gap:9px;margin-bottom:6px}
.qp-aside li,.qp-aside p{font-size:15px;color:var(--steel-500);line-height:1.6}
.qp-aside li{padding-left:14px;position:relative}
.qp-aside li::before{content:'';position:absolute;left:0;top:9px;width:5px;height:5px;background:var(--red);opacity:.45;border-radius:50%}
.qp-aside a{color:var(--red);font-weight:600}
.qp-fine{font-size:13px;color:var(--steel-500);margin-top:10px}
@media (max-width:820px){.qp-split{grid-template-columns:1fr}}
