/* PMC Industrial Solutions — site styles
   Palette: graphite + steel neutrals, PMC red accent, warm "drawing paper" light sections. */

:root {
  --ink: #0c0e11;
  --ink-2: #12151a;
  --ink-3: #191d23;
  --ink-4: #232830;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --white: #f3f4f6;
  --steel: #a4adb9;
  --steel-2: #cdd3da;
  --paper: #efeee9;
  --paper-2: #e4e2db;
  --paper-ink: #14171c;
  --paper-muted: #545b65;
  --paper-line: rgba(20, 23, 28, 0.13);
  --red: #e9141d;
  --red-600: #c40f17;
  --red-300: #ff5a5f;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 3px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; font-stretch: 112%; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--red-300); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 0.78em; letter-spacing: 0.04em; }
.i { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Type ---------- */
.h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 750; letter-spacing: -0.035em; line-height: 0.98; font-stretch: 118%; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 720; letter-spacing: -0.03em; font-stretch: 116%; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-stretch: 110%; letter-spacing: -0.015em; }
.h1 em, .h2 em { font-style: normal; color: var(--red); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--steel-2); max-width: 62ch; line-height: 1.55; }
.muted { color: var(--steel); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 22px;
}
.eyebrow span { color: var(--red-300); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow--light { color: var(--steel-2); }

.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 820px; }
.sec-head--split { max-width: none; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
.sec-head--split .eyebrow, .sec-head--split .h2 { grid-column: 1; }
.sec-head--split .lede { grid-column: 2; grid-row: 2; }
.sec-head .eyebrow { margin-bottom: 0; }
@media (max-width: 860px) {
  .sec-head--split { grid-template-columns: 1fr; gap: 18px; }
  .sec-head--split .lede { grid-column: 1; grid-row: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--white); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: var(--radius);
  font-weight: 600; font-size: 15.5px; letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i:last-child { transform: translateX(3px); }
.btn--red { --bg: var(--red); --bd: var(--red); --fg: #fff; }
.btn--red:hover { --bg: var(--red-600); --bd: var(--red-600); }
.btn--ghost:hover { --bg: rgba(255, 255, 255, 0.07); --bd: rgba(255, 255, 255, 0.4); }
.btn--dark { --bg: var(--paper-ink); --bd: var(--paper-ink); --fg: #fff; }
.btn--dark:hover { --bg: #000; }
.btn--outline-dark { --fg: var(--paper-ink); --bd: var(--paper-line); }
.btn--outline-dark:hover { --bd: var(--paper-ink); }
.btn--lg { min-height: 56px; padding: 14px 26px; font-size: 16.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: inherit; }
.link-arrow .i { color: var(--red); transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

.tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--steel-2);
}

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink-2); border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--steel); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__note { display: flex; align-items: center; gap: 8px; }
.topbar__note .i { color: var(--red-300); }
.topbar__links { list-style: none; display: flex; align-items: center; gap: 22px; }
.topbar__links a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar__links a:hover { color: var(--white); }
.topbar__icon .i { width: 17px; height: 17px; }
.topbar__cc { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; padding: 1px 5px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--steel-2); }

/* The blur lives on a pseudo-element: backdrop-filter on the header itself would make it
   the containing block for the fixed mobile menu and collapse the menu to the header's height. */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(12, 14, 17, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  transition: background-color .3s;
}
.site-header.is-scrolled::before { background: rgba(12, 14, 17, 0.96); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 52px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.brand__text { display: grid; line-height: 1.15; }
.brand__text strong { font-size: 17px; font-weight: 700; font-stretch: 108%; letter-spacing: -0.01em; }
.brand__text span { font-size: 12.5px; color: var(--steel); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { list-style: none; display: flex; gap: 4px; }
.nav__list a {
  position: relative; display: block; padding: 10px 12px; text-decoration: none;
  font-size: 15.5px; font-weight: 550; color: var(--steel-2); transition: color .2s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--white); }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.nav__contact { display: none; }
.nav-toggle { display: none; }

@media (max-width: 1060px) {
  .topbar__note { display: none; }
  .topbar__inner { justify-content: center; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 48px; height: 48px; margin-right: -10px;
    background: none; border: 0; color: var(--white); cursor: pointer;
  }
  .nav-toggle .i { width: 26px; height: 26px; grid-area: 1 / 1; }
  .nav-toggle .i--close, .nav-toggle[aria-expanded="true"] .i--menu { display: none; }
  .nav-toggle[aria-expanded="true"] .i--close { display: block; }
  .js .nav {
    position: fixed; inset: var(--nav-top, 114px) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 24px var(--gutter) 40px; background: var(--ink); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .js .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { font-size: 26px; font-weight: 650; font-stretch: 112%; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--white); }
  .nav__list a::after { left: 0; right: auto; width: 40px; bottom: -1px; }
  .nav__cta { min-height: 56px; font-size: 17px; }
  .nav__contact { display: grid; gap: 12px; color: var(--steel-2); }
  .nav__contact a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
  html:not(.js) .nav { display: none; }
}
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .topbar { display: none; }
  .brand__mark { width: 44px; }
  .brand__text strong { font-size: 15.5px; }
  .brand__text span { display: none; }
}
body.nav-open { overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--ink2 { background: var(--ink-2); }
.section--paper { background: var(--paper); color: var(--paper-ink); }
.section--paper .lede, .section--paper .muted { color: var(--paper-muted); }
.section--paper .eyebrow { color: var(--paper-muted); }
.section--paper .eyebrow span { color: var(--red-600); }
.section--paper .h1 em, .section--paper .h2 em { color: var(--red-600); }
.section--paper .tag { border-color: var(--paper-line); color: var(--paper-muted); }
.section--paper .link-arrow .i { color: var(--red-600); }

.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
  opacity: 0.55;
}
.grid-bg > * { position: relative; }

/* CAD-style corner marks */
.frame { position: relative; }
.frame::before, .frame::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--red); pointer-events: none; z-index: 2;
}
.frame::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(600px, calc(100svh - 114px), 900px);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #050607;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 7, 9, 0.94) 0%, rgba(6, 7, 9, 0.78) 38%, rgba(6, 7, 9, 0.28) 72%, rgba(6, 7, 9, 0.1) 100%),
    linear-gradient(0deg, rgba(12, 14, 17, 1) 0%, rgba(12, 14, 17, 0) 38%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); mask-image: linear-gradient(90deg, #000, transparent 60%);
}
.hero__content { padding-block: clamp(72px, 12vh, 140px) 44px; max-width: 860px; }
.hero__content .lede { margin-top: 26px; max-width: 56ch; color: #dfe3e8; }
.hero__content .btn-row { margin-top: 34px; }
.hero__badges { display: flex; align-items: center; gap: 18px; margin-top: 40px; }
.hero__badges img { height: 58px; width: auto; }
.badge-round { border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.badge-square { border-radius: 4px; }
.hero__badges p { font-size: 13.5px; color: var(--steel); max-width: 22ch; line-height: 1.4; }

.hero__specs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2); margin-bottom: 0;
}
.spec { padding: 22px 24px 30px 0; position: relative; }
.spec + .spec { padding-left: 24px; border-left: 1px solid var(--line); }
.spec dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); order: 2; }
.spec dd { margin: 0 0 6px; font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 700; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.1; }
.spec { display: flex; flex-direction: column-reverse; }
.spec::before { content: ""; position: absolute; top: -1px; left: 0; width: 34px; height: 2px; background: var(--red); }
.spec + .spec::before { left: 24px; }
.hero__ctl {
  position: absolute; right: var(--gutter); top: 24px; z-index: 2;
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.45); border: 1px solid var(--line-2); color: #fff; cursor: pointer;
}
.hero__ctl .i { width: 15px; height: 15px; grid-area: 1/1; }
.hero__ctl .i--play, .hero__ctl[aria-pressed="true"] .i--pause { display: none; }
.hero__ctl[aria-pressed="true"] .i--play { display: block; }

