/* Pro-Fab Machine of Hartselle: site styles
   Direction: futuristic and precise. Near-black with fine blueprint grids, glass panels,
   HUD-style corner brackets and data readouts. Colors come straight from the PFM logo:
   its blue gradient (#0147B9 → #0A5FF6 → #4790F9) for accents and fills, and its gray
   lettering (#9C9C9C) for secondary text. Motion stays subtle so it reads professional. */

:root {
  --bg: #04060b;
  --bg-2: #070b14;
  --bg-3: #0b1220;
  --panel: rgba(13, 21, 38, .62);
  --panel-solid: #0a1222;
  --line: rgba(120, 160, 230, .13);
  --line-2: rgba(120, 160, 230, .24);
  --text: #eef1f5;
  --mute: #9c9c9c;          /* logo lettering gray */
  --mute-2: #6a6a6a;
  --accent: #4790f9;        /* logo light blue: text, lines, highlights */
  --accent-2: #0a5ff6;      /* logo bright blue: buttons and badges */
  --accent-deep: #0147b9;   /* logo deep blue */
  --accent-ink: #ffffff;    /* text on blue fills */
  --glow: rgba(10, 95, 246, .45);
  --grad: linear-gradient(92deg, #1a66f7 0%, #4790f9 50%, #a8c8fd 100%);

  --display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --body: Inter, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 116px; background: var(--bg); color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* faint site-wide blueprint grid */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 85%);
  opacity: .35;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mute { color: var(--mute); }
.body-mute { color: var(--mute); }
.big { font-size: clamp(17px, 1.4vw, 19px); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.eyebrow, .index, .tag {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); padding: 7px 14px; border: 1px solid var(--line-2); background: rgba(71,144,249, .06); border-radius: 999px; margin-bottom: 26px; }
.index { color: var(--accent); display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.index::after { content: ""; height: 1px; flex: 0 1 120px; background: linear-gradient(90deg, var(--accent), transparent); }
.tag { color: var(--accent); margin-bottom: 12px; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep)); color: var(--accent-ink);
  font-family: var(--display); font-weight: 600; font-size: 15.5px; letter-spacing: .02em;
  text-decoration: none; padding: 14px 24px; border: 1px solid var(--accent-2); border-radius: 2px; cursor: pointer;
  box-shadow: 0 0 0 0 var(--glow), 0 10px 30px -10px var(--glow);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), background .3s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn:hover { background: linear-gradient(135deg, #2f76f8, var(--accent-2)); box-shadow: 0 0 0 4px rgba(71,144,249,.16), 0 14px 40px -8px var(--glow); transform: translateY(-1px); }
.btn-ghost { background: rgba(10,14,22,.55); color: var(--text); border-color: var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: rgba(71,144,249,.08); border-color: var(--accent); box-shadow: none; }
.btn-sm { font-size: 14px; padding: 9px 16px; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(5, 7, 10, .78); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { width: 38px; height: 38px; flex: none; color: var(--accent); filter: drop-shadow(0 0 8px var(--glow)); }
.brand-text { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .08em; line-height: 1.05; white-space: nowrap; }
.brand-text small { display: block; font-family: var(--mono); font-weight: 400; font-size: 9.5px; letter-spacing: .22em; color: var(--mute); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { position: relative; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: #c9ccd1; transition: color .2s; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

/* ---------- photo slots ---------- */
.photo { position: relative; margin: 0; background: var(--bg-3); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.panel:hover .photo img, .project-gallery .photo:hover img { transform: scale(1.035); }
.photo.missing img { display: none; }
.photo.missing {
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(ellipse at 50% 40%, #0d1a33, #05080f 75%);
}
.photo.missing::after {
  content: "◇ PHOTO SLOT · " attr(data-label) "\A" attr(data-file);
  white-space: pre; position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; line-height: 2; color: rgba(150,180,230,.55); padding: 16px;
}
/* HUD corner brackets */
.corner { position: absolute; width: 18px; height: 18px; border: 0 solid var(--accent); z-index: 2; pointer-events: none; opacity: .9; }
.corner.tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }

/* glass panel (no live backdrop blur: it was recomputed on every scroll frame for every panel) */
.panel {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.panel::before { /* top highlight line */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity .4s;
}
.panel:hover { border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 40px -20px var(--glow); }
.panel:hover::before { opacity: 1; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media.missing::after { place-items: end end; padding: 0 var(--gutter) 110px; text-align: right; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
/* the grid drifts by sliding a pre-drawn layer (GPU only) instead of repainting it every frame */
.hero-grid-bg::before {
  content: ""; position: absolute; inset: -64px 0 0 -64px;
  background-image:
    linear-gradient(rgba(71,144,249,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71,144,249,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: drift 40s linear infinite; will-change: transform;
}
@keyframes drift { to { transform: translate(64px, 64px); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 60% 70% at 85% 40%, rgba(71,144,249,.10), transparent 70%),
  linear-gradient(90deg, rgba(5,7,10,.95) 0%, rgba(5,7,10,.78) 42%, rgba(5,7,10,.35) 100%),
  linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero-scan { position: absolute; left: 0; right: 0; height: 120px; top: -120px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(71,144,249,.06) 70%, rgba(71,144,249,.18) 100%);
  border-bottom: 1px solid rgba(71,144,249,.35); animation: scan 7s var(--ease) infinite; }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(calc(100svh + 120px)); opacity: 0; } }

.hero-content { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr); gap: clamp(32px, 5vw, 72px); align-items: end; padding-block: 176px 110px; }
.hero h1 { font-size: clamp(46px, 7.4vw, 104px); font-weight: 600; letter-spacing: -.035em; line-height: .98; }
.hero-lede { max-width: 56ch; margin-top: 26px; font-size: clamp(16.5px, 1.4vw, 19px); color: #c2c5ca; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* HUD readout */
.hud { position: relative; background: rgba(8, 13, 19, .84); border: 1px solid var(--line-2); padding: 22px 22px 18px; font-family: var(--mono); }
.hud::before, .hud::after { content: ""; position: absolute; width: 16px; height: 16px; border: 0 solid var(--accent); }
.hud::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.hud::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.hud-head { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .16em; color: var(--mute); padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.hud-head .live { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.hud-title { margin-top: 16px; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.hud-sub { font-size: 11.5px; letter-spacing: .08em; color: var(--mute); margin-top: 4px; }
.hud-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 18px 0 0; background: var(--line); border: 1px solid var(--line); }
.hud-specs div { background: rgba(8, 13, 19, .92); padding: 12px 14px; }
.hud-specs dt { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.hud-specs dd { margin: 4px 0 0; font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff; }
.hud-specs dd i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--accent); margin-left: 4px; letter-spacing: .06em; }
.hud-bar { height: 3px; background: var(--line); margin-top: 16px; overflow: hidden; }
.hud-bar span { display: block; height: 100%; width: var(--w); background: var(--grad); box-shadow: 0 0 12px var(--accent); transform-origin: left; animation: fill 2.2s var(--ease) .4s both; }
@keyframes fill { from { transform: scaleX(0); } }
.hud-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 10.5px; letter-spacing: .14em; color: var(--mute); }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 24px; height: 38px; margin-left: -12px; border: 1px solid var(--line-2); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: var(--accent); border-radius: 2px; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- metrics ---------- */
.metrics { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(71,144,249,.04), transparent); }
.metrics-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric { padding: 30px 20px 28px; display: grid; gap: 6px; position: relative; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric b { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.metric b i { font-style: normal; font-family: var(--mono); font-size: .38em; color: var(--accent); margin-left: 4px; letter-spacing: .04em; }
.metric > span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(88px, 11vw, 150px); }
.section-deep { background: linear-gradient(180deg, var(--bg-2), var(--bg) 100%); border-block: 1px solid var(--line); }
.section-head { max-width: 820px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head h2, .two-col h2 { font-size: clamp(38px, 5.4vw, 72px); letter-spacing: -.035em; }
.section-lede { margin-top: 22px; font-size: clamp(16.5px, 1.4vw, 19px); color: var(--mute); max-width: 64ch; }

/* spec lists */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 24px 0 0; background: var(--line); border: 1px solid var(--line); }
.specs div { background: var(--panel-solid); padding: 12px 14px; min-width: 0; }
.specs dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.specs dd { margin: 4px 0 0; font-family: var(--display); font-weight: 600; font-size: 17.5px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: #fff; }

/* flagship */
.flagship { display: grid; grid-template-columns: 1.2fr 1fr; margin-bottom: 24px; }
.flagship-media { min-height: 520px; }
.flagship-body { padding: clamp(26px, 3.4vw, 48px); align-self: center; }
.flagship h3 { font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -.03em; margin-bottom: 16px; }
.flagship .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* machine cards */
.machine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.machine { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.machine .photo { aspect-ratio: 16 / 10; }
.machine-body { padding: 26px 26px 30px; }
.machine h3 { font-size: clamp(25px, 2.3vw, 31px); margin-bottom: 12px; }
.machine-body > .body-mute { font-size: 15.5px; }
.x2 { font-family: var(--mono); font-weight: 500; font-size: .62em; color: var(--accent); letter-spacing: .02em; vertical-align: .18em; margin-left: 6px; }
.machine .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.machine .specs dd { font-size: 15.5px; }
.qty { position: absolute; top: 14px; right: 14px; z-index: 2; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .1em; color: var(--accent-ink); background: var(--accent-2); padding: 4px 10px; box-shadow: 0 0 20px var(--glow); }

/* ---------- projects ---------- */
.process { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 clamp(56px, 7vw, 88px); padding: 0; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: linear-gradient(90deg, var(--accent-2), var(--accent) 60%, var(--line-2)); }
.process li { position: relative; padding-top: 30px; font-family: var(--display); font-weight: 600; font-size: clamp(16px, 1.7vw, 22px); letter-spacing: -.01em; }
.process li::before { content: ""; position: absolute; top: 2px; left: 0; width: 11px; height: 11px; background: var(--bg); border: 2px solid var(--accent); transform: rotate(45deg); box-shadow: 0 0 12px var(--glow); }
.process b { display: block; font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--accent); letter-spacing: .16em; margin-bottom: 4px; }

.project { display: grid; gap: 30px; padding-block: clamp(44px, 5vw, 64px); border-top: 1px solid var(--line); }
.project-copy h3 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.03em; max-width: 20ch; }
.project-copy > .body-mute { margin-top: 16px; max-width: 60ch; font-size: 17.5px; }
.project-gallery { display: grid; gap: 16px; }
.project-gallery.g3 { grid-template-columns: 1.3fr 1fr 1fr; }
.project-gallery.g2 { grid-template-columns: 1fr 1fr; }
.project-gallery .photo { aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.project-gallery.g2 .photo { aspect-ratio: 3 / 4; }
.project-gallery .photo.portrait { aspect-ratio: 3 / 4; }   /* upright shots stay upright on tablets and phones */
@media (min-width: 1021px) {
  .project-gallery.g3 .photo { aspect-ratio: auto; height: clamp(260px, 28vw, 380px); }
}
.project-gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 48px 18px 16px; z-index: 2;
  background: linear-gradient(0deg, rgba(4,6,9,.92), transparent);
  font-size: 14.5px; color: #e4e6ea; line-height: 1.45;
}
.photo.missing figcaption { display: none; }
.chip { display: inline-block; margin: 0 8px 6px 0; padding: 3px 9px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.3); background: rgba(5,7,10,.5); }
.chip-accent { background: var(--accent-2); color: var(--accent-ink); border-color: var(--accent-2); }
.project-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(30px, 5vw, 72px); }
.project-split .photo.tall { aspect-ratio: 3 / 4; border: 1px solid var(--line); }
.project-split .photo.wide { aspect-ratio: 4 / 3; border: 1px solid var(--line); }

/* ---------- equipment ---------- */
.equip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.equip { padding: 26px; min-width: 0; }
.equip h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 22px; letter-spacing: -.01em; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.equip h3.sub { margin-top: 26px; }
.equip h3 span { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .1em; color: var(--accent); }
.equip ul { list-style: none; margin: 0; padding: 0; }
.equip li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding-left .3s var(--ease); }
.equip li:hover { padding-left: 6px; }
.equip li:last-child { border-bottom: 0; }
.equip li span { font-weight: 500; font-size: 15.5px; color: #e4e6ea; }
.equip li em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--mute); text-align: right; }
.equip li b { color: var(--accent); font-weight: 600; }
.equip li b.new { margin-left: 8px; padding: 2px 7px; font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; background: var(--accent-2); color: var(--accent-ink); vertical-align: 2px; box-shadow: 0 0 14px var(--glow); }

/* ---------- quality / facility ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 104px); }
.two-col h2 { margin-bottom: 22px; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts b { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -.02em; }
.facts span { color: var(--mute); }

/* ---------- contact ---------- */
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 50% 60% at 80% 50%, rgba(71,144,249,.08), transparent 70%); }
.contact-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-points li { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: #c9ccd1; }
.contact-points li::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--accent); transform: rotate(45deg); flex: none; }
.quote-form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); align-self: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); min-width: 0; }
.quote-form input, .quote-form textarea, .quote-form select {
  width: 100%; min-width: 0; font: inherit; font-family: var(--body); font-size: 15.5px; letter-spacing: 0; text-transform: none; color: var(--text);
  background: rgba(5, 8, 12, .7); border: 1px solid var(--line-2); border-radius: 0; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.quote-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.quote-form textarea { min-height: 130px; resize: vertical; }
.quote-form input:focus, .quote-form textarea:focus, .quote-form select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(71,144,249,.15); }
.quote-form .invalid { border-color: #ff6b81; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.4em; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--mute); }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #ff8a9b; }
.form-done { display: grid; gap: 10px; text-align: left; padding: 8px 0; }
.form-done b { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; }

/* ---------- full footer ---------- */
.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: clamp(48px, 6vw, 72px) 36px; }
.footer-logo { width: 150px; height: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--mute); font-size: 15px; }
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-h { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.footer-col a:not(.btn) { color: #c9ccd1; text-decoration: none; font-size: 15px; }
.footer-col a:not(.btn):hover { color: #fff; }
.footer-col .btn { justify-self: start; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px 28px; border-top: 1px solid var(--line); color: var(--mute-2); font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* The photos' slightly cooler, calmer look (saturate .94 plus a soft-light blue gradient) is baked
   into the JPEGs by photo-originals/pipeline/optimize.ps1, so the browser doesn't filter and blend
   every photo live. */

/* ---------- hero: single column over the building photo ---------- */
.hero-content.solo { grid-template-columns: minmax(0, 760px); align-items: end; }
.hero-media img { object-position: center 42%; }
.hero-shade { background:
  linear-gradient(90deg, rgba(4,6,11,.92) 0%, rgba(4,6,11,.7) 38%, rgba(4,6,11,.18) 72%, rgba(4,6,11,.05) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(4,6,11,.35) 26%, transparent 55%),
  linear-gradient(180deg, rgba(4,6,11,.55) 0%, transparent 22%); }
.hero .hero-address { margin-top: 26px; }

/* ---------- V-100N video ---------- */
.video-band { position: relative; margin-bottom: 28px; }
.video-frame { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: #000; border: 1px solid var(--line-2); }
.video-poster, .video-slot, .video-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-poster { object-fit: cover; filter: saturate(.8) brightness(.7); transition: opacity .8s var(--ease); }
.video-slot iframe { border: 0; pointer-events: none; transform: scale(1.3); transform-origin: 50% 46%; }
.video-band.playing .video-poster { opacity: 0; }
.video-shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(4,6,11,.75) 0%, rgba(4,6,11,.15) 40%, transparent 60%),
  linear-gradient(0deg, rgba(4,6,11,.55), transparent 30%); }
.video-frame .corner { z-index: 3; }
.hud-overlay { position: absolute; left: clamp(16px, 3vw, 36px); bottom: clamp(44px, 5vw, 64px); width: min(360px, 42%); z-index: 4; }
.video-caption { margin-top: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--mute); text-align: right; }
.video-caption a { color: var(--accent); }
@media (max-width: 860px) {
  .video-frame { aspect-ratio: 16 / 10; }
  .hud-overlay { position: relative; left: auto; bottom: auto; width: auto; margin-top: 16px; }
  .video-caption { text-align: left; }
}

/* ---------- full-width photo bands between sections ---------- */
.band { position: relative; min-height: clamp(340px, 56vh, 560px); display: grid; align-items: end; overflow: hidden; isolation: isolate; border-block: 1px solid var(--line); }
.band-media { position: absolute; inset: 0; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,6,11,.88) 0%, rgba(4,6,11,.45) 45%, rgba(4,6,11,.1) 100%), linear-gradient(0deg, rgba(4,6,11,.6), transparent 50%); }
.band-copy { padding-block: clamp(40px, 6vw, 72px); }
.band-line { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 5.4vw, 72px); letter-spacing: -.035em; line-height: 1.02; }

