/* ============================================================
   STRATUM3D ENGINEERING — blueprint / engineering theme
   ============================================================ */

:root {
  /* Blueprint blues */
  --bp-950: #071726;
  --bp-900: #0a1e33;
  --bp-850: #0c2741;
  --bp-800: #0e2e4d;
  --bp-700: #123a61;
  --bp-600: #18507f;
  --bp-line: rgba(126, 169, 214, 0.16);
  --bp-line-strong: rgba(126, 169, 214, 0.30);

  /* Paper / ink */
  --paper: #eef4fb;
  --paper-dim: #c9dcef;
  --ink: #9cc0e6;
  --ink-dim: #6f97c0;

  /* Accents */
  --filament: #ff7a18;       /* primary orange filament */
  --filament-lt: #ff9a3c;
  --filament-dk: #e8590c;
  --amber: #f6a91e;          /* darker yellow */
  --cyan: #7fd3ff;           /* caliper / dimension cyan */

  /* Gunmetal */
  --gun-100: #4a525c;
  --gun-300: #33393f;
  --gun-500: #23282d;
  --gun-700: #181b1f;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-tech: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--bp-900);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Blueprint grid background (global) ---------- */
.bp-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--bp-900);
  background-image:
    linear-gradient(var(--bp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line) 1px, transparent 1px),
    linear-gradient(var(--bp-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line-strong) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
  background-position: -1px -1px;
}
.bp-grid::after {
  /* vignette + glow */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 700px at 80% -5%, rgba(24, 80, 127, 0.45), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(255, 122, 24, 0.07), transparent 55%),
    linear-gradient(180deg, rgba(7,23,38,0) 60%, rgba(7,23,38,0.85) 100%);
}

/* ---------- Layout helpers ---------- */
.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
section { position: relative; padding: clamp(64px, 9vw, 130px) 0; }

.eyebrow {
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 1px;
  background: var(--filament);
  box-shadow: 0 0 8px var(--filament);
}

h1, h2, h3 { font-family: var(--font-tech); font-weight: 700; line-height: 1.08; letter-spacing: .3px; }
.section-title { font-size: clamp(30px, 4.4vw, 50px); margin: 18px 0 14px; }
.section-title .accent { color: var(--filament); }
.section-lead { color: var(--paper-dim); font-size: clamp(16px, 1.7vw, 18px); max-width: 60ch; }

.mono { font-family: var(--font-tech); }

/* dimension tag (technical annotation) */
.dim-tag {
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--cyan);
  border: 1px solid rgba(127, 211, 255, .35);
  border-radius: 4px;
  padding: 3px 9px;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(127, 211, 255, .06);
}
.dim-tag b { color: var(--filament); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-tech);
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 14px;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  position: relative;
}
.btn-primary {
  background: linear-gradient(180deg, var(--filament-lt), var(--filament-dk));
  color: #1a0e02;
  box-shadow: 0 10px 26px -10px rgba(255, 122, 24, .7), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(255, 122, 24, .85), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-ghost {
  background: rgba(127, 211, 255, .05);
  border-color: rgba(127, 211, 255, .35);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--cyan); background: rgba(127, 211, 255, .12); transform: translateY(-2px); }

/* ---------- Nav ---------- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(9, 26, 43, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bp-line-strong);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.nav-logo img { height: 52px; display: block; transition: height .3s; }
header.nav.scrolled .nav-logo img { height: 46px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--paper-dim); text-decoration: none;
  font-family: var(--font-tech); font-size: 14px; letter-spacing: .8px;
  font-weight: 500; text-transform: uppercase;
  position: relative; padding: 4px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--filament); transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--bp-line-strong); border-radius: 6px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--paper); margin: 4px 0; transition: .25s; }

/* ---------- HERO ---------- */
.hero { padding-top: clamp(130px, 18vh, 200px); min-height: 100vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; width: 100%; }
.hero h1 { font-size: clamp(40px, 6vw, 78px); margin: 22px 0 20px; }
.hero h1 .layer { color: var(--filament); position: relative; }
.hero p.lead { font-size: clamp(17px, 1.9vw, 21px); color: var(--paper-dim); max-width: 52ch; }
.hero-actions { display: flex; gap: 16px; margin: 34px 0 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--bp-line); }
.hero-stats .stat .num { font-family: var(--font-tech); font-size: 30px; font-weight: 700; color: var(--paper); }
.hero-stats .stat .num .u { color: var(--filament); font-size: 20px; }
.hero-stats .stat .lbl { font-size: 12.5px; color: var(--ink-dim); letter-spacing: 1.2px; text-transform: uppercase; font-family: var(--font-tech); }