@media (max-width: 860px) {
  .hero__specs { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(3) { padding-left: 0; border-left: 0; }
  .spec:nth-child(3)::before { left: 0; }
  .spec:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .hero__badges { flex-wrap: wrap; gap: 12px; }
  .hero__badges img { height: 48px; }
  .hero__badges p { flex-basis: 100%; }
  .spec { padding-right: 12px; }
  .spec + .spec { padding-left: 14px; }
  .spec + .spec::before { left: 14px; }
}

/* ---------- Interactive hero (lab) ---------- */
.hero--lab { min-height: 0; justify-content: flex-start; background: radial-gradient(ellipse 70% 80% at 78% 40%, #1a1f27 0%, #0c0e11 70%); }
.hero--lab::before { display: none; }
.hero--lab::after { -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 80px) clamp(36px, 4vw, 56px); }
.hero--lab .hero__content { padding: 0; max-width: none; }
.hero--lab .h1 { font-size: clamp(2.4rem, 4.2vw, 4.1rem); }
.hero--lab .hero__content .lede { margin-top: 22px; }
.hero--lab .hero__badges { margin-top: 34px; }
@media (max-width: 1020px) { .hero__grid { grid-template-columns: 1fr; } }

.lab { display: grid; gap: 14px; min-width: 0; }
.lab__frame { position: relative; }
.lab__stage {
  position: relative; aspect-ratio: 5 / 4; overflow: hidden; border: 1px solid var(--line-2); border-radius: 3px;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(ellipse at 50% 45%, #1e242d 0%, #0f1216 75%);
}
.lab__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease); }
.lab.is-ready .lab__poster { opacity: 0; pointer-events: none; }
.lab__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; transition: opacity .6s var(--ease); }
.lab__canvas:active { cursor: grabbing; }
.lab__canvas:focus-visible { outline: 2px solid var(--red-300); outline-offset: -3px; }
.lab.is-shipping .lab__canvas { opacity: 0; }
.lab__hud { position: absolute; left: 16px; right: 16px; top: 14px; display: flex; justify-content: space-between; gap: 16px; pointer-events: none; }
.lab__step { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-300); }
.lab__status { margin-top: 4px; font-size: 14.5px; font-weight: 550; color: var(--white); max-width: 32ch; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.lab__hud-right { display: grid; justify-items: end; gap: 8px; text-align: right; }
.lab__dims { font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--steel-2); }
.lab__timelapse { display: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--red); padding: 2px 7px; border-radius: 2px; }
.lab.is-machining .lab__timelapse { display: block; }
.lab__stop { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; background: rgba(12,14,17,.7); border: 1px solid var(--line-2); border-radius: 2px; color: var(--steel-2); font-size: 13px; cursor: pointer; }
.lab__stop[hidden] { display: none; }
.lab__stop:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.lab__stop .i { width: 13px; height: 13px; }
.lab__checks { position: absolute; left: 16px; bottom: 20px; list-style: none; display: grid; gap: 6px; pointer-events: none; }
.lab__checks li { font-family: var(--mono); font-size: 12px; color: var(--white); background: rgba(12,14,17,.78); border-left: 2px solid #3fb950; padding: 4px 10px 4px 8px; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s var(--ease); }
.lab__checks li::before { content: "\2713  "; color: #3fb950; white-space: pre; }
.lab__checks li.is-on { opacity: 1; transform: none; }
.lab__map { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.lab.is-shipping .lab__map { opacity: 1; visibility: visible; transition-delay: 0s; }
.lab__map-inner { position: relative; width: 94%; aspect-ratio: 360 / 138; margin-top: 24px; }
.lab__map-inner > img { width: 100%; height: 100%; opacity: .6; }
.lab__map-inner svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lab__arc { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lab__pin { position: absolute; transform: translate(-50%, -50%); width: 10px; height: 10px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px rgba(255,255,255,.15); }
.lab__pin--to { background: var(--red); box-shadow: 0 0 0 4px rgba(233,20,29,.25); }
.lab__pin em { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(12,14,17,.85); padding: 3px 7px; border-radius: 2px; }
.lab__parcel { position: absolute; left: 72.3%; top: 48.5%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 0 0 6px rgba(233,20,29,.22); }
.lab__parcel .i { width: 16px; height: 16px; }
.lab__done { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; background: rgba(12,14,17,.74); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.lab__done[hidden] { display: none; }
.lab__done-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(63,185,80,.16); color: #3fb950; }
.lab__done-icon .i { width: 28px; height: 28px; }
.lab__done-title { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 700; font-stretch: 110%; letter-spacing: -0.015em; }
.lab__done p:not(.lab__done-title) { color: var(--steel-2); max-width: 40ch; }
.lab__done .btn-row { justify-content: center; margin-top: 6px; }
.lab__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.06); }
.lab__bar span { display: block; height: 100%; width: 0; background: var(--red); }
.lab__panel { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; }
.lab__opts { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.lab__group { display: grid; gap: 7px; }
.lab__label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.lab__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 12px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 2px; color: var(--steel-2); font-size: 14px; font-weight: 550;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.chip[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--ink); }
.chip:disabled { opacity: .45; cursor: not-allowed; }
.chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.25); }
.lab__send { min-height: 46px; }
.lab__send:disabled { opacity: .55; cursor: wait; }
.lab__fallback { display: none; }
.lab--static .lab__opts, .lab--static .lab__send, .lab--static .lab__hud-right, .lab--static .lab__canvas, .lab--static .lab__step { display: none; }
.lab--static .lab__fallback { display: inline-flex; }
.lab__steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.lab__steps li { padding-top: 8px; border-top: 2px solid var(--line-2); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); transition: color .3s, border-color .3s; }
.lab__steps li.is-done { color: var(--steel-2); border-color: rgba(233,20,29,.55); }
.lab__steps li.is-current { color: #fff; border-color: var(--red); }
@media (max-width: 560px) {
  .lab__stage { aspect-ratio: 1 / 0.92; }
  .lab__status { font-size: 13.5px; max-width: 24ch; }
  .lab__dims { font-size: 10.5px; }
  .lab__checks li { font-size: 11px; }
  .lab__panel { align-items: stretch; }
  .lab__send, .lab__fallback { width: 100%; }
  .lab__steps li { font-size: 9.5px; letter-spacing: .04em; }
  .chip { min-height: 42px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: #050607; padding-block: clamp(96px, 14vw, 168px) clamp(48px, 6vw, 72px); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img, .page-hero__media video { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6,7,9,.95) 0%, rgba(6,7,9,.75) 50%, rgba(6,7,9,.35) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 50%);
}
.page-hero .lede { margin-top: 22px; }
.crumbs { list-style: none; display: flex; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); margin-bottom: 26px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--red-300); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.page-hero__jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.page-hero__jump a { text-decoration: none; font-size: 14px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--steel-2); background: rgba(0,0,0,.25); transition: border-color .2s, color .2s; }
.page-hero__jump a:hover { border-color: var(--red); color: #fff; }

/* ---------- Clients ---------- */
.clients { background: var(--paper); color: var(--paper-ink); padding-block: 34px; border-bottom: 1px solid var(--paper-line); }
.clients__inner { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; }
.clients__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-muted); line-height: 1.5; }
.clients__label strong { display: block; color: var(--paper-ink); font-family: var(--font); font-size: 18px; letter-spacing: -0.01em; text-transform: none; font-stretch: 110%; margin-top: 2px; }
.clients__list { list-style: none; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; }
.client { background: #fff; border: 1px solid var(--paper-line); border-radius: 2px; height: 74px; display: grid; place-items: center; padding: 12px; }
.client img { max-height: 42px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(1.15); opacity: 0.78; transition: filter .3s, opacity .3s; }
.client:hover img { filter: none; opacity: 1; }
@media (max-width: 1180px) { .clients__list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .clients__inner { grid-template-columns: 1fr; gap: 18px; }
  .clients__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client { height: 64px; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__copy { display: grid; gap: 22px; }
.about__copy p { color: var(--paper-muted); font-size: 17.5px; }
.about__copy p strong { color: var(--paper-ink); font-weight: 650; }
.about__facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--paper-line); margin-top: 10px; }
.about__facts div { padding: 18px 16px 0 0; }
.about__facts div + div { padding-left: 16px; border-left: 1px solid var(--paper-line); }
.about__facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-muted); }
.about__facts dd { margin: 4px 0 0; font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.2rem); font-stretch: 110%; letter-spacing: -0.01em; }
.about__media { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.about__media figure { margin: 0; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__media figure:first-child { grid-row: span 2; aspect-ratio: 3 / 4.2; }
.about__media figure:not(:first-child) { aspect-ratio: 4 / 3.4; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .about__facts { grid-template-columns: 1fr 1fr; }
  .about__facts div:nth-child(3) { padding-left: 0; border-left: 0; grid-column: span 2; border-top: 1px solid var(--paper-line); margin-top: 14px; }
}

/* ---------- Capabilities grid ---------- */
.cap-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cap { position: relative; background: var(--ink); display: flex; flex-direction: column; transition: background-color .3s; }
.cap:hover { background: var(--ink-3); }
.cap__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
.cap__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.92); transition: transform .6s var(--ease), filter .4s; }
.cap:hover .cap__img img { transform: scale(1.05); filter: none; }
.cap__body { padding: 22px 22px 26px; display: grid; gap: 10px; align-content: start; flex: 1; }
.cap__num { font-family: var(--mono); font-size: 12px; color: var(--red-300); letter-spacing: 0.1em; }
.cap h3 { font-size: 1.15rem; font-stretch: 106%; letter-spacing: -0.01em; line-height: 1.2; }
.cap p { color: var(--steel); font-size: 15px; line-height: 1.55; }
.cap a { text-decoration: none; }
.cap a::after { content: ""; position: absolute; inset: 0; }
.cap__go { position: absolute; right: 18px; bottom: 18px; color: var(--steel); transition: color .2s, transform .3s var(--ease); }
.cap:hover .cap__go { color: var(--red-300); transform: translateX(3px); }
@media (max-width: 1060px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap { flex-direction: row; }
  .cap__img { width: 38%; aspect-ratio: auto; flex: none; }
  .cap__body { padding: 16px 16px 20px; }
  .cap p { display: none; }
  .cap__go { right: 12px; bottom: 12px; }
}