/* ---------- big number ---------- */
.big-stat { margin-top: 26px; font-family: var(--display); font-weight: 600; font-size: clamp(56px, 7vw, 96px); letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-stat i { font-style: normal; font-family: var(--mono); font-size: .26em; letter-spacing: .06em; margin-left: 8px; -webkit-text-fill-color: var(--accent); }

/* ---------- machine card with a line drawing behind the photo (shows when no photo yet) ---------- */
.machine-art { position: absolute; inset: 0; display: grid; place-items: center;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(ellipse at 50% 45%, #0d1a33, #05080f 75%); }
.machine-art svg { width: min(82%, 440px); height: auto; }
.machine-art .ln { fill: none; stroke: rgba(140, 175, 235, .6); stroke-width: 1.6; }
.machine-art .ln.fill { fill: rgba(71, 144, 249, .08); }
.machine-art .arm { fill: none; stroke: #e9ecf1; stroke-width: 6; stroke-linecap: round; }
.machine-art .tip { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.machine-art .dim { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 4 4; }
.machine-art .lbl { font-family: var(--mono); font-size: 9.5px; fill: var(--accent); letter-spacing: .08em; text-anchor: middle; }
.photo.has-art img { position: relative; z-index: 1; }
.photo.has-art.missing::after { display: none; }

/* ---------- careers ---------- */
.roles { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.roles li { display: flex; align-items: baseline; gap: 12px; padding: 16px 18px; background: var(--panel-solid); font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.role-n { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; color: var(--accent); }
@media (max-width: 360px) { .roles { grid-template-columns: 1fr; } }   /* two across won't fit on the smallest phones */
.apply-done { margin-top: 28px; padding: 22px; border: 1px solid var(--accent-2); background: rgba(10, 95, 246, .08); display: grid; gap: 6px; }
.apply-done b { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; }
.quote-form select:invalid { color: var(--mute); }
/* "Other" position: the description box slides open under the dropdown */
.other-wrap { display: grid; grid-template-rows: 0fr; opacity: 0; padding-top: 0; transition: grid-template-rows .35s var(--ease), opacity .3s var(--ease), padding-top .35s var(--ease); }
.other-wrap.open { grid-template-rows: 1fr; opacity: 1; padding-top: 16px; }
.other-inner { min-height: 0; overflow: hidden; margin: 0 -3px; }
.other-inner > label { padding: 3px; }   /* room for the focus ring inside the clipped area */
.quote-form .other-wrap textarea { min-height: 96px; }

/* six header words: tighten them at mid widths so they still fit beside the name */
@media (max-width: 960px) and (min-width: 761px) {
  .nav .brand-text { font-size: 17px; }
  .nav .brand-logo img { height: 34px; }
  .nav .nav-links { gap: 14px; }
  .nav .nav-links a:not(.btn) { font-size: 11px; letter-spacing: .06em; }
}
@media (max-width: 760px) {
  .nav .nav-links { gap: 4px; }
  .nav .nav-links a:not(.btn) { font-size: 10px; letter-spacing: .02em; }
}

/* ---------- light section (Equipment): breaks up the dark run ---------- */
.section-light {
  --text: #0d1626; --mute: #5a6472; --mute-2: #8a93a0;
  --line: rgba(10, 40, 90, .12); --line-2: rgba(10, 40, 90, .22);
  --panel: #ffffff; --panel-solid: #ffffff; --accent: #0a5ff6;
  --grad: linear-gradient(92deg, #0147b9 0%, #0a5ff6 55%, #4790f9 100%);
  background: #eef1f5; color: var(--text); border-block: 1px solid var(--line);
}
.section-light .panel { box-shadow: 0 1px 0 rgba(10, 40, 90, .04), 0 18px 40px -28px rgba(10, 40, 90, .35); backdrop-filter: none; }
.section-light .panel:hover { box-shadow: 0 1px 0 rgba(10, 40, 90, .04), 0 26px 50px -26px rgba(10, 95, 246, .35); }
.section-light .equip li span { color: var(--text); }
.section-light .equip li em { color: var(--mute); }
.section-light .equip h3 { color: var(--text); }
.section-light .index::after { background: linear-gradient(90deg, var(--accent), transparent); }
.section-light .equip li b.new { box-shadow: none; }

/* ---------- multi-page header: address strip + logo/name + tabs ---------- */
.topbar { border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 34px; }
.topbar .addr { display: inline-flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .addr svg { width: 12px; height: 12px; flex: none; color: var(--accent); }
.topbar .addr a { text-decoration: none; }
.topbar .addr a:hover { color: var(--text); }
.todo-addr { color: var(--accent); }
.nav-inner { position: relative; }
.brand-logo { position: relative; display: flex; align-items: center; flex: none; }
.brand-logo img { display: block; height: 40px; width: auto; filter: drop-shadow(0 0 10px rgba(10, 95, 246, .35)); }
.brand-logo img + .brand-mark { display: none; }
.brand-logo .brand-mark { width: 42px; height: 42px; }
.brand-text { font-size: 21px; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after { transform: scaleX(1); }

/* sub-page header */
.page-hero { position: relative; padding: 196px 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(71,144,249,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(71,144,249,.07) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(180deg, #000, transparent 90%); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 50% 80% at 85% 0%, rgba(71,144,249,.12), transparent 70%); }
.page-hero h1 { font-size: clamp(44px, 6.6vw, 92px); letter-spacing: -.04em; }
.page-hero .section-lede { max-width: 66ch; }
.page-body { padding-top: clamp(40px, 5vw, 64px); }

/* home: brand hero */
.hero-brand { font-size: clamp(50px, 8.4vw, 118px) !important; letter-spacing: -.045em !important; }
.hero-brand small { display: block; margin-top: 14px; font-family: var(--mono); font-weight: 400; font-size: clamp(12px, 1.1vw, 15px); letter-spacing: .3em; color: var(--mute); }
.hero-tagline { margin-top: 26px; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.02em; line-height: 1.2; }
.hero-address { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: #c9ccd1; }
.hero-address svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.hero-cert { display: flex; width: fit-content; align-items: center; gap: 10px; margin-top: 30px; padding: 9px 16px 9px 12px; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .02em; color: #fff; border: 1px solid rgba(71,144,249,.5); border-radius: 8px; background: linear-gradient(90deg, rgba(10,95,246,.22), rgba(71,144,249,.06)); box-shadow: 0 0 22px -6px var(--glow); }
.hero-cert svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.hero .hero-cert + .hero-address { margin-top: 18px; }

/* home: tab cards */
.tab-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tab-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 26px 24px 22px; text-decoration: none; min-width: 0; }
.tab-card .num { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--accent); }
.tab-card h3 { font-size: 28px; letter-spacing: -.02em; }
.tab-card p { color: var(--mute); font-size: 15px; }
.tab-card .go { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #c9ccd1; }
.tab-card .go span:last-child { color: var(--accent); transition: transform .3s var(--ease); }
.tab-card:hover .go span:last-child { transform: translateX(6px); }

/* quality page */
.qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.qa-card { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.qa-card .photo { aspect-ratio: 16 / 10; }
.qa-visual { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(ellipse at 50% 45%, #0c1a33, #05080f 75%); }
.qa-visual svg { width: min(78%, 420px); height: auto; }
.qa-visual .ln { fill: none; stroke: rgba(140,175,235,.55); stroke-width: 1.6; }
.qa-visual .arm { fill: none; stroke: #e9ecf1; stroke-width: 7; stroke-linecap: round; }
.qa-visual .arm.thin { stroke-width: 3.5; }
.qa-visual .jt { fill: var(--bg); stroke: var(--accent); stroke-width: 2.4; }
.qa-visual .tip { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.qa-visual .dim { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 4 4; }
.qa-visual .lbl { font-family: var(--mono); font-size: 11px; fill: var(--accent); letter-spacing: .08em; }
.qa-body { padding: 28px 28px 32px; }
.qa-body h3 { font-size: clamp(28px, 2.8vw, 38px); letter-spacing: -.03em; margin-bottom: 14px; }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; color: #c9ccd1; font-size: 15.5px; }
.checks li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border: 1.5px solid var(--accent); transform: rotate(45deg); }
.callout { margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.callout b { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; }
.callout .btn { justify-self: end; }

.cta-band { padding-block: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); text-align: center; }
.cta-band h2 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.03em; }
.cta-band p { margin: 16px auto 28px; color: var(--mute); max-width: 56ch; }

/* Header tab words stay visible at every width (no menu button).
   Wide: words + quote button on the right. Under 1100px: the quote link moves up into the
   address strip so the words fit beside the name. Under 760px: the words drop to their own
   full-width row under the logo. */
.tb-quote { display: none; color: var(--accent); text-decoration: none; white-space: nowrap; }
.tb-quote:hover { color: #fff; }
@media (max-width: 1100px) {
  .nav-links .nav-quote { display: none; }
  .topbar .tb-right { display: none; }
  .tb-quote { display: inline; }
  .nav-links { gap: 22px; }
  .nav-links a:not(.btn) { font-size: 12px; letter-spacing: .1em; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 140px; }
  .nav-inner { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 0; }
  .nav-links { width: 100%; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 11px 0 12px; border-top: 1px solid var(--line); }
  .nav-links a:not(.btn) { font-size: 11px; letter-spacing: .06em; }
  .nav-links a:not(.btn)::after { bottom: -5px; }
  .nav { background: rgba(4, 6, 11, .82); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
}
@media (max-width: 600px) {
  .topbar { font-size: 10px; letter-spacing: .04em; }
  .tb-quote .tb-long { display: none; }
}
.btn { white-space: nowrap; }
@media (max-width: 1020px) {
  .tab-cards { grid-template-columns: 1fr 1fr; }
  .qa-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .callout { grid-template-columns: 1fr; }
  .callout .btn { justify-self: start; }
}
@media (max-width: 600px) {
  .topbar .tb-right { display: none; }
  .tab-cards { grid-template-columns: 1fr; }
  .page-hero { padding-top: 160px; }
  .brand-logo img { height: 30px; }
  .brand-logo .brand-mark { width: 34px; height: 34px; }
  .brand-text { font-size: 16px; }
}

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-content { grid-template-columns: 1fr; align-items: start; }
  .hud { max-width: 520px; }
  .flagship { grid-template-columns: 1fr; }
  .flagship-media { min-height: 0; aspect-ratio: 16 / 10; }
  .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric:nth-child(4) { border-left: 0; }
  .metric:nth-child(n+4) { border-top: 1px solid var(--line); }
  .equip-grid { grid-template-columns: 1fr; }
  .project-gallery.g3 { grid-template-columns: 1fr 1fr; }
  .project-gallery.g3 .photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 860px) {
  .machine-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .project-split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-content { padding-block: 168px 96px; }
  .hud-specs dd { font-size: 23px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric { padding: 22px 14px; }
  .metric, .metric + .metric { border-left: 0; border-top: 1px solid var(--line); }
  .metric:nth-child(-n+2) { border-top: 0; }
  .metric:nth-child(even) { border-left: 1px solid var(--line); }
  .metric:last-child { grid-column: 1 / -1; }
  .flagship .specs, .machine .specs { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent), var(--line-2)); }
  .process li { padding: 0 0 18px 32px; }
  .process li::before { top: 4px; left: 0; }
  .project-gallery.g3, .project-gallery.g2 { grid-template-columns: 1fr; }
  .project-gallery.g3 .photo:first-child, .project-gallery.g2 .photo { aspect-ratio: 4 / 3; }
  .equip { padding: 20px; }
  .equip li { grid-template-columns: 1fr; }
  .equip li em { text-align: left; }
  .row2 { grid-template-columns: 1fr; }
  .brand-text { font-size: 15px; }
  .brand-text small { font-size: 8.5px; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