/* corner registration marks */
.reg-mark { position: absolute; width: 26px; height: 26px; opacity: .5; pointer-events: none; }
.reg-mark::before, .reg-mark::after { content: ""; position: absolute; background: var(--cyan); }
.reg-mark::before { width: 100%; height: 1px; top: 50%; }
.reg-mark::after { width: 1px; height: 100%; left: 50%; }
.reg-tl { top: 96px; left: 2vw; } .reg-tr { top: 96px; right: 2vw; }

/* ---------- 3D isometric part (hero) ---------- */
.scene { perspective: 1400px; display: flex; align-items: center; justify-content: center; min-height: 460px; position: relative; }
.scene-frame {
  position: absolute; inset: 6% 4%;
  border: 1px dashed rgba(127, 211, 255, .28); border-radius: 10px;
}
.scene-frame .scene-label {
  position: absolute; top: -11px; left: 18px; background: var(--bp-900);
  padding: 0 10px; font-family: var(--font-tech); font-size: 11px; letter-spacing: 2px;
  color: var(--cyan);
}
.scene-frame .scene-dim {
  position: absolute; bottom: -11px; right: 18px; background: var(--bp-900);
  padding: 0 10px; font-family: var(--font-tech); font-size: 11px; letter-spacing: 1.5px;
  color: var(--filament);
}

.part {
  --rx: 58deg; --ry: 0deg; --rz: 45deg;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateZ(var(--rz)) rotateY(var(--ry));
  animation: spin 26s linear infinite;
  transition: transform .12s linear;
}
@keyframes spin { to { transform: rotateX(var(--rx)) rotateZ(calc(var(--rz) + 360deg)) rotateY(var(--ry)); } }
.part.paused { animation-play-state: paused; }