/* ---------- Industries ---------- */
.industries { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--paper-line); }
.industry { padding: 26px 22px 28px 0; border-bottom: 1px solid var(--paper-line); display: grid; gap: 8px; align-content: start; }
.industry:not(:nth-child(4n+1)) { padding-left: 22px; border-left: 1px solid var(--paper-line); }
.industry span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; color: var(--red-600); }
.industry h3 { font-size: 1.1rem; font-stretch: 108%; letter-spacing: -0.01em; }
.industry p { font-size: 15px; color: var(--paper-muted); line-height: 1.5; }
@media (max-width: 900px) {
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .industry:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--paper-line); }
}
@media (max-width: 520px) {
  .industries { grid-template-columns: 1fr; }
  .industry:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Mosaic (work preview) ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 210px); gap: 10px; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; background: var(--ink-3); border-radius: 2px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: 13.5px; line-height: 1.35;
  background: linear-gradient(0deg, rgba(0,0,0,.78), transparent); color: #fff;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.mosaic figure:hover figcaption { opacity: 1; transform: none; }
.m-big { grid-column: span 2; grid-row: span 2; }
.m-tall { grid-row: span 2; }
.m-wide { grid-column: span 2; }
.mosaic__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 32px; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
  .m-big { grid-column: span 2; }
  .mosaic figcaption { opacity: 1; transform: none; font-size: 12.5px; }
}

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.project { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--paper-line); border-radius: 2px; overflow: hidden; }
.project__media { position: relative; aspect-ratio: 4 / 3; background: var(--ink-3); overflow: hidden; }
.project__media img, .project__media video { width: 100%; height: 100%; object-fit: cover; }
.project__body { padding: 22px 24px 26px; display: grid; gap: 10px; align-content: start; }
.project__partner { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-600); }
.project h3 { font-size: 1.25rem; font-stretch: 108%; letter-spacing: -0.015em; line-height: 1.2; }
.project p { color: var(--paper-muted); font-size: 15.5px; }
@media (max-width: 980px) { .projects { grid-template-columns: 1fr 1fr; } .projects > :first-child { grid-column: span 2; } }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; } .projects > :first-child { grid-column: auto; } }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); }
.step { position: relative; padding: 34px 26px 0 0; display: grid; gap: 10px; align-content: start; }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 11px; height: 11px; background: var(--red); }
.step__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--steel); }
.step h3 { font-size: 1.2rem; font-stretch: 108%; letter-spacing: -0.01em; }
.step p { color: var(--steel); font-size: 15px; line-height: 1.55; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .step { padding: 0 0 30px 40px; }
  .step::before { top: 6px; left: 0; }
}

