
:root {
  --bg: #090b0d;
  --panel: #11151a;
  --panel2: #161b21;
  --text: #f4f6f8;
  --muted: #9ca7b3;
  --line: rgba(255,255,255,.11);
  --accent: #d62525;
  --accent2: #ff4a3d;
  --light: #f2f3f4;
  --ink: #12161b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9,11,13,.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--accent); color: white; font: 700 15px "Space Grotesk";
  clip-path: polygon(14% 0,100% 0,100% 72%,74% 100%,0 100%,0 14%);
}
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font: 700 19px "Space Grotesk"; letter-spacing: -.3px; }
.brand-copy small { margin-top: 5px; font-size: 8px; letter-spacing: 3px; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: 13px; font-weight: 700; color: #cbd2d8; }
.main-nav a:hover { color: white; }
.nav-cta { border: 1px solid rgba(255,255,255,.22); padding: 10px 16px; }
.menu-toggle { display: none; background:none; border:0; color:#fff; font-size:26px; }

.hero {
  min-height: 760px; display: flex; align-items: center;
  background:
    radial-gradient(circle at 76% 42%, rgba(214,37,37,.12), transparent 26%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
}
.hero-grid { display:grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items:center; padding: 90px 0; }
.eyebrow, .kicker { font-size: 11px; letter-spacing: 2.7px; font-weight: 800; color: #aeb8c1; }
.eyebrow { display:flex; align-items:center; gap:10px; margin-bottom:22px; }
.eyebrow span { width:28px; height:2px; background:var(--accent); }
h1,h2,h3 { font-family:"Space Grotesk",sans-serif; margin:0; line-height:1.08; }
h1 { font-size: clamp(52px, 6vw, 84px); letter-spacing:-3.8px; max-width:780px; }
h1 em { color:var(--accent2); font-style:normal; }
.hero-lead { max-width:680px; color:#aab4be; font-size:18px; margin:28px 0 34px; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; }
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:52px; padding:0 22px; font-size:13px; font-weight:800;
  border:1px solid transparent; cursor:pointer; transition:.2s ease;
}
.btn-primary { background:var(--accent); color:#fff; }
.btn-primary:hover { background:#ef3030; transform:translateY(-1px); }
.btn-secondary { border-color:rgba(255,255,255,.18); background:rgba(255,255,255,.03); }
.btn-secondary:hover { border-color:rgba(255,255,255,.42); }
.full { width:100%; }
.hero-points { display:grid; grid-template-columns:repeat(3,1fr); gap:0; margin-top:54px; border-top:1px solid var(--line); }
.hero-points div { padding:20px 20px 0 0; }
.hero-points strong { display:block; font-family:"Space Grotesk"; font-size:16px; }
.hero-points span { color:var(--muted); font-size:12px; }

.hero-panel {
  min-height: 500px; padding:24px; border:1px solid var(--line);
  background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.008));
  box-shadow:0 30px 100px rgba(0,0,0,.35);
}
.panel-top { display:flex; justify-content:space-between; color:#7e8994; font-size:10px; letter-spacing:1.5px; }
.live-dot { color:#d55757; }
.toolpath-art { height:330px; position:relative; display:grid; place-items:center; overflow:hidden; }
.ring { position:absolute; border:1px solid rgba(255,255,255,.16); border-radius:50%; }
.ring-1 { width:250px; height:250px; }
.ring-2 { width:190px; height:190px; border-style:dashed; transform:rotate(25deg); }
.ring-3 { width:122px; height:122px; border-color:rgba(255,65,65,.55); transform:skew(-14deg); }
.axis { position:absolute; background:rgba(255,255,255,.09); }
.axis-x { width:84%; height:1px; }
.axis-y { height:84%; width:1px; }
.axis-z { width:1px; height:84%; transform:rotate(45deg); }
.part-core {
  width:82px; height:82px; display:grid; place-items:center;
  background:var(--accent); font:700 24px "Space Grotesk";
  clip-path:polygon(22% 0,100% 0,100% 78%,78% 100%,0 100%,0 22%);
  z-index:2; box-shadow:0 0 60px rgba(214,37,37,.45);
}
.panel-metrics { display:grid; gap:12px; }
.panel-metrics div { padding-top:12px; border-top:1px solid var(--line); display:grid; gap:2px; }
.panel-metrics span { color:#7f8b96; font-size:10px; letter-spacing:1.2px; text-transform:uppercase; }
.panel-metrics b { font-size:12px; font-weight:700; }

.logo-strip { border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.strip-inner { display:flex; justify-content:space-between; gap:24px; overflow:auto; padding:20px 0; scrollbar-width:none; }
.strip-inner span { white-space:nowrap; color:#737f89; font:700 11px "Space Grotesk"; letter-spacing:1.6px; }

.section { padding:110px 0; }
.section-heading { display:flex; justify-content:space-between; gap:60px; align-items:end; margin-bottom:50px; }
.section-heading h2, .capability-intro h2, .npi-copy h2, .cta-grid h2 {
  font-size:clamp(36px,4vw,58px); letter-spacing:-2px;
}
.section-heading > p { max-width:480px; color:var(--muted); margin:0; }
.kicker { color:var(--accent2); margin:0 0 12px; }

.service-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.service-card {
  min-height:390px; padding:30px; border:1px solid var(--line); background:var(--panel);
  position:relative; transition:.25s ease;
}
.service-card:hover { transform:translateY(-4px); border-color:rgba(255,255,255,.24); }
.service-card.featured { background:linear-gradient(145deg,#171a1f,#101318); border-color:rgba(214,37,37,.7); }
.card-number { color:#5e6871; font:600 11px "Space Grotesk"; margin-bottom:58px; }
.service-card h3 { font-size:25px; margin-bottom:15px; }
.service-card p { color:var(--muted); font-size:14px; }
.service-card ul { padding:0; margin:26px 0 0; list-style:none; }
.service-card li { border-top:1px solid var(--line); padding:9px 0; color:#c9d0d5; font-size:12px; }
.service-card li::before { content:"— "; color:var(--accent2); }

.dark-section { background:#0d1013; border-block:1px solid var(--line); }
.capability-layout { display:grid; grid-template-columns:.8fr 1.2fr; gap:80px; align-items:start; }
.capability-intro p:not(.kicker) { color:var(--muted); margin:22px 0; }
.text-link { color:white; font-size:13px; font-weight:800; }
.capability-board { border-top:1px solid rgba(255,255,255,.18); }
.cap-row { display:grid; grid-template-columns:130px 1fr; gap:20px; padding:24px 0; border-bottom:1px solid var(--line); }
.cap-label { color:#697580; font-size:10px; letter-spacing:1.5px; font-weight:800; padding-top:6px; }
.tags { display:flex; gap:8px; flex-wrap:wrap; }
.tags span { padding:7px 10px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.025); font-size:12px; }

.npi-section { background:var(--light); color:var(--ink); }
.npi-grid { display:grid; grid-template-columns:1fr 1fr; gap:90px; align-items:center; }
.npi-visual { display:grid; }
.stage { border:1px solid #cdd2d6; background:white; padding:18px 20px; display:grid; grid-template-columns:42px 1fr; }
.stage span { grid-row:1 / span 2; color:#a7adb3; font:700 11px "Space Grotesk"; }
.stage b { font:700 15px "Space Grotesk"; }
.stage small { color:#747d85; margin-top:4px; }
.connector { width:1px; height:24px; background:#b8bec4; margin-left:20px; }
.npi-copy .kicker { color:#c61d1d; }
.npi-copy > p:not(.kicker) { color:#5d6870; font-size:16px; }
.check-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:30px; font-size:13px; font-weight:700; }

.results-section { padding-top:80px; }
.results-grid { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--line); }
.result { padding:34px 28px; border-right:1px solid var(--line); }
.result:last-child { border-right:0; }
.result strong { display:block; font:700 33px "Space Grotesk"; color:var(--accent2); }
.result span { color:var(--muted); font-size:12px; }

.process-section { background:#0d1013; }
.timeline { display:grid; grid-template-columns:repeat(4,1fr); gap:0; border-top:1px solid var(--line); }
.timeline-item { padding:26px 28px 0 0; border-right:1px solid var(--line); min-height:250px; }
.timeline-item + .timeline-item { padding-left:28px; }
.timeline-item > span { color:#6d7882; font:700 11px "Space Grotesk"; }
.timeline-item h3 { margin-top:55px; font-size:22px; }
.timeline-item p { color:var(--muted); font-size:13px; }

.cta-section { padding:110px 0; background:linear-gradient(135deg,#13171b,#090b0d 60%); }
.cta-grid { display:grid; grid-template-columns:1fr 1fr; gap:90px; align-items:start; }
.cta-grid > div > p:last-child { color:var(--muted); max-width:540px; }
.contact-card { background:#f2f3f4; color:#15191d; padding:30px; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.contact-card label { display:grid; gap:7px; font-size:11px; font-weight:800; margin-bottom:14px; color:#555f67; }
input, textarea, select {
  width:100%; border:1px solid #d4d8dc; background:white; padding:14px;
  color:#171b1f; font:500 13px "Manrope"; outline:none;
}
textarea { resize:vertical; }
input:focus, textarea:focus, select:focus { border-color:#8d969d; }
.contact-direct { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-top:18px; font-size:11px; font-weight:800; }

footer { border-top:1px solid var(--line); padding:34px 0; }
.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:30px; color:#7c8791; font-size:10px; }
.footer-brand { color:white; }
.footer-inner p { text-align:center; }

@media (max-width: 950px) {
  .hero-grid,.capability-layout,.npi-grid,.cta-grid { grid-template-columns:1fr; gap:50px; }
  .service-grid { grid-template-columns:1fr 1fr; }
  .results-grid,.timeline { grid-template-columns:1fr 1fr; }
  .result:nth-child(2) { border-right:0; }
  .main-nav { display:none; position:absolute; top:78px; left:0; right:0; background:#0c0f12; padding:22px; flex-direction:column; border-bottom:1px solid var(--line); }
  .main-nav.open { display:flex; }
  .menu-toggle { display:block; }
}
@media (max-width: 650px) {
  .container { width:min(100% - 28px,1180px); }
  .hero { min-height:auto; }
  .hero-grid { padding:70px 0; }
  h1 { font-size:48px; letter-spacing:-2.5px; }
  .hero-points,.service-grid,.results-grid,.timeline,.check-grid,.field-row { grid-template-columns:1fr; }
  .hero-panel { min-height:440px; }
  .section { padding:80px 0; }
  .section-heading { display:block; }
  .section-heading > p { margin-top:20px; }
  .cap-row { grid-template-columns:1fr; }
  .timeline-item,.timeline-item + .timeline-item { padding:24px 0; border-right:0; border-bottom:1px solid var(--line); min-height:0; }
  .timeline-item h3 { margin-top:28px; }
  .result { border-right:0; border-bottom:1px solid var(--line); }
  .footer-inner { flex-direction:column; text-align:center; }
}

.machining-video-section{background:radial-gradient(circle at 80% 20%,rgba(214,37,37,.11),transparent 30%),#0d1013;border-block:1px solid var(--line)}
.video-frame{border:1px solid var(--line);background:#050607;box-shadow:0 35px 100px rgba(0,0,0,.45);overflow:hidden}
.video-frame iframe{display:block;width:100%;aspect-ratio:16/9;border:0}
.video-caption{display:flex;justify-content:space-between;gap:20px;padding:20px 24px;border-top:1px solid var(--line);font-family:"Space Grotesk"}
.video-caption span{color:var(--muted);font-size:12px}.video-credit{color:#68737c;font-size:10px;margin-top:12px}
@media(max-width:650px){.video-caption{flex-direction:column}}


/* Homepage CNC machine video enclosure */
.cnc-machine-hero {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.machine-shell {
  position: relative;
  width: 100%;
  max-width: 590px;
  margin-left: auto;
  background: linear-gradient(145deg, #252b31 0%, #15191e 52%, #0d1013 100%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
  box-shadow:
    0 40px 100px rgba(0,0,0,.55),
    inset 0 1px rgba(255,255,255,.08);
  overflow: hidden;
}

.machine-shell::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(115deg, rgba(255,255,255,.055), transparent 19%),
    linear-gradient(90deg, transparent 79%, rgba(255,255,255,.025));
}

.machine-topbar {
  min-height: 48px;
  padding: 0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background: linear-gradient(#30363c, #20262b);
  border-bottom:1px solid rgba(0,0,0,.8);
  font:700 9px "Space Grotesk", sans-serif;
  letter-spacing:1.4px;
  color:#c7cdd2;
}

.machine-status {
  display:flex;
  align-items:center;
  gap:7px;
  color:#9ea8b0;
}

.status-light {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#ff3e35;
  box-shadow:0 0 11px rgba(255,62,53,.85);
  animation:machinePulse 1.6s ease-in-out infinite;
}

.machine-body {
  display:grid;
  grid-template-columns: 112px minmax(0,1fr);
  min-height: 405px;
  background:
    linear-gradient(90deg, #151a1f 0 112px, #242a30 112px 100%);
}

.machine-control {
  position:relative;
  padding:20px 12px;
  background: linear-gradient(90deg,#1c2227,#11161a);
  border-right:3px solid #090b0d;
}

.control-screen {
  min-height:115px;
  padding:11px 9px;
  border:3px solid #050607;
  background:
    linear-gradient(rgba(0,0,0,.12),rgba(0,0,0,.12)),
    #798a78;
  color:#09110a;
  box-shadow:inset 0 0 18px rgba(0,0,0,.32);
  display:grid;
  align-content:start;
  gap:6px;
  font-family:"Space Grotesk";
}

.control-screen span {
  font-size:7px;
  letter-spacing:1px;
  opacity:.75;
}
.control-screen b { font-size:10px; line-height:1.15; }
.control-screen small { font-size:6px; line-height:1.35; opacity:.8; }

.control-buttons {
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
}
.control-buttons i {
  width:20px;
  height:12px;
  margin:auto;
  border-radius:2px;
  background:#515a61;
  border:1px solid #090b0d;
  box-shadow:inset 0 1px rgba(255,255,255,.12);
}
.control-buttons i:nth-child(1),
.control-buttons i:nth-child(6) { background:#a4312c; }

.control-knob {
  width:39px;
  height:39px;
  border-radius:50%;
  margin:23px auto 0;
  background:radial-gradient(circle at 35% 30%,#6c747a,#272d32 45%,#0c0f11 70%);
  border:2px solid #050607;
}

.machine-door {
  position:relative;
  padding:27px 24px 31px;
  background:
    linear-gradient(100deg,rgba(255,255,255,.045),transparent 17%),
    linear-gradient(#2b3238,#191f24);
  border-left:1px solid rgba(255,255,255,.06);
}

.door-rail {
  position:absolute;
  top:9px;
  left:18px;
  right:18px;
  height:8px;
  background:linear-gradient(#111518,#3b4248,#111518);
  border-radius:10px;
}

.machine-window {
  position:relative;
  width:100%;
  height:318px;
  overflow:hidden;
  background:#050708;
  border:13px solid #0d1114;
  border-top-width:16px;
  box-shadow:
    inset 0 0 0 2px #3b454c,
    inset 0 0 35px rgba(0,0,0,.8),
    0 2px 0 rgba(255,255,255,.05);
  clip-path:polygon(4% 0,100% 0,100% 94%,95% 100%,0 100%,0 7%);
}

.machine-window iframe {
  position:absolute;
  inset:-2%;
  width:104%;
  height:104%;
  border:0;
  background:#000;
}

.machine-window::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(115deg,rgba(255,255,255,.13),transparent 22%,transparent 74%,rgba(255,255,255,.04)),
    radial-gradient(circle at 50% 105%, transparent 55%, rgba(0,0,0,.38) 100%);
  box-shadow:inset 0 0 40px rgba(0,0,0,.28);
}

.window-overlay {
  position:absolute;
  z-index:3;
  left:14px;
  bottom:12px;
  padding:8px 10px;
  background:rgba(5,7,8,.72);
  border-left:2px solid var(--accent);
  backdrop-filter:blur(5px);
  display:grid;
  gap:1px;
}
.window-overlay span {
  color:#8b969f;
  font:700 7px "Space Grotesk";
  letter-spacing:1.4px;
}
.window-overlay strong {
  color:#fff;
  font:700 12px "Space Grotesk";
}

.door-handle {
  position:absolute;
  right:8px;
  top:50%;
  width:9px;
  height:76px;
  transform:translateY(-50%);
  border-radius:6px;
  background:linear-gradient(90deg,#0c0f12,#818990,#252a2e);
  box-shadow:0 0 0 2px #101417;
}

.machine-base {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid rgba(255,255,255,.08);
  background:linear-gradient(#171c20,#0d1013);
}
.machine-base div {
  min-height:62px;
  padding:12px 13px;
  display:grid;
  align-content:center;
  gap:3px;
  border-right:1px solid rgba(255,255,255,.07);
}
.machine-base div:last-child { border-right:0; }
.machine-base span {
  color:#69757e;
  font:700 7px "Space Grotesk";
  letter-spacing:1.3px;
}
.machine-base b {
  color:#dbe0e4;
  font:600 8px "Space Grotesk";
  line-height:1.25;
}

@keyframes machinePulse {
  0%,100% { opacity:.55; }
  50% { opacity:1; }
}

@media (max-width:650px) {
  .machine-body { grid-template-columns:78px minmax(0,1fr); min-height:330px; }
  .machine-control { padding:14px 7px; }
  .control-screen { min-height:90px; padding:7px 5px; }
  .control-screen b { font-size:8px; }
  .control-screen small { font-size:5px; }
  .control-buttons { gap:5px; }
  .control-buttons i { width:15px; height:10px; }
  .control-knob { width:30px; height:30px; }
  .machine-door { padding:22px 14px 24px; }
  .machine-window { height:258px; border-width:9px; border-top-width:12px; }
  .machine-base { grid-template-columns:1fr; }
  .machine-base div { min-height:48px; border-right:0; border-bottom:1px solid rgba(255,255,255,.06); }
}

/* Clean homepage machining video — no artificial machine/window frame */
.inside-cut-hero{
  min-height:0;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  animation:none;
}
.inside-cut-video{
  position:relative;
  min-height:480px;
  height:clamp(480px,48vw,610px);
  overflow:hidden;
  background:#050607;
  border:1px solid rgba(255,255,255,.11);
  box-shadow:0 35px 100px rgba(0,0,0,.5);
}
.inside-cut-video iframe{
  position:absolute;
  width:116%;
  height:116%;
  left:-8%;
  top:-8%;
  border:0;
  background:#000;
}
.inside-cut-shade{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(0,0,0,.25),transparent 45%),
    linear-gradient(0deg,rgba(5,7,8,.82),transparent 38%);
}
.inside-cut-label{
  position:absolute;
  z-index:2;
  left:24px;
  right:24px;
  bottom:22px;
  padding-left:13px;
  border-left:3px solid var(--accent);
  display:grid;
  gap:3px;
}
.inside-cut-label span{
  color:#aeb8c1;
  font:700 8px "Space Grotesk";
  letter-spacing:1.8px;
}
.inside-cut-label strong{
  color:white;
  font:600 18px "Space Grotesk";
}
@media(max-width:650px){
  .inside-cut-video{min-height:330px;height:360px}
  .inside-cut-video iframe{width:130%;height:130%;left:-15%;top:-15%}
  .inside-cut-label{left:16px;bottom:16px}
  .inside-cut-label strong{font-size:15px}
}