.layer3d {
  position: absolute; width: 150px; height: 150px; left: -75px; top: -75px;
  transform-style: preserve-3d;
  border: 1.5px solid rgba(170, 200, 230, .55);
  background:
    linear-gradient(135deg, rgba(74,82,92,.96), rgba(35,40,45,.96));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.layer3d::before {
  /* top-face grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(127,169,214,.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,169,214,.25) 1px, transparent 1px);
  background-size: 18.75px 18.75px;
}
.layer3d.accent {
  background: linear-gradient(135deg, var(--filament-lt), var(--filament-dk));
  border-color: rgba(255, 210, 170, .8);
  box-shadow: 0 0 40px rgba(255, 122, 24, .5);
}
.layer3d.accent::before { background-image:
  linear-gradient(rgba(120,40,0,.25) 1px, transparent 1px),
  linear-gradient(90deg, rgba(120,40,0,.25) 1px, transparent 1px); }
/* notch on a couple layers to read as a machined bracket */
.layer3d.notch { clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 62%, 62% 100%, 0 100%); }

/* caliper jaws around the part */
.caliper { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.caliper .jaw { position: absolute; border: 2px solid var(--cyan); border-radius: 2px; box-shadow: 0 0 12px rgba(127,211,255,.4); }
.caliper .beam { position: absolute; height: 2px; background: var(--cyan); box-shadow: 0 0 10px rgba(127,211,255,.4); }
.caliper .reading {
  position: absolute; font-family: var(--font-tech); font-size: 12px; letter-spacing: 1px;
  color: var(--bp-950); background: var(--cyan); padding: 2px 8px; border-radius: 3px; font-weight: 700;
}

/* ---------- Marquee strip ---------- */
.strip { border-block: 1px solid var(--bp-line-strong); background: rgba(7, 23, 38, .5); padding: 0; overflow: hidden; }
.marquee { display: flex; gap: 60px; padding: 20px 0; white-space: nowrap; animation: slide 32s linear infinite; width: max-content; }
.marquee span { font-family: var(--font-tech); letter-spacing: 2px; text-transform: uppercase; font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; gap: 60px; }
.marquee span::after { content: "◆"; color: var(--filament); font-size: 9px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Section header block ---------- */
.sec-head { max-width: 720px; margin-bottom: 54px; }

/* ---------- Cards / corner brackets ---------- */
.card {
  position: relative;
  background: linear-gradient(160deg, rgba(14, 46, 77, .55), rgba(9, 26, 43, .65));
  border: 1px solid var(--bp-line-strong);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  transform-style: preserve-3d;
  overflow: hidden;
}
.card::before, .card::after {
  content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--filament); opacity: .8;
}
.card::before { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.card::after { bottom: 12px; right: 12px; border-left: none; border-top: none; }
.card:hover { border-color: rgba(127, 211, 255, .5); box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); }

/* services */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.pillar { padding: 38px; }
.pillar .ico { width: 58px; height: 58px; margin-bottom: 22px; }
.pillar h3 { font-size: 26px; margin-bottom: 12px; }
.pillar p { color: var(--paper-dim); margin-bottom: 20px; }
.pillar ul { list-style: none; display: grid; gap: 10px; }
.pillar ul li { display: flex; gap: 10px; align-items: flex-start; color: var(--paper-dim); font-size: 15px; }
.pillar ul li::before { content: "▸"; color: var(--filament); flex: none; margin-top: 1px; }
.pillar .tag { position: absolute; top: 22px; right: 22px; }

.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.cap { padding: 24px; text-align: left; }
.cap .ico { width: 36px; height: 36px; color: var(--cyan); margin-bottom: 14px; }
.cap h4 { font-family: var(--font-tech); font-size: 17px; margin-bottom: 7px; }
.cap p { font-size: 14px; color: var(--ink-dim); }

/* ---------- Process pipeline ---------- */
.process { background: linear-gradient(180deg, transparent, rgba(7,23,38,.5)); }
.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 50px; position: relative; }
.pipeline::before {
  content: ""; position: absolute; top: 34px; left: 6%; right: 6%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--bp-line-strong) 0 8px, transparent 8px 16px);
}
.step { text-align: center; padding: 0 10px; position: relative; }
.step .node {
  width: 68px; height: 68px; margin: 0 auto 18px; position: relative;
  display: grid; place-items: center;
  background: var(--bp-850); border: 2px solid var(--bp-line-strong); border-radius: 50%;
  font-family: var(--font-tech); font-weight: 700; font-size: 20px; color: var(--cyan);
  transition: .3s var(--ease);
}
.step:hover .node { border-color: var(--filament); color: var(--filament); transform: translateY(-4px); box-shadow: 0 0 26px rgba(255,122,24,.4); }
.step h4 { font-family: var(--font-tech); font-size: 16px; margin-bottom: 6px; letter-spacing: .5px; }
.step p { font-size: 13px; color: var(--ink-dim); }