/* ---------- Guarantee ---------- */
.guarantee { background: var(--red); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.guarantee::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.18;
  background-image: repeating-linear-gradient(-45deg, rgba(0,0,0,.6) 0 2px, transparent 2px 14px);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.guarantee__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 72px; align-items: center; padding-block: clamp(56px, 7vw, 96px); }
.guarantee .h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.guarantee p { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.92); }
.guarantee .eyebrow { color: rgba(255,255,255,.85); }
.guarantee .eyebrow span { color: #fff; }
.guarantee__list { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.guarantee__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.guarantee__list .i { margin-top: 3px; }
@media (max-width: 860px) { .guarantee__inner { grid-template-columns: 1fr; } }

/* ---------- Facilities preview ---------- */
.fac-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fac-card { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(420px, 44vw, 560px); display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; border-radius: 2px; background: var(--ink-3); text-decoration: none; }
.fac-card__media { position: absolute; inset: 0; z-index: -2; }
.fac-card__media img, .fac-card__media video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.fac-card:hover .fac-card__media img, .fac-card:hover .fac-card__media video { transform: scale(1.04); }
/* Still photo cards drift slowly so they sit comfortably beside the video cards. */
.fac-card__media--still img { transform-origin: 55% 35%; animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, 1%); } }
.fac-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6,7,9,.95) 0%, rgba(6,7,9,.55) 45%, rgba(6,7,9,.1) 80%, rgba(6,7,9,.55) 100%); }
.fac-card__num { position: absolute; top: 22px; left: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--steel-2); }
.fac-card h3 { font-size: 1.6rem; font-stretch: 112%; margin-bottom: 10px; }
.fac-card p { color: var(--steel-2); font-size: 15px; margin-bottom: 16px; }
.fac-card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.fac-card .tag { background: rgba(0,0,0,.3); }
@media (max-width: 960px) { .fac-cards { grid-template-columns: 1fr; } .fac-card { min-height: 380px; } }

/* ---------- Global presence ---------- */
.global { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.map { position: relative; aspect-ratio: 360 / 138; }
.map > img { width: 100%; height: 100%; opacity: 0.75; }
.map__overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map__arc { fill: none; stroke: var(--red-600); stroke-width: 0.7; stroke-dasharray: 2 1.6; }
.js .map__arc { stroke-dashoffset: 200; animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.map__pin { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; }
.map__pin::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(233,20,29,.18); }
.map__pin::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--red); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(4); opacity: 0; } }
.map__label { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--paper-ink); color: #fff; padding: 4px 8px; border-radius: 2px; }
.offices { display: grid; gap: 14px; }
.office { background: #fff; border: 1px solid var(--paper-line); border-radius: 2px; padding: 22px 24px; display: grid; gap: 14px; }
.office__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.office__head h3 { font-size: 1.2rem; font-stretch: 108%; }
.office__cc { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; padding: 3px 7px; border: 1px solid var(--paper-line); border-radius: 2px; color: var(--paper-muted); }
.office ul { list-style: none; display: grid; gap: 8px; }
.office li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; font-size: 15.5px; align-items: baseline; }
.office li span { color: var(--paper-muted); }
.office a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.office a:hover { color: var(--red-600); text-decoration: underline; }
.office__mail { text-decoration: none; display: inline-flex !important; align-items: center; gap: 8px; color: var(--paper-ink); border-top: 1px solid var(--paper-line); padding-top: 12px; overflow-wrap: anywhere; white-space: normal !important; }
.office__mail .i { color: var(--red-600); }
@media (max-width: 960px) { .global { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .map__label { font-size: 10px; padding: 3px 6px; left: 14px; } .office li { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); border-top: 1px solid var(--line); }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: grayscale(1); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 25%, rgba(12,14,17,.6)); }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px 64px; align-items: end; padding-block: clamp(72px, 9vw, 120px); }
.cta-band .lede { margin-top: 18px; }
.cta-band__actions { display: grid; gap: 12px; }
@media (max-width: 900px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__actions { justify-items: start; } }
@media (max-width: 420px) { .cta-band__actions .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); font-size: 15px; color: var(--steel); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.site-footer__brand { display: grid; gap: 20px; align-content: start; max-width: 380px; }
.site-footer__brand .brand { margin: 0; }
.site-footer__brand .brand__text span { display: block; }
.site-footer h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; font-stretch: 100%; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--white); }
.site-footer__contact li { display: flex; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.social { list-style: none; padding: 0; display: flex !important; gap: 10px !important; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 2px; }
.social a:hover { border-color: var(--red); color: #fff; }
.social .i { width: 19px; height: 19px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px 32px; border-top: 1px solid var(--line); font-size: 13.5px; }
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: span 2; } }
@media (max-width: 480px) { .site-footer__top { grid-template-columns: 1fr; } .site-footer__brand { grid-column: auto; } }