/* ---------- Spec sheet ---------- */
.spec {
  border: 1px solid var(--bp-line-strong); border-radius: var(--radius);
  background: rgba(7, 23, 38, .55);
  overflow: hidden;
}
.spec-top {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 18px 26px; border-bottom: 1px solid var(--bp-line-strong);
  background: rgba(14, 46, 77, .4);
}
.spec-top .title { font-family: var(--font-tech); letter-spacing: 2px; font-size: 14px; color: var(--paper); }
.spec-top .meta { font-family: var(--font-tech); font-size: 12px; color: var(--ink-dim); letter-spacing: 1px; }
.spec-rows { display: grid; grid-template-columns: repeat(2, 1fr); }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 26px; border-bottom: 1px solid var(--bp-line); border-right: 1px solid var(--bp-line); }
.spec-row .k { font-family: var(--font-tech); font-size: 13px; letter-spacing: 1px; color: var(--ink); text-transform: uppercase; }
.spec-row .v { font-size: 14.5px; color: var(--paper); text-align: right; font-weight: 500; }
.spec-row .v b { color: var(--filament); }

/* ---------- About / strata ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.strata-visual { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.strata-bar {
  height: 26px; border-radius: 4px; position: relative;
  background: linear-gradient(90deg, var(--gun-100), var(--gun-500));
  border: 1px solid rgba(170,200,230,.25);
  transform-origin: left;
}
.strata-bar.lit { background: linear-gradient(90deg, var(--filament-lt), var(--filament-dk)); border-color: rgba(255,210,170,.6); box-shadow: 0 0 22px rgba(255,122,24,.45); }
.strata-bar .tick { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--font-tech); font-size: 11px; color: rgba(255,255,255,.7); letter-spacing: 1px; }
.about-points { display: grid; gap: 24px; margin-top: 30px; }
.about-point { display: flex; gap: 16px; }
.about-point .n { font-family: var(--font-tech); color: var(--filament); font-size: 20px; font-weight: 700; flex: none; }
.about-point h4 { font-family: var(--font-tech); font-size: 18px; margin-bottom: 4px; }
.about-point p { color: var(--paper-dim); font-size: 15px; }

/* ---------- Contact / CTA ---------- */
.cta {
  border: 1px solid var(--bp-line-strong); border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(24,80,127,.5), transparent 60%),
    linear-gradient(160deg, rgba(14,46,77,.6), rgba(9,26,43,.85));
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.cta-left { padding: clamp(34px, 5vw, 60px); border-right: 1px solid var(--bp-line); }
.cta-left h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 16px 0 14px; }
.cta-left p { color: var(--paper-dim); margin-bottom: 26px; }
.contact-line { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 15px; color: var(--paper-dim); }
.contact-line .ic { color: var(--cyan); width: 20px; height: 20px; flex: none; }
.contact-line a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--filament); }
.contact-line a:hover { color: var(--filament); }

form.cta-form { padding: clamp(34px, 5vw, 60px); display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-tech); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); }
.field input, .field select, .field textarea {
  background: rgba(7, 23, 38, .6); border: 1px solid var(--bp-line-strong); border-radius: 8px;
  padding: 12px 14px; color: var(--paper); font-family: var(--font-body); font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(127,211,255,.15);
}
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--bp-line-strong);
  padding: 56px 0 30px;
  background: rgba(7, 23, 38, .6);
}
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand img { height: 64px; margin-bottom: 16px; }
.foot-brand p { color: var(--ink-dim); max-width: 34ch; font-size: 14px; }
.foot-col h5 { font-family: var(--font-tech); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--paper); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--ink-dim); text-decoration: none; font-size: 14px; margin-bottom: 9px; transition: color .2s; }
.foot-col a:hover { color: var(--filament); }
.foot-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--bp-line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-tech); font-size: 12.5px; letter-spacing: 1px; color: var(--ink-dim);
}
.foot-bottom .domains b { color: var(--cyan); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .cta { grid-template-columns: 1fr; }
  .cta-left { border-right: none; border-bottom: 1px solid var(--bp-line); }
  .services-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .pipeline::before { display: none; }
  .spec-rows { grid-template-columns: 1fr; }
  .scene { min-height: 380px; order: -1; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  header.nav.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: rgba(9,26,43,.97); padding: 20px 6vw; gap: 18px; border-bottom: 1px solid var(--bp-line-strong);
  }
}
@media (max-width: 560px) {
  .cap-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .nav-cta .btn-quote-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .part, .marquee { animation: none !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