/* ---------- Capabilities page ---------- */
.cap-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.cap-detail:first-child { border-top: 0; padding-top: 0; }
.cap-detail:nth-child(even) .cap-detail__media { order: 2; }
.cap-detail__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cap-detail__media figure { margin: 0; overflow: hidden; border-radius: 2px; background: var(--ink-3); aspect-ratio: 4 / 3; }
.cap-detail__media figure:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.cap-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.cap-detail__copy { display: grid; gap: 20px; align-content: start; }
.cap-detail__num { font-family: var(--mono); font-size: 13px; color: var(--red-300); letter-spacing: 0.1em; }
.cap-detail__copy > p { color: var(--steel-2); font-size: 17.5px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--steel-2); font-size: 16px; }
.ticks li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; background: var(--red); }
.section--paper .ticks li { color: var(--paper-muted); }
.cap-detail .btn-row { margin-top: 6px; }
@media (max-width: 900px) { .cap-detail { grid-template-columns: 1fr; } .cap-detail:nth-child(even) .cap-detail__media { order: 0; } }

/* ---------- Work page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); border-radius: 2px; color: var(--steel-2); font-size: 15px; font-weight: 550;
  transition: background-color .2s, border-color .2s, color .2s;
}
.filter:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.filter[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--ink); }
.filter__count { font-family: var(--mono); font-size: 11.5px; opacity: 0.7; }
.gallery { columns: 4 260px; column-gap: 12px; }
.gallery__item { break-inside: avoid; margin: 0 0 12px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.gallery__item[hidden] { display: none; }
.gallery__open { display: block; width: 100%; padding: 0; border: 0; background: var(--ink-3); cursor: zoom-in; overflow: hidden; }
.gallery__open img { width: 100%; transition: transform .6s var(--ease); }
.gallery__open:hover img { transform: scale(1.03); }
.gallery__item figcaption { padding: 12px 14px 14px; font-size: 14px; color: var(--steel-2); line-height: 1.45; display: grid; gap: 8px; justify-items: start; }
.gallery__item .tag { font-size: 10px; padding: 2px 6px; color: var(--steel); }
.gallery-status { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--steel); margin-bottom: 18px; }

.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reels__intro { display: grid; gap: 20px; align-content: center; padding-right: clamp(0px, 3vw, 40px); }
.reels__intro .eyebrow { margin-bottom: 0; }
.reel { margin: 0; position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 2px; background: var(--ink-3); }
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 16px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); font-size: 15px; font-weight: 600; }
.reel figcaption span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-2); font-weight: 400; margin-bottom: 4px; }
@media (max-width: 760px) { .reels { grid-template-columns: 1fr 1fr; gap: 12px; } .reels__intro { grid-column: 1 / -1; padding-right: 0; } }

.feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--paper-line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature__media > * { margin: 0; overflow: hidden; border-radius: 2px; background: var(--paper-2); aspect-ratio: 4 / 3; position: relative; }
.feature__media > .wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.feature__media > .tall { aspect-ratio: 3 / 4; }
.feature__media img, .feature__media video { width: 100%; height: 100%; object-fit: cover; }
.feature__copy { display: grid; gap: 16px; }
.feature__copy p { color: var(--paper-muted); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

/* video play/pause control */
.vctl {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.3); color: #fff; cursor: pointer;
}
.vctl .i { width: 14px; height: 14px; grid-area: 1/1; }
.vctl .i--play, .vctl[aria-pressed="true"] .i--pause { display: none; }
.vctl[aria-pressed="true"] .i--play { display: block; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 64px 72px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(5,6,8,.94); }
.lightbox__figure { position: relative; margin: 0; display: grid; gap: 14px; justify-items: center; max-height: 100%; }
.lightbox__figure img { max-width: min(1400px, 100%); max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; background: var(--ink-3); }
.lightbox__figure figcaption { color: var(--steel-2); font-size: 15px; text-align: center; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid var(--line-2); color: #fff; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255,255,255,.16); }
.lightbox__btn .i { width: 20px; height: 20px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 64px 12px 84px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; } .lightbox__prev { left: calc(50% - 60px); transform: scaleX(-1); } .lightbox__next { right: calc(50% - 60px); } }

/* ---------- Facilities page ---------- */
.facility { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.facility:first-child { border-top: 0; padding-top: 0; }
.facility__copy { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 32px); }
.facility__copy > p { color: var(--steel-2); }
.facility__media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.facility__media > * { margin: 0; position: relative; overflow: hidden; border-radius: 2px; background: var(--ink-3); aspect-ratio: 4 / 3; }
.facility__media video { display: block; }
.facility__media > .wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.facility__media > .tall-3 { aspect-ratio: 3 / 4; }
.facility__media img, .facility__media video { width: 100%; height: 100%; object-fit: cover; }
.facility__media figcaption { position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.6); padding: 4px 8px; border-radius: 2px; }
@media (max-width: 900px) { .facility { grid-template-columns: 1fr; } .facility__copy { position: static; } }

.machines { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.machine { background: #fff; border: 1px solid var(--paper-line); border-radius: 2px; padding: 24px; display: grid; gap: 18px; align-content: start; }
.machine__head { display: grid; gap: 6px; }
.machine__type { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--red-600); }
.machine h3 { font-size: 1.3rem; font-stretch: 110%; letter-spacing: -0.015em; }
.bed { position: relative; min-height: 150px; display: flex; align-items: flex-end; padding: 8px 0 26px; }
.bed__table {
  position: relative; width: calc(var(--w) / 1270 * 78%); aspect-ratio: var(--w) / var(--h);
  background: repeating-linear-gradient(0deg, #dcdee2 0 7px, #c8cbd1 7px 9px); border: 1px solid #9aa0a8; border-radius: 1px;
}
.bed__table--lathe { width: 100%; aspect-ratio: auto; height: 22px; margin-bottom: 52px; background: linear-gradient(#d3d6db, #a9aeb6); border-radius: 11px; }
.bed--lathe::before { content: ""; position: absolute; left: 0; bottom: 74px; width: 46px; height: 46px; border-radius: 4px; background: #c8cbd1; border: 1px solid #9aa0a8; }
.bed__dim { position: absolute; font-family: var(--mono); font-size: 11px; color: var(--paper-muted); white-space: nowrap; }
.bed__dim--x { left: 0; right: 0; top: calc(100% + 7px); text-align: center; border-top: 1px solid var(--paper-muted); padding-top: 3px; }
.bed__dim--x::before, .bed__dim--x::after { content: ""; position: absolute; top: -5px; width: 1px; height: 9px; background: var(--paper-muted); }
.bed__dim--x::before { left: 0; } .bed__dim--x::after { right: 0; }
.bed__dim--y { top: 0; bottom: 0; left: calc(100% + 8px); display: flex; align-items: center; border-left: 1px solid var(--paper-muted); padding-left: 6px; }
.bed__dim--y::before, .bed__dim--y::after { content: ""; position: absolute; left: -5px; width: 9px; height: 1px; background: var(--paper-muted); }
.bed__dim--y::before { top: 0; } .bed__dim--y::after { bottom: 0; }
.specs { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--paper-line); }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--paper-line); font-size: 15px; }
.specs dt { color: var(--paper-muted); }
.specs dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 1000px) { .machines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .machines { grid-template-columns: 1fr; } }

/* ---------- Contact page ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.rfq { background: var(--ink-2); border: 1px solid var(--line); border-radius: 2px; padding: clamp(22px, 4vw, 44px); }
.rfq__head { display: grid; gap: 10px; margin-bottom: 28px; }
.rfq__head p { color: var(--steel); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: span 2; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--steel-2); padding: 0; }
.field label .opt { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: var(--ink); border: 1px solid var(--line-2); border-radius: 2px; color: var(--white); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red-300); box-shadow: 0 0 0 3px rgba(233,20,29,.25); }
.field input::placeholder, .field textarea::placeholder { color: #6b7380; }
.field input[type="date"] { color-scheme: dark; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer; font-size: 15px; color: var(--steel-2); transition: border-color .2s, background-color .2s; }
.choice input:checked + span { border-color: var(--red); background: rgba(233,20,29,.12); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--red-300); outline-offset: 2px; }
.rfq__foot { display: grid; gap: 14px; margin-top: 26px; }
.rfq__note { font-size: 14px; color: var(--steel); }
.rfq__result { margin-top: 22px; border: 1px solid var(--line-2); border-left: 3px solid var(--red); padding: 18px 20px; display: grid; gap: 12px; background: var(--ink); }
.rfq__result[hidden] { display: none; }
.rfq__result p { font-size: 15px; color: var(--steel-2); }
.rfq__result pre { margin: 0; white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; color: var(--steel-2); max-height: 220px; overflow: auto; background: var(--ink-2); padding: 12px; border: 1px solid var(--line); }
/* Upload mode (Formspree) vs email fallback */
.rfq__note--upload, .rfq__note--noupload, .rfq:not(.has-uploads) .rfq__upload, .rfq.is-formspree .rfq__note--email { display: none; }
.rfq.is-formspree.has-uploads .rfq__note--upload, .rfq.is-formspree:not(.has-uploads) .rfq__note--noupload { display: block; }
.rfq__note a { color: var(--white); }
.field__label { font-size: 14px; font-weight: 600; color: var(--steel-2); }
.field__label .opt { font-weight: 400; color: var(--steel); }
.dropzone {
  position: relative; display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 28px 20px; border: 1.5px dashed rgba(255,255,255,.28); border-radius: 3px; background: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--red-300); background: rgba(233,20,29,.07); }
.dropzone:focus-within { border-color: var(--red-300); box-shadow: 0 0 0 3px rgba(233,20,29,.25); }
.dropzone__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone__icon { width: 30px; height: 30px; color: var(--red-300); margin-bottom: 4px; }
.dropzone__title { font-size: 15.5px; color: var(--steel-2); }
.dropzone__title strong { color: var(--white); }
.dropzone__browse { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.dropzone__hint { font-size: 13px; color: var(--steel); }
.file-list { list-style: none; display: grid; gap: 6px; }
.file-list:empty { display: none; }
.file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; background: var(--ink); border: 1px solid var(--line-2); border-radius: 2px; font-size: 14.5px; }
.file > .i { color: var(--steel); }
.file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__size { font-family: var(--mono); font-size: 12px; color: var(--steel); }
.file__remove { display: grid; place-items: center; width: 34px; height: 34px; background: none; border: 0; color: var(--steel); cursor: pointer; border-radius: 2px; }
.file__remove:hover { color: #fff; background: rgba(255,255,255,.08); }
.file__remove .i { width: 16px; height: 16px; }
.field__error, .rfq__error { font-size: 14.5px; color: #ffb3b5; border-left: 3px solid var(--red); padding: 8px 12px; background: rgba(233,20,29,.08); }
.field__error[hidden], .rfq__error[hidden] { display: none; }
.rfq__error a { color: #fff; font-weight: 600; }
.progress { display: grid; gap: 8px; }
.progress[hidden] { display: none; }
.progress__bar { height: 6px; background: var(--ink-4); border-radius: 3px; overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s linear; }
.progress__text { font-family: var(--mono); font-size: 12.5px; color: var(--steel-2); letter-spacing: .04em; }
.rfq[aria-busy="true"] .btn[disabled] { opacity: .6; cursor: progress; }
.rfq__body[hidden], .rfq__done[hidden] { display: none; }
.rfq__done { display: grid; gap: 16px; justify-items: start; padding: 12px 0; outline: none; }
.rfq__done-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(233,20,29,.14); color: var(--red-300); }
.rfq__done-icon .i { width: 26px; height: 26px; }
.rfq__done p { color: var(--steel-2); max-width: 52ch; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aside { display: grid; gap: 16px; }
.aside-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 2px; padding: 24px; display: grid; gap: 14px; }
.aside-card h2 { font-size: 1.15rem; font-stretch: 108%; letter-spacing: -0.01em; }
.aside-card p { color: var(--steel); font-size: 15px; }
.aside-card .office__mail { color: var(--white); border-top-color: var(--line); }
.aside-card .office__mail .i { color: var(--red-300); }
.aside-card ul.people { list-style: none; display: grid; gap: 10px; }
.aside-card ul.people li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 15px; }
.aside-card ul.people span { color: var(--steel); }
.aside-card ul.people a { font-weight: 600; text-decoration: none; }
.aside-card ul.people a:hover { color: var(--red-300); }
.faq { display: grid; gap: 0; border-top: 1px solid var(--paper-line); }
.faq details { border-bottom: 1px solid var(--paper-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 1.1rem; font-weight: 650; font-stretch: 106%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; color: var(--red-600); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--paper-muted); max-width: 70ch; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } .field--full { grid-column: auto; } .aside-card ul.people li { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

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